-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d62bc35
commit e169c21
Showing
10 changed files
with
602 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/core/layout/qgsabstractlayoutiterator.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ | ||
|
||
|
||
|
||
class QgsAbstractLayoutIterator | ||
{ | ||
%Docstring | ||
************************************************************************* | ||
* | ||
This program is free software; you can redistribute it and/or modify * | ||
it under the terms of the GNU General Public License as published by * | ||
the Free Software Foundation; either version 2 of the License, or * | ||
(at your option) any later version. * | ||
* | ||
************************************************************************** | ||
%End | ||
|
||
%TypeHeaderCode | ||
#include "qgsabstractlayoutiterator.h" | ||
%End | ||
public: | ||
|
||
virtual ~QgsAbstractLayoutIterator(); | ||
|
||
virtual bool beginRender() = 0; | ||
%Docstring | ||
Called when rendering begins, before iteration commences. Returns true if successful, false if no iteration | ||
is available or required. | ||
|
||
.. seealso:: :py:func:`endRender()` | ||
%End | ||
|
||
virtual bool endRender() = 0; | ||
%Docstring | ||
Ends the render, performing any required cleanup tasks. | ||
%End | ||
|
||
virtual int count() const = 0; | ||
%Docstring | ||
Returns the number of features to iterate over. | ||
%End | ||
|
||
virtual bool next() = 0; | ||
%Docstring | ||
Iterates to next feature, returning false if no more features exist to iterate over. | ||
|
||
.. seealso:: :py:func:`previous()` | ||
|
||
.. seealso:: :py:func:`last()` | ||
|
||
.. seealso:: :py:func:`first()` | ||
%End | ||
|
||
virtual bool previous() = 0; | ||
%Docstring | ||
Iterates to the previous feature, returning false if no previous feature exists. | ||
|
||
.. seealso:: :py:func:`next()` | ||
|
||
.. seealso:: :py:func:`last()` | ||
|
||
.. seealso:: :py:func:`first()` | ||
%End | ||
|
||
virtual bool last() = 0; | ||
%Docstring | ||
Seeks to the last feature, returning false if no feature was found. | ||
|
||
.. seealso:: :py:func:`next()` | ||
|
||
.. seealso:: :py:func:`previous()` | ||
|
||
.. seealso:: :py:func:`first()` | ||
%End | ||
|
||
virtual bool first() = 0; | ||
%Docstring | ||
Seeks to the first feature, returning false if no feature was found. | ||
|
||
.. seealso:: :py:func:`next()` | ||
|
||
.. seealso:: :py:func:`previous()` | ||
|
||
.. seealso:: :py:func:`last()` | ||
%End | ||
}; | ||
|
||
|
||
|
||
|
||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/core/layout/qgsabstractlayoutiterator.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ |
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,82 @@ | ||
/*************************************************************************** | ||
qgsabstractlayoutiterator.h | ||
--------------------------- | ||
begin : December 2017 | ||
copyright : (C) 2017 by Nyall Dawson | ||
email : nyall dot dawson at gmail dot com | ||
***************************************************************************/ | ||
/*************************************************************************** | ||
* * | ||
* This program is free software; you can redistribute it and/or modify * | ||
* it under the terms of the GNU General Public License as published by * | ||
* the Free Software Foundation; either version 2 of the License, or * | ||
* (at your option) any later version. * | ||
* * | ||
***************************************************************************/ | ||
#ifndef QGSABSTRACTLAYOUTITERATOR_H | ||
#define QGSABSTRACTLAYOUTITERATOR_H | ||
|
||
#include "qgis_core.h" | ||
|
||
|
||
class CORE_EXPORT QgsAbstractLayoutIterator | ||
{ | ||
|
||
public: | ||
|
||
virtual ~QgsAbstractLayoutIterator() = default; | ||
|
||
/** | ||
* Called when rendering begins, before iteration commences. Returns true if successful, false if no iteration | ||
* is available or required. | ||
* \see endRender() | ||
*/ | ||
virtual bool beginRender() = 0; | ||
|
||
/** | ||
* Ends the render, performing any required cleanup tasks. | ||
*/ | ||
virtual bool endRender() = 0; | ||
|
||
/** | ||
* Returns the number of features to iterate over. | ||
*/ | ||
virtual int count() const = 0; | ||
|
||
/** | ||
* Iterates to next feature, returning false if no more features exist to iterate over. | ||
* \see previous() | ||
* \see last() | ||
* \see first() | ||
*/ | ||
virtual bool next() = 0; | ||
|
||
/** | ||
* Iterates to the previous feature, returning false if no previous feature exists. | ||
* \see next() | ||
* \see last() | ||
* \see first() | ||
*/ | ||
virtual bool previous() = 0; | ||
|
||
/** | ||
* Seeks to the last feature, returning false if no feature was found. | ||
* \see next() | ||
* \see previous() | ||
* \see first() | ||
*/ | ||
virtual bool last() = 0; | ||
|
||
/** | ||
* Seeks to the first feature, returning false if no feature was found. | ||
* \see next() | ||
* \see previous() | ||
* \see last() | ||
*/ | ||
virtual bool first() = 0; | ||
}; | ||
|
||
#endif //QGSABSTRACTLAYOUTITERATOR_H | ||
|
||
|
||
|
Oops, something went wrong.