29 # warning This header is deprecated. Please use <FTGL/ftgl.h> from now. 33 #ifndef __FTSimpleLayout__ 34 #define __FTSimpleLayout__ 73 virtual FTBBox BBox(
const char*
string,
const int len = -1,
86 virtual FTBBox BBox(
const wchar_t*
string,
const int len = -1,
99 virtual void Render(
const char *
string,
const int len = -1,
113 virtual void Render(
const wchar_t *
string,
const int len = -1,
124 void SetFont(
FTFont *fontInit);
136 void SetLineLength(
const float LineLength);
141 float GetLineLength()
const;
162 void SetLineSpacing(
const float LineSpacing);
167 float GetLineSpacing()
const;
void ftglSetLayoutLineSpacing(FTGLlayout *, const float)
virtual FTBBox BBox(const char *string, const int len=-1, FTPoint position=FTPoint())=0
Get the bounding box for a formatted string.
struct _FTGLfont FTGLfont
struct _FTGLlayout FTGLlayout
FTBBox is a convenience class for handling bounding boxes.
FTGLlayout * ftglCreateSimpleLayout(void)
friend class FTSimpleLayout
FTLayout is the interface for layout managers that render text.
void ftglSetLayoutFont(FTGLlayout *, FTGLfont *)
int ftglGetLayoutAlignement(FTGLlayout *)
void ftglSetLayoutLineLength(FTGLlayout *, const float)
FTGLfont * ftglGetLayoutFont(FTGLlayout *)
FTPoint class is a basic 3-dimensional point or vector.
float ftglGetLayoutLineSpacing(FTGLlayout *)
float ftglGetLayoutLineLength(FTGLlayout *)
#define FTGL_BEGIN_C_DECLS
FTFont is the public interface for the FTGL library.
int ftglGetLayoutAlignment(FTGLlayout *)
void ftglSetLayoutAlignment(FTGLlayout *, const int)
virtual void Render(const char *string, const int len=-1, FTPoint position=FTPoint(), int renderMode=FTGL::RENDER_ALL)=0
Render a string of characters.
FTSimpleLayout is a specialisation of FTLayout for simple text boxes.