/************************************************************************ * This file has been generated automatically from * * * * src/core/layout/qgslayoutgridsettings.h * * * * Do not edit manually ! Edit header and run scripts/sipify.pl again * ************************************************************************/ class QgsLayoutGridSettings : QgsLayoutSerializableObject { %Docstring Contains settings relating to the appearance, spacing and offset for layout grids. .. versionadded:: 3.0 %End %TypeHeaderCode #include "qgslayoutgridsettings.h" %End public: enum Style { StyleLines, StyleDots, StyleCrosses }; QgsLayoutGridSettings( QgsLayout *layout ); %Docstring Constructor for QgsLayoutGridSettings. %End virtual QString stringType() const; virtual QgsLayout *layout(); void setResolution( const QgsLayoutMeasurement &resolution ); %Docstring Sets the page/snap grid ``resolution``. .. seealso:: :py:func:`resolution()` .. seealso:: :py:func:`setOffset()` %End QgsLayoutMeasurement resolution() const; %Docstring Returns the page/snap grid resolution. .. seealso:: :py:func:`setResolution()` .. seealso:: :py:func:`offset()` %End void setOffset( const QgsLayoutPoint offset ); %Docstring Sets the ``offset`` of the page/snap grid. .. seealso:: :py:func:`offset()` .. seealso:: :py:func:`setResolution()` %End QgsLayoutPoint offset() const; %Docstring Returns the offset of the page/snap grid. .. seealso:: :py:func:`setOffset()` .. seealso:: :py:func:`resolution()` %End void setPen( const QPen &pen ); %Docstring Sets the ``pen`` used for drawing page/snap grids. .. seealso:: :py:func:`pen()` .. seealso:: :py:func:`setStyle()` %End QPen pen() const; %Docstring Returns the pen used for drawing page/snap grids. .. seealso:: :py:func:`setPen()` .. seealso:: :py:func:`style()` %End void setStyle( const Style style ); %Docstring Sets the ``style`` used for drawing the page/snap grids. .. seealso:: :py:func:`style()` .. seealso:: :py:func:`setPen()` %End Style style() const; %Docstring Returns the style used for drawing the page/snap grids. .. seealso:: :py:func:`setStyle()` .. seealso:: :py:func:`pen()` %End virtual bool writeXml( QDomElement &parentElement, QDomDocument &document, const QgsReadWriteContext &context ) const; %Docstring Stores the grid's state in a DOM element. The ``parentElement`` should refer to the parent layout's DOM element. .. seealso:: :py:func:`readXml()` %End virtual bool readXml( const QDomElement &gridElement, const QDomDocument &document, const QgsReadWriteContext &context ); %Docstring Sets the grid's state from a DOM element. gridElement is the DOM node corresponding to the grid. .. seealso:: :py:func:`writeXml()` %End }; /************************************************************************ * This file has been generated automatically from * * * * src/core/layout/qgslayoutgridsettings.h * * * * Do not edit manually ! Edit header and run scripts/sipify.pl again * ************************************************************************/