X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=obrender%2Frender.h;h=a8a8fe369a988719dfa4cbca183abc869a06ffdf;hb=6d30d66efb028fbafb58712aa5b71cadfeef2e32;hp=1ec47a265238c41218da291c54d01e3ebcbb02ad;hpb=b566d3fcfe7a23b0616d776fd2db17ef7461185e;p=chaz%2Fopenbox 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);