okteta
#include <abstractcolumnrenderer.h>

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
Definition at line 46 of file abstractcolumnrenderer.h.
Constructor & Destructor Documentation
      
  | 
  explicit | 
Definition at line 35 of file abstractcolumnrenderer.cpp.
      
  | 
  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.
      
  | 
  protected | 
Definition at line 73 of file abstractcolumnrenderer.cpp.
      
  | 
  virtual | 
Reimplemented in Okteta::OffsetColumnRenderer, and Okteta::BorderColumnRenderer.
Definition at line 78 of file abstractcolumnrenderer.cpp.
      
  | 
  virtual | 
Reimplemented in Okteta::OffsetColumnRenderer, and Okteta::BorderColumnRenderer.
Definition at line 83 of file abstractcolumnrenderer.cpp.
      
  | 
  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 xSpan firstLineIndex no of the first of the range of lines to paint  
Definition at line 59 of file abstractcolumnrenderer.cpp.
      
  | 
  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.
      
  | 
  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.
      
  | 
  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:
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.
    KDE API Reference