#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 |
typedef struct TBBox_Rec_ TBBox_Rec |
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.
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 | ||||
) |