ftbbox.c File Reference

#include <ft2build.h>

Go to the source code of this file.

Classes

struct  TBBox_Rec_

Defines

#define CHECK_X(p, bbox)   ( p->x < bbox.xMin || p->x > bbox.xMax )
#define CHECK_Y(p, bbox)   ( p->y < bbox.yMin || p->y > bbox.yMax )

Typedefs

typedef TBBox_Rec_ TBBox_Rec

Functions

static int BBox_Move_To (FT_Vector *to, TBBox_Rec *user)
static void BBox_Conic_Check (FT_Pos y1, FT_Pos y2, FT_Pos y3, FT_Pos *min, FT_Pos *max)
static int BBox_Conic_To (FT_Vector *control, FT_Vector *to, TBBox_Rec *user)
static void test_cubic_extrema (FT_Pos y1, FT_Pos y2, FT_Pos y3, FT_Pos y4, FT_Fixed u, FT_Pos *min, FT_Pos *max)
static void BBox_Cubic_Check (FT_Pos y1, FT_Pos y2, FT_Pos y3, FT_Pos y4, FT_Pos *min, FT_Pos *max)
static int BBox_Cubic_To (FT_Vector *control1, FT_Vector *control2, FT_Vector *to, TBBox_Rec *user)
 FT_DEFINE_OUTLINE_FUNCS (bbox_interface,(FT_Outline_MoveTo_Func) BBox_Move_To,(FT_Outline_LineTo_Func) BBox_Move_To,(FT_Outline_ConicTo_Func) BBox_Conic_To,(FT_Outline_CubicTo_Func) BBox_Cubic_To, 0, 0) FT_Outline_Get_BBox(FT_Outline *outline


Define Documentation

#define CHECK_X ( p,
bbox   )     ( p->x < bbox.xMin || p->x > bbox.xMax )

Definition at line 73 of file ftbbox.c.

Referenced by BBox_Conic_To(), and BBox_Cubic_To().

#define CHECK_Y ( p,
bbox   )     ( p->y < bbox.yMin || p->y > bbox.yMax )

Definition at line 76 of file ftbbox.c.

Referenced by BBox_Conic_To(), and BBox_Cubic_To().


Typedef Documentation

typedef struct TBBox_Rec_ TBBox_Rec


Function Documentation

static void BBox_Conic_Check ( FT_Pos  y1,
FT_Pos  y2,
FT_Pos  y3,
FT_Pos min,
FT_Pos max 
) [static]

Definition at line 103 of file ftbbox.c.

References FT_MulDiv().

Referenced by BBox_Conic_To().

static int BBox_Conic_To ( FT_Vector control,
FT_Vector to,
TBBox_Rec user 
) [static]

Definition at line 163 of file ftbbox.c.

References TBBox_Rec_::bbox, BBox_Conic_Check(), CHECK_X, CHECK_Y, TBBox_Rec_::last, FT_Vector_::x, FT_BBox_::xMax, FT_BBox_::xMin, FT_Vector_::y, FT_BBox_::yMax, and FT_BBox_::yMin.

static void BBox_Cubic_Check ( FT_Pos  y1,
FT_Pos  y2,
FT_Pos  y3,
FT_Pos  y4,
FT_Pos min,
FT_Pos max 
) [static]

Definition at line 333 of file ftbbox.c.

References a, b, c, d, FT_DivFix(), FT_MulFix(), FT_Pos, FT_SqrtFixed(), t, and test_cubic_extrema().

Referenced by BBox_Cubic_To().

static int BBox_Cubic_To ( FT_Vector control1,
FT_Vector control2,
FT_Vector to,
TBBox_Rec user 
) [static]

Definition at line 532 of file ftbbox.c.

References TBBox_Rec_::bbox, BBox_Cubic_Check(), CHECK_X, CHECK_Y, TBBox_Rec_::last, FT_Vector_::x, FT_BBox_::xMax, FT_BBox_::xMin, FT_Vector_::y, FT_BBox_::yMax, and FT_BBox_::yMin.

static int BBox_Move_To ( FT_Vector to,
TBBox_Rec user 
) [static]

Definition at line 64 of file ftbbox.c.

References TBBox_Rec_::last.

FT_DEFINE_OUTLINE_FUNCS ( bbox_interface  ,
(FT_Outline_MoveTo_Func)  BBox_Move_To,
(FT_Outline_LineTo_Func)  BBox_Move_To,
(FT_Outline_ConicTo_Func)  BBox_Conic_To,
(FT_Outline_CubicTo_Func)  BBox_Cubic_To,
,
 
)

static void test_cubic_extrema ( FT_Pos  y1,
FT_Pos  y2,
FT_Pos  y3,
FT_Pos  y4,
FT_Fixed  u,
FT_Pos min,
FT_Pos max 
) [static]

Definition at line 289 of file ftbbox.c.

References b, c, d, FT_MulFix(), FT_Pos, FT_UNUSED, x10000L, and y.

Referenced by BBox_Cubic_Check().


Generated on Tue Jul 5 15:58:22 2011 for ROOT_528-00b_version by  doxygen 1.5.1