QGIS API Documentation 3.41.0-Master (3440c17df1d)
Loading...
Searching...
No Matches
qgstextmasksettings.h
Go to the documentation of this file.
1/***************************************************************************
2 qgstextmasksettings.h
3 -----------------
4 begin : May 2020
5 copyright : (C) Nyall Dawson
6 email : nyall dot dawson at gmail dot com
7 ***************************************************************************
8 * *
9 * This program is free software; you can redistribute it and/or modify *
10 * it under the terms of the GNU General Public License as published by *
11 * the Free Software Foundation; either version 2 of the License, or *
12 * (at your option) any later version. *
13 * *
14 ***************************************************************************/
15
16#ifndef QGSTEXTMASKSETTINGS_H
17#define QGSTEXTMASKSETTINGS_H
18
19#include "qgis_sip.h"
20#include "qgis_core.h"
21#include "qgis.h"
22#include "qgsmapunitscale.h"
23
24#include <QSharedDataPointer>
25#include <QDomElement>
26
27class QgsTextMaskSettingsPrivate;
28class QgsPaintEffect;
31
42class CORE_EXPORT QgsTextMaskSettings
43{
44 public:
45
50 {
51 MaskBuffer = 0
52 };
53
55
57 QgsTextMaskSettings &operator=( const QgsTextMaskSettings &other );
58
60
61 bool operator==( const QgsTextMaskSettings &other ) const;
62 bool operator!=( const QgsTextMaskSettings &other ) const;
63
67 bool enabled() const;
68
72 void setEnabled( bool );
73
78 MaskType type() const;
79
85 void setType( MaskType type );
86
92 double size() const;
93
100 void setSize( double size );
101
107 Qgis::RenderUnit sizeUnit() const;
108
115 void setSizeUnit( Qgis::RenderUnit unit );
116
123 QgsMapUnitScale sizeMapUnitScale() const;
124
132 void setSizeMapUnitScale( const QgsMapUnitScale &scale );
133
138 Qt::PenJoinStyle joinStyle() const;
139
145 void setJoinStyle( Qt::PenJoinStyle style );
146
152 double opacity() const;
153
160 void setOpacity( double opacity );
161
167 QgsPaintEffect *paintEffect() const;
168
174 void setPaintEffect( QgsPaintEffect *effect SIP_TRANSFER );
175
180 void readXml( const QDomElement &elem );
181
186 QDomElement writeXml( QDomDocument &doc ) const;
187
193 QList<QgsSymbolLayerReference> maskedSymbolLayers() const;
194
200 void setMaskedSymbolLayers( const QList<QgsSymbolLayerReference> &maskedLayers );
201
205 void updateDataDefinedProperties( QgsRenderContext &context, const QgsPropertyCollection &properties );
206
211 QSet<QString> referencedFields( const QgsRenderContext &context ) const;
212
213 private:
214
215 QSharedDataPointer<QgsTextMaskSettingsPrivate> d;
216};
217
218#endif // QGSTEXTMASKSETTINGS_H
RenderUnit
Rendering size units.
Definition qgis.h:4847
Struct for storing maximum and minimum scales for measurements in map units.
Base class for visual effects which can be applied to QPicture drawings.
A grouped map of multiple QgsProperty objects, each referenced by a integer key value.
Contains information about the context of a rendering operation.
Type used to refer to a specific symbol layer in a symbol of a layer.
Container for settings relating to a selective masking around a text.
MaskType
Mask shape types.
#define SIP_TRANSFER
Definition qgis_sip.h:36
bool operator==(const QgsFeatureIterator &fi1, const QgsFeatureIterator &fi2)
bool operator!=(const QgsFeatureIterator &fi1, const QgsFeatureIterator &fi2)