Class: QgsSingleBoxScaleBarRenderer

class qgis.core.QgsSingleBoxScaleBarRenderer

Bases: qgis._core.QgsScaleBarRenderer

Constructor for QgsSingleBoxScaleBarRenderer.

QgsSingleBoxScaleBarRenderer(QgsSingleBoxScaleBarRenderer)

Scalebar style that draws a single box with alternating color for the segments.

draw(self, context: QgsRenderContext, settings: QgsScaleBarSettings, scaleContext: QgsScaleBarRenderer.ScaleBarContext)
drawDefaultLabels()
firstLabelString()
firstLabelXOffset()
name(self) → str
segmentPositions()
segmentWidths()