#include <font.h>
Definition at line 104 of file font.h.
◆ cTextWrapper() [1/2]
cTextWrapper::cTextWrapper |
( |
void | | ) |
|
◆ cTextWrapper() [2/2]
cTextWrapper::cTextWrapper |
( |
const char * | Text, |
|
|
const cFont * | Font, |
|
|
int | Width ) |
◆ ~cTextWrapper()
cTextWrapper::~cTextWrapper |
( |
| ) |
|
◆ GetLine()
const char * cTextWrapper::GetLine |
( |
int | Line | ) |
|
◆ Lines()
int cTextWrapper::Lines |
( |
void | | ) |
|
|
inline |
◆ Set()
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 566 of file font.c.
References eol, Font, lastLine, lines, MALLOC, stripspace(), text, Text(), Utf8CharGet(), Utf8CharLen(), and cCursesFont::Width().
Referenced by cTextWrapper(), and cTextScroller::Set().
◆ Text()
const char * cTextWrapper::Text |
( |
void | | ) |
|
◆ eol
◆ lastLine
int cTextWrapper::lastLine |
|
private |
◆ lines
◆ text
The documentation for this class was generated from the following files: