QGIS API Documentation
2.8.2-Wien
|
Double box with alternating colors. More...
#include <qgsdoubleboxscalebarstyle.h>
Public Member Functions | |
QgsDoubleBoxScaleBarStyle (const QgsComposerScaleBar *bar) | |
~QgsDoubleBoxScaleBarStyle () | |
void | draw (QPainter *p, double xOffset=0) const override |
Draws the style. | |
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 |
Double box with alternating colors.
Definition at line 25 of file qgsdoubleboxscalebarstyle.h.
QgsDoubleBoxScaleBarStyle::QgsDoubleBoxScaleBarStyle | ( | const QgsComposerScaleBar * | bar | ) |
Definition at line 23 of file qgsdoubleboxscalebarstyle.cpp.
QgsDoubleBoxScaleBarStyle::~QgsDoubleBoxScaleBarStyle | ( | ) |
Definition at line 33 of file qgsdoubleboxscalebarstyle.cpp.
|
overridevirtual |
Draws the style.
p | painter object |
xOffset | offset to account for centered labeling |
Implements QgsScaleBarStyle.
Definition at line 43 of file qgsdoubleboxscalebarstyle.cpp.
|
overridevirtual |
Implements QgsScaleBarStyle.
Definition at line 38 of file qgsdoubleboxscalebarstyle.cpp.