okteta
AbstractColumnFrameRenderer Class Reference
#include <abstractcolumnframerenderer.h>

Detailed Description
class to render columns with the same lineheight for all lineslines are only completely rendered, so contentHeight <= framesCount*height
Definition at line 50 of file abstractcolumnframerenderer.h.
Public Member Functions | |
| AbstractColumnFrameRenderer () | |
| KPixelY | columnsHeight () const |
| KPixelX | columnsWidth () const |
| KPixelY | lineHeight () const |
| int | noOfLines () const |
| int | noOfLinesPerFrame () const |
| virtual void | renderFrame (QPainter *painter, int frameIndex) |
| void | setColumnsPos (KPixelX x, KPixelY y) |
| virtual | ~AbstractColumnFrameRenderer () |
Protected Member Functions | |
| void | addColumn (KHEPrint::AbstractColumnRenderer *column) |
| virtual void | drawEmptyArea (QPainter *painter, int cx, int cy, int cw, int ch) |
| void | removeColumn (KHEPrint::AbstractColumnRenderer *column) |
| virtual void | setLineHeight (KPixelY NewLineHeight) |
| virtual void | setNoOfLines (int NewNoOfLines) |
| void | updateWidths () |
Constructor & Destructor Documentation
| AbstractColumnFrameRenderer::AbstractColumnFrameRenderer | ( | ) |
Definition at line 76 of file abstractcolumnframerenderer.cpp.
| AbstractColumnFrameRenderer::~AbstractColumnFrameRenderer | ( | ) | [virtual] |
Definition at line 252 of file abstractcolumnframerenderer.cpp.
Member Function Documentation
| void AbstractColumnFrameRenderer::addColumn | ( | KHEPrint::AbstractColumnRenderer * | column | ) | [protected] |
| KPixelY AbstractColumnFrameRenderer::columnsHeight | ( | ) | const |
returns the height of all lines together
Definition at line 85 of file abstractcolumnframerenderer.cpp.
| KPixelX AbstractColumnFrameRenderer::columnsWidth | ( | ) | const |
returns the width of all visible columns together
Definition at line 86 of file abstractcolumnframerenderer.cpp.
| void AbstractColumnFrameRenderer::drawEmptyArea | ( | QPainter * | painter, | |
| int | cx, | |||
| int | cy, | |||
| int | cw, | |||
| int | ch | |||
| ) | [protected, virtual] |
draws area without columns in columns coordinates
Definition at line 246 of file abstractcolumnframerenderer.cpp.
| KPixelY AbstractColumnFrameRenderer::lineHeight | ( | ) | const |
| int AbstractColumnFrameRenderer::noOfLines | ( | ) | const |
| int AbstractColumnFrameRenderer::noOfLinesPerFrame | ( | ) | const |
returns number of fully visible lines, at least 1 (as needed by page down/up) doesn't care about the total height being smaller than the display height
Definition at line 118 of file abstractcolumnframerenderer.cpp.
| void AbstractColumnFrameRenderer::removeColumn | ( | KHEPrint::AbstractColumnRenderer * | column | ) | [protected] |
Definition at line 141 of file abstractcolumnframerenderer.cpp.
Implements AbstractFrameRenderer.
Reimplemented in ByteArrayFrameRenderer.
Definition at line 153 of file abstractcolumnframerenderer.cpp.
| void AbstractColumnFrameRenderer::setLineHeight | ( | KPixelY | NewLineHeight | ) | [protected, virtual] |
sets height of all lines and propagates this information to all columns doesn't update the content size
- Parameters:
-
NewLineHeight height in pixels
Definition at line 97 of file abstractcolumnframerenderer.cpp.
| void AbstractColumnFrameRenderer::setNoOfLines | ( | int | NewNoOfLines | ) | [protected, virtual] |
sets the number of lines doesn't update the content size
- Parameters:
-
NewNoOfLines new number of lines to display
Definition at line 88 of file abstractcolumnframerenderer.cpp.
| void AbstractColumnFrameRenderer::updateWidths | ( | ) | [protected] |
recalculates the positions of the columns and the total width
Definition at line 112 of file abstractcolumnframerenderer.cpp.
The documentation for this class was generated from the following files:
KDE 4.2 API Reference