2017-05-14 09:48:41 +02:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/core/qgsmargins.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-01-30 10:50:48 +10:00
|
|
|
class QgsMargins
|
|
|
|
{
|
2017-05-14 09:48:41 +02:00
|
|
|
|
2017-01-30 10:50:48 +10:00
|
|
|
%TypeHeaderCode
|
2017-05-14 09:48:41 +02:00
|
|
|
#include "qgsmargins.h"
|
2017-01-30 10:50:48 +10:00
|
|
|
%End
|
|
|
|
public:
|
|
|
|
|
|
|
|
QgsMargins();
|
2017-05-14 09:48:41 +02:00
|
|
|
%Docstring
|
|
|
|
Constructs a margins object with all margins set to 0.
|
|
|
|
%End
|
|
|
|
|
2017-01-30 10:50:48 +10:00
|
|
|
QgsMargins( double left, double top, double right, double bottom );
|
2017-05-14 09:48:41 +02:00
|
|
|
%Docstring
|
|
|
|
Constructs margins with the given ``left``, ``top``, ``right``, ``bottom``
|
|
|
|
.. seealso:: setLeft()
|
|
|
|
.. seealso:: setRight()
|
|
|
|
.. seealso:: setTop()
|
|
|
|
.. seealso:: setBottom()
|
|
|
|
%End
|
2017-01-30 10:50:48 +10:00
|
|
|
|
|
|
|
bool isNull() const;
|
2017-05-14 09:48:41 +02:00
|
|
|
%Docstring
|
|
|
|
Returns \c true if all margins are is 0; otherwise returns false.
|
|
|
|
:rtype: bool
|
|
|
|
%End
|
2017-01-30 10:50:48 +10:00
|
|
|
|
|
|
|
double left() const;
|
2017-05-14 09:48:41 +02:00
|
|
|
%Docstring
|
|
|
|
Returns the left margin.
|
|
|
|
.. seealso:: setLeft()
|
|
|
|
:rtype: float
|
|
|
|
%End
|
|
|
|
|
2017-01-30 10:50:48 +10:00
|
|
|
double top() const;
|
2017-05-14 09:48:41 +02:00
|
|
|
%Docstring
|
|
|
|
Returns the top margin.
|
|
|
|
.. seealso:: setTop()
|
|
|
|
:rtype: float
|
|
|
|
%End
|
|
|
|
|
2017-01-30 10:50:48 +10:00
|
|
|
double right() const;
|
2017-05-14 09:48:41 +02:00
|
|
|
%Docstring
|
|
|
|
Returns the right margin.
|
|
|
|
.. seealso:: setRight()
|
|
|
|
:rtype: float
|
|
|
|
%End
|
|
|
|
|
2017-01-30 10:50:48 +10:00
|
|
|
double bottom() const;
|
2017-05-14 09:48:41 +02:00
|
|
|
%Docstring
|
|
|
|
Returns the bottom margin.
|
|
|
|
.. seealso:: setBottom()
|
|
|
|
:rtype: float
|
|
|
|
%End
|
2017-01-30 10:50:48 +10:00
|
|
|
|
|
|
|
void setLeft( double left );
|
2017-05-14 09:48:41 +02:00
|
|
|
%Docstring
|
|
|
|
Sets the left margin to ``left``.
|
|
|
|
.. seealso:: left()
|
|
|
|
%End
|
|
|
|
|
2017-01-30 10:50:48 +10:00
|
|
|
void setTop( double top );
|
2017-05-14 09:48:41 +02:00
|
|
|
%Docstring
|
|
|
|
Sets the top margin to ``top``.
|
|
|
|
.. seealso:: top()
|
|
|
|
%End
|
|
|
|
|
2017-01-30 10:50:48 +10:00
|
|
|
void setRight( double right );
|
2017-05-14 09:48:41 +02:00
|
|
|
%Docstring
|
|
|
|
Sets the right margin to ``right``.
|
|
|
|
.. seealso:: right()
|
|
|
|
%End
|
|
|
|
|
2017-01-30 10:50:48 +10:00
|
|
|
void setBottom( double bottom );
|
2017-05-14 09:48:41 +02:00
|
|
|
%Docstring
|
|
|
|
Sets the bottom margin to ``bottom``.
|
|
|
|
.. seealso:: bottom()
|
|
|
|
%End
|
2017-01-30 10:50:48 +10:00
|
|
|
|
|
|
|
QgsMargins &operator+=( const QgsMargins &margins );
|
2017-05-14 09:48:41 +02:00
|
|
|
%Docstring
|
|
|
|
Add each component of ``margins`` to the respective component of this object
|
|
|
|
and returns a reference to it.
|
|
|
|
:rtype: QgsMargins
|
|
|
|
%End
|
|
|
|
|
2017-01-30 10:50:48 +10:00
|
|
|
QgsMargins &operator-=( const QgsMargins &margins );
|
2017-05-14 09:48:41 +02:00
|
|
|
%Docstring
|
|
|
|
Subtract each component of ``margins`` from the respective component of this object
|
|
|
|
and returns a reference to it.
|
|
|
|
:rtype: QgsMargins
|
|
|
|
%End
|
|
|
|
|
2017-01-30 10:50:48 +10:00
|
|
|
QgsMargins &operator+=( double addend );
|
2017-05-14 09:48:41 +02:00
|
|
|
%Docstring
|
|
|
|
Adds the ``addend`` to each component of this object and returns a reference to it.
|
|
|
|
:rtype: QgsMargins
|
|
|
|
%End
|
|
|
|
|
2017-01-30 10:50:48 +10:00
|
|
|
QgsMargins &operator-=( double subtrahend );
|
2017-05-14 09:48:41 +02:00
|
|
|
%Docstring
|
|
|
|
Subtracts the ``subtrahend`` from each component of this object
|
|
|
|
and returns a reference to it.
|
|
|
|
:rtype: QgsMargins
|
|
|
|
%End
|
|
|
|
|
2017-01-30 10:50:48 +10:00
|
|
|
QgsMargins &operator*=( double factor );
|
2017-05-14 09:48:41 +02:00
|
|
|
%Docstring
|
|
|
|
Multiplies each component of this object by ``factor``
|
|
|
|
and returns a reference to it.
|
|
|
|
:rtype: QgsMargins
|
|
|
|
%End
|
|
|
|
|
2017-01-30 10:50:48 +10:00
|
|
|
QgsMargins &operator/=( double divisor );
|
2017-05-14 09:48:41 +02:00
|
|
|
%Docstring
|
|
|
|
Multiplies each component of this object by ``factor``
|
|
|
|
and returns a reference to it.
|
|
|
|
:rtype: QgsMargins
|
|
|
|
%End
|
2017-01-30 10:50:48 +10:00
|
|
|
|
|
|
|
QString toString() const;
|
2017-05-14 09:48:41 +02:00
|
|
|
%Docstring
|
|
|
|
Returns the margins encoded to a string.
|
|
|
|
.. seealso:: fromString()
|
|
|
|
:rtype: str
|
|
|
|
%End
|
|
|
|
|
2017-05-01 16:42:33 +02:00
|
|
|
static QgsMargins fromString( const QString &string );
|
2017-05-14 09:48:41 +02:00
|
|
|
%Docstring
|
|
|
|
Returns a QgsMargins object decoded from a string, or a null QgsMargins
|
|
|
|
if the string could not be interpreted as margins.
|
|
|
|
.. seealso:: toString()
|
|
|
|
:rtype: QgsMargins
|
|
|
|
%End
|
|
|
|
|
2017-01-30 10:50:48 +10:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2017-05-14 09:48:41 +02:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/core/qgsmargins.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|