Revision 18275,
763 bytes
checked in by ghudson, 22 years ago
(diff) |
This commit was generated by cvs2svn to compensate for changes in r18274,
which included commits to RCS files with non-trunk default branches.
|
Line | |
---|
1 | /* A module for handling SVG defs */ |
---|
2 | |
---|
3 | typedef struct _RsvgDefs RsvgDefs; |
---|
4 | typedef struct _RsvgDefVal RsvgDefVal; |
---|
5 | |
---|
6 | typedef enum { |
---|
7 | /* todo: general question: should this be high level, ie a generic |
---|
8 | paint server, coupled with a paint server interface; or low level, |
---|
9 | ie specific definable things? For now, we're going low level, |
---|
10 | but it's not clear that's the best way to go. */ |
---|
11 | RSVG_DEF_LINGRAD, |
---|
12 | RSVG_DEF_RADGRAD, |
---|
13 | RSVG_DEF_PATTERN |
---|
14 | } RsvgDefType; |
---|
15 | |
---|
16 | struct _RsvgDefVal { |
---|
17 | RsvgDefType type; |
---|
18 | void (*free) (RsvgDefVal *self); |
---|
19 | }; |
---|
20 | |
---|
21 | RsvgDefs * |
---|
22 | rsvg_defs_new (void); |
---|
23 | |
---|
24 | RsvgDefVal * |
---|
25 | rsvg_defs_lookup (const RsvgDefs *defs, const char *name); |
---|
26 | |
---|
27 | void |
---|
28 | rsvg_defs_set (RsvgDefs *defs, const char *name, RsvgDefVal *val); |
---|
29 | |
---|
30 | void |
---|
31 | rsvg_defs_free (RsvgDefs *defs); |
---|
Note: See
TracBrowser
for help on using the repository browser.