#include <font.h>
Definition at line 104 of file font.h.
◆ cTextWrapper() [1/4]
cTextWrapper::cTextWrapper |
( |
void |
| ) |
|
◆ cTextWrapper() [2/4]
cTextWrapper::cTextWrapper |
( |
const char * |
Text, |
|
|
const cFont * |
Font, |
|
|
int |
Width |
|
) |
| |
◆ ~cTextWrapper() [1/2]
cTextWrapper::~cTextWrapper |
( |
| ) |
|
◆ cTextWrapper() [3/4]
cTextWrapper::cTextWrapper |
( |
void |
| ) |
|
◆ cTextWrapper() [4/4]
cTextWrapper::cTextWrapper |
( |
const char * |
Text, |
|
|
const cFont * |
Font, |
|
|
int |
Width |
|
) |
| |
◆ ~cTextWrapper() [2/2]
cTextWrapper::~cTextWrapper |
( |
| ) |
|
◆ GetLine() [1/2]
const char * cTextWrapper::GetLine |
( |
int |
Line | ) |
|
◆ GetLine() [2/2]
const char * cTextWrapper::GetLine |
( |
int |
Line | ) |
|
Returns the given Line. The first line is numbered 0.
◆ Lines() [1/2]
int cTextWrapper::Lines |
( |
void |
| ) |
|
|
inline |
◆ Lines() [2/2]
int cTextWrapper::Lines |
( |
void |
| ) |
|
|
inline |
Returns the actual number of lines needed to display the full wrapped text.
Definition at line 121 of file include/vdr/font.h.
References lines.
◆ Set() [1/2]
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 565 of file font.c.
References eol, Font, lastLine, lines, MALLOC, stripspace(), text, Text(), Utf8CharGet(), Utf8CharLen(), and cCursesFont::Width().
Referenced by cTextWrapper(), and cTextScroller::Set().
◆ Set() [2/2]
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.
◆ Text() [1/2]
const char * cTextWrapper::Text |
( |
void |
| ) |
|
◆ Text() [2/2]
const char * cTextWrapper::Text |
( |
void |
| ) |
|
Returns the full wrapped text.
◆ eol
◆ lastLine
int cTextWrapper::lastLine |
|
private |
◆ lines
◆ text
char * cTextWrapper::text |
|
private |
The documentation for this class was generated from the following files: