diff src/audacious/ui_skinned_button.h @ 2843:91ef09fe7936 trunk

UiSkinnedButton can now work as TButton
author Tomasz Mon <desowin@gmail.com>
date Sun, 17 Jun 2007 15:53:59 +0200
parents c2622a939e9e
children 22da7cd0eca0
line wrap: on
line diff
--- a/src/audacious/ui_skinned_button.h	Sun Jun 17 12:54:59 2007 +0200
+++ b/src/audacious/ui_skinned_button.h	Sun Jun 17 15:53:59 2007 +0200
@@ -44,6 +44,13 @@
 	LAST_SIGNAL
 };
 
+enum {
+	TYPE_NOT_SET,
+	TYPE_PUSH,
+	TYPE_TOGGLE,
+	TYPE_SMALL
+};
+
 struct _UiSkinnedButton {
 	GtkBin bin;
 
@@ -52,9 +59,14 @@
 	gboolean button_down : 1;
 	gboolean pressed : 1;
 	gboolean hover : 1;
+	gboolean inside : 1;
+	gint type;
 	//Skinned part, used in ui_playlist.c
 	gint x, y, nx, ny, px, py;
 
+	//Toogle button needs also those
+	gint pnx, pny, ppx, ppy;
+
 	gboolean redraw;
 };
 
@@ -70,5 +82,6 @@
 GType ui_skinned_button_get_type(void) G_GNUC_CONST;
 GtkWidget* ui_skinned_button_new();
 void ui_skinned_push_button_setup(GtkWidget *button, GtkWidget *fixed, GdkPixmap * parent, GdkGC * gc, gint x, gint y, gint w, gint h, gint nx, gint ny, gint px, gint py, SkinPixmapId si);
+void ui_skinned_toggle_button_setup(GtkWidget *button, GtkWidget *fixed, GdkPixmap *parent, GdkGC *gc, gint x, gint y, gint w, gint h, gint nx, gint ny, gint px, gint py, gint pnx, gint pny, gint ppx, gint ppy, SkinPixmapId si);
 
 #endif