QGIS API Documentation 3.41.0-Master (3440c17df1d)
Loading...
Searching...
No Matches
Public Member Functions | List of all members
QgsAnnotationItemEditContext Class Reference

Encapsulates the context for an annotation item edit operation. More...

#include <qgsannotationitemeditoperation.h>

Public Member Functions

 QgsAnnotationItemEditContext ()=default
 
QgsRectangle currentItemBounds () const
 Returns the current rendered bounds of the item, in the annotation layer's CRS.
 
QgsRenderContext renderContext () const
 Returns the render context associated with the edit operation.
 
void setCurrentItemBounds (const QgsRectangle &bounds)
 Sets the current rendered bounds of the item, in the annotation layer's CRS.
 
void setRenderContext (const QgsRenderContext &context)
 Sets the render context associated with the edit operation.
 

Detailed Description

Encapsulates the context for an annotation item edit operation.

Since
QGIS 3.40

Definition at line 33 of file qgsannotationitemeditoperation.h.

Constructor & Destructor Documentation

◆ QgsAnnotationItemEditContext()

QgsAnnotationItemEditContext::QgsAnnotationItemEditContext ( )
default

Member Function Documentation

◆ currentItemBounds()

QgsRectangle QgsAnnotationItemEditContext::currentItemBounds ( ) const

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

See also
setCurrentItemBounds()

Definition at line 23 of file qgsannotationitemeditoperation.cpp.

◆ renderContext()

QgsRenderContext QgsAnnotationItemEditContext::renderContext ( ) const

Returns the render context associated with the edit operation.

See also
setRenderContext()

Definition at line 33 of file qgsannotationitemeditoperation.cpp.

◆ setCurrentItemBounds()

void QgsAnnotationItemEditContext::setCurrentItemBounds ( const QgsRectangle bounds)

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

See also
currentItemBounds()

Definition at line 28 of file qgsannotationitemeditoperation.cpp.

◆ setRenderContext()

void QgsAnnotationItemEditContext::setRenderContext ( const QgsRenderContext context)

Sets the render context associated with the edit operation.

See also
renderContext()

Definition at line 38 of file qgsannotationitemeditoperation.cpp.


The documentation for this class was generated from the following files: