okteta
KHEPrint::AbstractColumnRenderer Class Reference
#include <abstractcolumnrenderer.h>

Detailed Description
base class for columns of the AbstractColumnRenderersView
Definition at line 47 of file abstractcolumnrenderer.h.
Public Member Functions | |
| AbstractColumnRenderer (AbstractColumnFrameRenderer *columnframeRenderer) | |
| AbstractColumnFrameRenderer * | columnFrameRenderer () const |
| bool | isVisible () const |
| KPixelY | lineHeight () const |
| bool | overlaps (const KPixelXs &Xs) const |
| virtual void | renderColumn (QPainter *painter, const KPixelXs &Xs, const KPixelYs &Ys) |
| virtual void | renderEmptyColumn (QPainter *painter, const KPixelXs &Xs, const KPixelYs &Ys) |
| virtual void | renderFirstLine (QPainter *painter, const KPixelXs &Xs, int firstLine) |
| virtual void | renderNextLine (QPainter *painter) |
| KPixelX | rightX () const |
| void | setLineHeight (KPixelY H) |
| void | setVisible (bool V) |
| void | setX (KPixelX NewX) |
| KPixelX | visibleWidth () const |
| KPixelX | width () const |
| KPixelX | x () const |
| virtual | ~AbstractColumnRenderer () |
Protected Member Functions | |
| void | renderBlankLine (QPainter *painter) const |
| void | restrictToXSpan (KPixelXs *Xs) const |
| void | setWidth (KPixelX W) |
Constructor & Destructor Documentation
| KHEPrint::AbstractColumnRenderer::AbstractColumnRenderer | ( | AbstractColumnFrameRenderer * | columnframeRenderer | ) | [explicit] |
Definition at line 82 of file abstractcolumnrenderer.cpp.
| KHEPrint::AbstractColumnRenderer::~AbstractColumnRenderer | ( | ) | [virtual] |
Definition at line 135 of file abstractcolumnrenderer.cpp.
Member Function Documentation
| AbstractColumnFrameRenderer * KHEPrint::AbstractColumnRenderer::columnFrameRenderer | ( | ) | const |
Definition at line 88 of file abstractcolumnrenderer.cpp.
| bool KHEPrint::AbstractColumnRenderer::isVisible | ( | ) | const |
| KPixelY KHEPrint::AbstractColumnRenderer::lineHeight | ( | ) | const |
Definition at line 95 of file abstractcolumnrenderer.cpp.
| bool KHEPrint::AbstractColumnRenderer::overlaps | ( | const KPixelXs & | Xs | ) | const |
true if column overlaps with pixels between x-positions x1, x2
Definition at line 104 of file abstractcolumnrenderer.cpp.
| void KHEPrint::AbstractColumnRenderer::renderBlankLine | ( | QPainter * | painter | ) | const [protected] |
Definition at line 120 of file abstractcolumnrenderer.cpp.
| void KHEPrint::AbstractColumnRenderer::renderColumn | ( | QPainter * | painter, | |
| const KPixelXs & | Xs, | |||
| const KPixelYs & | Ys | |||
| ) | [virtual] |
Reimplemented in KHEPrint::BorderColumnRenderer.
Definition at line 125 of file abstractcolumnrenderer.cpp.
| void KHEPrint::AbstractColumnRenderer::renderEmptyColumn | ( | QPainter * | painter, | |
| const KPixelXs & | Xs, | |||
| const KPixelYs & | Ys | |||
| ) | [virtual] |
Reimplemented in KHEPrint::BorderColumnRenderer, and KHEPrint::OffsetColumnRenderer.
Definition at line 130 of file abstractcolumnrenderer.cpp.
| void KHEPrint::AbstractColumnRenderer::renderFirstLine | ( | QPainter * | painter, | |
| const KPixelXs & | Xs, | |||
| int | firstLine | |||
| ) | [virtual] |
Before an update of the columns view each column that intersects with the area to be painted will be called with this function.
As often multiple lines of a column are affected for each lines the same values (like first and last char positions) might be calculated. This function enables a one-time-calculation for such data that must be stored in some class members, though.
- Parameters:
-
painter painter variable cx cw FirstLine no of the first of the range of lines to paint
Reimplemented in KHEPrint::ByteColumnRenderer, and KHEPrint::OffsetColumnRenderer.
Definition at line 107 of file abstractcolumnrenderer.cpp.
| void KHEPrint::AbstractColumnRenderer::renderNextLine | ( | QPainter * | painter | ) | [virtual] |
the actual painting call for a column's line.
The default implementation simply paints the background
Reimplemented in KHEPrint::ByteColumnRenderer, and KHEPrint::OffsetColumnRenderer.
Definition at line 114 of file abstractcolumnrenderer.cpp.
| void KHEPrint::AbstractColumnRenderer::restrictToXSpan | ( | KPixelXs * | Xs | ) | const [protected] |
Definition at line 102 of file abstractcolumnrenderer.cpp.
| KPixelX KHEPrint::AbstractColumnRenderer::rightX | ( | ) | const |
| void KHEPrint::AbstractColumnRenderer::setLineHeight | ( | KPixelY | H | ) |
| void KHEPrint::AbstractColumnRenderer::setVisible | ( | bool | V | ) |
| void KHEPrint::AbstractColumnRenderer::setWidth | ( | KPixelX | W | ) | [protected] |
| void KHEPrint::AbstractColumnRenderer::setX | ( | KPixelX | NewX | ) |
| KPixelX KHEPrint::AbstractColumnRenderer::visibleWidth | ( | ) | const |
convenience: returns width if visible else 0
Definition at line 94 of file abstractcolumnrenderer.cpp.
| KPixelX KHEPrint::AbstractColumnRenderer::width | ( | ) | const |
| KPixelX KHEPrint::AbstractColumnRenderer::x | ( | ) | const |
The documentation for this class was generated from the following files:
KDE 4.2 API Reference