diff options
| author | Dave Foster <daf@minuslab.net> | 2007-09-20 15:30:18 -0400 |
|---|---|---|
| committer | Mikael Magnusson <mikachu@gmail.com> | 2010-10-14 15:54:44 +0200 |
| commit | 6d30d66efb028fbafb58712aa5b71cadfeef2e32 (patch) | |
| tree | 245d4a413f09759925f85986bc94c79aaf8ca616 /obrender/render.h | |
| parent | b566d3fcfe7a23b0616d776fd2db17ef7461185e (diff) | |
Adding RrButton to libobrender, ref counted appearances.
Diffstat (limited to 'obrender/render.h')
| -rw-r--r-- | obrender/render.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/obrender/render.h b/obrender/render.h index 1ec47a26..a8a8fe36 100644 --- a/obrender/render.h +++ b/obrender/render.h @@ -46,6 +46,7 @@ typedef struct _RrColor RrColor; typedef struct _RrImage RrImage; typedef struct _RrImagePic RrImagePic; typedef struct _RrImageCache RrImageCache; +typedef struct _RrButton RrButton; typedef guint32 RrPixel32; typedef guint16 RrPixel16; @@ -220,6 +221,8 @@ struct _RrTexture { struct _RrAppearance { const RrInstance *inst; + + gint ref; RrSurface surface; gint textures; @@ -314,6 +317,7 @@ gulong RrColorPixel (const RrColor *c); GC RrColorGC (RrColor *c); RrAppearance *RrAppearanceNew (const RrInstance *inst, gint numtex); +RrAppearance *RrAppearanceCopyShallow (RrAppearance *a); RrAppearance *RrAppearanceCopy (RrAppearance *a); void RrAppearanceFree (RrAppearance *a); void RrAppearanceRemoveTextures(RrAppearance *a); @@ -321,6 +325,9 @@ void RrAppearanceAddTextures(RrAppearance *a, gint numtex); /*! Always call this when changing the type of a texture in an appearance */ void RrAppearanceClearTextures(RrAppearance *a); +RrButton *RrButtonNew (const RrInstance *inst); +void RrButtonFree(RrButton *b); + RrFont *RrFontOpen (const RrInstance *inst, const gchar *name, gint size, RrFontWeight weight, RrFontSlant slant); RrFont *RrFontOpenDefault (const RrInstance *inst); |
