16#ifndef QGSTEXTFORMAT_H
17#define QGSTEXTFORMAT_H
28#include <QSharedDataPointer>
31class QgsTextSettingsPrivate;
200 void setFont(
const QFont &font );
207 QString namedStyle()
const;
215 void setNamedStyle(
const QString &style );
228 bool forcedBold()
const;
241 void setForcedBold(
bool forced );
254 bool forcedItalic()
const;
267 void setForcedItalic(
bool forced );
278 QStringList families()
const;
293 void setFamilies(
const QStringList &families );
308 void setSize(
double size );
347 QColor color()
const;
354 void setColor(
const QColor &color );
361 double opacity()
const;
369 void setOpacity(
double opacity );
383 int stretchFactor()
const;
397 void setStretchFactor(
int factor );
403 QPainter::CompositionMode blendMode()
const;
410 void setBlendMode( QPainter::CompositionMode mode );
422 double lineHeight()
const;
434 void setLineHeight(
double height );
500 bool allowHtmlFormatting()
const;
516 void setAllowHtmlFormatting(
bool allow );
523 QColor previewBackgroundColor()
const;
530 void setPreviewBackgroundColor(
const QColor &color );
573 QFont toQFont() const;
586 bool containsAdvancedEffects() const;
593 bool fontFound()
const {
return mTextFontFound; }
646 static QPixmap textFormatPreviewPixmap( const
QgsTextFormat &format, QSize size, const QString &previewText = QString(),
int padding = 0 );
655 QString mTextFontFamily;
656 bool mTextFontFound = true;
658 QSharedDataPointer<QgsTextSettingsPrivate> d;
Capitalization
String capitalization options.
TextOrientation
Text orientations.
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.
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.
RenderUnit
Rendering size units.
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)