Revision 18352,
743 bytes
checked in by ghudson, 22 years ago
(diff) |
This commit was generated by cvs2svn to compensate for changes in r18351,
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 | } RsvgDefType; |
---|
14 | |
---|
15 | struct _RsvgDefVal { |
---|
16 | RsvgDefType type; |
---|
17 | void (*free) (RsvgDefVal *self); |
---|
18 | }; |
---|
19 | |
---|
20 | RsvgDefs * |
---|
21 | rsvg_defs_new (void); |
---|
22 | |
---|
23 | RsvgDefVal * |
---|
24 | rsvg_defs_lookup (const RsvgDefs *defs, const char *name); |
---|
25 | |
---|
26 | void |
---|
27 | rsvg_defs_set (RsvgDefs *defs, const char *name, RsvgDefVal *val); |
---|
28 | |
---|
29 | void |
---|
30 | rsvg_defs_free (RsvgDefs *defs); |
---|
Note: See
TracBrowser
for help on using the repository browser.