]> Dogcows Code - chaz/openbox/blobdiff - obrender/render.h
Adding RrButton to libobrender, ref counted appearances.
[chaz/openbox] / obrender / render.h
index 1ec47a265238c41218da291c54d01e3ebcbb02ad..a8a8fe369a988719dfa4cbca183abc869a06ffdf 100644 (file)
@@ -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);
This page took 0.023989 seconds and 4 git commands to generate.