1 #ifndef __SP_SYMBOL_H__
2 #define __SP_SYMBOL_H__
4 /*
5 * SVG <symbol> implementation
6 *
7 * Authors:
8 * Lauris Kaplinski <lauris@kaplinski.com>
9 *
10 * Copyright (C) 1999-2003 Lauris Kaplinski
11 *
12 * Released under GNU GPL, read the file 'COPYING' for more information
13 */
15 /*
16 * This is quite similar in logic to <svg>
17 * Maybe we should merge them somehow (Lauris)
18 */
20 #define SP_TYPE_SYMBOL (sp_symbol_get_type ())
21 #define SP_SYMBOL(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), SP_TYPE_SYMBOL, SPSymbol))
22 #define SP_IS_SYMBOL(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), SP_TYPE_SYMBOL))
24 class SPSymbol;
25 class SPSymbolClass;
27 #include <libnr/nr-matrix.h>
28 #include <2geom/matrix.h>
29 #include <libnr/nr-rect.h>
30 #include "svg/svg-length.h"
31 #include "enums.h"
32 #include "sp-item-group.h"
34 struct SPSymbol : public SPGroup {
35 /* viewBox; */
36 unsigned int viewBox_set : 1;
37 NRRect viewBox;
39 /* preserveAspectRatio */
40 unsigned int aspect_set : 1;
41 unsigned int aspect_align : 4;
42 unsigned int aspect_clip : 1;
44 /* Child to parent additional transform */
45 Geom::Matrix c2p;
46 };
48 struct SPSymbolClass {
49 SPGroupClass parent_class;
50 };
52 GType sp_symbol_get_type (void);
54 #endif