Class: QgsFillSymbolLayer

class qgis.core.QgsFillSymbolLayer(locked: bool = False)

Bases: QgsSymbolLayer

Methods

angle

rtype

float

copyDataDefinedProperties

Copies all data defined properties of this layer to another symbol layer.

copyPaintEffect

Copies paint effect of this layer to another symbol layer

drawPreviewIcon

param context

renderPolygon

Renders the fill symbol layer for the polygon whose outer ring is defined by points, using the given render context.

restoreOldDataDefinedProperties

Restores older data defined properties from string map.

setAngle

param angle

angle(self)float
Return type

float

copyDataDefinedProperties(self, destLayer: QgsSymbolLayer)

Copies all data defined properties of this layer to another symbol layer.

Parameters

destLayer – destination layer

copyPaintEffect(self, destLayer: QgsSymbolLayer)

Copies paint effect of this layer to another symbol layer

Parameters

destLayer – destination layer

New in version 2.9.

drawPreviewIcon(self, context: QgsSymbolRenderContext, size: QSize)
Parameters
renderPolygon(self, points: QPolygonF, rings: Iterable[QPolygonF], context: QgsSymbolRenderContext)

Renders the fill symbol layer for the polygon whose outer ring is defined by points, using the given render context.

The rings argument optionally specifies a list of polygon rings to render as holes.

Parameters
restoreOldDataDefinedProperties(self, stringMap: Dict[str, str])

Restores older data defined properties from string map.

New in version 3.0.

setAngle(self, angle: float)
Parameters

angle (float) –