Class: QgsSimpleFillSymbolLayer

Renders polygons using a single fill and stroke color.

Class Hierarchy

Inheritance diagram of qgis.core.QgsSimpleFillSymbolLayer

Base classes

QgsFillSymbolLayer

Abstract base class for fill symbol layers.

QgsSymbolLayer

Abstract base class for symbol layers.

class qgis.core.QgsSimpleFillSymbolLayer[source]

Bases: QgsFillSymbolLayer

brushStyle(self) Qt.BrushStyle[source]
Return type:

Qt.BrushStyle

static create(properties: Dict[str, Any] = {}) QgsSymbolLayer | None[source]

Creates a new QgsSimpleFillSymbolLayer using the specified properties map containing symbol properties (see properties()).

Caller takes ownership of the returned symbol layer.

Parameters:

properties (Dict[str, Any] = {})

Return type:

Optional[QgsSymbolLayer]

static createFromSld(element: QDomElement) QgsSymbolLayer | None[source]
Parameters:

element (QDomElement)

Return type:

Optional[QgsSymbolLayer]

offset(self) QPointF[source]

Returns the offset by which polygons will be translated during rendering.

Units are specified by offsetUnit().

See also

setOffset()

See also

offsetUnit()

Return type:

QPointF

offsetMapUnitScale(self) QgsMapUnitScale

Returns the map unit scale for the fill’s offset.

See also

offset()

Return type:

QgsMapUnitScale

offsetUnit(self) Qgis.RenderUnit[source]

Returns the units for the fill’s offset.

See also

setOffsetUnit()

See also

offset()

Return type:

Qgis.RenderUnit

penJoinStyle(self) Qt.PenJoinStyle[source]
Return type:

Qt.PenJoinStyle

setBrushStyle(self, style: Qt.BrushStyle)[source]
Parameters:

style (Qt.BrushStyle)

setOffset(self, offset: QPointF | QPoint)[source]

Sets an offset by which polygons will be translated during rendering.

Units are specified by offsetUnit().

See also

offset()

See also

setOffsetUnit()

Parameters:

offset (Union[QPointF, QPoint])

setOffsetMapUnitScale(self, scale: QgsMapUnitScale)[source]

Sets the map unit scale for the fill’s offset.

See also

setOffset()

Parameters:

scale (QgsMapUnitScale)

setOffsetUnit(self, unit: Qgis.RenderUnit)[source]

Sets the unit for the fill’s offset.

See also

offset()

See also

offsetUnit()

Parameters:

unit (Qgis.RenderUnit)

setPenJoinStyle(self, style: Qt.PenJoinStyle)[source]
Parameters:

style (Qt.PenJoinStyle)

setStrokeStyle(self, strokeStyle: Qt.PenStyle)[source]
Parameters:

strokeStyle (Qt.PenStyle)

setStrokeWidth(self, strokeWidth: float)[source]
Parameters:

strokeWidth (float)

setStrokeWidthMapUnitScale(self, scale: QgsMapUnitScale)[source]
Parameters:

scale (QgsMapUnitScale)

setStrokeWidthUnit(self, unit: Qgis.RenderUnit)[source]

Sets the units for the width of the fill’s stroke.

Parameters:

unit (Qgis.RenderUnit) – width units

strokeStyle(self) Qt.PenStyle[source]
Return type:

Qt.PenStyle

strokeWidth(self) float[source]
Return type:

float

strokeWidthMapUnitScale(self) QgsMapUnitScale
Return type:

QgsMapUnitScale

strokeWidthUnit(self) Qgis.RenderUnit[source]

Returns the units for the width of the fill’s stroke.

Return type:

Qgis.RenderUnit