Skip to content
Permalink
Browse files

Add doc

  • Loading branch information
pblottiere committed Mar 10, 2021
1 parent 7b0b4af commit c21a1ca9ca5c390d7f643b4e009cd3b46e82f1c8
Showing with 16 additions and 0 deletions.
  1. +9 −0 python/core/auto_generated/qgsxmlutils.sip.in
  2. +7 −0 src/core/qgsxmlutils.h
@@ -51,6 +51,15 @@ Encodes a distance unit to a DOM element.
%End

static QDomElement writeRectangle( const QgsRectangle &rect, QDomDocument &doc, const QString &elementName = QStringLiteral( "extent" ) );
%Docstring
Encodes a rectangle to a DOM element.

:param rect: rectangle to encode
:param doc: DOM document
:param elementName: name of the DOM element

:return: element containing encoded rectangle
%End

static QDomElement writeVariant( const QVariant &value, QDomDocument &doc );
%Docstring
@@ -59,6 +59,13 @@ class CORE_EXPORT QgsXmlUtils
*/
static QDomElement writeMapUnits( QgsUnitTypes::DistanceUnit units, QDomDocument &doc );

/**
* Encodes a rectangle to a DOM element.
* \param rect rectangle to encode
* \param doc DOM document
* \param elementName name of the DOM element
* \returns element containing encoded rectangle
*/
static QDomElement writeRectangle( const QgsRectangle &rect, QDomDocument &doc, const QString &elementName = QStringLiteral( "extent" ) );

/**

0 comments on commit c21a1ca

Please sign in to comment.