libmoldeo (Moldeo 1.0 Core)  1.0
libmoldeo is the group of objects and functions that executes the basic operations of Moldeo 1.0 Platform.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
OGLFT::Advance Struct Reference

#include <moOGLFT.h>

Public Member Functions

 Advance (float dx=0, float dy=0)
 Default constructor. An otherwise uninitialized Advance contains zeros. More...
 
 Advance (FT_Vector v)
 Initialize an advance from a FreeType advance member. More...
 
Advanceoperator+= (const FT_Vector v)
 

Public Attributes

float dx_
 Advance increment in the X direction. More...
 
float dy_
 Advance increment in the Y direction. More...
 

Detailed Description

Advance describes the "advance" of a glyph, namely the distance in model space at which the NEXT glyph should be drawn. This class exists to assist the computation of string metrics.

Definition at line 138 of file moOGLFT.h.

Constructor & Destructor Documentation

OGLFT::Advance::Advance ( float  dx = 0,
float  dy = 0 
)
inline

Default constructor. An otherwise uninitialized Advance contains zeros.

Definition at line 144 of file moOGLFT.h.

OGLFT::Advance::Advance ( FT_Vector  v)
inline

Initialize an advance from a FreeType advance member.

Definition at line 149 of file moOGLFT.h.

Member Function Documentation

Advance& OGLFT::Advance::operator+= ( const FT_Vector  v)
inline

Increment Advance with a FreeType advance member.

Returns
a reference to oneself.

Definition at line 157 of file moOGLFT.h.

Member Data Documentation

float OGLFT::Advance::dx_

Advance increment in the X direction.

Definition at line 140 of file moOGLFT.h.

float OGLFT::Advance::dy_

Advance increment in the Y direction.

Definition at line 141 of file moOGLFT.h.


The documentation for this struct was generated from the following file: