/************************************************************************ * 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 { %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(); %Docstring Constructor for QgsLayoutGridSettings. %End void setResolution( const QgsLayoutMeasurement &resolution ); %Docstring Sets the page/snap grid ``resolution``. .. seealso:: resolution() .. seealso:: setOffset() %End QgsLayoutMeasurement resolution() const; %Docstring Returns the page/snap grid resolution. .. seealso:: setResolution() .. seealso:: offset() :rtype: QgsLayoutMeasurement %End void setOffset( const QgsLayoutPoint offset ); %Docstring Sets the ``offset`` of the page/snap grid. .. seealso:: offset() .. seealso:: setResolution() %End QgsLayoutPoint offset() const; %Docstring Returns the offset of the page/snap grid. .. seealso:: setOffset() .. seealso:: resolution() :rtype: QgsLayoutPoint %End void setPen( const QPen &pen ); %Docstring Sets the ``pen`` used for drawing page/snap grids. .. seealso:: pen() .. seealso:: setStyle() %End QPen pen() const; %Docstring Returns the pen used for drawing page/snap grids. .. seealso:: setPen() .. seealso:: style() :rtype: QPen %End void setStyle( const Style style ); %Docstring Sets the ``style`` used for drawing the page/snap grids. .. seealso:: style() .. seealso:: setPen() %End Style style() const; %Docstring Returns the style used for drawing the page/snap grids. .. seealso:: setStyle() .. seealso:: pen() :rtype: Style %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 * ************************************************************************/