Code

a bit more boilerplate code for SVGFonts
[inkscape.git] / src / sp-missing-glyph.h
1 #ifndef __SP_MISSING_GLYPH_H__
2 #define __SP_MISSING_GLYPH_H__
4 /*
5  * SVG <missing-glyph> element implementation
6  *
7  * Authors:
8  *    Felipe C. da S. Sanches <felipe.sanches@gmail.com>
9  *
10  * Copyright (C) 2008 Felipe C. da S. Sanches
11  *
12  * Released under GNU GPL, read the file 'COPYING' for more information
13  */
15 #include "sp-object.h"
17 #define SP_TYPE_MISSING_GLYPH (sp_missing_glyph_get_type ())
18 #define SP_MISSING_GLYPH(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SP_TYPE_MISSING_GLYPH, SPMissingGlyph))
19 #define SP_MISSING_GLYPH_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SP_TYPE_MISSING_GLYPH, SPMissingGlyphClass))
20 #define SP_IS_MISSING_GLYPH(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SP_TYPE_MISSING_GLYPH))
21 #define SP_IS_MISSING_GLYPH_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SP_TYPE_MISSING_GLYPH))
23 struct SPMissingGlyph : public SPObject {
24     char* d;
25     double horiz_adv_x;
26     double vert_origin_x;
27     double vert_origin_y;
28     double vert_adv_y;
29 };
31 struct SPMissingGlyphClass {
32         SPObjectClass parent_class;
33 };
35 GType sp_missing_glyph_get_type (void);
37 #endif //#ifndef __SP_MISSING_GLYPH_H__