QGIS/python/core/qgsxmlutils.sip

82 lines
2.3 KiB
Plaintext
Raw Normal View History

2017-05-23 09:45:57 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/qgsxmlutils.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
class QgsXmlUtils
{
2017-05-23 09:45:57 +02:00
%Docstring
Assorted helper methods for reading and writing chunks of XML
%End
%TypeHeaderCode
2017-05-23 09:45:57 +02:00
#include "qgsxmlutils.h"
%End
public:
2017-05-23 09:45:57 +02:00
static QgsUnitTypes::DistanceUnit readMapUnits( const QDomElement &element );
2017-05-23 09:45:57 +02:00
%Docstring
Decodes a distance unit from a DOM element.
\param element DOM element to decode
:return: distance units
.. seealso:: writeMapUnits()
:rtype: QgsUnitTypes.DistanceUnit
%End
2016-07-18 09:42:45 +10:00
static QgsRectangle readRectangle( const QDomElement &element );
2017-05-23 09:45:57 +02:00
%Docstring
:rtype: QgsRectangle
%End
static QDomElement writeMapUnits( QgsUnitTypes::DistanceUnit units, QDomDocument &doc );
2017-05-23 09:45:57 +02:00
%Docstring
Encodes a distance unit to a DOM element.
\param units units to encode
\param doc DOM document
:return: element containing encoded units
.. seealso:: readMapUnits()
:rtype: QDomElement
%End
2016-07-18 09:42:45 +10:00
static QDomElement writeRectangle( const QgsRectangle &rect, QDomDocument &doc );
2017-05-23 09:45:57 +02:00
%Docstring
:rtype: QDomElement
%End
static QDomElement writeVariant( const QVariant &value, QDomDocument &doc );
2017-05-23 09:45:57 +02:00
%Docstring
Write a QVariant to a QDomElement.
Supported types are
- QVariant.Map
- QVariant.Int
- QVariant.Double
- QVariant.String
:rtype: QDomElement
%End
static QVariant readVariant( const QDomElement &element );
2017-05-23 09:45:57 +02:00
%Docstring
Read a QVariant from a QDomElement.
:rtype: QVariant
%End
};
2017-05-23 09:45:57 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/qgsxmlutils.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/