FTGL 2.4.0
|
FTLayout is the interface for layout managers that render text. More...
#include <FTLayout.h>
Public Member Functions | |
virtual | ~FTLayout () |
Destructor. | |
virtual FTBBox | BBox (const char *string, const int len=-1, FTPoint position=FTPoint())=0 |
Get the bounding box for a formatted string. | |
virtual FTBBox | BBox (const wchar_t *string, const int len=-1, FTPoint position=FTPoint())=0 |
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)=0 |
Render a string of characters. | |
virtual void | Render (const wchar_t *string, const int len=-1, FTPoint position=FTPoint(), int renderMode=FTGL::RENDER_ALL)=0 |
Render a string of characters. | |
virtual FT_Error | Error () const |
Queries the Layout for errors. | |
Protected Member Functions | |
FTLayout () | |
Friends | |
class | FTSimpleLayout |
FTLayout is the interface for layout managers that render text.
Specific layout manager classes are derived from this class. This class is abstract and deriving classes must implement the protected Render
methods to render formatted text and BBox
methods to determine the bounding box of output text.
Definition at line 52 of file FTLayout.h.
|
protected |
|
virtual |
Destructor.
|
pure virtual |
Get the bounding box for a formatted string.
string | A char string. |
len | The length of the string. If < 0 then all characters will be checked until a null character is encountered (optional). |
position | The pen position of the first character (optional). |
Implemented in FTSimpleLayout.
|
pure virtual |
Get the bounding box for a formatted string.
string | A wchar_t string. |
len | The length of the string. If < 0 then all characters will be checked until a null character is encountered (optional). |
position | The pen position of the first character (optional). |
Implemented in FTSimpleLayout.
|
virtual |
Queries the Layout for errors.
|
pure virtual |
Render a string of characters.
string | 'C' style string to be output. |
len | The length of the string. If < 0 then all characters will be displayed until a null character is encountered (optional). |
position | The pen position of the first character (optional). |
renderMode | Render mode to display (optional) |
Implemented in FTSimpleLayout.
|
pure virtual |
Render a string of characters.
string | wchar_t string to be output. |
len | The length of the string. If < 0 then all characters will be displayed until a null character is encountered (optional). |
position | The pen position of the first character (optional). |
renderMode | Render mode to display (optional) |
Implemented in FTSimpleLayout.
|
friend |
Definition at line 67 of file FTLayout.h.