BlockRenderer

The BlockRenderer class displays content by word wrapping and compressing white-space. More...

Publicly inherits TextRenderer.

Public Methods

BlockRenderer( Canvas* canvas, SgmlParser* parser, int clipWidth=???, QObject* parent=???, const char* name=??? );
virtual boolredraw( );

Public Slots

virtual voidcontent( QString text );

Private Data Members

int_alignment;

Detailed Documentation

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.

Public Methods Documentation

BlockRenderer ( Canvas* canvas, SgmlParser* parser, int clipWidth=???, QObject* parent=???, const char* name=??? );

Create a BlockRenderer.

virtual bool redraw ( );

Reposition each of the Inline elements. Words are automatically wrapped to the next line, and inlined images are treated the same as words.

Public Slots Documentation

virtual void content ( QString text );

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.


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