|
SASC-NG
DVBSoftCAM
|
#include <font.h>
Public Member Functions | |
| cTextWrapper (void) | |
| cTextWrapper (const char *Text, const cFont *Font, int Width) | |
| ~cTextWrapper () | |
| void | Set (const char *Text, const cFont *Font, int Width) |
| const char * | Text (void) |
| Returns the full wrapped text. | |
| int | Lines (void) |
| Returns the actual number of lines needed to display the full wrapped text. | |
| const char * | GetLine (int Line) |
| Returns the given Line. The first line is numbered 0. | |
| cTextWrapper::cTextWrapper | ( | void | ) |
| cTextWrapper::cTextWrapper | ( | const char * | Text, |
| const cFont * | Font, | ||
| int | Width | ||
| ) |
| cTextWrapper::~cTextWrapper | ( | ) |
| const char* cTextWrapper::GetLine | ( | int | Line | ) |
Returns the given Line. The first line is numbered 0.
| int cTextWrapper::Lines | ( | void | ) | [inline] |
Returns the actual number of lines needed to display the full wrapped text.
Definition at line 96 of file font.h.
Referenced by cTextScroller::Total().
| void cTextWrapper::Set | ( | const char * | Text, |
| const cFont * | Font, | ||
| int | Width | ||
| ) |
Wraps the Text to make it fit into the area defined by the given Width when displayed with the given Font. Wrapping is done by inserting the necessary number of newline characters into the string.
| const char* cTextWrapper::Text | ( | void | ) |
Returns the full wrapped text.