QGIS API Documentation 3.41.0-Master (fda2aa46e9a)
|
Handles aligning and distributing sets of layout items. More...
#include <qgslayoutaligner.h>
Public Types | |
enum | Alignment { AlignLeft , AlignHCenter , AlignRight , AlignTop , AlignVCenter , AlignBottom } |
Alignment options. More... | |
enum | Distribution { DistributeLeft , DistributeHCenter , DistributeHSpace , DistributeRight , DistributeTop , DistributeVCenter , DistributeVSpace , DistributeBottom } |
Distribution options. More... | |
enum | Resize { ResizeNarrowest , ResizeWidest , ResizeShortest , ResizeTallest , ResizeToSquare } |
Resize options. More... | |
Static Public Member Functions | |
static void | alignItems (QgsLayout *layout, const QList< QgsLayoutItem * > &items, Alignment alignment) |
Aligns a set of items from a layout in place. | |
static void | distributeItems (QgsLayout *layout, const QList< QgsLayoutItem * > &items, Distribution distribution) |
Distributes a set of items from a layout in place. | |
static void | resizeItems (QgsLayout *layout, const QList< QgsLayoutItem * > &items, Resize resize) |
Resizes a set of items from a layout in place. | |
Handles aligning and distributing sets of layout items.
QgsLayoutAligner contains methods for automatically aligning and distributing sets of layout items, e.g. aligning a group of items to top or left sides.
Definition at line 35 of file qgslayoutaligner.h.
Alignment options.
Definition at line 41 of file qgslayoutaligner.h.
Distribution options.
Definition at line 52 of file qgslayoutaligner.h.
Resize options.
Definition at line 65 of file qgslayoutaligner.h.
|
static |
Aligns a set of items from a layout in place.
The alignment argument specifies the method to use when aligning the items.
Definition at line 22 of file qgslayoutaligner.cpp.
|
static |
Distributes a set of items from a layout in place.
The distribution argument specifies the method to use when distributing the items.
Definition at line 95 of file qgslayoutaligner.cpp.
|
static |
Resizes a set of items from a layout in place.
The resize argument specifies the method to use when resizing the items.
Definition at line 195 of file qgslayoutaligner.cpp.