Class: QgsStyleLegendPatchShapeEntity

class qgis.core.QgsStyleLegendPatchShapeEntity

Bases: QgsStyleEntityInterface

A legend patch shape entity for QgsStyle databases.

New in version 3.14.

QgsStyleLegendPatchShapeEntity(shape: QgsLegendPatchShape) Constructor for QgsStyleLegendPatchShapeEntity, with the specified legend patch shape.

QgsStyleLegendPatchShapeEntity(QgsStyleLegendPatchShapeEntity)

Methods

shape

Returns the entity's legend patch shape.

type

rtype:

QgsStyle.StyleEntity

shape(self) QgsLegendPatchShape

Returns the entity’s legend patch shape.

Return type:

QgsLegendPatchShape

type(self) QgsStyle.StyleEntity
Return type:

QgsStyle.StyleEntity