KDEGames
kgamesvgdocument.h
46 * To find a node with a specific value in its id attribute, for example where id="playerOneGamepiece":
51 * QDomNode playerOneGamepiece = svgDom.elementByUniqueAttributeValue("id", "playerOneGamepiece");
54 * Most methods operate on the last node found by @c elementById() or @c elementByUniqueAttributeValue().
63 * svgDom.setStyleProperty("fill", "#ffffff"); // INCORRECT: playerTwoGamepiece is the last node, not playerOneGamepiece
75 * @warning Be careful when using the KGameSvgDocument::ApplyToCurrentMatrix flag. It multiplies the matrices,
76 * so if you repeatedly apply the same matrix to a node, you have a polynomial series @c x^2, and you will
172 QDomNode elementByUniqueAttributeValue(const QString &attributeName, const QString &attributeValue);
338 * @brief Builds a new svg document and returns a QByteArray suitable for passing to QSvgRenderer::load().
436 * that may be human-edited later, for consistency. There is a performance hit, since hashes store
440 * @param options Apply the hash so the properties are in the same order as Inkscape writes them.
444 void setStyleProperties(const QHash<QString, QString> &_styleProperties, const StylePropertySortOptions &options = Unsorted);
QFlags< MatrixOption > MatrixOptions
Q_DECLARE_FLAGS macro confuses doxygen, so create typedef's manually.
Definition kgamesvgdocument.h:137
MatrixOption
Options for applying (multiplying) or replacing the current matrix.
Definition kgamesvgdocument.h:126
QFlags< StylePropertySortOption > StylePropertySortOptions
Q_DECLARE_FLAGS macro confuses doxygen, so create typedef's manually.
Definition kgamesvgdocument.h:153
StylePropertySortOption
Options for sorting style properties when building a style attribute.
Definition kgamesvgdocument.h:142
QDomElement elementById(const QString &elementId)
QDomDocument & operator=(const QDomDocument &x)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:59:04 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:59:04 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.