Mercurial > audlegacy
annotate audacious/pbutton.h @ 548:1954be7d4889 trunk
[svn] added support for the FluidSynth ALSA backend, by sending a MIDI_CTL_ALL_SOUNDS_OFF controller event when playback is halted
author | giacomo |
---|---|
date | Sun, 29 Jan 2006 12:38:24 -0800 |
parents | d7d70779c074 |
children | f12d7e208b43 |
rev | line source |
---|---|
0 | 1 /* BMP - Cross-platform multimedia player |
2 * Copyright (C) 2003-2004 BMP development team. | |
3 * | |
4 * Based on XMMS: | |
5 * Copyright (C) 1998-2003 XMMS development team. | |
6 * | |
7 * This program is free software; you can redistribute it and/or modify | |
8 * it under the terms of the GNU General Public License as published by | |
9 * the Free Software Foundation; either version 2 of the License, or | |
10 * (at your option) any later version. | |
11 * | |
12 * This program is distributed in the hope that it will be useful, | |
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
15 * GNU General Public License for more details. | |
16 * | |
17 * You should have received a copy of the GNU General Public License | |
18 * along with this program; if not, write to the Free Software | |
19 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | |
20 */ | |
21 #ifndef PBUTTON_H | |
22 #define PBUTTON_H | |
23 | |
24 #include <glib.h> | |
25 #include <gdk/gdk.h> | |
26 | |
27 #include "widget.h" | |
28 #include "skin.h" | |
29 | |
30 #define PBUTTON(x) ((PButton *)(x)) | |
31 struct _PButton { | |
32 Widget pb_widget; | |
33 gint pb_nx, pb_ny; | |
34 gint pb_px, pb_py; | |
35 gboolean pb_pressed; | |
36 gboolean pb_inside; | |
37 gboolean pb_allow_draw; | |
38 void (*pb_push_cb) (void); | |
424
d7d70779c074
[svn] Buttons are now tri-state, meaning they have both callbacks for push and
nenolod
parents:
0
diff
changeset
|
39 void (*pb_release_cb) (void); |
0 | 40 SkinPixmapId pb_skin_index1, pb_skin_index2; |
41 }; | |
42 | |
43 typedef struct _PButton PButton; | |
44 | |
45 PButton *create_pbutton(GList ** wlist, GdkPixmap * parent, GdkGC * gc, | |
46 gint x, gint y, gint w, gint h, gint nx, gint ny, | |
424
d7d70779c074
[svn] Buttons are now tri-state, meaning they have both callbacks for push and
nenolod
parents:
0
diff
changeset
|
47 gint px, gint py, void (*push_cb) (void), SkinPixmapId si); |
0 | 48 PButton *create_pbutton_ex(GList ** wlist, GdkPixmap * parent, GdkGC * gc, |
49 gint x, gint y, gint w, gint h, gint nx, | |
424
d7d70779c074
[svn] Buttons are now tri-state, meaning they have both callbacks for push and
nenolod
parents:
0
diff
changeset
|
50 gint ny, gint px, gint py, void (*push_cb) (void), |
d7d70779c074
[svn] Buttons are now tri-state, meaning they have both callbacks for push and
nenolod
parents:
0
diff
changeset
|
51 void (*release_cb) (void), SkinPixmapId si1, |
d7d70779c074
[svn] Buttons are now tri-state, meaning they have both callbacks for push and
nenolod
parents:
0
diff
changeset
|
52 SkinPixmapId si2); |
0 | 53 void free_pbutton(PButton * b); |
54 void pbutton_set_skin_index(PButton * b, SkinPixmapId si); | |
55 void pbutton_set_skin_index1(PButton * b, SkinPixmapId si); | |
56 void pbutton_set_skin_index2(PButton * b, SkinPixmapId si); | |
57 void pbutton_set_button_data(PButton * b, gint nx, gint ny, gint px, gint py); | |
58 | |
59 #endif |