-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4928 from nyalldawson/layout_next
Layout chapter IV: snapping and guides
- Loading branch information
Showing
65 changed files
with
4,996 additions
and
122 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
/************************************************************************ | ||
* 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 * | ||
************************************************************************/ |
Oops, something went wrong.