vdr
1.7.27
|
#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) |
int | Lines (void) |
const char * | GetLine (int Line) |
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) |
int | Lines (void) |
const char * | GetLine (int Line) |
Private Attributes | |
char * | text |
char * | eol |
int | lines |
int | lastLine |
cTextWrapper::cTextWrapper | ( | void | ) |
cTextWrapper::cTextWrapper | ( | const char * | Text, |
const cFont * | Font, | ||
int | Width | ||
) |
cTextWrapper::cTextWrapper | ( | void | ) |
cTextWrapper::cTextWrapper | ( | const char * | Text, |
const cFont * | Font, | ||
int | Width | ||
) |
const char * cTextWrapper::GetLine | ( | int | Line | ) |
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 113 of file font.h.
References lines.
Referenced by cTextScroller::Total().
int cTextWrapper::Lines | ( | void | ) | [inline] |
Returns the actual number of lines needed to display the full wrapped text.
Definition at line 113 of file include/vdr/font.h.
References lines.
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.
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.
Definition at line 556 of file font.c.
References eol, lastLine, lines, MALLOC, stripspace(), text, Utf8CharGet(), Utf8CharLen(), and cFont::Width().
Referenced by cTextWrapper(), and cTextScroller::Set().
const char* cTextWrapper::Text | ( | void | ) |
Returns the full wrapped text.
const char * cTextWrapper::Text | ( | void | ) |
char * cTextWrapper::eol [private] |
int cTextWrapper::lastLine [private] |
Definition at line 101 of file font.h.
Referenced by cTextWrapper(), GetLine(), and Set().
int cTextWrapper::lines [private] |
char * cTextWrapper::text [private] |
Definition at line 98 of file font.h.
Referenced by cTextWrapper(), GetLine(), Set(), Text(), and ~cTextWrapper().