mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-24 00:47:57 -05:00
168 lines
3.8 KiB
Plaintext
168 lines
3.8 KiB
Plaintext
/************************************************************************
|
|
* This file has been generated automatically from *
|
|
* *
|
|
* src/core/qgsmargins.h *
|
|
* *
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
class QgsMargins
|
|
{
|
|
|
|
%TypeHeaderCode
|
|
#include "qgsmargins.h"
|
|
%End
|
|
public:
|
|
|
|
QgsMargins();
|
|
%Docstring
|
|
Constructs a margins object with all margins set to 0.
|
|
%End
|
|
|
|
QgsMargins( double left, double top, double right, double bottom );
|
|
%Docstring
|
|
Constructs margins with the given ``left``, ``top``, ``right``, ``bottom``
|
|
|
|
.. seealso:: :py:func:`setLeft`
|
|
|
|
.. seealso:: :py:func:`setRight`
|
|
|
|
.. seealso:: :py:func:`setTop`
|
|
|
|
.. seealso:: :py:func:`setBottom`
|
|
%End
|
|
|
|
bool isNull() const;
|
|
%Docstring
|
|
Returns \c true if all margins are is 0; otherwise returns false.
|
|
%End
|
|
|
|
double left() const;
|
|
%Docstring
|
|
Returns the left margin.
|
|
|
|
.. seealso:: :py:func:`setLeft`
|
|
%End
|
|
|
|
double top() const;
|
|
%Docstring
|
|
Returns the top margin.
|
|
|
|
.. seealso:: :py:func:`setTop`
|
|
%End
|
|
|
|
double right() const;
|
|
%Docstring
|
|
Returns the right margin.
|
|
|
|
.. seealso:: :py:func:`setRight`
|
|
%End
|
|
|
|
double bottom() const;
|
|
%Docstring
|
|
Returns the bottom margin.
|
|
|
|
.. seealso:: :py:func:`setBottom`
|
|
%End
|
|
|
|
void setLeft( double left );
|
|
%Docstring
|
|
Sets the left margin to ``left``.
|
|
|
|
.. seealso:: :py:func:`left`
|
|
%End
|
|
|
|
void setTop( double top );
|
|
%Docstring
|
|
Sets the top margin to ``top``.
|
|
|
|
.. seealso:: :py:func:`top`
|
|
%End
|
|
|
|
void setRight( double right );
|
|
%Docstring
|
|
Sets the right margin to ``right``.
|
|
|
|
.. seealso:: :py:func:`right`
|
|
%End
|
|
|
|
void setBottom( double bottom );
|
|
%Docstring
|
|
Sets the bottom margin to ``bottom``.
|
|
|
|
.. seealso:: :py:func:`bottom`
|
|
%End
|
|
|
|
QgsMargins &operator+=( const QgsMargins &margins );
|
|
|
|
QgsMargins &operator-=( const QgsMargins &margins );
|
|
|
|
QgsMargins &operator+=( double addend );
|
|
|
|
QgsMargins &operator-=( double subtrahend );
|
|
|
|
QgsMargins &operator*=( double factor );
|
|
|
|
QgsMargins &operator/=( double divisor );
|
|
|
|
QString toString() const;
|
|
%Docstring
|
|
Returns the margins encoded to a string.
|
|
|
|
.. seealso:: :py:func:`fromString`
|
|
%End
|
|
|
|
static QgsMargins fromString( const QString &string );
|
|
%Docstring
|
|
Returns a QgsMargins object decoded from a string, or a null QgsMargins
|
|
if the string could not be interpreted as margins.
|
|
|
|
.. seealso:: :py:func:`toString`
|
|
%End
|
|
|
|
};
|
|
|
|
|
|
bool operator==( const QgsMargins &lhs, const QgsMargins &rhs );
|
|
|
|
bool operator!=( const QgsMargins &lhs, const QgsMargins &rhs );
|
|
|
|
QgsMargins operator+( const QgsMargins &m1, const QgsMargins &m2 );
|
|
|
|
QgsMargins operator-( const QgsMargins &m1, const QgsMargins &m2 );
|
|
|
|
QgsMargins operator+( const QgsMargins &lhs, double rhs );
|
|
|
|
QgsMargins operator+( double lhs, const QgsMargins &rhs );
|
|
|
|
QgsMargins operator-( const QgsMargins &lhs, double rhs );
|
|
|
|
QgsMargins operator*( const QgsMargins &margins, double factor );
|
|
|
|
QgsMargins operator*( double factor, const QgsMargins &margins );
|
|
|
|
QgsMargins operator/( const QgsMargins &margins, double divisor );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
QgsMargins operator+( const QgsMargins &margins );
|
|
|
|
QgsMargins operator-( const QgsMargins &margins );
|
|
|
|
|
|
/************************************************************************
|
|
* This file has been generated automatically from *
|
|
* *
|
|
* src/core/qgsmargins.h *
|
|
* *
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
************************************************************************/
|