Class: QgsLabelPosition

class qgis.core.QgsLabelPosition(id: int, r: float, corners: Iterable[QgsPointXY], rect: QgsRectangle, w: float, h: float, layer: str, labeltext: str, labelfont: QFont, upside_down: bool, diagram: bool = False, pinned: bool = False, providerId: str = '', labelGeometry: QgsGeometry = QgsGeometry())

Bases: sip.wrapper

Constructor for QgsLabelPosition.

Parameters
  • id – associated feature ID

  • r – label rotation in degrees clockwise

  • corners – corner points of label bounding box, in map units

  • rect – label bounding box, in map units

  • w – width of label, in map units

  • h – height of label, in map units

  • layer – ID of associated map layer

  • labeltext – text rendered for label

  • labelfont – font used to render label

  • upside_down – TRUE if label is upside down

  • diagram – TRUE if label is a diagram

  • pinned – TRUE if label has pinned placement

  • providerId – ID of associated label provider

  • labelGeometry – polygon geometry of label boundary

QgsLabelPosition() Constructor for QgsLabelPosition

QgsLabelPosition(QgsLabelPosition)

cornerPoints
featureId
height
isDiagram
isPinned
labelFont
labelGeometry
labelRect
labelText
layerID
providerID
rotation
upsideDown
width