#include <FTSimpleLayout.h>
Inheritance diagram for FTSimpleLayout:

This class has basic support for text wrapping, left, right and centered alignment, and text justification.
Definition at line 49 of file FTSimpleLayout.h.
Public Member Functions | |
| FTSimpleLayout () | |
| Initializes line spacing to 1.0, alignment to ALIGN_LEFT and wrap to 100.0. | |
| ~FTSimpleLayout () | |
| Destructor. | |
| virtual FTBBox | BBox (const char *string, const int len=-1, FTPoint position=FTPoint()) |
| Get the bounding box for a formatted string. | |
| virtual FTBBox | BBox (const wchar_t *string, const int len=-1, FTPoint position=FTPoint()) |
| Get the bounding box for a formatted string. | |
| virtual void | Render (const char *string, const int len=-1, FTPoint position=FTPoint(), int renderMode=FTGL::RENDER_ALL) |
| Render a string of characters. | |
| virtual void | Render (const wchar_t *string, const int len=-1, FTPoint position=FTPoint(), int renderMode=FTGL::RENDER_ALL) |
| Render a string of characters. | |
| void | SetFont (FTFont *fontInit) |
| Set the font to use for rendering the text. | |
| FTFont * | GetFont () |
| void | SetLineLength (const float LineLength) |
| The maximum line length for formatting text. | |
| float | GetLineLength () const |
| void | SetAlignment (const FTGL::TextAlignment Alignment) |
| The text alignment mode used to distribute space within a line or rendered text. | |
| FTGL::TextAlignment | GetAlignment () const |
| void | SetLineSpacing (const float LineSpacing) |
| Sets the line height. | |
| float | GetLineSpacing () const |
|
|
Initializes line spacing to 1.0, alignment to ALIGN_LEFT and wrap to 100.0.
|
|
|
Destructor.
|
|
||||||||||||||||
|
Get the bounding box for a formatted string.
Implements FTLayout. |
|
||||||||||||||||
|
Get the bounding box for a formatted string.
Implements FTLayout. |
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||||||||||
|
Render a string of characters.
Implements FTLayout. |
|
||||||||||||||||||||
|
Render a string of characters.
Implements FTLayout. |
|
|
The text alignment mode used to distribute space within a line or rendered text.
|
|
|
Set the font to use for rendering the text.
|
|
|
The maximum line length for formatting text.
|
|
|
Sets the line height.
|
1.4.6