kspread
Painting
Classes and methods related to the painting of cells and objects. More...
Functions | |
| void | KSpread::CellView::paintCellBackground (QPainter &painter, const QPointF &coordinate) |
| void | KSpread::CellView::paintCellBorders (const QRectF &paintRegion, QPainter &painter, const QPointF &coordinate, const QRect &cellRange, const Cell &cell, SheetView *sheetView) |
| void | KSpread::CellView::paintCellContents (const QRectF &paintRegion, QPainter &painter, QPaintDevice *paintDevice, const QPointF &coordinate, const Cell &cell, SheetView *sheetView) |
| void | KSpread::Doc::paintCellRegions (QPainter &painter, const QRect &viewRect, View *view, const Region ®ion) |
| void | KSpread::Doc::paintContent (QPainter &painter, const QRect &rect, Sheet *sheet, bool drawCursor=true) |
| virtual void | KSpread::Doc::paintContent (QPainter &painter, const QRect &rect) |
| void | KSpread::CellView::paintDefaultBorders (QPainter &painter, const QRectF &paintRegion, const QPointF &coordinate, Borders paintBorder, const QRect &cellRange, const Cell &cell, SheetView *sheetView) |
| void | KSpread::Sheet::setRegionPaintDirty (const Region ®ion) |
| void | KSpread::Sheet::updateView (const Region ®ion) |
| void | KSpread::Sheet::updateView () |
Detailed Description
Classes and methods related to the painting of cells and objects.
Function Documentation
Paints the cell's background.
- Parameters:
-
painter the used painter coordinate the top left coordinate (scroll offset dependent)
Definition at line 576 of file CellView.cpp.
| void CellView::paintCellBorders | ( | const QRectF & | paintRegion, | |
| QPainter & | painter, | |||
| const QPointF & | coordinate, | |||
| const QRect & | cellRange, | |||
| const Cell & | cell, | |||
| SheetView * | sheetView | |||
| ) | [inherited] |
Paints the cell custom borders, the page borders, diagonal lines.
- Parameters:
-
paintRegion the portion of the canvas that is actually in view painter the used painter coordinate the top left coordinate (scroll offset dependent) cellRange the cell range, that is painted cell the Cell sheetView the SheetView
Definition at line 383 of file CellView.cpp.
| void CellView::paintCellContents | ( | const QRectF & | paintRegion, | |
| QPainter & | painter, | |||
| QPaintDevice * | paintDevice, | |||
| const QPointF & | coordinate, | |||
| const Cell & | cell, | |||
| SheetView * | sheetView | |||
| ) | [inherited] |
Paints the cell.
- Parameters:
-
paintRegion the portion of the canvas that is actually in view painter the used painter paintDevice the paintDevice of this data. coordinate the top left coordinate (scroll offset dependent) cell the Cell
Definition at line 319 of file CellView.cpp.
| void Doc::paintCellRegions | ( | QPainter & | painter, | |
| const QRect & | viewRect, | |||
| View * | view, | |||
| const Region & | region | |||
| ) | [inherited] |
Primary entry point for painting.
Use this function to paint groups of cells
- Parameters:
-
painter the painter object to use. This should already be initialized with the world matrix. The begin and end calls should surround this function. viewRect the document coordinates showing what is actually visible in the screen view the view of the region -- may be 0 but no selection markers can be passed in that case. region a list of rectangles indicating the cell ranges needing painted.
| void CellView::paintDefaultBorders | ( | QPainter & | painter, | |
| const QRectF & | paintRegion, | |||
| const QPointF & | coordinate, | |||
| Borders | paintBorder, | |||
| const QRect & | cellRange, | |||
| const Cell & | cell, | |||
| SheetView * | sheetView | |||
| ) | [inherited] |
Paints the default cell borders.
- Parameters:
-
painter the used painter paintRegion the portion of the canvas that is actually in view coordinate the painting coordinate paintBorder the borders, that should be painted (should be removed???) cellRange the cell range, that is painted cell the Cell sheetView the SheetView
Definition at line 609 of file CellView.cpp.
| void KSpread::Sheet::setRegionPaintDirty | ( | const Region & | region | ) | [inherited] |
| void KSpread::Sheet::updateView | ( | const Region & | region | ) | [inherited] |
