Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
sp-desc.h
Go to the documentation of this file.
1
// SPDX-License-Identifier: GPL-2.0-or-later
2
#ifndef SEEN_SP_DESC_H
3
#define SEEN_SP_DESC_H
4
5
/*
6
* SVG <desc> implementation
7
*
8
* Authors:
9
* Jeff Schiller <codedread@gmail.com>
10
*
11
* Copyright (C) 2008 Jeff Schiller
12
*
13
* Released under GNU GPL v2+, read the file 'COPYING' for more information.
14
*/
15
16
#include "
sp-object.h
"
17
18
class
SPDesc
final :
public
SPObject
{
19
public
:
20
SPDesc
();
21
~SPDesc
()
override
;
22
int
tag
()
const override
{
return
tag_of
<
decltype
(*this)>; }
23
24
protected
:
25
Inkscape::XML::Node
*
write
(
Inkscape::XML::Document
* doc,
Inkscape::XML::Node
*
repr
,
unsigned
int
flags)
override
;
26
};
27
28
#endif
tag_of
constexpr int tag_of
Convenience function to retrieve the tag (class id) of a given type.
Definition
cast.h:26
Inkscape::XML::Node
Interface for refcounted XML nodes.
Definition
node.h:80
SPDesc
Definition
sp-desc.h:18
SPDesc::~SPDesc
~SPDesc() override
SPDesc::tag
int tag() const override
Definition
sp-desc.h:22
SPDesc::SPDesc
SPDesc()
Definition
sp-desc.cpp:17
SPDesc::write
Inkscape::XML::Node * write(Inkscape::XML::Document *doc, Inkscape::XML::Node *repr, unsigned int flags) override
Writes it's settings to an incoming repr object, if any.
Definition
sp-desc.cpp:25
SPObject
SPObject is an abstract base class of all of the document nodes at the SVG document level.
Definition
sp-object.h:160
SPObject::repr
Inkscape::XML::Node * repr
Definition
sp-object.h:193
sp-object.h
Inkscape::XML::Document
Interface for XML documents.
Definition
document.h:43
src
object
sp-desc.h
Generated on Sun Jul 6 2025 04:02:01 for Inkscape by
1.9.8