Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
sp-glyph.h
Go to the documentation of this file.
1// SPDX-License-Identifier: GPL-2.0-or-later
11#ifndef SEEN_SP_GLYPH_H
12#define SEEN_SP_GLYPH_H
13
14#include "sp-object.h"
15
22
28
29/*
30 * SVG <glyph> element
31 */
32
33class SPGlyph final : public SPObject {
34public:
35 SPGlyph();
36 ~SPGlyph() override = default;
37 int tag() const override { return tag_of<decltype(*this)>; }
38
39 // FIXME encapsulation
40 Glib::ustring unicode;
41 Glib::ustring glyph_name;
42 char* d;
45 char* lang;
49 double vert_adv_y;
50
51protected:
52 void build(SPDocument* doc, Inkscape::XML::Node* repr) override;
53 void release() override;
54 void set(SPAttr key, const char* value) override;
55 void update(SPCtx* ctx, unsigned int flags) override;
56 Inkscape::XML::Node* write(Inkscape::XML::Document* doc, Inkscape::XML::Node* repr, unsigned int flags) override;
57};
58
59#endif // !SEEN_SP_GLYPH_H
60
61/*
62 Local Variables:
63 mode:c++
64 c-file-style:"stroustrup"
65 c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
66 indent-tabs-mode:nil
67 fill-column:99
68 End:
69*/
70// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8 :
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
void release() override
Definition sp-glyph.cpp:56
Glib::ustring glyph_name
Definition sp-glyph.h:41
void build(SPDocument *doc, Inkscape::XML::Node *repr) override
Definition sp-glyph.cpp:40
Glib::ustring unicode
Definition sp-glyph.h:40
double vert_origin_x
Definition sp-glyph.h:47
Inkscape::XML::Node * write(Inkscape::XML::Document *doc, Inkscape::XML::Node *repr, unsigned int flags) override
Definition sp-glyph.cpp:246
int tag() const override
Definition sp-glyph.h:37
char * d
Definition sp-glyph.h:42
double horiz_adv_x
Definition sp-glyph.h:46
double vert_adv_y
Definition sp-glyph.h:49
char * lang
Definition sp-glyph.h:45
~SPGlyph() override=default
void update(SPCtx *ctx, unsigned int flags) override
Receives update notifications.
Definition sp-glyph.cpp:225
glyphArabicForm arabic_form
Definition sp-glyph.h:44
double vert_origin_y
Definition sp-glyph.h:48
glyphOrientation orientation
Definition sp-glyph.h:43
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
glyphArabicForm
Definition sp-glyph.h:16
@ GLYPH_ARABIC_FORM_ISOLATED
Definition sp-glyph.h:20
@ GLYPH_ARABIC_FORM_INITIAL
Definition sp-glyph.h:17
@ GLYPH_ARABIC_FORM_TERMINAL
Definition sp-glyph.h:19
@ GLYPH_ARABIC_FORM_MEDIAL
Definition sp-glyph.h:18
glyphOrientation
Definition sp-glyph.h:23
@ GLYPH_ORIENTATION_VERTICAL
Definition sp-glyph.h:25
@ GLYPH_ORIENTATION_BOTH
Definition sp-glyph.h:26
@ GLYPH_ORIENTATION_HORIZONTAL
Definition sp-glyph.h:24
Interface for XML documents.
Definition document.h:43
Unused.
Definition sp-object.h:94