16 #ifndef QGSTEXTFORMAT_H
17 #define QGSTEXTFORMAT_H
20 #include "qgis_core.h"
28 #include <QSharedDataPointer>
31 class QgsTextSettingsPrivate;
196 QFont scaledFont(
const QgsRenderContext &context,
double scaleFactor = 1.0 )
const;
207 void setFont(
const QFont &font );
214 QString namedStyle()
const;
222 void setNamedStyle(
const QString &style );
237 void setSize(
double size );
276 QColor color()
const;
283 void setColor(
const QColor &color );
290 double opacity()
const;
298 void setOpacity(
double opacity );
304 QPainter::CompositionMode blendMode()
const;
311 void setBlendMode( QPainter::CompositionMode mode );
319 double lineHeight()
const;
328 void setLineHeight(
double height );
335 TextOrientation orientation()
const;
342 void setOrientation( TextOrientation orientation );
374 bool allowHtmlFormatting()
const;
390 void setAllowHtmlFormatting(
bool allow );
397 QColor previewBackgroundColor()
const;
404 void setPreviewBackgroundColor(
const QColor &color );
447 QFont toQFont() const;
460 bool containsAdvancedEffects() const;
467 bool fontFound()
const {
return mTextFontFound; }
520 static QPixmap textFormatPreviewPixmap( const
QgsTextFormat &format, QSize size, const QString &previewText = QString(),
int padding = 0 );
529 QString mTextFontFamily;
530 bool mTextFontFound = true;
532 QSharedDataPointer<QgsTextSettingsPrivate> d;
Struct for storing maximum and minimum scales for measurements in map units.
A grouped map of multiple QgsProperty objects, each referenced by a integer key value.
The class is used as a container of context for various read/write operations on other objects.
Contains information about the context of a rendering operation.
Capitalization
Capitalization options.
Container for settings relating to a text background object.
Container for settings relating to a text buffer.
Container for all settings relating to text rendering.
QgsTextBufferSettings buffer() const
Returns a reference to the text buffer settings.
QString resolvedFontFamily() const
Returns the family for the resolved font, ie if the specified font was not found on the system this w...
QgsTextMaskSettings mask() const
Returns a reference to the masking settings.
TextOrientation
Text orientation.
@ HorizontalOrientation
Vertically oriented text.
@ RotationBasedOrientation
Horizontally or vertically oriented text based on rotation (only available for map labeling)
@ VerticalOrientation
Horizontally oriented text.
QgsTextBackgroundSettings background() const
Returns a reference to the text background settings.
QgsTextShadowSettings shadow() const
Returns a reference to the text drop shadow settings.
Container for settings relating to a selective masking around a text.
Container for settings relating to a text shadow.
RenderUnit
Rendering size units.
Represents a vector layer which manages a vector based data sets.
bool operator==(const QgsFeatureIterator &fi1, const QgsFeatureIterator &fi2)
bool operator!=(const QgsFeatureIterator &fi1, const QgsFeatureIterator &fi2)
Q_DECLARE_METATYPE(QgsMeshTimeSettings)