#ifndef SW_FT_TYPES_H #define SW_FT_TYPES_H /*************************************************************************/ /* */ /* */ /* SW_FT_Fixed */ /* */ /* */ /* This type is used to store 16.16 fixed-point values, like scaling */ /* values or matrix coefficients. */ /* */ typedef signed long SW_FT_Fixed; /*************************************************************************/ /* */ /* */ /* SW_FT_Int */ /* */ /* */ /* A typedef for the int type. */ /* */ typedef signed int SW_FT_Int; /*************************************************************************/ /* */ /* */ /* SW_FT_UInt */ /* */ /* */ /* A typedef for the unsigned int type. */ /* */ typedef unsigned int SW_FT_UInt; /*************************************************************************/ /* */ /* */ /* SW_FT_Long */ /* */ /* */ /* A typedef for signed long. */ /* */ typedef signed long SW_FT_Long; /*************************************************************************/ /* */ /* */ /* SW_FT_ULong */ /* */ /* */ /* A typedef for unsigned long. */ /* */ typedef unsigned long SW_FT_ULong; /*************************************************************************/ /* */ /* */ /* SW_FT_Short */ /* */ /* */ /* A typedef for signed short. */ /* */ typedef signed short SW_FT_Short; /*************************************************************************/ /* */ /* */ /* SW_FT_Byte */ /* */ /* */ /* A simple typedef for the _unsigned_ char type. */ /* */ typedef unsigned char SW_FT_Byte; /*************************************************************************/ /* */ /* */ /* SW_FT_Bool */ /* */ /* */ /* A typedef of unsigned char, used for simple booleans. As usual, */ /* values 1 and~0 represent true and false, respectively. */ /* */ typedef unsigned char SW_FT_Bool; /*************************************************************************/ /* */ /* */ /* SW_FT_Error */ /* */ /* */ /* The FreeType error code type. A value of~0 is always interpreted */ /* as a successful operation. */ /* */ typedef int SW_FT_Error; /*************************************************************************/ /* */ /* */ /* SW_FT_Pos */ /* */ /* */ /* The type SW_FT_Pos is used to store vectorial coordinates. Depending */ /* on the context, these can represent distances in integer font */ /* units, or 16.16, or 26.6 fixed-point pixel coordinates. */ /* */ typedef signed long SW_FT_Pos; /*************************************************************************/ /* */ /* */ /* SW_FT_Vector */ /* */ /* */ /* A simple structure used to store a 2D vector; coordinates are of */ /* the SW_FT_Pos type. */ /* */ /* */ /* x :: The horizontal coordinate. */ /* y :: The vertical coordinate. */ /* */ typedef struct SW_FT_Vector_ { SW_FT_Pos x; SW_FT_Pos y; } SW_FT_Vector; typedef long long int SW_FT_Int64; typedef unsigned long long int SW_FT_UInt64; typedef signed int SW_FT_Int32; typedef unsigned int SW_FT_UInt32; #define SW_FT_BOOL( x ) ( (SW_FT_Bool)( x ) ) #define SW_FT_SIZEOF_LONG 4 #ifndef TRUE #define TRUE 1 #endif #ifndef FALSE #define FALSE 0 #endif #endif // SW_FT_TYPES_H