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

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