mathematical 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +52 -10
- data/Rakefile +42 -3
- data/lib/mathematical.rb +5 -4
- data/lib/mathematical/mathematical.bundle +0 -0
- data/lib/mathematical/render.rb +6 -5
- data/lib/mathematical/version.rb +1 -1
- data/mathematical.gemspec +5 -5
- metadata +14 -296
- data/.gitignore +0 -24
- data/.gitmodules +0 -0
- data/Gemfile +0 -4
- data/ext/mathematical/README.itex2MML.md +0 -11
- data/ext/mathematical/README.lasem.md +0 -11
- data/ext/mathematical/extconf.rb +0 -51
- data/ext/mathematical/itex2MML.h +0 -63
- data/ext/mathematical/lasemrender.c +0 -257
- data/ext/mathematical/lex.yy.c +0 -6548
- data/ext/mathematical/lsm.c +0 -30
- data/ext/mathematical/lsm.h +0 -36
- data/ext/mathematical/lsmattributes.c +0 -279
- data/ext/mathematical/lsmattributes.h +0 -75
- data/ext/mathematical/lsmcairo.c +0 -598
- data/ext/mathematical/lsmcairo.h +0 -51
- data/ext/mathematical/lsmdebug.c +0 -179
- data/ext/mathematical/lsmdebug.h +0 -76
- data/ext/mathematical/lsmdom.h +0 -43
- data/ext/mathematical/lsmdomcharacterdata.c +0 -114
- data/ext/mathematical/lsmdomcharacterdata.h +0 -59
- data/ext/mathematical/lsmdomdocument.c +0 -292
- data/ext/mathematical/lsmdomdocument.h +0 -82
- data/ext/mathematical/lsmdomdocumentfragment.c +0 -81
- data/ext/mathematical/lsmdomdocumentfragment.h +0 -55
- data/ext/mathematical/lsmdomelement.c +0 -148
- data/ext/mathematical/lsmdomelement.h +0 -62
- data/ext/mathematical/lsmdomentities.c +0 -2155
- data/ext/mathematical/lsmdomentities.h +0 -35
- data/ext/mathematical/lsmdomenumtypes.c +0 -99
- data/ext/mathematical/lsmdomenumtypes.c.template +0 -39
- data/ext/mathematical/lsmdomenumtypes.h +0 -26
- data/ext/mathematical/lsmdomenumtypes.h.template +0 -26
- data/ext/mathematical/lsmdomimplementation.c +0 -82
- data/ext/mathematical/lsmdomimplementation.h +0 -41
- data/ext/mathematical/lsmdomnamednodemap.c +0 -118
- data/ext/mathematical/lsmdomnamednodemap.h +0 -64
- data/ext/mathematical/lsmdomnode.c +0 -725
- data/ext/mathematical/lsmdomnode.h +0 -120
- data/ext/mathematical/lsmdomnodelist.c +0 -70
- data/ext/mathematical/lsmdomnodelist.h +0 -58
- data/ext/mathematical/lsmdomparser.c +0 -461
- data/ext/mathematical/lsmdomparser.h +0 -54
- data/ext/mathematical/lsmdomtext.c +0 -82
- data/ext/mathematical/lsmdomtext.h +0 -55
- data/ext/mathematical/lsmdomtypes.h +0 -44
- data/ext/mathematical/lsmdomview.c +0 -422
- data/ext/mathematical/lsmdomview.h +0 -94
- data/ext/mathematical/lsmmathml.h +0 -66
- data/ext/mathematical/lsmmathmlactionelement.c +0 -93
- data/ext/mathematical/lsmmathmlactionelement.h +0 -57
- data/ext/mathematical/lsmmathmlaligngroupelement.c +0 -102
- data/ext/mathematical/lsmmathmlaligngroupelement.h +0 -56
- data/ext/mathematical/lsmmathmlalignmarkelement.c +0 -102
- data/ext/mathematical/lsmmathmlalignmarkelement.h +0 -56
- data/ext/mathematical/lsmmathmlattributes.c +0 -197
- data/ext/mathematical/lsmmathmlattributes.h +0 -126
- data/ext/mathematical/lsmmathmldocument.c +0 -306
- data/ext/mathematical/lsmmathmldocument.h +0 -61
- data/ext/mathematical/lsmmathmlelement.c +0 -491
- data/ext/mathematical/lsmmathmlelement.h +0 -107
- data/ext/mathematical/lsmmathmlenums.c +0 -429
- data/ext/mathematical/lsmmathmlenums.h +0 -182
- data/ext/mathematical/lsmmathmlenumtypes.c +0 -666
- data/ext/mathematical/lsmmathmlenumtypes.c.template +0 -39
- data/ext/mathematical/lsmmathmlenumtypes.h +0 -90
- data/ext/mathematical/lsmmathmlenumtypes.h.template +0 -26
- data/ext/mathematical/lsmmathmlerrorelement.c +0 -58
- data/ext/mathematical/lsmmathmlerrorelement.h +0 -56
- data/ext/mathematical/lsmmathmlfencedelement.c +0 -178
- data/ext/mathematical/lsmmathmlfencedelement.h +0 -65
- data/ext/mathematical/lsmmathmlfractionelement.c +0 -253
- data/ext/mathematical/lsmmathmlfractionelement.h +0 -62
- data/ext/mathematical/lsmmathmlglyphtableams.c +0 -597
- data/ext/mathematical/lsmmathmlglyphtableams.h +0 -45
- data/ext/mathematical/lsmmathmlitexelement.c +0 -187
- data/ext/mathematical/lsmmathmlitexelement.h +0 -60
- data/ext/mathematical/lsmmathmllayoututils.c +0 -191
- data/ext/mathematical/lsmmathmllayoututils.h +0 -58
- data/ext/mathematical/lsmmathmlmathelement.c +0 -204
- data/ext/mathematical/lsmmathmlmathelement.h +0 -81
- data/ext/mathematical/lsmmathmloperatordictionary.c +0 -3332
- data/ext/mathematical/lsmmathmloperatordictionary.h +0 -54
- data/ext/mathematical/lsmmathmloperatorelement.c +0 -307
- data/ext/mathematical/lsmmathmloperatorelement.h +0 -73
- data/ext/mathematical/lsmmathmlpaddedelement.c +0 -58
- data/ext/mathematical/lsmmathmlpaddedelement.h +0 -56
- data/ext/mathematical/lsmmathmlphantomelement.c +0 -71
- data/ext/mathematical/lsmmathmlphantomelement.h +0 -56
- data/ext/mathematical/lsmmathmlpresentationcontainer.c +0 -43
- data/ext/mathematical/lsmmathmlpresentationcontainer.h +0 -54
- data/ext/mathematical/lsmmathmlpresentationtoken.c +0 -303
- data/ext/mathematical/lsmmathmlpresentationtoken.h +0 -83
- data/ext/mathematical/lsmmathmlradicalelement.c +0 -266
- data/ext/mathematical/lsmmathmlradicalelement.h +0 -71
- data/ext/mathematical/lsmmathmlrowelement.c +0 -58
- data/ext/mathematical/lsmmathmlrowelement.h +0 -56
- data/ext/mathematical/lsmmathmlscriptelement.c +0 -282
- data/ext/mathematical/lsmmathmlscriptelement.h +0 -78
- data/ext/mathematical/lsmmathmlsemanticselement.c +0 -82
- data/ext/mathematical/lsmmathmlsemanticselement.h +0 -56
- data/ext/mathematical/lsmmathmlspaceelement.c +0 -142
- data/ext/mathematical/lsmmathmlspaceelement.h +0 -60
- data/ext/mathematical/lsmmathmlstringelement.c +0 -123
- data/ext/mathematical/lsmmathmlstringelement.h +0 -58
- data/ext/mathematical/lsmmathmlstyle.c +0 -130
- data/ext/mathematical/lsmmathmlstyle.h +0 -81
- data/ext/mathematical/lsmmathmlstyleelement.c +0 -307
- data/ext/mathematical/lsmmathmlstyleelement.h +0 -87
- data/ext/mathematical/lsmmathmltablecellelement.c +0 -122
- data/ext/mathematical/lsmmathmltablecellelement.h +0 -62
- data/ext/mathematical/lsmmathmltableelement.c +0 -545
- data/ext/mathematical/lsmmathmltableelement.h +0 -78
- data/ext/mathematical/lsmmathmltablerowelement.c +0 -120
- data/ext/mathematical/lsmmathmltablerowelement.h +0 -64
- data/ext/mathematical/lsmmathmltraits.c +0 -819
- data/ext/mathematical/lsmmathmltraits.h +0 -119
- data/ext/mathematical/lsmmathmltypes.h +0 -66
- data/ext/mathematical/lsmmathmlunderoverelement.c +0 -485
- data/ext/mathematical/lsmmathmlunderoverelement.h +0 -82
- data/ext/mathematical/lsmmathmlutils.c +0 -170
- data/ext/mathematical/lsmmathmlutils.h +0 -50
- data/ext/mathematical/lsmmathmlview.c +0 -1048
- data/ext/mathematical/lsmmathmlview.h +0 -164
- data/ext/mathematical/lsmproperties.c +0 -418
- data/ext/mathematical/lsmproperties.h +0 -85
- data/ext/mathematical/lsmstr.c +0 -231
- data/ext/mathematical/lsmstr.h +0 -114
- data/ext/mathematical/lsmsvg.h +0 -67
- data/ext/mathematical/lsmsvgaelement.c +0 -73
- data/ext/mathematical/lsmsvgaelement.h +0 -55
- data/ext/mathematical/lsmsvgattributes.h +0 -113
- data/ext/mathematical/lsmsvgcircleelement.c +0 -153
- data/ext/mathematical/lsmsvgcircleelement.h +0 -59
- data/ext/mathematical/lsmsvgclippathelement.c +0 -134
- data/ext/mathematical/lsmsvgclippathelement.h +0 -59
- data/ext/mathematical/lsmsvgcolors.c +0 -212
- data/ext/mathematical/lsmsvgcolors.h +0 -39
- data/ext/mathematical/lsmsvgdefselement.c +0 -74
- data/ext/mathematical/lsmsvgdefselement.h +0 -55
- data/ext/mathematical/lsmsvgdocument.c +0 -230
- data/ext/mathematical/lsmsvgdocument.h +0 -58
- data/ext/mathematical/lsmsvgelement.c +0 -367
- data/ext/mathematical/lsmsvgelement.h +0 -81
- data/ext/mathematical/lsmsvgellipseelement.c +0 -158
- data/ext/mathematical/lsmsvgellipseelement.h +0 -60
- data/ext/mathematical/lsmsvgenums.c +0 -544
- data/ext/mathematical/lsmsvgenums.h +0 -357
- data/ext/mathematical/lsmsvgenumtypes.c +0 -1083
- data/ext/mathematical/lsmsvgenumtypes.c.template +0 -39
- data/ext/mathematical/lsmsvgenumtypes.h +0 -111
- data/ext/mathematical/lsmsvgenumtypes.h.template +0 -26
- data/ext/mathematical/lsmsvgfilterblend.c +0 -105
- data/ext/mathematical/lsmsvgfilterblend.h +0 -58
- data/ext/mathematical/lsmsvgfiltercomposite.c +0 -109
- data/ext/mathematical/lsmsvgfiltercomposite.h +0 -58
- data/ext/mathematical/lsmsvgfilterelement.c +0 -266
- data/ext/mathematical/lsmsvgfilterelement.h +0 -66
- data/ext/mathematical/lsmsvgfilterflood.c +0 -86
- data/ext/mathematical/lsmsvgfilterflood.h +0 -55
- data/ext/mathematical/lsmsvgfiltergaussianblur.c +0 -114
- data/ext/mathematical/lsmsvgfiltergaussianblur.h +0 -57
- data/ext/mathematical/lsmsvgfiltermerge.c +0 -98
- data/ext/mathematical/lsmsvgfiltermerge.h +0 -55
- data/ext/mathematical/lsmsvgfiltermergenode.c +0 -87
- data/ext/mathematical/lsmsvgfiltermergenode.h +0 -57
- data/ext/mathematical/lsmsvgfilteroffset.c +0 -112
- data/ext/mathematical/lsmsvgfilteroffset.h +0 -58
- data/ext/mathematical/lsmsvgfilterprimitive.c +0 -168
- data/ext/mathematical/lsmsvgfilterprimitive.h +0 -66
- data/ext/mathematical/lsmsvgfilterspecularlighting.c +0 -127
- data/ext/mathematical/lsmsvgfilterspecularlighting.h +0 -60
- data/ext/mathematical/lsmsvgfiltersurface.c +0 -455
- data/ext/mathematical/lsmsvgfiltersurface.h +0 -66
- data/ext/mathematical/lsmsvgfiltertile.c +0 -102
- data/ext/mathematical/lsmsvgfiltertile.h +0 -57
- data/ext/mathematical/lsmsvggelement.c +0 -73
- data/ext/mathematical/lsmsvggelement.h +0 -55
- data/ext/mathematical/lsmsvggradientelement.c +0 -151
- data/ext/mathematical/lsmsvggradientelement.h +0 -68
- data/ext/mathematical/lsmsvgimageelement.c +0 -261
- data/ext/mathematical/lsmsvgimageelement.h +0 -67
- data/ext/mathematical/lsmsvglength.c +0 -93
- data/ext/mathematical/lsmsvglength.h +0 -59
- data/ext/mathematical/lsmsvglineargradientelement.c +0 -271
- data/ext/mathematical/lsmsvglineargradientelement.h +0 -60
- data/ext/mathematical/lsmsvglineelement.c +0 -153
- data/ext/mathematical/lsmsvglineelement.h +0 -60
- data/ext/mathematical/lsmsvgmarkerelement.c +0 -266
- data/ext/mathematical/lsmsvgmarkerelement.h +0 -74
- data/ext/mathematical/lsmsvgmaskelement.c +0 -232
- data/ext/mathematical/lsmsvgmaskelement.h +0 -64
- data/ext/mathematical/lsmsvgmatrix.c +0 -205
- data/ext/mathematical/lsmsvgmatrix.h +0 -59
- data/ext/mathematical/lsmsvgpathelement.c +0 -115
- data/ext/mathematical/lsmsvgpathelement.h +0 -59
- data/ext/mathematical/lsmsvgpatternelement.c +0 -398
- data/ext/mathematical/lsmsvgpatternelement.h +0 -69
- data/ext/mathematical/lsmsvgpolygonelement.c +0 -106
- data/ext/mathematical/lsmsvgpolygonelement.h +0 -57
- data/ext/mathematical/lsmsvgpolylineelement.c +0 -106
- data/ext/mathematical/lsmsvgpolylineelement.h +0 -57
- data/ext/mathematical/lsmsvgradialgradientelement.c +0 -323
- data/ext/mathematical/lsmsvgradialgradientelement.h +0 -61
- data/ext/mathematical/lsmsvgrectelement.c +0 -184
- data/ext/mathematical/lsmsvgrectelement.h +0 -62
- data/ext/mathematical/lsmsvgstopelement.c +0 -106
- data/ext/mathematical/lsmsvgstopelement.h +0 -57
- data/ext/mathematical/lsmsvgstyle.c +0 -558
- data/ext/mathematical/lsmsvgstyle.h +0 -217
- data/ext/mathematical/lsmsvgsvgelement.c +0 -260
- data/ext/mathematical/lsmsvgsvgelement.h +0 -71
- data/ext/mathematical/lsmsvgswitchelement.c +0 -103
- data/ext/mathematical/lsmsvgswitchelement.h +0 -55
- data/ext/mathematical/lsmsvgsymbolelement.c +0 -74
- data/ext/mathematical/lsmsvgsymbolelement.h +0 -55
- data/ext/mathematical/lsmsvgtextelement.c +0 -170
- data/ext/mathematical/lsmsvgtextelement.h +0 -58
- data/ext/mathematical/lsmsvgtraits.c +0 -1158
- data/ext/mathematical/lsmsvgtraits.h +0 -103
- data/ext/mathematical/lsmsvgtransformable.c +0 -106
- data/ext/mathematical/lsmsvgtransformable.h +0 -54
- data/ext/mathematical/lsmsvgtspanelement.c +0 -143
- data/ext/mathematical/lsmsvgtspanelement.h +0 -58
- data/ext/mathematical/lsmsvgtypes.h +0 -77
- data/ext/mathematical/lsmsvguseelement.c +0 -237
- data/ext/mathematical/lsmsvguseelement.h +0 -69
- data/ext/mathematical/lsmsvgview.c +0 -2400
- data/ext/mathematical/lsmsvgview.h +0 -168
- data/ext/mathematical/lsmtraits.c +0 -119
- data/ext/mathematical/lsmtraits.h +0 -49
- data/ext/mathematical/lsmtypes.h +0 -36
- data/ext/mathematical/lsmutils.c +0 -54
- data/ext/mathematical/lsmutils.h +0 -56
- data/ext/mathematical/mathematical.c +0 -122
- data/ext/mathematical/y.tab.c +0 -6179
- data/ext/mathematical/y.tab.h +0 -389
- data/script/bench +0 -21
- data/script/bootstrap +0 -9
- data/script/single_test +0 -7
- data/test/mathematical/basic_test.rb +0 -38
- data/test/mathematical/fixtures/after/brackets_display.html +0 -1
- data/test/mathematical/fixtures/after/dollar_sign_inline.html +0 -1
- data/test/mathematical/fixtures/after/equation_display.html +0 -1
- data/test/mathematical/fixtures/after/multiple_dollar_inline.html +0 -1
- data/test/mathematical/fixtures/after/parens_inline.html +0 -1
- data/test/mathematical/fixtures/before/brackets_display.text +0 -1
- data/test/mathematical/fixtures/before/dollar_sign_inline.text +0 -1
- data/test/mathematical/fixtures/before/equation_display.text +0 -1
- data/test/mathematical/fixtures/before/multiple_dollar_inline.text +0 -1
- data/test/mathematical/fixtures/before/parens_inline.text +0 -1
- data/test/mathematical/fixtures/performance/big_file.text +0 -1767
- data/test/mathematical/fixtures_test.rb +0 -31
- data/test/mathematical/performance_test.rb +0 -13
- data/test/test_helper.rb +0 -4
@@ -1,134 +0,0 @@
|
|
1
|
-
/* Lasem
|
2
|
-
*
|
3
|
-
* Copyright © 2009 Emmanuel Pacaud
|
4
|
-
*
|
5
|
-
* This library is free software; you can redistribute it and/or
|
6
|
-
* modify it under the terms of the GNU Lesser General Public
|
7
|
-
* License as published by the Free Software Foundation; either
|
8
|
-
* version 2 of the License, or (at your option) any later version.
|
9
|
-
*
|
10
|
-
* This library is distributed in the hope that it will be useful,
|
11
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
12
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
13
|
-
* Lesser General Public License for more details.
|
14
|
-
*
|
15
|
-
* You should have received a copy of the GNU Lesser General
|
16
|
-
* Public License along with this library; if not, write to the
|
17
|
-
* Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
18
|
-
* Boston, MA 02111-1307, USA.
|
19
|
-
*
|
20
|
-
* Author:
|
21
|
-
* Emmanuel Pacaud <emmanuel@gnome.org>
|
22
|
-
*/
|
23
|
-
|
24
|
-
#include <lsmsvgclippathelement.h>
|
25
|
-
#include <lsmsvgview.h>
|
26
|
-
#include <lsmdebug.h>
|
27
|
-
#include <stdio.h>
|
28
|
-
|
29
|
-
static GObjectClass *parent_class;
|
30
|
-
|
31
|
-
/* GdomNode implementation */
|
32
|
-
|
33
|
-
static const char *
|
34
|
-
_clip_path_element_get_node_name (LsmDomNode *node)
|
35
|
-
{
|
36
|
-
return "clipPath";
|
37
|
-
}
|
38
|
-
|
39
|
-
/* LsmSvgElement implementation */
|
40
|
-
|
41
|
-
static void
|
42
|
-
lsm_svg_clip_path_element_render (LsmSvgElement *self, LsmSvgView *view)
|
43
|
-
{
|
44
|
-
LsmSvgClipPathElement *clip = LSM_SVG_CLIP_PATH_ELEMENT (self);
|
45
|
-
gboolean is_object_bounding_box;
|
46
|
-
LsmSvgStyle *style;
|
47
|
-
|
48
|
-
if (!clip->enable_rendering) {
|
49
|
-
lsm_debug_render ("[LsmSvgClipPathElement::render] Direct rendering not allowed");
|
50
|
-
return;
|
51
|
-
} else {
|
52
|
-
clip->enable_rendering = FALSE;
|
53
|
-
}
|
54
|
-
|
55
|
-
style = lsm_svg_style_new_inherited (NULL, &self->property_bag);
|
56
|
-
style->ignore_group_opacity = TRUE;
|
57
|
-
lsm_svg_view_push_composition (view, style);
|
58
|
-
|
59
|
-
is_object_bounding_box = (clip->units.value == LSM_SVG_PATTERN_UNITS_OBJECT_BOUNDING_BOX);
|
60
|
-
|
61
|
-
if (is_object_bounding_box) {
|
62
|
-
const LsmBox *viewport;
|
63
|
-
const static LsmBox viewbox = {.x = 0.0, .y = 0.0, .width = 1.0, .height = 1.0};
|
64
|
-
|
65
|
-
viewport = lsm_svg_view_get_clip_extents (view);
|
66
|
-
|
67
|
-
lsm_svg_view_push_viewport (view, viewport, &viewbox, NULL, LSM_SVG_OVERFLOW_HIDDEN);
|
68
|
-
}
|
69
|
-
|
70
|
-
LSM_SVG_ELEMENT_CLASS (parent_class)->render (self, view);
|
71
|
-
|
72
|
-
if (is_object_bounding_box) {
|
73
|
-
lsm_svg_view_pop_viewport (view);
|
74
|
-
}
|
75
|
-
|
76
|
-
lsm_svg_view_pop_composition (view);
|
77
|
-
lsm_svg_style_unref (style);
|
78
|
-
}
|
79
|
-
|
80
|
-
static void
|
81
|
-
lsm_svg_clip_path_element_enable_rendering (LsmSvgElement *element)
|
82
|
-
{
|
83
|
-
LSM_SVG_CLIP_PATH_ELEMENT (element)->enable_rendering = TRUE;
|
84
|
-
}
|
85
|
-
|
86
|
-
LsmDomNode *
|
87
|
-
lsm_svg_clip_path_element_new (void)
|
88
|
-
{
|
89
|
-
return g_object_new (LSM_TYPE_SVG_CLIP_PATH_ELEMENT, NULL);
|
90
|
-
}
|
91
|
-
|
92
|
-
static const LsmSvgPatternUnits units_default = LSM_SVG_PATTERN_UNITS_USER_SPACE_ON_USE;
|
93
|
-
|
94
|
-
static void
|
95
|
-
lsm_svg_clip_path_element_init (LsmSvgClipPathElement *self)
|
96
|
-
{
|
97
|
-
self->enable_rendering = FALSE;
|
98
|
-
self->units.value = units_default;
|
99
|
-
}
|
100
|
-
|
101
|
-
/* LsmSvgClipPathElement class */
|
102
|
-
|
103
|
-
static const LsmAttributeInfos lsm_svg_clip_path_element_attribute_infos[] = {
|
104
|
-
{
|
105
|
-
.name = "clipPathUnits",
|
106
|
-
.trait_class = &lsm_svg_pattern_units_trait_class,
|
107
|
-
.attribute_offset = offsetof (LsmSvgClipPathElement, units),
|
108
|
-
.trait_default = &units_default
|
109
|
-
}
|
110
|
-
};
|
111
|
-
|
112
|
-
static void
|
113
|
-
lsm_svg_clip_path_element_class_init (LsmSvgClipPathElementClass *klass)
|
114
|
-
{
|
115
|
-
LsmDomNodeClass *d_node_class = LSM_DOM_NODE_CLASS (klass);
|
116
|
-
LsmSvgElementClass *s_element_class = LSM_SVG_ELEMENT_CLASS (klass);
|
117
|
-
|
118
|
-
parent_class = g_type_class_peek_parent (klass);
|
119
|
-
|
120
|
-
d_node_class->get_node_name = _clip_path_element_get_node_name;
|
121
|
-
|
122
|
-
s_element_class->category = LSM_SVG_ELEMENT_CATEGORY_NONE;
|
123
|
-
|
124
|
-
s_element_class->render = lsm_svg_clip_path_element_render;
|
125
|
-
s_element_class->enable_rendering = lsm_svg_clip_path_element_enable_rendering;
|
126
|
-
|
127
|
-
s_element_class->attribute_manager = lsm_attribute_manager_duplicate (s_element_class->attribute_manager);
|
128
|
-
|
129
|
-
lsm_attribute_manager_add_attributes (s_element_class->attribute_manager,
|
130
|
-
G_N_ELEMENTS (lsm_svg_clip_path_element_attribute_infos),
|
131
|
-
lsm_svg_clip_path_element_attribute_infos);
|
132
|
-
}
|
133
|
-
|
134
|
-
G_DEFINE_TYPE (LsmSvgClipPathElement, lsm_svg_clip_path_element, LSM_TYPE_SVG_TRANSFORMABLE)
|
@@ -1,59 +0,0 @@
|
|
1
|
-
/* Lasem
|
2
|
-
*
|
3
|
-
* Copyright © 2009 Emmanuel Pacaud
|
4
|
-
*
|
5
|
-
* This library is free software; you can redistribute it and/or
|
6
|
-
* modify it under the terms of the GNU Lesser General Public
|
7
|
-
* License as published by the Free Software Foundation; either
|
8
|
-
* version 2 of the License, or (at your option) any later version.
|
9
|
-
*
|
10
|
-
* This library is distributed in the hope that it will be useful,
|
11
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
12
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
13
|
-
* Lesser General Public License for more details.
|
14
|
-
*
|
15
|
-
* You should have received a copy of the GNU Lesser General
|
16
|
-
* Public License along with this library; if not, write to the
|
17
|
-
* Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
18
|
-
* Boston, MA 02111-1307, USA.
|
19
|
-
*
|
20
|
-
* Author:
|
21
|
-
* Emmanuel Pacaud <emmanuel@gnome.org>
|
22
|
-
*/
|
23
|
-
|
24
|
-
#ifndef LSM_SVG_CLIP_PATH_ELEMENT_H
|
25
|
-
#define LSM_SVG_CLIP_PATH_ELEMENT_H
|
26
|
-
|
27
|
-
#include <lsmsvgtypes.h>
|
28
|
-
#include <lsmsvgtransformable.h>
|
29
|
-
|
30
|
-
G_BEGIN_DECLS
|
31
|
-
|
32
|
-
#define LSM_TYPE_SVG_CLIP_PATH_ELEMENT (lsm_svg_clip_path_element_get_type ())
|
33
|
-
#define LSM_SVG_CLIP_PATH_ELEMENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LSM_TYPE_SVG_CLIP_PATH_ELEMENT, LsmSvgClipPathElement))
|
34
|
-
#define LSM_SVG_CLIP_PATH_ELEMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), LSM_TYPE_SVG_CLIP_PATH_ELEMENT, LsmSvgClipPathElementClass))
|
35
|
-
#define LSM_IS_SVG_CLIP_PATH_ELEMENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LSM_TYPE_SVG_CLIP_PATH_ELEMENT))
|
36
|
-
#define LSM_IS_SVG_CLIP_PATH_ELEMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LSM_TYPE_SVG_CLIP_PATH_ELEMENT))
|
37
|
-
#define LSM_SVG_CLIP_PATH_ELEMENT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), LSM_TYPE_SVG_CLIP_PATH_ELEMENT, LsmSvgClipPathElementClass))
|
38
|
-
|
39
|
-
typedef struct _LsmSvgClipPathElementClass LsmSvgClipPathElementClass;
|
40
|
-
|
41
|
-
struct _LsmSvgClipPathElement {
|
42
|
-
LsmSvgTransformable base;
|
43
|
-
|
44
|
-
LsmSvgPatternUnitsAttribute units;
|
45
|
-
|
46
|
-
gboolean enable_rendering;
|
47
|
-
};
|
48
|
-
|
49
|
-
struct _LsmSvgClipPathElementClass {
|
50
|
-
LsmSvgTransformableClass base_class;
|
51
|
-
};
|
52
|
-
|
53
|
-
GType lsm_svg_clip_path_element_get_type (void);
|
54
|
-
|
55
|
-
LsmDomNode * lsm_svg_clip_path_element_new (void);
|
56
|
-
|
57
|
-
G_END_DECLS
|
58
|
-
|
59
|
-
#endif
|
@@ -1,212 +0,0 @@
|
|
1
|
-
/* Lasem
|
2
|
-
*
|
3
|
-
* Copyright © 2000 Eazel, Inc.
|
4
|
-
* Copyright © 2002 Dom Lachowicz
|
5
|
-
* Copyright © 2007-2009 Emmanuel Pacaud
|
6
|
-
*
|
7
|
-
* This library is free software; you can redistribute it and/or
|
8
|
-
* modify it under the terms of the GNU Lesser General Public
|
9
|
-
* License as published by the Free Software Foundation; either
|
10
|
-
* version 2 of the License, or (at your option) any later version.
|
11
|
-
*
|
12
|
-
* This library is distributed in the hope that it will be useful,
|
13
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
14
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
15
|
-
* Lesser General Public License for more details.
|
16
|
-
*
|
17
|
-
* You should have received a copy of the GNU Lesser General
|
18
|
-
* Public License along with this library; if not, write to the
|
19
|
-
* Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
20
|
-
* Boston, MA 02111-1307, USA.
|
21
|
-
*
|
22
|
-
* Authors:
|
23
|
-
* Raph Levien <raph@artofcode.com>
|
24
|
-
* Dom Lachowicz <cinamod@hotmail.com>
|
25
|
-
* Emmanuel Pacaud <emmanuel@gnome.org>
|
26
|
-
*/
|
27
|
-
|
28
|
-
#include <lsmsvgcolors.h>
|
29
|
-
#include <stdlib.h>
|
30
|
-
|
31
|
-
#define PACK_RGB(r,g,b) (((r) << 16) | ((g) << 8) | (b))
|
32
|
-
|
33
|
-
typedef struct {
|
34
|
-
const char *name;
|
35
|
-
unsigned int color;
|
36
|
-
} LsmSvgColorData;
|
37
|
-
|
38
|
-
static const LsmSvgColorData colors[] = {
|
39
|
-
{"aliceblue", PACK_RGB (240, 248, 255)},
|
40
|
-
{"antiquewhite", PACK_RGB (250, 235, 215)},
|
41
|
-
{"aqua", PACK_RGB (0, 255, 255)},
|
42
|
-
{"aquamarine", PACK_RGB (127, 255, 212)},
|
43
|
-
{"azure", PACK_RGB (240, 255, 255)},
|
44
|
-
{"beige", PACK_RGB (245, 245, 220)},
|
45
|
-
{"bisque", PACK_RGB (255, 228, 196)},
|
46
|
-
{"black", PACK_RGB (0, 0, 0)},
|
47
|
-
{"blanchedalmond", PACK_RGB (255, 235, 205)},
|
48
|
-
{"blue", PACK_RGB (0, 0, 255)},
|
49
|
-
{"blueviolet", PACK_RGB (138, 43, 226)},
|
50
|
-
{"brown", PACK_RGB (165, 42, 42)},
|
51
|
-
{"burlywood", PACK_RGB (222, 184, 135)},
|
52
|
-
{"cadetblue", PACK_RGB (95, 158, 160)},
|
53
|
-
{"chartreuse", PACK_RGB (127, 255, 0)},
|
54
|
-
{"chocolate", PACK_RGB (210, 105, 30)},
|
55
|
-
{"coral", PACK_RGB (255, 127, 80)},
|
56
|
-
{"cornflowerblue", PACK_RGB (100, 149, 237)},
|
57
|
-
{"cornsilk", PACK_RGB (255, 248, 220)},
|
58
|
-
{"crimson", PACK_RGB (220, 20, 60)},
|
59
|
-
{"cyan", PACK_RGB (0, 255, 255)},
|
60
|
-
{"darkblue", PACK_RGB (0, 0, 139)},
|
61
|
-
{"darkcyan", PACK_RGB (0, 139, 139)},
|
62
|
-
{"darkgoldenrod", PACK_RGB (184, 132, 11)},
|
63
|
-
{"darkgray", PACK_RGB (169, 169, 169)},
|
64
|
-
{"darkgreen", PACK_RGB (0, 100, 0)},
|
65
|
-
{"darkgrey", PACK_RGB (169, 169, 169)},
|
66
|
-
{"darkkhaki", PACK_RGB (189, 183, 107)},
|
67
|
-
{"darkmagenta", PACK_RGB (139, 0, 139)},
|
68
|
-
{"darkolivegreen", PACK_RGB (85, 107, 47)},
|
69
|
-
{"darkorange", PACK_RGB (255, 140, 0)},
|
70
|
-
{"darkorchid", PACK_RGB (153, 50, 204)},
|
71
|
-
{"darkred", PACK_RGB (139, 0, 0)},
|
72
|
-
{"darksalmon", PACK_RGB (233, 150, 122)},
|
73
|
-
{"darkseagreen", PACK_RGB (143, 188, 143)},
|
74
|
-
{"darkslateblue", PACK_RGB (72, 61, 139)},
|
75
|
-
{"darkslategray", PACK_RGB (47, 79, 79)},
|
76
|
-
{"darkslategrey", PACK_RGB (47, 79, 79)},
|
77
|
-
{"darkturquoise", PACK_RGB (0, 206, 209)},
|
78
|
-
{"darkviolet", PACK_RGB (148, 0, 211)},
|
79
|
-
{"deeppink", PACK_RGB (255, 20, 147)},
|
80
|
-
{"deepskyblue", PACK_RGB (0, 191, 255)},
|
81
|
-
{"dimgray", PACK_RGB (105, 105, 105)},
|
82
|
-
{"dimgrey", PACK_RGB (105, 105, 105)},
|
83
|
-
{"dodgerblue", PACK_RGB (30, 144, 255)},
|
84
|
-
{"firebrick", PACK_RGB (178, 34, 34)},
|
85
|
-
{"floralwhite", PACK_RGB (255, 255, 240)},
|
86
|
-
{"forestgreen", PACK_RGB (34, 139, 34)},
|
87
|
-
{"fuchsia", PACK_RGB (255, 0, 255)},
|
88
|
-
{"gainsboro", PACK_RGB (220, 220, 220)},
|
89
|
-
{"ghostwhite", PACK_RGB (248, 248, 255)},
|
90
|
-
{"gold", PACK_RGB (255, 215, 0)},
|
91
|
-
{"goldenrod", PACK_RGB (218, 165, 32)},
|
92
|
-
{"gray", PACK_RGB (128, 128, 128)},
|
93
|
-
{"green", PACK_RGB (0, 128, 0)},
|
94
|
-
{"greenyellow", PACK_RGB (173, 255, 47)},
|
95
|
-
{"grey", PACK_RGB (128, 128, 128)},
|
96
|
-
{"honeydew", PACK_RGB (240, 255, 240)},
|
97
|
-
{"hotpink", PACK_RGB (255, 105, 180)},
|
98
|
-
{"indianred", PACK_RGB (205, 92, 92)},
|
99
|
-
{"indigo", PACK_RGB (75, 0, 130)},
|
100
|
-
{"ivory", PACK_RGB (255, 255, 240)},
|
101
|
-
{"khaki", PACK_RGB (240, 230, 140)},
|
102
|
-
{"lavender", PACK_RGB (230, 230, 250)},
|
103
|
-
{"lavenderblush", PACK_RGB (255, 240, 245)},
|
104
|
-
{"lawngreen", PACK_RGB (124, 252, 0)},
|
105
|
-
{"lemonchiffon", PACK_RGB (255, 250, 205)},
|
106
|
-
{"lightblue", PACK_RGB (173, 216, 230)},
|
107
|
-
{"lightcoral", PACK_RGB (240, 128, 128)},
|
108
|
-
{"lightcyan", PACK_RGB (224, 255, 255)},
|
109
|
-
{"lightgoldenrodyellow", PACK_RGB (250, 250, 210)},
|
110
|
-
{"lightgray", PACK_RGB (211, 211, 211)},
|
111
|
-
{"lightgreen", PACK_RGB (144, 238, 144)},
|
112
|
-
{"lightgrey", PACK_RGB (211, 211, 211)},
|
113
|
-
{"lightpink", PACK_RGB (255, 182, 193)},
|
114
|
-
{"lightsalmon", PACK_RGB (255, 160, 122)},
|
115
|
-
{"lightseagreen", PACK_RGB (32, 178, 170)},
|
116
|
-
{"lightskyblue", PACK_RGB (135, 206, 250)},
|
117
|
-
{"lightslategray", PACK_RGB (119, 136, 153)},
|
118
|
-
{"lightslategrey", PACK_RGB (119, 136, 153)},
|
119
|
-
{"lightsteelblue", PACK_RGB (176, 196, 222)},
|
120
|
-
{"lightyellow", PACK_RGB (255, 255, 224)},
|
121
|
-
{"lime", PACK_RGB (0, 255, 0)},
|
122
|
-
{"limegreen", PACK_RGB (50, 205, 50)},
|
123
|
-
{"linen", PACK_RGB (250, 240, 230)},
|
124
|
-
{"magenta", PACK_RGB (255, 0, 255)},
|
125
|
-
{"maroon", PACK_RGB (128, 0, 0)},
|
126
|
-
{"mediumaquamarine", PACK_RGB (102, 205, 170)},
|
127
|
-
{"mediumblue", PACK_RGB (0, 0, 205)},
|
128
|
-
{"mediumorchid", PACK_RGB (186, 85, 211)},
|
129
|
-
{"mediumpurple", PACK_RGB (147, 112, 219)},
|
130
|
-
{"mediumseagreen", PACK_RGB (60, 179, 113)},
|
131
|
-
{"mediumslateblue", PACK_RGB (123, 104, 238)},
|
132
|
-
{"mediumspringgreen", PACK_RGB (0, 250, 154)},
|
133
|
-
{"mediumturquoise", PACK_RGB (72, 209, 204)},
|
134
|
-
{"mediumvioletred", PACK_RGB (199, 21, 133)},
|
135
|
-
{"midnightblue", PACK_RGB (25, 25, 112)},
|
136
|
-
{"mintcream", PACK_RGB (245, 255, 250)},
|
137
|
-
{"mistyrose", PACK_RGB (255, 228, 225)},
|
138
|
-
{"moccasin", PACK_RGB (255, 228, 181)},
|
139
|
-
{"navajowhite", PACK_RGB (255, 222, 173)},
|
140
|
-
{"navy", PACK_RGB (0, 0, 128)},
|
141
|
-
{"oldlace", PACK_RGB (253, 245, 230)},
|
142
|
-
{"olive", PACK_RGB (128, 128, 0)},
|
143
|
-
{"olivedrab", PACK_RGB (107, 142, 35)},
|
144
|
-
{"orange", PACK_RGB (255, 165, 0)},
|
145
|
-
{"orangered", PACK_RGB (255, 69, 0)},
|
146
|
-
{"orchid", PACK_RGB (218, 112, 214)},
|
147
|
-
{"palegoldenrod", PACK_RGB (238, 232, 170)},
|
148
|
-
{"palegreen", PACK_RGB (152, 251, 152)},
|
149
|
-
{"paleturquoise", PACK_RGB (175, 238, 238)},
|
150
|
-
{"palevioletred", PACK_RGB (219, 112, 147)},
|
151
|
-
{"papayawhip", PACK_RGB (255, 239, 213)},
|
152
|
-
{"peachpuff", PACK_RGB (255, 218, 185)},
|
153
|
-
{"peru", PACK_RGB (205, 133, 63)},
|
154
|
-
{"pink", PACK_RGB (255, 192, 203)},
|
155
|
-
{"plum", PACK_RGB (221, 160, 203)},
|
156
|
-
{"powderblue", PACK_RGB (176, 224, 230)},
|
157
|
-
{"purple", PACK_RGB (128, 0, 128)},
|
158
|
-
{"red", PACK_RGB (255, 0, 0)},
|
159
|
-
{"rosybrown", PACK_RGB (188, 143, 143)},
|
160
|
-
{"royalblue", PACK_RGB (65, 105, 225)},
|
161
|
-
{"saddlebrown", PACK_RGB (139, 69, 19)},
|
162
|
-
{"salmon", PACK_RGB (250, 128, 114)},
|
163
|
-
{"sandybrown", PACK_RGB (244, 164, 96)},
|
164
|
-
{"seagreen", PACK_RGB (46, 139, 87)},
|
165
|
-
{"seashell", PACK_RGB (255, 245, 238)},
|
166
|
-
{"sienna", PACK_RGB (160, 82, 45)},
|
167
|
-
{"silver", PACK_RGB (192, 192, 192)},
|
168
|
-
{"skyblue", PACK_RGB (135, 206, 235)},
|
169
|
-
{"slateblue", PACK_RGB (106, 90, 205)},
|
170
|
-
{"slategray", PACK_RGB (119, 128, 144)},
|
171
|
-
{"slategrey", PACK_RGB (119, 128, 144)},
|
172
|
-
{"snow", PACK_RGB (255, 255, 250)},
|
173
|
-
{"springgreen", PACK_RGB (0, 255, 127)},
|
174
|
-
{"steelblue", PACK_RGB (70, 130, 180)},
|
175
|
-
{"tan", PACK_RGB (210, 180, 140)},
|
176
|
-
{"teal", PACK_RGB (0, 128, 128)},
|
177
|
-
{"thistle", PACK_RGB (216, 191, 216)},
|
178
|
-
{"tomato", PACK_RGB (255, 99, 71)},
|
179
|
-
{"turquoise", PACK_RGB (64, 224, 208)},
|
180
|
-
{"violet", PACK_RGB (238, 130, 238)},
|
181
|
-
{"wheat", PACK_RGB (245, 222, 179)},
|
182
|
-
{"white", PACK_RGB (255, 255, 255)},
|
183
|
-
{"whitesmoke", PACK_RGB (245, 245, 245)},
|
184
|
-
{"yellow", PACK_RGB (255, 255, 0)},
|
185
|
-
{"yellowgreen", PACK_RGB (154, 205, 50)}
|
186
|
-
};
|
187
|
-
|
188
|
-
static int
|
189
|
-
_color_compare (const void *a, const void *b)
|
190
|
-
{
|
191
|
-
const char *needle = (const char *) a;
|
192
|
-
const LsmSvgColorData *haystack = (const LsmSvgColorData *) b;
|
193
|
-
|
194
|
-
return g_ascii_strcasecmp (needle, haystack->name);
|
195
|
-
}
|
196
|
-
|
197
|
-
unsigned int
|
198
|
-
lsm_svg_color_from_string (const char *name)
|
199
|
-
{
|
200
|
-
LsmSvgColorData *data;
|
201
|
-
|
202
|
-
data = bsearch (name, colors,
|
203
|
-
sizeof (colors) / sizeof (colors[0]),
|
204
|
-
sizeof (LsmSvgColorData),
|
205
|
-
_color_compare);
|
206
|
-
|
207
|
-
if (data == NULL)
|
208
|
-
return 0;
|
209
|
-
else
|
210
|
-
return data->color;
|
211
|
-
}
|
212
|
-
|
@@ -1,39 +0,0 @@
|
|
1
|
-
/* Lasem
|
2
|
-
*
|
3
|
-
* Copyright © 2000 Eazel, Inc.
|
4
|
-
* Copyright © 2002 Dom Lachowicz
|
5
|
-
* Copyright © 2007-2009 Emmanuel Pacaud
|
6
|
-
*
|
7
|
-
* This library is free software; you can redistribute it and/or
|
8
|
-
* modify it under the terms of the GNU Lesser General Public
|
9
|
-
* License as published by the Free Software Foundation; either
|
10
|
-
* version 2 of the License, or (at your option) any later version.
|
11
|
-
*
|
12
|
-
* This library is distributed in the hope that it will be useful,
|
13
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
14
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
15
|
-
* Lesser General Public License for more details.
|
16
|
-
*
|
17
|
-
* You should have received a copy of the GNU Lesser General
|
18
|
-
* Public License along with this library; if not, write to the
|
19
|
-
* Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
20
|
-
* Boston, MA 02111-1307, USA.
|
21
|
-
*
|
22
|
-
* Authors:
|
23
|
-
* Raph Levien <raph@artofcode.com>
|
24
|
-
* Dom Lachowicz <cinamod@hotmail.com>
|
25
|
-
* Emmanuel Pacaud <emmanuel@gnome.org>
|
26
|
-
*/
|
27
|
-
|
28
|
-
#ifndef LSM_SVG_COLORS_H
|
29
|
-
#define LSM_SVG_COLORS_H
|
30
|
-
|
31
|
-
#include <lsmsvgtypes.h>
|
32
|
-
|
33
|
-
G_BEGIN_DECLS
|
34
|
-
|
35
|
-
unsigned int lsm_svg_color_from_string (const char *name);
|
36
|
-
|
37
|
-
G_END_DECLS
|
38
|
-
|
39
|
-
#endif
|
@@ -1,74 +0,0 @@
|
|
1
|
-
/* Lasem
|
2
|
-
*
|
3
|
-
* Copyright © 2009 Emmanuel Pacaud
|
4
|
-
*
|
5
|
-
* This library is free software; you can redistribute it and/or
|
6
|
-
* modify it under the terms of the GNU Lesser General Public
|
7
|
-
* License as published by the Free Software Foundation; either
|
8
|
-
* version 2 of the License, or (at your option) any later version.
|
9
|
-
*
|
10
|
-
* This library is distributed in the hope that it will be useful,
|
11
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
12
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
13
|
-
* Lesser General Public License for more details.
|
14
|
-
*
|
15
|
-
* You should have received a copy of the GNU Lesser General
|
16
|
-
* Public License along with this library; if not, write to the
|
17
|
-
* Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
18
|
-
* Boston, MA 02111-1307, USA.
|
19
|
-
*
|
20
|
-
* Author:
|
21
|
-
* Emmanuel Pacaud <emmanuel@gnome.org>
|
22
|
-
*/
|
23
|
-
|
24
|
-
#include <lsmsvgdefselement.h>
|
25
|
-
#include <lsmdebug.h>
|
26
|
-
#include <stdio.h>
|
27
|
-
|
28
|
-
static GObjectClass *parent_class;
|
29
|
-
|
30
|
-
/* GdomNode implementation */
|
31
|
-
|
32
|
-
static const char *
|
33
|
-
lsm_svg_defs_element_get_node_name (LsmDomNode *node)
|
34
|
-
{
|
35
|
-
return "defs";
|
36
|
-
}
|
37
|
-
|
38
|
-
/* GDefsElement implementation */
|
39
|
-
|
40
|
-
/* LsmSvgGraphic implementation */
|
41
|
-
|
42
|
-
/* LsmSvgDefsElement implementation */
|
43
|
-
|
44
|
-
LsmDomNode *
|
45
|
-
lsm_svg_defs_element_new (void)
|
46
|
-
{
|
47
|
-
return g_object_new (LSM_TYPE_SVG_DEFS_ELEMENT, NULL);
|
48
|
-
}
|
49
|
-
|
50
|
-
static void
|
51
|
-
lsm_svg_defs_element_init (LsmSvgDefsElement *self)
|
52
|
-
{
|
53
|
-
}
|
54
|
-
|
55
|
-
/* LsmSvgDefsElement class */
|
56
|
-
|
57
|
-
static void
|
58
|
-
lsm_svg_defs_element_class_init (LsmSvgDefsElementClass *s_g_class)
|
59
|
-
{
|
60
|
-
LsmDomNodeClass *d_node_class = LSM_DOM_NODE_CLASS (s_g_class);
|
61
|
-
LsmSvgElementClass *s_element_class = LSM_SVG_ELEMENT_CLASS (s_g_class);
|
62
|
-
|
63
|
-
parent_class = g_type_class_peek_parent (s_g_class);
|
64
|
-
|
65
|
-
d_node_class->get_node_name = lsm_svg_defs_element_get_node_name;
|
66
|
-
|
67
|
-
s_element_class->category =
|
68
|
-
LSM_SVG_ELEMENT_CATEGORY_CONTAINER |
|
69
|
-
LSM_SVG_ELEMENT_CATEGORY_STRUCTURAL;
|
70
|
-
|
71
|
-
s_element_class->render = NULL;
|
72
|
-
}
|
73
|
-
|
74
|
-
G_DEFINE_TYPE (LsmSvgDefsElement, lsm_svg_defs_element, LSM_TYPE_SVG_TRANSFORMABLE)
|