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,
struct _FTGLfont FTGLfont
struct _FTGLlayout FTGLlayout
void ftglSetLayoutAlignment(FTGLlayout *, const int)
int ftglGetLayoutAlignement(FTGLlayout *)
void ftglSetLayoutLineLength(FTGLlayout *, const float)
void ftglSetLayoutLineSpacing(FTGLlayout *, const float)
float ftglGetLayoutLineSpacing(FTGLlayout *)
FTGLfont * ftglGetLayoutFont(FTGLlayout *)
int ftglGetLayoutAlignment(FTGLlayout *)
float ftglGetLayoutLineLength(FTGLlayout *)
FTGLlayout * ftglCreateSimpleLayout(void)
void ftglSetLayoutFont(FTGLlayout *, FTGLfont *)
FTBBox is a convenience class for handling bounding boxes.
FTFont is the public interface for the FTGL library.
FTLayout is the interface for layout managers that render text.
FTPoint class is a basic 3-dimensional point or vector.
FTSimpleLayout is a specialisation of FTLayout for simple text boxes.
virtual FTBBox BBox(const char *string, const int len=-1, FTPoint position=FTPoint())
Get the bounding box for a formatted string.
float GetLineSpacing() const
void SetAlignment(const FTGL::TextAlignment Alignment)
The text alignment mode used to distribute space within a line or rendered text.
float GetLineLength() const
FTSimpleLayout()
Initializes line spacing to 1.0, alignment to ALIGN_LEFT and wrap to 100.0.
void SetLineSpacing(const float LineSpacing)
Sets the line height.
void SetFont(FTFont *fontInit)
Set the font to use for rendering the text.
FTGL::TextAlignment GetAlignment() const
virtual void Render(const wchar_t *string, const int len=-1, FTPoint position=FTPoint(), int renderMode=FTGL::RENDER_ALL)
Render a string of characters.
~FTSimpleLayout()
Destructor.
void SetLineLength(const float LineLength)
The maximum line length for formatting text.
virtual void Render(const char *string, const int len=-1, FTPoint position=FTPoint(), int renderMode=FTGL::RENDER_ALL)
Render a string of characters.
virtual FTBBox BBox(const wchar_t *string, const int len=-1, FTPoint position=FTPoint())
Get the bounding box for a formatted string.
#define FTGL_BEGIN_C_DECLS