QGIS API Documentation
3.26.3-Buenos Aires (65e4edfdad)
|
Go to the documentation of this file.
16 #ifndef QGSLAYOUTFRAME_H
17 #define QGSLAYOUTFRAME_H
19 #include "qgis_core.h"
48 int type()
const override;
49 QIcon
icon()
const override;
76 QRectF
extent()
const {
return mSection; }
90 void setHidePageIfEmpty(
bool hidePageIfEmpty );
104 void setHideBackgroundIfEmpty(
bool hideBackgroundIfEmpty );
110 bool isEmpty()
const;
126 QString mMultiFrameUuid;
130 bool mHidePageIfEmpty =
false;
132 bool mHideBackgroundIfEmpty =
false;
138 #endif // QGSLAYOUTFRAME_H
virtual void cleanup()
Called just before a batch of items are deleted, allowing them to run cleanup tasks.
Expression contexts are used to encapsulate the parameters around which a QgsExpression should be eva...
virtual bool writePropertiesToElement(QDomElement &element, QDomDocument &document, const QgsReadWriteContext &context) const
Stores item state within an XML DOM element.
The class is used as a container of context for various read/write operations on other objects.
bool hidePageIfEmpty() const
Returns whether the page should be hidden (ie, not included in layout exports) if this frame is empty...
virtual QIcon icon() const
Returns the item's icon.
Contains settings and helpers relating to a render of a QgsLayoutItem.
Contains information about the context of a rendering operation.
virtual void drawFrame(QgsRenderContext &context)
Draws the frame around the item.
Abstract base class for layout items with the ability to distribute the content to several frames (Qg...
bool hideBackgroundIfEmpty() const
Returns whether the background and frame stroke should be hidden if this frame is empty.
virtual bool readPropertiesFromElement(const QDomElement &element, const QDomDocument &document, const QgsReadWriteContext &context)
Sets item state from a DOM element.
virtual void draw(QgsLayoutItemRenderContext &context)=0
Draws the item's contents using the specified item render context.
virtual QgsLayoutSize minimumSize() const
Returns the minimum allowed size of the item, if applicable, or an empty size if item can be freely r...
int type() const override
Returns a unique graphics item type identifier.
virtual void drawBackground(QgsRenderContext &context)
Draws the background for the item.
virtual ExportLayerBehavior exportLayerBehavior() const
Returns the behavior of this item during exporting to layered exports (e.g.
Base class for frame items, which form a layout multiframe item.
void setContentSection(const QRectF §ion)
Sets the visible part of the multiframe's content which is visible within this frame (relative to the...
QRectF extent() const
Returns the visible portion of the multi frame's content which is shown in this frame,...
Base class for graphical items within a QgsLayout.
Base class for layouts, which can contain items such as maps, labels, scalebars, etc.
virtual QString displayName() const
Gets item display name.
This class provides a method of storing sizes, consisting of a width and height, for use in QGIS layo...
QgsExpressionContext createExpressionContext() const override
This method needs to be reimplemented in all classes which implement this interface and return an exp...
virtual QgsLayoutSize fixedSize() const
Returns the fixed size of the item, if applicable, or an empty size if item can be freely resized.