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 );
473 double tabStopDistance()
const;
488 void setTabStopDistance(
double distance );
502 explicit Tab(
double position );
524 SIP_PYOBJECT __repr__();
526 const QString
str = QStringLiteral(
"<QgsTextFormat.Tab: %1>" ).arg( sipCpp->position() );
527 sipRes = PyUnicode_FromString(
str.toUtf8().constData() );
533 double mPosition = 0;
551 QList< QgsTextFormat::Tab > tabPositions()
const;
566 void setTabPositions(
const QList< QgsTextFormat::Tab > &positions );
656 bool allowHtmlFormatting()
const;
672 void setAllowHtmlFormatting(
bool allow );
679 QColor previewBackgroundColor()
const;
686 void setPreviewBackgroundColor(
const QColor &color );
729 QFont toQFont() const;
742 bool containsAdvancedEffects() const;
749 bool fontFound()
const {
return mTextFontFound; }
814 QString asCSS(
double pointToPixelMultiplier = 1.0 ) const;
823 QString mTextFontFamily;
824 bool mTextFontFound = true;
826 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.
Defines a tab position for a text format.
double position() const
Returns the tab position.
void setPosition(double position)
Sets the tab position.
bool operator==(const QgsTextFormat::Tab &other) const
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.
bool qgsDoubleNear(double a, double b, double epsilon=4 *std::numeric_limits< double >::epsilon())
Compare two doubles (but allow some difference)
Q_DECLARE_METATYPE(QgsDatabaseQueryLogEntry)
bool operator==(const QgsFeatureIterator &fi1, const QgsFeatureIterator &fi2)
bool operator!=(const QgsFeatureIterator &fi1, const QgsFeatureIterator &fi2)