mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-27 00:33:48 -05:00
68 lines
2.0 KiB
Plaintext
68 lines
2.0 KiB
Plaintext
|
/************************************************************************
|
||
|
* This file has been generated automatically from *
|
||
|
* *
|
||
|
* src/core/layout/qgslayoutitemgroup.h *
|
||
|
* *
|
||
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
||
|
************************************************************************/
|
||
|
|
||
|
|
||
|
|
||
|
class QgsLayoutItemGroup: QgsLayoutItem
|
||
|
{
|
||
|
%Docstring
|
||
|
A container for grouping several QgsLayoutItems.
|
||
|
.. versionadded:: 3.0
|
||
|
%End
|
||
|
|
||
|
%TypeHeaderCode
|
||
|
#include "qgslayoutitemgroup.h"
|
||
|
%End
|
||
|
public:
|
||
|
|
||
|
explicit QgsLayoutItemGroup( QgsLayout *layout );
|
||
|
~QgsLayoutItemGroup();
|
||
|
|
||
|
virtual int type() const;
|
||
|
|
||
|
virtual QString stringType() const;
|
||
|
|
||
|
|
||
|
void addItem( QgsLayoutItem *item /Transfer/ );
|
||
|
%Docstring
|
||
|
Adds an ``item`` to the group. Ownership of the item
|
||
|
is transferred to the group.
|
||
|
%End
|
||
|
|
||
|
void removeItems();
|
||
|
%Docstring
|
||
|
Removes all items from the group (but does not delete them).
|
||
|
Items remain in the scene but are no longer grouped together
|
||
|
%End
|
||
|
|
||
|
QList<QgsLayoutItem *> items() const;
|
||
|
%Docstring
|
||
|
Returns a list of items contained by the group.
|
||
|
:rtype: list of QgsLayoutItem
|
||
|
%End
|
||
|
|
||
|
virtual void setVisibility( const bool visible );
|
||
|
|
||
|
protected:
|
||
|
|
||
|
virtual void draw( QgsRenderContext &context, const QStyleOptionGraphicsItem *itemStyle = 0 );
|
||
|
|
||
|
|
||
|
};
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
/************************************************************************
|
||
|
* This file has been generated automatically from *
|
||
|
* *
|
||
|
* src/core/layout/qgslayoutitemgroup.h *
|
||
|
* *
|
||
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
||
|
************************************************************************/
|