QGIS/python/core/auto_generated/textrenderer/qgstextrendererutils.sip.in
Nyall Dawson 832d5e95ee Cleanup and refactor calculationg of label text metrics for curved
labels, and move methods for calculating curved text placement
out of PAL so that they can be reused elsewhere
2021-04-08 14:26:05 +10:00

78 lines
2.5 KiB
Plaintext

/************************************************************************
* This file has been generated automatically from *
* *
* src/core/textrenderer/qgstextrendererutils.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
class QgsTextRendererUtils
{
%Docstring(signature="appended")
Utility functions for text rendering.
.. versionadded:: 3.10
%End
%TypeHeaderCode
#include "qgstextrendererutils.h"
%End
public:
static QgsTextBackgroundSettings::ShapeType decodeShapeType( const QString &string );
%Docstring
Decodes a string representation of a background shape type to a type.
%End
static QgsTextBackgroundSettings::SizeType decodeBackgroundSizeType( const QString &string );
%Docstring
Decodes a string representation of a background size type to a type.
%End
static QgsTextBackgroundSettings::RotationType decodeBackgroundRotationType( const QString &string );
%Docstring
Decodes a string representation of a background rotation type to a type.
%End
static QgsTextShadowSettings::ShadowPlacement decodeShadowPlacementType( const QString &string );
%Docstring
Decodes a string representation of a shadow placement type to a type.
%End
static QString encodeTextOrientation( QgsTextFormat::TextOrientation orientation );
%Docstring
Encodes a text ``orientation``.
:return: encoded string
.. seealso:: :py:func:`decodeTextOrientation`
%End
static QgsTextFormat::TextOrientation decodeTextOrientation( const QString &name, bool *ok = 0 );
%Docstring
Attempts to decode a string representation of a text orientation.
:param name: encoded text orientation name
:param ok: if specified, will be set to ``True`` if the name was successfully decoded
:return: decoded text orientation
.. seealso:: :py:func:`encodeTextOrientation`
%End
};
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/textrenderer/qgstextrendererutils.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/