|
QGIS API Documentation 3.99.0-Master (e9821da5c6b)
|
Container for settings relating to a text buffer. More...
#include <qgstextbuffersettings.h>
Public Member Functions | |
| QgsTextBufferSettings () | |
| QgsTextBufferSettings (const QgsTextBufferSettings &other) | |
| QgsTextBufferSettings (QgsTextBufferSettings &&other) | |
| ~QgsTextBufferSettings () | |
| QPainter::CompositionMode | blendMode () const |
| Returns the blending mode used for drawing the buffer. | |
| QColor | color () const |
| Returns the color of the buffer. | |
| bool | enabled () const |
| Returns whether the buffer is enabled. | |
| bool | fillBufferInterior () const |
| Returns whether the interior of the buffer will be filled in. | |
| Qt::PenJoinStyle | joinStyle () const |
| Returns the buffer join style. | |
| double | opacity () const |
| Returns the buffer opacity. | |
| bool | operator!= (const QgsTextBufferSettings &other) const |
| QgsTextBufferSettings & | operator= (const QgsTextBufferSettings &other) |
| QgsTextBufferSettings & | operator= (QgsTextBufferSettings &&other) |
| bool | operator== (const QgsTextBufferSettings &other) const |
| const QgsPaintEffect * | paintEffect () const |
| Returns the current paint effect for the buffer. | |
| void | readFromLayer (QgsVectorLayer *layer) |
| Reads settings from a layer's custom properties (for QGIS 2.x projects). | |
| void | readXml (const QDomElement &elem) |
| Read settings from a DOM element. | |
| QSet< QString > | referencedFields (const QgsRenderContext &context) const |
| Returns all field names referenced by the configuration (e.g. | |
| void | setBlendMode (QPainter::CompositionMode mode) |
| Sets the blending mode used for drawing the buffer. | |
| void | setColor (const QColor &color) |
| Sets the color for the buffer. | |
| void | setEnabled (bool enabled) |
| Sets whether the text buffer will be drawn. | |
| void | setFillBufferInterior (bool fill) |
| Sets whether the interior of the buffer will be filled in. | |
| void | setJoinStyle (Qt::PenJoinStyle style) |
| Sets the join style used for drawing the buffer. | |
| void | setOpacity (double opacity) |
| Sets the buffer opacity. | |
| void | setPaintEffect (QgsPaintEffect *effect) |
| Sets the current paint effect for the buffer. | |
| void | setSize (double size) |
| Sets the size of the buffer. | |
| void | setSizeMapUnitScale (const QgsMapUnitScale &scale) |
| Sets the map unit scale object for the buffer size. | |
| void | setSizeUnit (Qgis::RenderUnit unit) |
| Sets the units used for the buffer size. | |
| double | size () const |
| Returns the size of the buffer. | |
| QgsMapUnitScale | sizeMapUnitScale () const |
| Returns the map unit scale object for the buffer size. | |
| Qgis::RenderUnit | sizeUnit () const |
| Returns the units for the buffer size. | |
| void | updateDataDefinedProperties (QgsRenderContext &context, const QgsPropertyCollection &properties) |
| Updates the format by evaluating current values of data defined properties. | |
| QDomElement | writeXml (QDomDocument &doc) const |
| Write settings into a DOM element. | |
Container for settings relating to a text buffer.
Definition at line 41 of file qgstextbuffersettings.h.
| QgsTextBufferSettings::QgsTextBufferSettings | ( | ) |
Definition at line 34 of file qgstextbuffersettings.cpp.
| QgsTextBufferSettings::QgsTextBufferSettings | ( | const QgsTextBufferSettings & | other | ) |
Definition at line 39 of file qgstextbuffersettings.cpp.
| QgsTextBufferSettings::QgsTextBufferSettings | ( | QgsTextBufferSettings && | other | ) |
Definition at line 43 of file qgstextbuffersettings.cpp.
| QgsTextBufferSettings::~QgsTextBufferSettings | ( | ) |
Definition at line 66 of file qgstextbuffersettings.cpp.
| QPainter::CompositionMode QgsTextBufferSettings::blendMode | ( | ) | const |
Returns the blending mode used for drawing the buffer.
Definition at line 176 of file qgstextbuffersettings.cpp.
| QColor QgsTextBufferSettings::color | ( | ) | const |
Returns the color of the buffer.
Definition at line 136 of file qgstextbuffersettings.cpp.
| bool QgsTextBufferSettings::enabled | ( | ) | const |
Returns whether the buffer is enabled.
Definition at line 96 of file qgstextbuffersettings.cpp.
| bool QgsTextBufferSettings::fillBufferInterior | ( | ) | const |
Returns whether the interior of the buffer will be filled in.
If false, only the stroke of the text will be drawn as the buffer. The effect of this setting is only visible for semi-transparent text.
Definition at line 146 of file qgstextbuffersettings.cpp.
| Qt::PenJoinStyle QgsTextBufferSettings::joinStyle | ( | ) | const |
Returns the buffer join style.
Definition at line 166 of file qgstextbuffersettings.cpp.
| double QgsTextBufferSettings::opacity | ( | ) | const |
Returns the buffer opacity.
The opacity is a double value between 0 (fully transparent) and 1 (totally opaque).
Definition at line 156 of file qgstextbuffersettings.cpp.
| bool QgsTextBufferSettings::operator!= | ( | const QgsTextBufferSettings & | other | ) | const |
Definition at line 91 of file qgstextbuffersettings.cpp.
| QgsTextBufferSettings & QgsTextBufferSettings::operator= | ( | const QgsTextBufferSettings & | other | ) |
Definition at line 48 of file qgstextbuffersettings.cpp.
| QgsTextBufferSettings & QgsTextBufferSettings::operator= | ( | QgsTextBufferSettings && | other | ) |
Definition at line 57 of file qgstextbuffersettings.cpp.
| bool QgsTextBufferSettings::operator== | ( | const QgsTextBufferSettings & | other | ) | const |
Definition at line 71 of file qgstextbuffersettings.cpp.
| const QgsPaintEffect * QgsTextBufferSettings::paintEffect | ( | ) | const |
Returns the current paint effect for the buffer.
Definition at line 186 of file qgstextbuffersettings.cpp.
| void QgsTextBufferSettings::readFromLayer | ( | QgsVectorLayer * | layer | ) |
Reads settings from a layer's custom properties (for QGIS 2.x projects).
| layer | source vector layer |
Definition at line 263 of file qgstextbuffersettings.cpp.
| void QgsTextBufferSettings::readXml | ( | const QDomElement & | elem | ) |
Read settings from a DOM element.
Definition at line 334 of file qgstextbuffersettings.cpp.
| QSet< QString > QgsTextBufferSettings::referencedFields | ( | const QgsRenderContext & | context | ) | const |
Returns all field names referenced by the configuration (e.g.
from data defined properties).
Definition at line 258 of file qgstextbuffersettings.cpp.
| void QgsTextBufferSettings::setBlendMode | ( | QPainter::CompositionMode | mode | ) |
Sets the blending mode used for drawing the buffer.
| mode | blending mode |
Definition at line 181 of file qgstextbuffersettings.cpp.
| void QgsTextBufferSettings::setColor | ( | const QColor & | color | ) |
Sets the color for the buffer.
| color | buffer color |
Definition at line 141 of file qgstextbuffersettings.cpp.
| void QgsTextBufferSettings::setEnabled | ( | bool | enabled | ) |
Sets whether the text buffer will be drawn.
| enabled | set to true to draw buffer |
Definition at line 101 of file qgstextbuffersettings.cpp.
| void QgsTextBufferSettings::setFillBufferInterior | ( | bool | fill | ) |
Sets whether the interior of the buffer will be filled in.
| fill | set to false to drawn only the stroke of the text as the buffer, or true to also shade the area inside the text. The effect of this setting is only visible for semi-transparent text. |
Definition at line 151 of file qgstextbuffersettings.cpp.
| void QgsTextBufferSettings::setJoinStyle | ( | Qt::PenJoinStyle | style | ) |
Sets the join style used for drawing the buffer.
| style | join style |
Definition at line 171 of file qgstextbuffersettings.cpp.
| void QgsTextBufferSettings::setOpacity | ( | double | opacity | ) |
Sets the buffer opacity.
| opacity | opacity as a double value between 0 (fully transparent) and 1 (totally opaque) |
Definition at line 161 of file qgstextbuffersettings.cpp.
| void QgsTextBufferSettings::setPaintEffect | ( | QgsPaintEffect * | effect | ) |
Sets the current paint effect for the buffer.
| effect | paint effect. Ownership is transferred to the buffer settings. |
Definition at line 191 of file qgstextbuffersettings.cpp.
| void QgsTextBufferSettings::setSize | ( | double | size | ) |
Sets the size of the buffer.
The size units are specified using setSizeUnit().
| size | buffer size |
Definition at line 111 of file qgstextbuffersettings.cpp.
| void QgsTextBufferSettings::setSizeMapUnitScale | ( | const QgsMapUnitScale & | scale | ) |
Sets the map unit scale object for the buffer size.
This is only used if the buffer size is set to QgsUnitTypes::RenderMapUnit.
| scale | scale for buffer size |
Definition at line 131 of file qgstextbuffersettings.cpp.
| void QgsTextBufferSettings::setSizeUnit | ( | Qgis::RenderUnit | unit | ) |
Sets the units used for the buffer size.
| unit | size unit |
Definition at line 121 of file qgstextbuffersettings.cpp.
| double QgsTextBufferSettings::size | ( | ) | const |
Returns the size of the buffer.
Definition at line 106 of file qgstextbuffersettings.cpp.
| QgsMapUnitScale QgsTextBufferSettings::sizeMapUnitScale | ( | ) | const |
Returns the map unit scale object for the buffer size.
This is only used if the buffer size is set to QgsUnitTypes::RenderMapUnit.
Definition at line 126 of file qgstextbuffersettings.cpp.
| Qgis::RenderUnit QgsTextBufferSettings::sizeUnit | ( | ) | const |
Returns the units for the buffer size.
Definition at line 116 of file qgstextbuffersettings.cpp.
| void QgsTextBufferSettings::updateDataDefinedProperties | ( | QgsRenderContext & | context, |
| const QgsPropertyCollection & | properties ) |
Updates the format by evaluating current values of data defined properties.
Definition at line 196 of file qgstextbuffersettings.cpp.
| QDomElement QgsTextBufferSettings::writeXml | ( | QDomDocument & | doc | ) | const |
Write settings into a DOM element.
Definition at line 401 of file qgstextbuffersettings.cpp.