|
Krita Source Code Documentation
|
#include <KoRuler_p.h>
Inheritance diagram for VerticalPaintingStrategy:Public Member Functions | |
| QRectF | drawBackground (const KoRulerPrivate *ruler, QPainter &painter) override |
| void | drawIndents (const KoRulerPrivate *, QPainter &) override |
| void | drawMeasurements (const KoRulerPrivate *ruler, QPainter &painter, const QRectF &rectangle) override |
| void | drawTabs (const KoRulerPrivate *, QPainter &) override |
| QSize | sizeHint () override |
| VerticalPaintingStrategy () | |
Public Member Functions inherited from PaintingStrategy | |
| PaintingStrategy () | |
| constructor | |
| virtual | ~PaintingStrategy () |
| destructor | |
Private Attributes | |
| qreal | lengthInPixel {0.0} |
Definition at line 86 of file KoRuler_p.h.
|
inline |
Definition at line 89 of file KoRuler_p.h.
|
overridevirtual |
Draw the background of the ruler.
| ruler | the ruler to draw on. |
| painter | the painter we can paint with. |
Implements PaintingStrategy.
Definition at line 436 of file KoRuler.cpp.
References lengthInPixel.
|
inlineoverridevirtual |
Draw the indicators for the indents of a text paragraph
| ruler | the ruler to draw on. |
| painter | the painter we can paint with. |
Implements PaintingStrategy.
Definition at line 94 of file KoRuler_p.h.
|
overridevirtual |
Draw the indicators for the measurements which typically are drawn every [unit].
| ruler | the ruler to draw on. |
| painter | the painter we can paint with. |
| rectangle |
Implements PaintingStrategy.
Definition at line 478 of file KoRuler.cpp.
References fullStepMarkerLength, halfStepMarkerLength, KoRulerPrivate::HotSpot, KoRulerPrivate::None, KoRulerPrivate::HotSpotData::position, and quarterStepMarkerLength.
|
inlineoverridevirtual |
Draw the indicators for text-tabs.
| ruler | the ruler to draw on. |
| painter | the painter we can paint with. |
Implements PaintingStrategy.
Definition at line 92 of file KoRuler_p.h.
|
overridevirtual |
returns the size suggestion for a ruler with this strategy.
Implements PaintingStrategy.
Definition at line 589 of file KoRuler.cpp.
References fullStepMarkerLength, and measurementTextAboveBelowMargin.
|
private |
Definition at line 98 of file KoRuler_p.h.