The BlockRenderer class displays content by word wrapping and compressing white-space. More...
Publicly inherits TextRenderer.
BlockRenderer | ( Canvas* canvas, SgmlParser* parser, int clipWidth=???, QObject* parent=???, const char* name=??? ); | |
virtual bool | redraw | ( ); |
virtual void | content | ( QString text ); |
int | _alignment; |
The BlockRenderer class displays content by word wrapping and compressing white-space.
As content comes in, it is broken up into discrete words that may or may not have leading and trailing white-space. When redraw()ing walk the list of words, and break them into lines, wrapping when necessary.Create a BlockRenderer.
Reposition each of the Inline elements. Words are automatically wrapped to the next line, and inlined images are treated the same as words.
Break the text stream up into individual words, and compress white-space. Record whether each word has space before or after it, to preserving word breaks when redraw()ing.