summaryrefslogtreecommitdiff
path: root/support/dktools/WxdkdrawFont.h
blob: 023e561af5bddb7995cfd67fd33595c88e2a761e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
/*
Copyright (C) 2019-2020, Dirk Krause
SPDX-License-Identifier: BSD-3-Clause
*/

/*
	WARNING: This file was generated by the dkct program (see
	http://dktools.sourceforge.net/ for details).
	Changes you make here will be lost if dkct is run again!
	You should modify the original source and run dkct on it.
	Original source: WxdkdrawFont.cpt
*/

#ifndef WXDKDRAWFONT_H_INCLUDED
/** Avoid multiple inclusions. */
#define WXDKDRAWFONT_H_INCLUDED 1


#line 8 "WxdkdrawFont.cpt"

/**	@file	WxdkdrawFont.h	WXD font structures.
*/

#ifndef	WXDKDRAWTYPES_H_INCLUDED
#include "WxdkdrawTypes.h"
#endif

#ifndef	WXDENUM_H_INCLUDED
#include "wxdenum.h"
#endif


#ifdef	__cplusplus
extern "C" {
#endif

int
wxdfont_compare(const void *l, const void *r, int cr);

#ifdef	__cplusplus
}
#endif


/**	Create new font structure.
	@param	find	Font index (0 to 34).
	@param	fsz		Font size in pt.
	@return	Valid pointer to new structure on success, NULL on error.
*/

Wxd_font_t *
wxdfont_new(uint8_t find, uint16_t fsz);


/**	Delete font structure, release memory.
	@param	ptr	Font structure to delete.
*/

void
wxdfont_delete(Wxd_font_t *ptr);


/**	Retrieve wxFont from font structure.
	@param	ptr	Font structure to use.
	@return	wxFont pointer or NULL.
*/

wxFont *
wxdfont_get_font(Wxd_font_t *ptr);


/**	Create wxFont component.
	@param	ptr		Font structure to modify.
	@param	zoom	Current zoom factor.
	@param	res		Resolution.
	@param	exf		Use exact font.
*/

void
wxdfont_find_font(Wxd_font_t *ptr, double zoom, double res, bool exf);



/* vim: set ai sw=4 ts=4 : */


#endif