17 #ifndef QGSLAYOUTITEMPAGE_H 18 #define QGSLAYOUTITEMPAGE_H 20 #include "qgis_core.h" 35 class CORE_EXPORT QgsLayoutItemPageGrid:
public QGraphicsRectItem
38 QgsLayoutItemPageGrid(
double x,
double y,
double width,
double height,
QgsLayout *layout );
40 void paint( QPainter *painter,
const QStyleOptionGraphicsItem *itemStyle, QWidget *pWidget )
override;
71 UndoPageSymbol = 3000,
86 int type()
const override;
103 bool setPageSize(
const QString &size,
Orientation orientation = Portrait );
124 QRectF boundingRect()
const override;
130 void redraw() override;
140 double mMaximumShadowWidth = -1;
142 std::
unique_ptr< QgsLayoutItemPageGrid > mGrid;
143 mutable QRectF mBoundingRect;
145 friend class TestQgsLayoutPage;
148 #endif //QGSLAYOUTITEMPAGE_H
Base class for graphical items within a QgsLayout.
int type() const override
Returns a unique graphics item type identifier.
Base class for commands to undo/redo layout and layout object changes.
UndoCommand
Layout item undo commands, used for collapsing undo commands.
std::unique_ptr< GEOSGeometry, GeosDeleter > unique_ptr
Scoped GEOS pointer.
virtual void attemptResize(const QgsLayoutSize &size, bool includesFrame=false)
Attempts to resize the item to a specified target size.
Base class for layouts, which can contain items such as maps, labels, scalebars, etc.
Contains settings and helpers relating to a render of a QgsLayoutItem.
Contains information about the context of a rendering operation.
Orientation
Page orientiation.
This class provides a method of storing sizes, consisting of a width and height, for use in QGIS layo...
QgsAbstractLayoutUndoCommand * createCommand(const QString &text, int id, QUndoCommand *parent=nullptr) override
Creates a new layout undo command with the specified text and parent.
Item representing the paper in a layout.