Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
sp-mesh-row.h
Go to the documentation of this file.
1// SPDX-License-Identifier: GPL-2.0-or-later
2#ifndef SEEN_SP_MESHROW_H
3#define SEEN_SP_MESHROW_H
4
8/*
9 * Authors: Tavmjong Bah
10 * Copyright (C) 2012 Tavmjong Bah
11 *
12 * Released under GNU GPL v2+, read the file 'COPYING' for more information.
13 */
14
15#include "sp-object.h"
16
18class SPMeshrow final : public SPObject {
19public:
20 SPMeshrow();
21 ~SPMeshrow() override;
22 int tag() const override { return tag_of<decltype(*this)>; }
23
26
27protected:
28 void build(SPDocument* doc, Inkscape::XML::Node* repr) override;
29 void set(SPAttr key, const char* value) override;
30 void modified(unsigned int flags) override;
31 Inkscape::XML::Node* write(Inkscape::XML::Document* doc, Inkscape::XML::Node* repr, unsigned int flags) override;
32};
33
34#endif /* !SEEN_SP_MESHROW_H */
35
36/*
37 Local Variables:
38 mode:c++
39 c-file-style:"stroustrup"
40 c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
41 indent-tabs-mode:nil
42 fill-column:99
43 End:
44*/
45// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :
SPAttr
Definition attributes.h:27
constexpr int tag_of
Convenience function to retrieve the tag (class id) of a given type.
Definition cast.h:26
Interface for refcounted XML nodes.
Definition node.h:80
Typed SVG document implementation.
Definition document.h:101
Gradient Meshrow.
Definition sp-mesh-row.h:18
Inkscape::XML::Node * write(Inkscape::XML::Document *doc, Inkscape::XML::Node *repr, unsigned int flags) override
Virtual set: set attribute to value.
~SPMeshrow() override
SPMeshrow * getPrevMeshrow()
SPMeshrow * getNextMeshrow()
void build(SPDocument *doc, Inkscape::XML::Node *repr) override
int tag() const override
Definition sp-mesh-row.h:22
void modified(unsigned int flags) override
modified
SPObject is an abstract base class of all of the document nodes at the SVG document level.
Definition sp-object.h:160
Inkscape::XML::Node * repr
Definition sp-object.h:193
static cairo_user_data_key_t key
Interface for XML documents.
Definition document.h:43