56 #include "QtGui/qpainter.h" 60 #include "QtGui/qpen.h" 61 #include "QtGui/qbrush.h" 62 #include "QtGui/qmatrix.h" 63 #include "QtGui/qcolor.h" 64 #include "QtGui/qfont.h" 115 inline operator T*()
const {
return t; }
241 void setFillOpacity(
qreal opacity);
243 void setBrush(
QBrush brush);
252 return m_fillOpacity;
277 m_gradientResolved = resolved;
282 return m_gradientResolved;
315 return m_viewportFill;
328 static const int LIGHTER = -1;
329 static const int BOLDER = 1;
341 m_qfont.setPointSizeF(size);
347 m_textAnchor = anchor;
353 m_qfont.setFamily(family);
358 m_qfont.setStyle(fontStyle);
364 m_qfont.setCapitalization(fontVariant);
368 static int SVGToQtWeight(
int weight);
419 m_stroke.setBrush(brush);
435 m_strokeDashArraySet = 1;
440 m_strokeDashOffset = offset;
441 m_strokeDashOffsetSet = 1;
446 m_stroke.setCapStyle(cap);
447 m_strokeLineCapSet = 1;
452 m_stroke.setJoinStyle(join);
453 m_strokeLineJoinSet = 1;
458 m_stroke.setMiterLimit(limit);
459 m_strokeMiterLimitSet = 1;
464 m_strokeOpacity = opacity;
465 m_strokeOpacitySet = 1;
470 m_stroke.setWidthF(width);
471 m_strokeWidthSet = 1;
477 return m_stroke.widthF();
482 m_vectorEffect = nonScalingStroke;
483 m_vectorEffectSet = 1;
503 m_gradientResolved = resolved;
508 return m_gradientResolved;
585 void setMatrix(
const QMatrix &matrix);
598 return m_gradientStopsSet;
603 m_gradientStopsSet =
set;
655 void setFreeze(
bool freeze);
656 void setRepeatCount(
qreal repeatCount);
667 if (totalTimeElapsed < m_from)
669 if (m_freeze || m_repeatCount < 0)
671 if (m_totalRunningTime == 0)
673 qreal animationFrame = (totalTimeElapsed - m_from) / m_totalRunningTime;
674 if (animationFrame > m_repeatCount)
681 return m_transformApplied;
687 m_transformApplied =
false;
691 void resolveMatrix(
const QSvgNode *node);
713 void setFreeze(
bool freeze);
714 void setRepeatCount(
qreal repeatCount);
826 #endif // QSVGSTYLE_P_H
The QPainter class performs low-level painting on widgets and other paint devices.
The QColor class provides colors based on RGB, HSV or CMYK values.
bool isGradientResolved() const
void setTextAnchor(Qt::Alignment anchor)
void setLineJoin(Qt::PenJoinStyle join)
#define QT_END_NAMESPACE
This macro expands to.
void setWeight(int weight)
QSvgRefCounter< QSvgGradientStyle > gradient
CompositionMode
Defines the modes supported for digital image compositing.
void setOpacity(qreal opacity)
The QMatrix class specifies 2D transformations of a coordinate system.
void setGradientId(const QString &Id)
QSvgRefCounter< QSvgViewportFillStyle > viewportFill
QSvgFillStyleProperty * style() const
QString gradientId() const
uint m_strokeDashArraySet
QGradient * qgradient() const
void setStyle(QFont::Style fontStyle)
QSvgRefCounter & operator=(T *_t)
QSvgFont * svgFont() const
const QPainter::CompositionMode & compOp() const
void setVectorEffect(bool nonScalingStroke)
The QString class provides a Unicode character string.
QList< QSvgRefCounter< QSvgAnimateTransform > > animateTransforms
Capitalization
Rendering option for text this font applies to.
Qt::Alignment m_textAnchor
The QPen class defines how a QPainter should draw lines and outlines of shapes.
QSvgFillStyleProperty * style() const
qreal m_oldStrokeDashOffset
Qt::Alignment m_oldTextAnchor
QSvgRefCounter< QSvgOpacityStyle > opacity
#define QT_BEGIN_NAMESPACE
This macro expands to.
QSvgRefCounter< QSvgCompOpStyle > compop
uint m_strokeDashOffsetSet
void setWidth(qreal width)
const QColor & qcolor() const
QSvgRefCounter< QSvgTransformStyle > transform
void setGradientResolved(bool resolved)
QSvgRefCounter(const QSvgRefCounter &other)
void setGradientStopsSet(bool set)
QSvgFillStyleProperty * m_style
QSvgRefCounter< QSvgQualityStyle > quality
virtual ~QSvgRefCounted()
QSvgFillStyleProperty * m_style
QSvgRefCounter< QSvgFillStyle > fill
const QFont & qfont() const
void setMiterLimit(qreal limit)
Style
This enum describes the different styles of glyphs that are used to display text. ...
void setVariant(QFont::Capitalization fontVariant)
QSvgRefCounter< QSvgAnimateColor > animateColor
void setDashOffset(qreal offset)
QString gradientId() const
The QBrush class defines the fill pattern of shapes drawn by QPainter.
void setFamily(const QString &family)
QSvgTinyDocument * doc() const
const QBrush & qbrush() const
QSvgRefCounter< QSvgStrokeStyle > stroke
QSvgRefCounter< QSvgFontStyle > font
The QFont class specifies a font used for drawing text.
The QGradient class is used in combination with QBrush to specify gradient fills. ...
QBrush brush(QPainter *, QSvgExtraStates &)
QSvgRefCounter< QSvgSolidColorStyle > solidColor
void setLineCap(Qt::PenCapStyle cap)
void setStyle(QSvgFillStyleProperty *style)
const QBrush & qbrush() const
void setStroke(QBrush brush)
bool gradientStopsSet() const
uint m_strokeMiterLimitSet
bool isGradientResolved() const
Qt::FillRule fillRule() const
qreal fillOpacity() const
void setGradientId(const QString &Id)
Qt::FillRule m_oldFillRule
QPainter::CompositionMode m_oldMode
void setGradientResolved(bool resolved)
QPainter::CompositionMode m_mode