The Renderer class is the base class for anything that displays content in a browser window. More...
Publicly inherits QObject, Rect.
Publicly inherited by AnchorRenderer, FormObjectRenderer, HLineRenderer, PlainRenderer, SgmlRenderer, StyleRenderer, WordRenderer.
Renderer | ( Canvas* canvas, int clipWidth=???, QObject* parent=???, const char* name=??? ); | |
Canvas* | canvas | ( ); |
int | clipWidth | ( ); |
int | maximumWidth | ( ); |
int | minimumWidth | ( ); |
void | move | ( int x, int y ); |
void | needRedraw | ( ); |
virtual bool | redraw | ( ); |
virtual void | repaint | ( QPainter& p, const Rect& r ); |
void | resize | ( int w, int h ); |
virtual | ~Renderer | ( ); |
virtual void | childSizeChanged | ( ); |
virtual void | widthChanged | ( int w ); |
void | resized | ( ); |
int | _clipWidth; |
int | _maximumWidth; |
int | _minimumWidth; |
bool | _needRedraw; |
Canvas* | _canvas; |
The Renderer class is the base class for anything that displays content in a browser window.
The Renderer specifies a minimal common interface for any class that displays content (text, images, etc.) in a browser. A Renderer keeps track of which browser it is associated with, its preferred width, and its minimum and maximum widths.Initialize a new Renderer. Just store the given information for later.
Return a pointer to the browser that contains this renderer.
The current preferred width, as specified by our parent.
Return the maximum width that the renderer needs to display its content. This value is calculated by a subclass, usually in the redraw() function.
Return the minimum width that the renderer needs to display its content. This value is calculated by a subclass, usually in the redraw() function.
This function is called whenever the renderer may need to recompute the layout of its content. Possible reasons for this are receiving new content, and processing a change in renderer's allocated screen width. This function is never called in response to a paintEvent().
This function does the actual work of repositioning the content of the renderer. This function is not called in response to paintEvent()s.
Virtual destructor. This function does nothing.
This slot is used to notify a renderer that one of its children has resized itself. Since the parent does not directly size its children, it must redraw() itself to cope with the new child size.
This slot informs the renderer that the preferred width has been changed. This usually provokes a call to redraw().
This signal is emitted whenever a renderer resizes itself. This signal is usually connected to the renderer's parent.