![]() |
Qt 6.x
The Qt SDK
|
#include <qsvgstyle_p.h>
Public Member Functions | |
QSvgFontStyle (QSvgFont *font, QSvgTinyDocument *doc) | |
QSvgFontStyle () | |
void | apply (QPainter *p, const QSvgNode *node, QSvgExtraStates &states) override |
void | revert (QPainter *p, QSvgExtraStates &states) override |
Type | type () const override |
void | setSize (qreal size) |
void | setTextAnchor (Qt::Alignment anchor) |
void | setFamily (const QString &family) |
void | setStyle (QFont::Style fontStyle) |
void | setVariant (QFont::Capitalization fontVariant) |
void | setWeight (int weight) |
QSvgFont * | svgFont () const |
const QFont & | qfont () const |
QSvgTinyDocument * | doc () const |
![]() | |
virtual | ~QSvgStyleProperty () |
virtual void | apply (QPainter *p, const QSvgNode *node, QSvgExtraStates &states)=0 |
virtual void | revert (QPainter *p, QSvgExtraStates &states)=0 |
virtual Type | type () const =0 |
![]() | |
QSvgRefCounted () | |
virtual | ~QSvgRefCounted () |
void | ref () |
void | deref () |
Static Public Attributes | |
static const int | LIGHTER = -1 |
static const int | BOLDER = 1 |
Additional Inherited Members | |
![]() | |
enum | Type { QUALITY , FILL , VIEWPORT_FILL , FONT , STROKE , SOLID_COLOR , GRADIENT , TRANSFORM , ANIMATE_TRANSFORM , ANIMATE_COLOR , OPACITY , COMP_OP } |
Definition at line 298 of file qsvgstyle_p.h.
QSvgFontStyle::QSvgFontStyle | ( | QSvgFont * | font, |
QSvgTinyDocument * | doc | ||
) |
Definition at line 173 of file qsvgstyle.cpp.
QSvgFontStyle::QSvgFontStyle | ( | ) |
Definition at line 185 of file qsvgstyle.cpp.
|
overridevirtual |
Implements QSvgStyleProperty.
Definition at line 197 of file qsvgstyle.cpp.
References QFont::Black, BOLDER, QFont::capitalization(), QFont::families(), font, LIGHTER, QFont::pointSizeF(), qBound(), qMax(), qMin(), QFont::setCapitalization(), QFont::setFamilies(), QFont::setPointSizeF(), QFont::setStyle(), QFont::setWeight(), QFont::style(), and QFont::Thin.
Referenced by QSvgStyle::apply().
|
inline |
Definition at line 357 of file qsvgstyle_p.h.
Referenced by parseFontFaceNameNode(), and parseFontFaceNode().
|
inline |
Definition at line 352 of file qsvgstyle_p.h.
|
overridevirtual |
Implements QSvgStyleProperty.
Definition at line 238 of file qsvgstyle.cpp.
Referenced by QSvgStyle::revert().
Definition at line 324 of file qsvgstyle_p.h.
Definition at line 310 of file qsvgstyle_p.h.
|
inline |
Definition at line 330 of file qsvgstyle_p.h.
|
inline |
Definition at line 318 of file qsvgstyle_p.h.
|
inline |
Definition at line 335 of file qsvgstyle_p.h.
|
inline |
Definition at line 341 of file qsvgstyle_p.h.
|
inline |
Definition at line 347 of file qsvgstyle_p.h.
Referenced by parseFontFaceNameNode(), parseFontFaceNode(), parseGlyphNode(), and parseMissingGlyphNode().
|
overridevirtual |
Implements QSvgStyleProperty.
Definition at line 444 of file qsvgstyle.cpp.
References QSvgStyleProperty::FONT.
|
static |
Definition at line 302 of file qsvgstyle_p.h.
Referenced by apply(), and parseFont().
|
static |
Definition at line 301 of file qsvgstyle_p.h.
Referenced by apply(), and parseFont().