QGIS API Documentation
3.6.0-Noosa (5873452)
|
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, DistributeRight, DistributeTop, DistributeVCenter, 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. More... | |
static void | distributeItems (QgsLayout *layout, const QList< QgsLayoutItem * > &items, Distribution distribution) |
Distributes a set of items from a layout in place. More... | |
static void | resizeItems (QgsLayout *layout, const QList< QgsLayoutItem * > &items, Resize resize) |
Resizes a set of items from a layout in place. More... | |
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 36 of file qgslayoutaligner.h.
Alignment options.
Definition at line 42 of file qgslayoutaligner.h.
Distribution options.
Definition at line 53 of file qgslayoutaligner.h.
Resize options.
Definition at line 64 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 180 of file qgslayoutaligner.cpp.