Class: QgsFillSymbol

class qgis.core.QgsFillSymbol(layers: object = QgsSymbolLayerList())

Bases: qgis._core.QgsSymbol

Constructor for QgsFillSymbol, with the specified list of initial symbol layers.

Ownership of the layers are transferred to the symbol.

A fill symbol type, for rendering Polygon and MultiPolygon geometries.

Enums

Methods

clone
cloneLayers
createSimple Create a fill symbol with one symbol layer: SimpleFill with specified properties.
renderPolygon
renderUsingLayer
renderVertexMarker
setAngle

Signals

Attributes

clone(self) → QgsFillSymbol
cloneLayers()
createSimple(properties: Dict[str, str]) → QgsFillSymbol

Create a fill symbol with one symbol layer: SimpleFill with specified properties. This is a convenience method for easier creation of fill symbols.

renderPolygon(self, points: QPolygonF, rings: Iterable[QPolygonF], f: QgsFeature, context: QgsRenderContext, layer: int = -1, selected: bool = False)
renderUsingLayer()
renderVertexMarker()
setAngle(self, angle: float)