/*
5 * Authors: see git history
7 * Copyright (C) 2018 Authors
8 * Released under GNU GPL v2+, read the file
'COPYING' for more information.
20#include <glibmm/ustring.h>
35 int tag()
const override {
return tag_of<
decltype(*this)>; }
constexpr int tag_of
Convenience function to retrieve the tag (class id) of a given type.
Interface for refcounted XML nodes.
Typed SVG document implementation.
SPObject is an abstract base class of all of the document nodes at the SVG document level.
Inkscape::XML::Node * repr
Glib::ustring path_string
void modified(guint flags) override
SPStop * getNextStop()
Virtual write: write object attributes to repr.
static void setColorRepr(Inkscape::XML::Node *node, Inkscape::Colors::Color const &color)
Set the color and opacity directly into the given xml repr.
void setColor(Inkscape::Colors::Color const &color)
Sets the stop color and stop opacity in the style attribute.
Inkscape::XML::Node * write(Inkscape::XML::Document *doc, Inkscape::XML::Node *repr, unsigned int flags) override
Virtual set: set attribute to value.
void build(SPDocument *doc, Inkscape::XML::Node *repr) override
Inkscape::Colors::Color getColor() const
Inkscape::XML::Node * node
A set of useful color modifying functions which do not fit as generic methods on the color class itse...
static cairo_user_data_key_t key
Interface for XML documents.