source: trunk/third/librsvg/rsvg-defs.h @ 18352

Revision 18352, 743 bytes checked in by ghudson, 21 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
3typedef struct _RsvgDefs RsvgDefs;
4typedef struct _RsvgDefVal RsvgDefVal;
5
6typedef 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
15struct _RsvgDefVal {
16  RsvgDefType type;
17  void (*free) (RsvgDefVal *self);
18};
19
20RsvgDefs *
21rsvg_defs_new (void);
22
23RsvgDefVal *
24rsvg_defs_lookup (const RsvgDefs *defs, const char *name);
25
26void
27rsvg_defs_set (RsvgDefs *defs, const char *name, RsvgDefVal *val);
28
29void
30rsvg_defs_free (RsvgDefs *defs);
Note: See TracBrowser for help on using the repository browser.