]> Dogcows Code - chaz/openbox/blobdiff - obrender/render.h
Button proper freeing/newing.
[chaz/openbox] / obrender / render.h
index 4951be1e0202a7c31cb245ab60eb1ef82bfc6f40..dad3c540713afee263f2bb2f0caf94422a916dd9 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;
@@ -92,7 +93,7 @@ typedef enum {
     RR_JUSTIFY_LEFT,
     RR_JUSTIFY_CENTER,
     RR_JUSTIFY_RIGHT,
-    RR_JUSITFY_NUM_TYPES
+    RR_JUSTIFY_NUM_TYPES
 } RrJustify;
 
 /* Put middle first so it's the default */
@@ -220,7 +221,7 @@ struct _RrTexture {
 
 struct _RrAppearance {
     const RrInstance *inst;
-
+    
     RrSurface surface;
     gint textures;
     RrTexture *texture;
@@ -303,6 +304,7 @@ gint     RrGreenMask    (const RrInstance *inst);
 gint     RrBlueMask     (const RrInstance *inst);
 
 RrColor *RrColorNew   (const RrInstance *inst, gint r, gint g, gint b);
+RrColor *RrColorCopy  (RrColor *c);
 RrColor *RrColorParse (const RrInstance *inst, gchar *colorname);
 void     RrColorFree  (RrColor *in);
 
@@ -320,6 +322,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.024086 seconds and 4 git commands to generate.