Class: QgsFillSymbol

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

Bases: 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.

Parameters

layers

clone(self) → QgsFillSymbol
Return type

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.

Parameters

properties (Dict[str) –

Return type

QgsFillSymbol

renderPolygon(self, points: QPolygonF, rings: Iterable[QPolygonF], f: QgsFeature, context: QgsRenderContext, layer: int = -1, selected: bool = False)
Parameters
  • points (QPolygonF) –

  • rings (Iterable[QPolygonF]) –

  • f (QgsFeature) –

  • context (QgsRenderContext) –

  • layer (int = -1) –

  • selected (bool = False) –

renderUsingLayer()
renderVertexMarker()
setAngle(self, angle: float)
Parameters

angle (float) –