okteta
#include <abstractcolumnframerenderer.h>
Public Member Functions | |
AbstractColumnFrameRenderer () | |
virtual | ~AbstractColumnFrameRenderer () |
Okteta::PixelY | columnsHeight () const |
Okteta::PixelX | columnsWidth () const |
Okteta::PixelY | lineHeight () const |
Okteta::LineSize | noOfLines () const |
Okteta::LineSize | noOfLinesPerFrame () const |
virtual void | renderFrame (QPainter *painter, int frameIndex) |
void | setColumnsPos (Okteta::PixelX x, Okteta::PixelY y) |
Public Member Functions inherited from AbstractFrameRenderer | |
AbstractFrameRenderer () | |
virtual | ~AbstractFrameRenderer () |
virtual int | height () const =0 |
QPoint | pos () const |
virtual void | prepare ()=0 |
QRect | rect () const |
void | setPos (int x, int y) |
void | setPos (const QPoint &point) |
QSize | size () const |
virtual int | width () const =0 |
int | x () const |
int | y () const |
Protected Member Functions | |
void | addColumn (Okteta::AbstractColumnRenderer *column) |
virtual void | drawEmptyArea (QPainter *painter, int cx, int cy, int cw, int ch) |
void | removeColumn (Okteta::AbstractColumnRenderer *column) |
virtual void | setLineHeight (Okteta::PixelY NewLineHeight) |
virtual void | setNoOfLines (Okteta::LineSize NewNoOfLines) |
void | updateWidths () |
Additional Inherited Members | |
Protected Attributes inherited from AbstractFrameRenderer | |
Private *const | d |
Detailed Description
class to render columns with the same lineheight for all lines
lines are only completely rendered, so contentHeight <= framesCount*height
Definition at line 50 of file abstractcolumnframerenderer.h.
Constructor & Destructor Documentation
AbstractColumnFrameRenderer::AbstractColumnFrameRenderer | ( | ) |
Definition at line 79 of file abstractcolumnframerenderer.cpp.
|
virtual |
Definition at line 256 of file abstractcolumnframerenderer.cpp.
Member Function Documentation
|
protected |
takes ownership of column renderer
Definition at line 137 of file abstractcolumnframerenderer.cpp.
Okteta::PixelY AbstractColumnFrameRenderer::columnsHeight | ( | ) | const |
returns the height of all lines together
Definition at line 88 of file abstractcolumnframerenderer.cpp.
Okteta::PixelX AbstractColumnFrameRenderer::columnsWidth | ( | ) | const |
returns the width of all visible columns together
Definition at line 89 of file abstractcolumnframerenderer.cpp.
|
protectedvirtual |
draws area without columns in columns coordinates
Definition at line 250 of file abstractcolumnframerenderer.cpp.
Okteta::PixelY AbstractColumnFrameRenderer::lineHeight | ( | ) | const |
returns the height of each line
Definition at line 86 of file abstractcolumnframerenderer.cpp.
Okteta::LineSize AbstractColumnFrameRenderer::noOfLines | ( | ) | const |
returns the number of all lines
Definition at line 85 of file abstractcolumnframerenderer.cpp.
Okteta::LineSize 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 121 of file abstractcolumnframerenderer.cpp.
|
protected |
Definition at line 145 of file abstractcolumnframerenderer.cpp.
|
virtual |
Implements AbstractFrameRenderer.
Reimplemented in ByteArrayFrameRenderer.
Definition at line 157 of file abstractcolumnframerenderer.cpp.
void AbstractColumnFrameRenderer::setColumnsPos | ( | Okteta::PixelX | x, |
Okteta::PixelY | y | ||
) |
|
protectedvirtual |
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 100 of file abstractcolumnframerenderer.cpp.
|
protectedvirtual |
sets the number of lines doesn't update the content size
- Parameters
-
NewNoOfLines new number of lines to display
Definition at line 91 of file abstractcolumnframerenderer.cpp.
|
protected |
recalculates the positions of the columns and the total width
Definition at line 115 of file abstractcolumnframerenderer.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:04:11 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.