QGIS/python/core/layout/qgslayoutaligner.sip

86 lines
2.6 KiB
Plaintext
Raw Normal View History

2017-10-03 21:48:18 +10:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/layout/qgslayoutaligner.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
class QgsLayoutAligner
{
%Docstring
Handles aligning and distributing sets of layout items.
2017-12-15 10:36:55 -04:00
QgsLayoutAligner contains methods for automatically aligning and distributing
sets of layout items, e.g. aligning a group of items to top or left sides.
2017-10-03 21:48:18 +10:00
.. versionadded:: 3.0
%End
%TypeHeaderCode
#include "qgslayoutaligner.h"
%End
public:
enum Alignment
{
AlignLeft,
AlignHCenter,
AlignRight,
AlignTop,
AlignVCenter,
AlignBottom,
};
enum Distribution
{
DistributeLeft,
DistributeHCenter,
DistributeRight,
DistributeTop,
DistributeVCenter,
DistributeBottom,
2017-10-03 21:48:18 +10:00
};
enum Resize
{
ResizeNarrowest,
ResizeWidest,
ResizeShortest,
ResizeTallest,
ResizeToSquare,
};
2017-10-03 21:48:18 +10:00
static void alignItems( QgsLayout *layout, const QList< QgsLayoutItem * > &items, Alignment alignment );
%Docstring
2017-12-15 10:36:55 -04:00
Aligns a set of ``items`` from a ``layout`` in place.
2017-10-03 21:48:18 +10:00
2017-12-15 10:36:55 -04:00
The ``alignment`` argument specifies the method to use when aligning the items.
2017-10-03 21:48:18 +10:00
%End
static void distributeItems( QgsLayout *layout, const QList< QgsLayoutItem * > &items, Distribution distribution );
%Docstring
2017-12-15 10:36:55 -04:00
Distributes a set of ``items`` from a ``layout`` in place.
2017-12-15 10:36:55 -04:00
The ``distribution`` argument specifies the method to use when distributing the items.
%End
static void resizeItems( QgsLayout *layout, const QList< QgsLayoutItem * > &items, Resize resize );
%Docstring
2017-12-15 10:36:55 -04:00
Resizes a set of ``items`` from a ``layout`` in place.
2017-12-15 10:36:55 -04:00
The ``resize`` argument specifies the method to use when resizing the items.
%End
2017-10-03 21:48:18 +10:00
};
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/layout/qgslayoutaligner.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/