2022-10-16 10:31:43 +00:00
|
|
|
/****************************************************************************
|
|
|
|
*
|
|
|
|
* fttypes.h
|
|
|
|
*
|
|
|
|
* FreeType simple types definitions (specification only).
|
|
|
|
*
|
|
|
|
* Copyright (C) 1996-2020 by
|
|
|
|
* David Turner, Robert Wilhelm, and Werner Lemberg.
|
|
|
|
*
|
|
|
|
* This file is part of the FreeType project, and may only be used,
|
|
|
|
* modified, and distributed under the terms of the FreeType project
|
|
|
|
* license, LICENSE.TXT. By continuing to use, modify, or distribute
|
|
|
|
* this file you indicate that you have read the license and
|
|
|
|
* understand and accept it fully.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef PLUTOVG_FT_TYPES_H
|
|
|
|
#define PLUTOVG_FT_TYPES_H
|
2022-10-03 16:25:42 +00:00
|
|
|
|
|
|
|
/*************************************************************************/
|
|
|
|
/* */
|
|
|
|
/* <Type> */
|
2022-10-16 10:31:43 +00:00
|
|
|
/* PVG_FT_Fixed */
|
2022-10-03 16:25:42 +00:00
|
|
|
/* */
|
|
|
|
/* <Description> */
|
|
|
|
/* This type is used to store 16.16 fixed-point values, like scaling */
|
|
|
|
/* values or matrix coefficients. */
|
|
|
|
/* */
|
2022-10-16 10:31:43 +00:00
|
|
|
typedef signed long PVG_FT_Fixed;
|
2022-10-03 16:25:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
/*************************************************************************/
|
|
|
|
/* */
|
|
|
|
/* <Type> */
|
2022-10-16 10:31:43 +00:00
|
|
|
/* PVG_FT_Int */
|
2022-10-03 16:25:42 +00:00
|
|
|
/* */
|
|
|
|
/* <Description> */
|
|
|
|
/* A typedef for the int type. */
|
|
|
|
/* */
|
2022-10-16 10:31:43 +00:00
|
|
|
typedef signed int PVG_FT_Int;
|
2022-10-03 16:25:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
/*************************************************************************/
|
|
|
|
/* */
|
|
|
|
/* <Type> */
|
2022-10-16 10:31:43 +00:00
|
|
|
/* PVG_FT_UInt */
|
2022-10-03 16:25:42 +00:00
|
|
|
/* */
|
|
|
|
/* <Description> */
|
|
|
|
/* A typedef for the unsigned int type. */
|
|
|
|
/* */
|
2022-10-16 10:31:43 +00:00
|
|
|
typedef unsigned int PVG_FT_UInt;
|
2022-10-03 16:25:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
/*************************************************************************/
|
|
|
|
/* */
|
|
|
|
/* <Type> */
|
2022-10-16 10:31:43 +00:00
|
|
|
/* PVG_FT_Long */
|
2022-10-03 16:25:42 +00:00
|
|
|
/* */
|
|
|
|
/* <Description> */
|
|
|
|
/* A typedef for signed long. */
|
|
|
|
/* */
|
2022-10-16 10:31:43 +00:00
|
|
|
typedef signed long PVG_FT_Long;
|
2022-10-03 16:25:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
/*************************************************************************/
|
|
|
|
/* */
|
|
|
|
/* <Type> */
|
2022-10-16 10:31:43 +00:00
|
|
|
/* PVG_FT_ULong */
|
2022-10-03 16:25:42 +00:00
|
|
|
/* */
|
|
|
|
/* <Description> */
|
|
|
|
/* A typedef for unsigned long. */
|
|
|
|
/* */
|
2022-10-16 10:31:43 +00:00
|
|
|
typedef unsigned long PVG_FT_ULong;
|
2022-10-03 16:25:42 +00:00
|
|
|
|
|
|
|
/*************************************************************************/
|
|
|
|
/* */
|
|
|
|
/* <Type> */
|
2022-10-16 10:31:43 +00:00
|
|
|
/* PVG_FT_Short */
|
2022-10-03 16:25:42 +00:00
|
|
|
/* */
|
|
|
|
/* <Description> */
|
|
|
|
/* A typedef for signed short. */
|
|
|
|
/* */
|
2022-10-16 10:31:43 +00:00
|
|
|
typedef signed short PVG_FT_Short;
|
2022-10-03 16:25:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
/*************************************************************************/
|
|
|
|
/* */
|
|
|
|
/* <Type> */
|
2022-10-16 10:31:43 +00:00
|
|
|
/* PVG_FT_Byte */
|
2022-10-03 16:25:42 +00:00
|
|
|
/* */
|
|
|
|
/* <Description> */
|
|
|
|
/* A simple typedef for the _unsigned_ char type. */
|
|
|
|
/* */
|
2022-10-16 10:31:43 +00:00
|
|
|
typedef unsigned char PVG_FT_Byte;
|
2022-10-03 16:25:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
/*************************************************************************/
|
|
|
|
/* */
|
|
|
|
/* <Type> */
|
2022-10-16 10:31:43 +00:00
|
|
|
/* PVG_FT_Bool */
|
2022-10-03 16:25:42 +00:00
|
|
|
/* */
|
|
|
|
/* <Description> */
|
|
|
|
/* A typedef of unsigned char, used for simple booleans. As usual, */
|
|
|
|
/* values 1 and~0 represent true and false, respectively. */
|
|
|
|
/* */
|
2022-10-16 10:31:43 +00:00
|
|
|
typedef unsigned char PVG_FT_Bool;
|
2022-10-03 16:25:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*************************************************************************/
|
|
|
|
/* */
|
|
|
|
/* <Type> */
|
2022-10-16 10:31:43 +00:00
|
|
|
/* PVG_FT_Error */
|
2022-10-03 16:25:42 +00:00
|
|
|
/* */
|
|
|
|
/* <Description> */
|
|
|
|
/* The FreeType error code type. A value of~0 is always interpreted */
|
|
|
|
/* as a successful operation. */
|
|
|
|
/* */
|
2022-10-16 10:31:43 +00:00
|
|
|
typedef int PVG_FT_Error;
|
2022-10-03 16:25:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
/*************************************************************************/
|
|
|
|
/* */
|
|
|
|
/* <Type> */
|
2022-10-16 10:31:43 +00:00
|
|
|
/* PVG_FT_Pos */
|
2022-10-03 16:25:42 +00:00
|
|
|
/* */
|
|
|
|
/* <Description> */
|
2022-10-16 10:31:43 +00:00
|
|
|
/* The type PVG_FT_Pos is used to store vectorial coordinates. Depending */
|
2022-10-03 16:25:42 +00:00
|
|
|
/* on the context, these can represent distances in integer font */
|
|
|
|
/* units, or 16.16, or 26.6 fixed-point pixel coordinates. */
|
|
|
|
/* */
|
2022-10-16 10:31:43 +00:00
|
|
|
typedef signed long PVG_FT_Pos;
|
2022-10-03 16:25:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
/*************************************************************************/
|
|
|
|
/* */
|
|
|
|
/* <Struct> */
|
2022-10-16 10:31:43 +00:00
|
|
|
/* PVG_FT_Vector */
|
2022-10-03 16:25:42 +00:00
|
|
|
/* */
|
|
|
|
/* <Description> */
|
|
|
|
/* A simple structure used to store a 2D vector; coordinates are of */
|
2022-10-16 10:31:43 +00:00
|
|
|
/* the PVG_FT_Pos type. */
|
2022-10-03 16:25:42 +00:00
|
|
|
/* */
|
|
|
|
/* <Fields> */
|
|
|
|
/* x :: The horizontal coordinate. */
|
|
|
|
/* y :: The vertical coordinate. */
|
|
|
|
/* */
|
2022-10-16 10:31:43 +00:00
|
|
|
typedef struct PVG_FT_Vector_
|
2022-10-03 16:25:42 +00:00
|
|
|
{
|
2022-10-16 10:31:43 +00:00
|
|
|
PVG_FT_Pos x;
|
|
|
|
PVG_FT_Pos y;
|
2022-10-03 16:25:42 +00:00
|
|
|
|
2022-10-16 10:31:43 +00:00
|
|
|
} PVG_FT_Vector;
|
2022-10-03 16:25:42 +00:00
|
|
|
|
|
|
|
|
2022-10-16 10:31:43 +00:00
|
|
|
typedef long long int PVG_FT_Int64;
|
|
|
|
typedef unsigned long long int PVG_FT_UInt64;
|
2022-10-03 16:25:42 +00:00
|
|
|
|
2022-10-16 10:31:43 +00:00
|
|
|
typedef signed int PVG_FT_Int32;
|
|
|
|
typedef unsigned int PVG_FT_UInt32;
|
2022-10-03 16:25:42 +00:00
|
|
|
|
2022-10-16 10:31:43 +00:00
|
|
|
#define PVG_FT_BOOL( x ) ( (PVG_FT_Bool)( x ) )
|
2022-10-03 16:25:42 +00:00
|
|
|
|
|
|
|
#ifndef TRUE
|
|
|
|
#define TRUE 1
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef FALSE
|
|
|
|
#define FALSE 0
|
|
|
|
#endif
|
|
|
|
|
2022-10-16 10:31:43 +00:00
|
|
|
#endif // PLUTOVG_FT_TYPES_H
|