• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdesdk API Reference
  • KDE Home
  • Contact Us
 

okteta

Public Member Functions | Protected Member Functions | List of all members
AbstractColumnFrameRenderer Class Reference

#include <abstractcolumnframerenderer.h>

Inheritance diagram for AbstractColumnFrameRenderer:
Inheritance graph
[legend]

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

Author
Friedrich W. H. Kossebau

Definition at line 50 of file abstractcolumnframerenderer.h.

Constructor & Destructor Documentation

AbstractColumnFrameRenderer::AbstractColumnFrameRenderer ( )

Definition at line 79 of file abstractcolumnframerenderer.cpp.

AbstractColumnFrameRenderer::~AbstractColumnFrameRenderer ( )
virtual

Definition at line 256 of file abstractcolumnframerenderer.cpp.

Member Function Documentation

void AbstractColumnFrameRenderer::addColumn ( Okteta::AbstractColumnRenderer *  column)
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.

void AbstractColumnFrameRenderer::drawEmptyArea ( QPainter *  painter,
int  cx,
int  cy,
int  cw,
int  ch 
)
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.

void AbstractColumnFrameRenderer::removeColumn ( Okteta::AbstractColumnRenderer *  column)
protected

Definition at line 145 of file abstractcolumnframerenderer.cpp.

void AbstractColumnFrameRenderer::renderFrame ( QPainter *  painter,
int  frameIndex 
)
virtual

Implements AbstractFrameRenderer.

Reimplemented in ByteArrayFrameRenderer.

Definition at line 157 of file abstractcolumnframerenderer.cpp.

void AbstractColumnFrameRenderer::setColumnsPos ( Okteta::PixelX  x,
Okteta::PixelY  y 
)
void AbstractColumnFrameRenderer::setLineHeight ( Okteta::PixelY  NewLineHeight)
protectedvirtual

sets height of all lines and propagates this information to all columns doesn't update the content size

Parameters
NewLineHeightheight in pixels

Definition at line 100 of file abstractcolumnframerenderer.cpp.

void AbstractColumnFrameRenderer::setNoOfLines ( Okteta::LineSize  NewNoOfLines)
protectedvirtual

sets the number of lines doesn't update the content size

Parameters
NewNoOfLinesnew number of lines to display

Definition at line 91 of file abstractcolumnframerenderer.cpp.

void AbstractColumnFrameRenderer::updateWidths ( )
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:
  • abstractcolumnframerenderer.h
  • abstractcolumnframerenderer.cpp
This file is part of the KDE documentation.
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.

okteta

Skip menu "okteta"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdesdk API Reference

Skip menu "kdesdk API Reference"
  • kapptemplate
  • kcachegrind
  • kompare
  • lokalize
  • okteta
  • umbrello
  •   umbrello

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal