SASC-NG
DVBSoftCAM

cTextWrapper Class Reference

#include <font.h>

List of all members.

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.

Detailed Description

Definition at line 79 of file font.h.


Constructor & Destructor Documentation

cTextWrapper::cTextWrapper ( void  )
cTextWrapper::cTextWrapper ( const char *  Text,
const cFont *  Font,
int  Width 
)
cTextWrapper::~cTextWrapper ( )

Member Function Documentation

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.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines