LibGd
2.4.0-dev
GD Graphics library
Loading...
Searching...
No Matches
src
ftraster
gd_ft_types.h
1
#ifndef GD_FT_TYPES_H
2
#define GD_FT_TYPES_H
3
4
/*************************************************************************/
5
/* */
6
/* <Type> */
7
/* GD_FT_Fixed */
8
/* */
9
/* <Description> */
10
/* This type is used to store 16.16 fixed-point values, like scaling */
11
/* values or matrix coefficients. */
12
/* */
13
typedef
signed
long
GD_FT_Fixed;
14
15
/*************************************************************************/
16
/* */
17
/* <Type> */
18
/* GD_FT_Int */
19
/* */
20
/* <Description> */
21
/* A typedef for the int type. */
22
/* */
23
typedef
signed
int
GD_FT_Int;
24
25
/*************************************************************************/
26
/* */
27
/* <Type> */
28
/* GD_FT_UInt */
29
/* */
30
/* <Description> */
31
/* A typedef for the unsigned int type. */
32
/* */
33
typedef
unsigned
int
GD_FT_UInt;
34
35
/*************************************************************************/
36
/* */
37
/* <Type> */
38
/* GD_FT_Long */
39
/* */
40
/* <Description> */
41
/* A typedef for signed long. */
42
/* */
43
typedef
signed
long
GD_FT_Long;
44
45
/*************************************************************************/
46
/* */
47
/* <Type> */
48
/* GD_FT_ULong */
49
/* */
50
/* <Description> */
51
/* A typedef for unsigned long. */
52
/* */
53
typedef
unsigned
long
GD_FT_ULong;
54
55
/*************************************************************************/
56
/* */
57
/* <Type> */
58
/* GD_FT_Short */
59
/* */
60
/* <Description> */
61
/* A typedef for signed short. */
62
/* */
63
typedef
signed
short
GD_FT_Short;
64
65
/*************************************************************************/
66
/* */
67
/* <Type> */
68
/* GD_FT_Byte */
69
/* */
70
/* <Description> */
71
/* A simple typedef for the _unsigned_ char type. */
72
/* */
73
typedef
unsigned
char
GD_FT_Byte;
74
75
/*************************************************************************/
76
/* */
77
/* <Type> */
78
/* GD_FT_Bool */
79
/* */
80
/* <Description> */
81
/* A typedef of unsigned char, used for simple booleans. As usual, */
82
/* values 1 and~0 represent true and false, respectively. */
83
/* */
84
typedef
unsigned
char
GD_FT_Bool;
85
86
/*************************************************************************/
87
/* */
88
/* <Type> */
89
/* GD_FT_Error */
90
/* */
91
/* <Description> */
92
/* The FreeType error code type. A value of~0 is always interpreted */
93
/* as a successful operation. */
94
/* */
95
typedef
int
GD_FT_Error;
96
97
/*************************************************************************/
98
/* */
99
/* <Type> */
100
/* GD_FT_Pos */
101
/* */
102
/* <Description> */
103
/* The type GD_FT_Pos is used to store vectorial coordinates. Depending */
104
/* on the context, these can represent distances in integer font */
105
/* units, or 16.16, or 26.6 fixed-point pixel coordinates. */
106
/* */
107
typedef
signed
long
GD_FT_Pos;
108
109
/*************************************************************************/
110
/* */
111
/* <Struct> */
112
/* GD_FT_Vector */
113
/* */
114
/* <Description> */
115
/* A simple structure used to store a 2D vector; coordinates are of */
116
/* the GD_FT_Pos type. */
117
/* */
118
/* <Fields> */
119
/* x :: The horizontal coordinate. */
120
/* y :: The vertical coordinate. */
121
/* */
122
typedef
struct
GD_FT_Vector_ {
123
GD_FT_Pos x;
124
GD_FT_Pos y;
125
126
} GD_FT_Vector;
127
128
typedef
long
long
int
GD_FT_Int64;
129
typedef
unsigned
long
long
int
GD_FT_UInt64;
130
131
typedef
signed
int
GD_FT_Int32;
132
typedef
unsigned
int
GD_FT_UInt32;
133
134
#define GD_FT_BOOL(x) ((GD_FT_Bool)(x))
135
136
#define GD_FT_SIZEOF_LONG 4
137
138
#ifndef TRUE
139
#define TRUE 1
140
#endif
141
142
#ifndef FALSE
143
#define FALSE 0
144
#endif
145
146
#endif
// GD_FT_TYPES_H
Generated by
1.9.8