|
| QgsLayoutItemMapItem (const QString &name, QgsLayoutItemMap *map) |
| Constructor for QgsLayoutItemMapItem, attached to the specified map. More...
|
|
virtual bool | accept (QgsStyleEntityVisitorInterface *visitor) const |
| Accepts the specified style entity visitor, causing it to visit all style entities associated with the map item. More...
|
|
QgsExpressionContext | createExpressionContext () const override |
| This method needs to be reimplemented in all classes which implement this interface and return an expression context. More...
|
|
virtual void | draw (QPainter *painter)=0 |
| Draws the item on to a destination painter. More...
|
|
bool | enabled () const |
| Returns whether the item will be drawn. More...
|
|
virtual void | finalizeRestoreFromXml () |
| Called after all pending items have been restored from XML. More...
|
|
QString | id () const |
| Returns the unique id for the map item. More...
|
|
const QgsLayoutItemMap * | map () const |
| Returns the layout item map for the item. More...
|
|
virtual QgsMapLayer * | mapLayer () |
| Returns the internal map layer used by this item, if available. More...
|
|
QString | name () const |
| Returns the friendly display name for the item. More...
|
|
virtual bool | readXml (const QDomElement &element, const QDomDocument &doc, const QgsReadWriteContext &context) |
| Sets the map item state from a DOM document, where element is the DOM node corresponding to a 'LayoutMapGrid' tag. More...
|
|
virtual void | setEnabled (bool enabled) |
| Controls whether the item will be drawn. More...
|
|
void | setMap (QgsLayoutItemMap *map) |
| Sets the corresponding layout map for the item. More...
|
|
void | setName (const QString &name) |
| Sets the friendly display name for the item. More...
|
|
void | setStackingLayer (QgsMapLayer *layer) |
| Sets the item's stacking layer, which specifies where the in the map's stack the item should be rendered. More...
|
|
void | setStackingPosition (StackingPosition position) |
| Sets the item's stacking position, which specifies where the in the map's stack the item should be rendered. More...
|
|
QgsMapLayer * | stackingLayer () const |
| Returns the item's stacking layer, which specifies where the in the map's stack the item should be rendered. More...
|
|
StackingPosition | stackingPosition () const |
| Returns the item's stacking position, which specifies where the in the map's stack the item should be rendered. More...
|
|
virtual bool | usesAdvancedEffects () const |
| Returns true if the item is drawn using advanced effects, such as blend modes. More...
|
|
virtual bool | writeXml (QDomElement &element, QDomDocument &document, const QgsReadWriteContext &context) const |
| Stores map item state in a DOM element, where element is the DOM element corresponding to a 'LayoutMap' tag. More...
|
|
| QgsLayoutObject (QgsLayout *layout) |
| Constructor for QgsLayoutObject, with the specified parent layout. More...
|
|
QgsExpressionContext | createExpressionContext () const override |
| Creates an expression context relating to the objects' current state. More...
|
|
QStringList | customProperties () const |
| Returns list of keys stored in custom properties for the object. More...
|
|
QVariant | customProperty (const QString &key, const QVariant &defaultValue=QVariant()) const |
| Read a custom property from the object. More...
|
|
QgsPropertyCollection & | dataDefinedProperties () |
| Returns a reference to the object's property collection, used for data defined overrides. More...
|
|
const QgsPropertyCollection & | dataDefinedProperties () const |
| Returns a reference to the object's property collection, used for data defined overrides. More...
|
|
QgsLayout * | layout () |
| Returns the layout the object is attached to. More...
|
|
const QgsLayout * | layout () const |
| Returns the layout the object is attached to. More...
|
|
void | removeCustomProperty (const QString &key) |
| Remove a custom property from the object. More...
|
|
void | setCustomProperty (const QString &key, const QVariant &value) |
| Set a custom property for the object. More...
|
|
void | setDataDefinedProperties (const QgsPropertyCollection &collection) |
| Sets the objects's property collection, used for data defined overrides. More...
|
|
virtual | ~QgsExpressionContextGenerator ()=default |
|
virtual QgsExpressionContext | createExpressionContext () const =0 |
| This method needs to be reimplemented in all classes which implement this interface and return an expression context. More...
|
|