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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1 /* BMP - Cross-platform multimedia player
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2 * Copyright (C) 2003-2004 BMP development team.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3 *
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4 * Based on XMMS:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5 * Copyright (C) 1998-2003 XMMS development team.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6 *
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
7 * This program is free software; you can redistribute it and/or modify
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
8 * it under the terms of the GNU General Public License as published by
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
9 * the Free Software Foundation; either version 2 of the License, or
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
10 * (at your option) any later version.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
11 *
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
12 * This program is distributed in the hope that it will be useful,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
15 * GNU General Public License for more details.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
16 *
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
17 * You should have received a copy of the GNU General Public License
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
18 * along with this program; if not, write to the Free Software
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
19 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
20 */
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
21 #ifndef PBUTTON_H
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
22 #define PBUTTON_H
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
23
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
24 #include <glib.h>
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
25 #include <gdk/gdk.h>
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
26
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
27 #include "widget.h"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
28 #include "skin.h"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
29
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
30 #define PBUTTON(x) ((PButton *)(x))
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
31 struct _PButton {
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
32 Widget pb_widget;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
33 gint pb_nx, pb_ny;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
34 gint pb_px, pb_py;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
35 gboolean pb_pressed;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
36 gboolean pb_inside;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
37 gboolean pb_allow_draw;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
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
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
40 SkinPixmapId pb_skin_index1, pb_skin_index2;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
41 };
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
42
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
43 typedef struct _PButton PButton;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
44
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
45 PButton *create_pbutton(GList ** wlist, GdkPixmap * parent, GdkGC * gc,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
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
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
48 PButton *create_pbutton_ex(GList ** wlist, GdkPixmap * parent, GdkGC * gc,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
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
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
53 void free_pbutton(PButton * b);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
54 void pbutton_set_skin_index(PButton * b, SkinPixmapId si);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
55 void pbutton_set_skin_index1(PButton * b, SkinPixmapId si);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
56 void pbutton_set_skin_index2(PButton * b, SkinPixmapId si);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
57 void pbutton_set_button_data(PButton * b, gint nx, gint ny, gint px, gint py);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
58
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
59 #endif