QGIS API Documentation
2.18.21-Las Palmas (9fba24a)
|
Scalebar style that draws a single box with alternating color for the segments. More...
#include <qgssingleboxscalebarstyle.h>
Public Member Functions | |
QgsSingleBoxScaleBarStyle (const QgsComposerScaleBar *bar) | |
~QgsSingleBoxScaleBarStyle () | |
void | draw (QPainter *p, double xOffset=0) const override |
Draw method. More... | |
QString | name () const override |
Public Member Functions inherited from QgsScaleBarStyle | |
QgsScaleBarStyle (const QgsComposerScaleBar *bar) | |
virtual | ~QgsScaleBarStyle () |
virtual QRectF | calculateBoxSize () const |
virtual void | drawLabels (QPainter *p) const |
Additional Inherited Members | |
Protected Attributes inherited from QgsScaleBarStyle | |
const QgsComposerScaleBar * | mScaleBar |
Scalebar style that draws a single box with alternating color for the segments.
Definition at line 26 of file qgssingleboxscalebarstyle.h.
QgsSingleBoxScaleBarStyle::QgsSingleBoxScaleBarStyle | ( | const QgsComposerScaleBar * | bar | ) |
Definition at line 23 of file qgssingleboxscalebarstyle.cpp.
QgsSingleBoxScaleBarStyle::~QgsSingleBoxScaleBarStyle | ( | ) |
Definition at line 33 of file qgssingleboxscalebarstyle.cpp.
|
overridevirtual |
Draw method.
p | painter object |
xOffset | x offset |
Implements QgsScaleBarStyle.
Definition at line 38 of file qgssingleboxscalebarstyle.cpp.
|
overridevirtual |
Implements QgsScaleBarStyle.
Definition at line 79 of file qgssingleboxscalebarstyle.cpp.