The Word class stores all the data needed to renderer a single word.
Publicly inherits Renderer.
WordRenderer | ( const QString& word, bool spaceBefore, bool spaceAfter, bool endOfLine, Canvas* canvas, int clipWidth=???, QObject* parent=???, const char* name=??? ); | |
bool | endOfLine | ( ); |
void | repaint | ( QPainter& p, const Rect& r ); |
bool | spaceAfter | ( ); |
bool | spaceBefore | ( ); |
const QString& | word | ( ); |
~WordRenderer | ( ); |
bool | _endOfLine; | |
bool | _spaceAfter; | |
bool | _spaceBefore; | |
QString | _word; |
Construct a Word.
If set to TRUE then this is the last word on the line. This member has meaning only for the PreformatRenderer.
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.
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.
The actual text of the word. For preformatted text, this can contain spaces.