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

okteta

  • Okteta
  • AbstractColumnRenderer
Public Member Functions | Protected Member Functions | List of all members
Okteta::AbstractColumnRenderer Class Reference

#include <abstractcolumnrenderer.h>

Inheritance diagram for Okteta::AbstractColumnRenderer:
Inheritance graph
[legend]

Public Member Functions

 AbstractColumnRenderer (AbstractColumnStylist *stylist)
 
virtual ~AbstractColumnRenderer ()
 
bool isVisible () const
 
PixelY lineHeight () const
 
bool overlaps (const PixelXRange &xSpan) const
 
virtual void renderColumn (QPainter *painter, const PixelXRange &xSpan, const PixelYRange &ySpan)
 
virtual void renderEmptyColumn (QPainter *painter, const PixelXRange &xSpan, const PixelYRange &ySpan)
 
virtual void renderFirstLine (QPainter *painter, const PixelXRange &xSpan, int firstLineIndex)
 
virtual void renderNextLine (QPainter *painter)
 
PixelX rightX () const
 
void setLineHeight (PixelY lineHeight)
 
void setVisible (bool isVisible)
 
void setX (PixelX x)
 
AbstractColumnStylist * stylist () const
 
PixelX visibleWidth () const
 
PixelX width () const
 
PixelX x () const
 

Protected Member Functions

void renderBlankLine (QPainter *painter) const
 
void restrictToXSpan (PixelXRange *xSpan) const
 
void setWidth (PixelX width)
 

Detailed Description

base class for columns of the ColumnsView

Author
Friedrich W. H. Kossebau

Definition at line 46 of file abstractcolumnrenderer.h.

Constructor & Destructor Documentation

Okteta::AbstractColumnRenderer::AbstractColumnRenderer ( AbstractColumnStylist *  stylist)
explicit

Definition at line 35 of file abstractcolumnrenderer.cpp.

Okteta::AbstractColumnRenderer::~AbstractColumnRenderer ( )
virtual

Definition at line 88 of file abstractcolumnrenderer.cpp.

Member Function Documentation

bool Okteta::AbstractColumnRenderer::isVisible ( ) const

should Column be displayed?

Definition at line 45 of file abstractcolumnrenderer.cpp.

PixelY Okteta::AbstractColumnRenderer::lineHeight ( ) const

Definition at line 47 of file abstractcolumnrenderer.cpp.

bool Okteta::AbstractColumnRenderer::overlaps ( const PixelXRange &  xSpan) const

true if column overlaps with pixels between x-positions x1, x2

Definition at line 56 of file abstractcolumnrenderer.cpp.

void Okteta::AbstractColumnRenderer::renderBlankLine ( QPainter *  painter) const
protected

Definition at line 73 of file abstractcolumnrenderer.cpp.

void Okteta::AbstractColumnRenderer::renderColumn ( QPainter *  painter,
const PixelXRange &  xSpan,
const PixelYRange &  ySpan 
)
virtual

Reimplemented in Okteta::OffsetColumnRenderer, and Okteta::BorderColumnRenderer.

Definition at line 78 of file abstractcolumnrenderer.cpp.

void Okteta::AbstractColumnRenderer::renderEmptyColumn ( QPainter *  painter,
const PixelXRange &  xSpan,
const PixelYRange &  ySpan 
)
virtual

Reimplemented in Okteta::OffsetColumnRenderer, and Okteta::BorderColumnRenderer.

Definition at line 83 of file abstractcolumnrenderer.cpp.

void Okteta::AbstractColumnRenderer::renderFirstLine ( QPainter *  painter,
const PixelXRange &  xSpan,
int  firstLineIndex 
)
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
painterpainter variable
xSpan
firstLineIndexno of the first of the range of lines to paint

Definition at line 59 of file abstractcolumnrenderer.cpp.

void Okteta::AbstractColumnRenderer::renderNextLine ( QPainter *  painter)
virtual

the actual painting call for a column's line.

The default implementation simply paints the background

Reimplemented in Okteta::ByteArrayRowColumnRenderer, Okteta::AbstractByteArrayColumnRenderer, and Okteta::OffsetColumnRenderer.

Definition at line 67 of file abstractcolumnrenderer.cpp.

void Okteta::AbstractColumnRenderer::restrictToXSpan ( PixelXRange *  xSpan) const
protected

Definition at line 54 of file abstractcolumnrenderer.cpp.

PixelX Okteta::AbstractColumnRenderer::rightX ( ) const

right offset x in pixel

Definition at line 43 of file abstractcolumnrenderer.cpp.

void Okteta::AbstractColumnRenderer::setLineHeight ( PixelY  lineHeight)

buffer actual line height in column

Definition at line 52 of file abstractcolumnrenderer.cpp.

void Okteta::AbstractColumnRenderer::setVisible ( bool  isVisible)

sets visibily

Definition at line 51 of file abstractcolumnrenderer.cpp.

void Okteta::AbstractColumnRenderer::setWidth ( PixelX  width)
protected

sets width of the column

Definition at line 50 of file abstractcolumnrenderer.cpp.

void Okteta::AbstractColumnRenderer::setX ( PixelX  x)

sets starting point of the column

Definition at line 49 of file abstractcolumnrenderer.cpp.

AbstractColumnStylist * Okteta::AbstractColumnRenderer::stylist ( ) const

Definition at line 40 of file abstractcolumnrenderer.cpp.

PixelX Okteta::AbstractColumnRenderer::visibleWidth ( ) const

convenience: returns width if visible else 0

Definition at line 46 of file abstractcolumnrenderer.cpp.

PixelX Okteta::AbstractColumnRenderer::width ( ) const

total width in pixel

Definition at line 44 of file abstractcolumnrenderer.cpp.

PixelX Okteta::AbstractColumnRenderer::x ( ) const

left offset x in pixel

Definition at line 42 of file abstractcolumnrenderer.cpp.


The documentation for this class was generated from the following files:
  • abstractcolumnrenderer.h
  • abstractcolumnrenderer.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:04:13 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