xfreecd

Audio CD player for X
git clone https://www.brianlane.com/git/xfreecd
Log | Files | Refs | README | LICENSE

xpm_button.h (570B)


      1 /* XPM Pushbutton structures */
      2 
      3 struct _bstate
      4 {
      5   GdkPixmap	*up_pixmap;
      6   GdkBitmap	*up_mask;
      7   GdkPixmap	*dn_pixmap;
      8   GdkBitmap	*dn_mask;
      9 };
     10 
     11 
     12 struct _pbutton
     13 {
     14   GtkWidget		*wid;		/* Button's Widget ID		*/
     15   struct _bstate	image;		/* up and down images		*/
     16   int			timer;
     17   void (*press)   (GtkWidget *widget, GdkEventButton *event);
     18   void (*release) (GtkWidget *widget, GdkEventButton *event);
     19   void (*clicked) (GtkWidget *widget, GdkEventButton *event);
     20   gchar 		*up_xpm;
     21   gchar 		*dn_xpm;
     22 };
     23 
     24 GtkWidget *xpm_button( GtkWidget *parent, struct _pbutton *pb );