WordRenderer

The Word class stores all the data needed to renderer a single word.

Publicly inherits Renderer.

Public Methods

WordRenderer( const QString& word, bool spaceBefore, bool spaceAfter, bool endOfLine, Canvas* canvas, int clipWidth=???, QObject* parent=???, const char* name=??? );
boolendOfLine( );
voidrepaint( QPainter& p, const Rect& r );
boolspaceAfter( );
boolspaceBefore( );
const QString&word( );
~WordRenderer( );

Private Data Members

bool_endOfLine;
bool_spaceAfter;
bool_spaceBefore;
QString_word;

Public Methods Documentation

WordRenderer ( const QString& word, bool spaceBefore, bool spaceAfter, bool endOfLine, Canvas* canvas, int clipWidth=???, QObject* parent=???, const char* name=??? );

Construct a Word.

Private Data Members Documentation

bool _endOfLine;

If set to TRUE then this is the last word on the line. This member has meaning only for the PreformatRenderer.

bool _spaceAfter;

The width of the space after this word. If this is zero and the spaceBefore the next word is also zero then there is no break between the two words, just a change in font, color, or url. Otherwise, this is the width of a single space in the word's font.

bool _spaceBefore;

The width of the space before this word. If this is zero and the spaceAfter the preceding word is also zero then there is no break between the two words, just a change in font, color, or url. Otherwise, this is the width of a single space in the word's font.

QString _word;

The actual text of the word. For preformatted text, this can contain spaces.


Return to Index.
Automatically generated on Aug 11 23:32