mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-06 00:07:29 -04:00
For multi-line labels, this allows use of either: - HTML <p align="xxx"> attributes - CSS "text-align: xxx" - HTML <center>some text</center> tags Supported alignments are left, right, center and justify Horizontal alignment can be used in all contexts where HTML text is rendered, EXCEPT for curved labels (since they are restricted to single-line text) Sponsored by City of Freiburg im Breisgau
18 lines
676 B
Python
18 lines
676 B
Python
# The following has been generated automatically from src/core/textrenderer/qgstextblockformat.h
|
|
# monkey patching scoped based enum
|
|
QgsTextBlockFormat.BooleanValue.NotSet.__doc__ = "Property is not set"
|
|
QgsTextBlockFormat.BooleanValue.SetTrue.__doc__ = "Property is set and ``True``"
|
|
QgsTextBlockFormat.BooleanValue.SetFalse.__doc__ = "Property is set and ``False``"
|
|
QgsTextBlockFormat.BooleanValue.__doc__ = """Status values for boolean format properties
|
|
|
|
* ``NotSet``: Property is not set
|
|
* ``SetTrue``: Property is set and ``True``
|
|
* ``SetFalse``: Property is set and ``False``
|
|
|
|
"""
|
|
# --
|
|
try:
|
|
QgsTextBlockFormat.__group__ = ['textrenderer']
|
|
except NameError:
|
|
pass
|