16#ifndef QGSTEXTFORMAT_H
17#define QGSTEXTFORMAT_H
29#include <QSharedDataPointer>
32class QgsTextSettingsPrivate;
198 void setFont(
const QFont &font );
205 QString namedStyle()
const;
213 void setNamedStyle(
const QString &style );
226 bool forcedBold()
const;
239 void setForcedBold(
bool forced );
252 bool forcedItalic()
const;
265 void setForcedItalic(
bool forced );
276 QStringList families()
const;
291 void setFamilies(
const QStringList &families );
306 void setSize(
double size );
345 QColor color()
const;
352 void setColor(
const QColor &color );
359 double opacity()
const;
369 void multiplyOpacity(
double opacityFactor );
377 void setOpacity(
double opacity );
391 int stretchFactor()
const;
405 void setStretchFactor(
int factor );
411 QPainter::CompositionMode blendMode()
const;
418 void setBlendMode( QPainter::CompositionMode mode );
430 double lineHeight()
const;
442 void setLineHeight(
double height );
475 double tabStopDistance()
const;
490 void setTabStopDistance(
double distance );
526 SIP_PYOBJECT __repr__();
528 const QString str = QStringLiteral(
"<QgsTextFormat.Tab: %1>" ).arg( sipCpp->position() );
529 sipRes = PyUnicode_FromString( str.toUtf8().constData() );
535 double mPosition = 0;
553 QList< QgsTextFormat::Tab > tabPositions()
const;
568 void setTabPositions(
const QList< QgsTextFormat::Tab > &positions );
658 bool allowHtmlFormatting()
const;
674 void setAllowHtmlFormatting(
bool allow );
681 QColor previewBackgroundColor()
const;
688 void setPreviewBackgroundColor(
const QColor &color );
731 QFont toQFont() const;
744 bool containsAdvancedEffects() const;
753 bool hasNonDefaultCompositionMode() const;
825 QString asCSS(
double pointToPixelMultiplier = 1.0 ) const;
834 QString mTextFontFamily;
835 bool mTextFontFound = true;
837 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 an integer key value.
A container for the context for various read/write operations on 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.
Tab(double position)
Constructor for a Tab at the specified position.
void setPosition(double position)
Sets the tab position.
bool operator==(const QgsTextFormat::Tab &other) const
Container for all settings relating to text rendering.
QgsTextFormat()
Default constructor for QgsTextFormat.
QgsTextBufferSettings buffer() const
Returns a reference to the text buffer settings.
bool fontFound() const
Returns true if the specified font was found on the system, or false if the font was not found and a ...
QString resolvedFontFamily() const
Returns the family for the resolved font, ie if the specified font was not found on the system this w...
bool isValid() const
Returns true if the format is valid.
QgsTextMaskSettings mask() const
Returns a reference to the masking settings.
void setValid()
Sets the format to a valid state, without changing any of the default format settings.
QgsTextBackgroundSettings background() const
Returns a reference to the text background settings.
QgsTextShadowSettings shadow() const
Returns a reference to the text drop shadow settings.
QgsTextFormat & operator=(const QgsTextFormat &other)
QgsTextBufferSettings & buffer()
Returns a reference to the text buffer 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 dataset.
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)