16#ifndef QGSTEXTFORMAT_H
17#define QGSTEXTFORMAT_H
29#include <QSharedDataPointer>
32class QgsTextSettingsPrivate;
196 void setFont(
const QFont &font );
203 QString namedStyle()
const;
211 void setNamedStyle(
const QString &style );
224 bool forcedBold()
const;
237 void setForcedBold(
bool forced );
250 bool forcedItalic()
const;
263 void setForcedItalic(
bool forced );
274 QStringList families()
const;
289 void setFamilies(
const QStringList &families );
304 void setSize(
double size );
343 QColor color()
const;
350 void setColor(
const QColor &color );
357 double opacity()
const;
367 void multiplyOpacity(
double opacityFactor );
375 void setOpacity(
double opacity );
389 int stretchFactor()
const;
403 void setStretchFactor(
int factor );
409 QPainter::CompositionMode blendMode()
const;
416 void setBlendMode( QPainter::CompositionMode mode );
428 double lineHeight()
const;
440 void setLineHeight(
double height );
470 double tabStopDistance()
const;
480 void setTabStopDistance(
double distance );
568 bool allowHtmlFormatting()
const;
584 void setAllowHtmlFormatting(
bool allow );
591 QColor previewBackgroundColor()
const;
598 void setPreviewBackgroundColor(
const QColor &color );
641 QFont toQFont() const;
654 bool containsAdvancedEffects() const;
661 bool fontFound()
const {
return mTextFontFound; }
726 QString asCSS(
double pointToPixelMultiplier = 1.0 ) const;
735 QString mTextFontFamily;
736 bool mTextFontFound = true;
738 QSharedDataPointer<QgsTextSettingsPrivate> d;
Capitalization
String capitalization options.
TextOrientation
Text orientations.
RenderUnit
Rendering size units.
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.
Stores properties relating to a screen.
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.
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.
Represents a vector layer which manages a vector based data sets.
Q_DECLARE_METATYPE(QgsDatabaseQueryLogEntry)
bool operator==(const QgsFeatureIterator &fi1, const QgsFeatureIterator &fi2)
bool operator!=(const QgsFeatureIterator &fi1, const QgsFeatureIterator &fi2)