QGIS API Documentation  2.18.21-Las Palmas (9fba24a)
Public Member Functions | List of all members
QgsDoubleBoxScaleBarStyle Class Reference

Double box with alternating colors. More...

#include <qgsdoubleboxscalebarstyle.h>

Inheritance diagram for QgsDoubleBoxScaleBarStyle:
Inheritance graph
[legend]

Public Member Functions

 QgsDoubleBoxScaleBarStyle (const QgsComposerScaleBar *bar)
 
 ~QgsDoubleBoxScaleBarStyle ()
 
void draw (QPainter *p, double xOffset=0) const override
 Draws the style. 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 QgsComposerScaleBarmScaleBar
 

Detailed Description

Double box with alternating colors.

Definition at line 25 of file qgsdoubleboxscalebarstyle.h.

Constructor & Destructor Documentation

◆ QgsDoubleBoxScaleBarStyle()

QgsDoubleBoxScaleBarStyle::QgsDoubleBoxScaleBarStyle ( const QgsComposerScaleBar bar)

Definition at line 23 of file qgsdoubleboxscalebarstyle.cpp.

◆ ~QgsDoubleBoxScaleBarStyle()

QgsDoubleBoxScaleBarStyle::~QgsDoubleBoxScaleBarStyle ( )

Definition at line 33 of file qgsdoubleboxscalebarstyle.cpp.

Member Function Documentation

◆ draw()

void QgsDoubleBoxScaleBarStyle::draw ( QPainter p,
double  xOffset = 0 
) const
overridevirtual

Draws the style.

Parameters
ppainter object
xOffsetoffset to account for centered labeling

Implements QgsScaleBarStyle.

Definition at line 43 of file qgsdoubleboxscalebarstyle.cpp.

◆ name()

QString QgsDoubleBoxScaleBarStyle::name ( ) const
overridevirtual

Implements QgsScaleBarStyle.

Definition at line 38 of file qgsdoubleboxscalebarstyle.cpp.


The documentation for this class was generated from the following files: