mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
reverting 3fb0f66 (followup #45348) Using --no-public-is-protected (default on Windows) also works on Linux and fixes #45331 too
96 lines
2.9 KiB
Plaintext
96 lines
2.9 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(signature="appended")
|
|
A container for grouping several :py:class:`QgsLayoutItems`.
|
|
|
|
.. versionadded:: 3.0
|
|
%End
|
|
|
|
%TypeHeaderCode
|
|
#include "qgslayoutitemgroup.h"
|
|
%End
|
|
public:
|
|
|
|
explicit QgsLayoutItemGroup( QgsLayout *layout );
|
|
%Docstring
|
|
Constructor for QgsLayoutItemGroup, belonging to the specified ``layout``.
|
|
%End
|
|
|
|
virtual void cleanup();
|
|
|
|
|
|
virtual int type() const;
|
|
|
|
virtual QString displayName() const;
|
|
|
|
|
|
static QgsLayoutItemGroup *create( QgsLayout *layout ) /Factory/;
|
|
%Docstring
|
|
Returns a new group item for the specified ``layout``.
|
|
|
|
The caller takes responsibility for deleting the returned object.
|
|
%End
|
|
|
|
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.
|
|
%End
|
|
|
|
virtual void setVisibility( bool visible );
|
|
|
|
|
|
virtual void attemptMove( const QgsLayoutPoint &point, bool useReferencePoint = true, bool includesFrame = false, int page = -1 );
|
|
|
|
virtual void attemptResize( const QgsLayoutSize &size, bool includesFrame = false );
|
|
|
|
|
|
virtual void paint( QPainter *painter, const QStyleOptionGraphicsItem *itemStyle, QWidget *pWidget );
|
|
|
|
|
|
virtual void finalizeRestoreFromXml();
|
|
|
|
virtual ExportLayerBehavior exportLayerBehavior() const;
|
|
|
|
protected:
|
|
virtual void draw( QgsLayoutItemRenderContext &context );
|
|
|
|
virtual bool writePropertiesToElement( QDomElement &parentElement, QDomDocument &document, const QgsReadWriteContext &context ) const;
|
|
|
|
virtual bool readPropertiesFromElement( const QDomElement &itemElement, const QDomDocument &document, const QgsReadWriteContext &context );
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
/************************************************************************
|
|
* This file has been generated automatically from *
|
|
* *
|
|
* src/core/layout/qgslayoutitemgroup.h *
|
|
* *
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
************************************************************************/
|