16 #ifndef QGSLAYOUTALIGNER_H
17 #define QGSLAYOUTALIGNER_H
19 #include "qgis_core.h"
80 static void alignItems(
QgsLayout *layout,
const QList< QgsLayoutItem * > &items, Alignment alignment );
87 static void distributeItems(
QgsLayout *layout,
const QList< QgsLayoutItem * > &items, Distribution distribution );
94 static void resizeItems(
QgsLayout *layout,
const QList< QgsLayoutItem * > &items, Resize resize );
102 static QRectF boundingRectOfItems(
const QList< QgsLayoutItem * > &items );
104 static QString undoText( Alignment alignment );
105 static QString undoText( Distribution distribution );
106 static QString undoText( Resize resize );
Handles aligning and distributing sets of layout items.
Alignment
Alignment options.
@ AlignVCenter
Align vertical centers.
@ AlignLeft
Align left edges.
@ AlignBottom
Align bottom edges.
@ AlignRight
Align right edges.
@ AlignTop
Align top edges.
@ AlignHCenter
Align horizontal centers.
@ ResizeNarrowest
Resize width to match narrowest width.
@ ResizeShortest
Resize height to match shortest height.
@ ResizeTallest
Resize height to match tallest height.
@ ResizeToSquare
Resize items to square.
@ ResizeWidest
Resize width to match widest width.
Distribution
Distribution options.
@ DistributeHSpace
Distribute horizontal equispaced.
@ DistributeVCenter
Distribute vertical centers.
@ DistributeBottom
Distribute bottom edges.
@ DistributeLeft
Distribute left edges.
@ DistributeHCenter
Distribute horizontal centers.
@ DistributeRight
Distribute right edges.
@ DistributeVSpace
Distribute vertical equispaced.
@ DistributeTop
Distribute top edges.
Base class for graphical items within a QgsLayout.
Base class for layouts, which can contain items such as maps, labels, scalebars, etc.