55 m_displayMode(BlockMode)
68 switch (prop->
type()) {
104 static_cast<QSvgAnimateTransform*>(prop));
113 qDebug(
"QSvgNode: Trying to append unknown property!");
201 return QRectF(0, 0, 0, 0);
220 parentApplyStack.
push(parent);
221 parent = parent->
parent();
224 for (
int i = parentApplyStack.
size() - 1; i >= 0; --i)
The QPainter class performs low-level painting on widgets and other paint devices.
virtual Type type() const =0
#define QT_END_NAMESPACE
This macro expands to.
void appendStyleProperty(QSvgStyleProperty *prop, const QString &id)
QSvgRefCounter< QSvgGradientStyle > gradient
const QStringList & requiredFormats() const
void apply(QPainter *p, const QSvgNode *node, QSvgExtraStates &states)
void setRequiredExtensions(const QStringList &lst)
const QStringList & requiredExtensions() const
QSvgRefCounter< QSvgViewportFillStyle > viewportFill
Qt::PenStyle style() const
Returns the pen style.
QRectF transformedBounds() const
void addNamedStyle(const QString &id, QSvgFillStyleProperty *style)
bool startsWith(const QString &s, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
Returns true if the string starts with s; otherwise returns false.
The QStack class is a template class that provides a stack.
QStringList m_requiredFormats
void setXmlClass(const QString &str)
DisplayMode m_displayMode
void applyStyle(QPainter *p, QSvgExtraStates &states) const
QSvgNode * parent() const
The QString class provides a Unicode character string.
QSvgNode(QSvgNode *parent=0)
QStringList m_requiredLanguages
QList< QSvgRefCounter< QSvgAnimateTransform > > animateTransforms
The QPen class defines how a QPainter should draw lines and outlines of shapes.
void revert(QPainter *p, QSvgExtraStates &states)
void setRequiredLanguages(const QStringList &lst)
bool isEmpty() const
Returns true if the list contains no items; otherwise returns false.
const QStringList & requiredFeatures() const
virtual QRectF bounds(QPainter *p, QSvgExtraStates &states) const
Q_CORE_EXPORT void qDebug(const char *,...)
void append(const T &t)
Inserts value at the end of the list.
QSvgRefCounter< QSvgOpacityStyle > opacity
const QPen & pen() const
Returns the painter's current pen.
#define QT_BEGIN_NAMESPACE
This macro expands to.
QSvgRefCounter< QSvgCompOpStyle > compop
The QRectF class defines a rectangle in the plane using floating point precision. ...
static bool isEmpty(const char *str)
QStringList m_requiredFeatures
bool isCosmetic() const
Returns true if the pen is cosmetic; otherwise returns false.
QSvgRefCounter< QSvgTransformStyle > transform
QSvgFillStyleProperty * namedStyle(const QString &id) const
DisplayMode displayMode() const
The QStringList class provides a list of strings.
void setRequiredFormats(const QStringList &lst)
void setRequiredFeatures(const QStringList &lst)
The QImage class provides a hardware-independent image representation that allows direct access to th...
QSvgRefCounter< QSvgQualityStyle > quality
QBrush brush() const
Returns the brush used to fill strokes generated with this pen.
Qt::BrushStyle style() const
Returns the brush style.
static qreal strokeWidth(QPainter *p)
QSvgRefCounter< QSvgFillStyle > fill
void push(const T &t)
Adds element t to the top of the stack.
QSvgRefCounter< QSvgAnimateColor > animateColor
T & first()
Returns a reference to the first item in the list.
const QStringList & requiredFonts() const
QSvgRefCounter< QSvgStrokeStyle > stroke
QSvgRefCounter< QSvgFontStyle > font
QSvgStyleProperty * styleProperty(QSvgStyleProperty::Type type) const
virtual Type type() const =0
QStringList m_requiredExtensions
void setDisplayMode(DisplayMode display)
void setPen(const QColor &color)
Sets the painter's pen to have style Qt::SolidLine, width 0 and the specified color.
qreal widthF() const
Returns the pen width with floating point precision.
const QStringList & requiredLanguages() const
QSvgRefCounter< QSvgSolidColorStyle > solidColor
void setWorldTransform(const QTransform &matrix, bool combine=false)
Sets the world transformation matrix.
QStringList m_requiredFonts
void setVisible(bool visible)
void setNodeId(const QString &i)
QString & remove(int i, int len)
Removes n characters from the string, starting at the given position index, and returns a reference t...
QSvgTinyDocument * document() const
bool isEmpty() const
Returns true if the rectangle is empty, otherwise returns false.
void setRequiredFonts(const QStringList &lst)
void revertStyle(QPainter *p, QSvgExtraStates &states) const
int size() const
Returns the number of items in the vector.
The QLatin1Char class provides an 8-bit ASCII/Latin-1 character.
void setMiterLimit(qreal limit)
Sets the miter limit of this pen to the given limit.