/*
5 * Authors: see git history
7 * Copyright (C) 2018 Authors
8 * Released under GNU GPL v2+, read the file
'COPYING' for more information.
10#ifndef SP_LINEAR_GRADIENT_H
11#define SP_LINEAR_GRADIENT_H
28 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.
Infinite line on a plane.
Interface for refcounted XML nodes.
Typed SVG document implementation.
std::unique_ptr< Inkscape::DrawingPaintServer > create_drawing_paintserver() override
Inkscape::XML::Node * write(Inkscape::XML::Document *xml_doc, Inkscape::XML::Node *repr, unsigned int flags) override
Callback: write attributes to associated repr.
void update(SPCtx *ctx, guint flags) override
Geom::Line getLine() const
~SPLinearGradient() override
void build(SPDocument *document, Inkscape::XML::Node *repr) override
Virtual build: set gradient attributes from its associated repr.
Inkscape::XML::Node * repr
static cairo_user_data_key_t key
Interface for XML documents.