Class: QgsAnnotationItemEditContext

Encapsulates the context for an annotation item edit operation.

Added in version 3.40.

class qgis.core.QgsAnnotationItemEditContext[source]

Bases: object

currentItemBounds(self) QgsRectangle[source]

Returns the current rendered bounds of the item, in the annotation layer’s CRS.

Return type:

QgsRectangle

renderContext(self) QgsRenderContext[source]

Returns the render context associated with the edit operation.

Return type:

QgsRenderContext

setCurrentItemBounds(self, bounds: QgsRectangle)[source]

Sets the current rendered bounds of the item, in the annotation layer’s CRS.

Parameters:

bounds (QgsRectangle)

setRenderContext(self, context: QgsRenderContext)[source]

Sets the render context associated with the edit operation.

See also

renderContext()

Parameters:

context (QgsRenderContext)