Mercurial > audlegacy
annotate audacious/widgets/pbutton.h @ 1544:7c7195221c0b trunk
[svn] Do not allow widgetcore private includes to be referenced directly.
This breaks SVN right now, but I will fix it in a few moments.
author | nenolod |
---|---|
date | Thu, 10 Aug 2006 13:42:55 -0700 |
parents | 06329cbf186a |
children |
rev | line source |
---|---|
1541 | 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
20 */ | |
1544
7c7195221c0b
[svn] Do not allow widgetcore private includes to be referenced directly.
nenolod
parents:
1541
diff
changeset
|
21 |
7c7195221c0b
[svn] Do not allow widgetcore private includes to be referenced directly.
nenolod
parents:
1541
diff
changeset
|
22 #ifndef _WIDGETCORE_H_ |
7c7195221c0b
[svn] Do not allow widgetcore private includes to be referenced directly.
nenolod
parents:
1541
diff
changeset
|
23 #error Please do not include me directly! Use widgetcore.h instead! |
7c7195221c0b
[svn] Do not allow widgetcore private includes to be referenced directly.
nenolod
parents:
1541
diff
changeset
|
24 #endif |
7c7195221c0b
[svn] Do not allow widgetcore private includes to be referenced directly.
nenolod
parents:
1541
diff
changeset
|
25 |
1541 | 26 #ifndef PBUTTON_H |
27 #define PBUTTON_H | |
28 | |
29 #include <glib.h> | |
30 #include <gdk/gdk.h> | |
31 | |
32 #include "widget.h" | |
33 #include "skin.h" | |
34 | |
35 #define PBUTTON(x) ((PButton *)(x)) | |
36 struct _PButton { | |
37 Widget pb_widget; | |
38 gint pb_nx, pb_ny; | |
39 gint pb_px, pb_py; | |
40 gboolean pb_pressed; | |
41 gboolean pb_inside; | |
42 gboolean pb_allow_draw; | |
43 void (*pb_push_cb) (void); | |
44 void (*pb_release_cb) (void); | |
45 SkinPixmapId pb_skin_index1, pb_skin_index2; | |
46 }; | |
47 | |
48 typedef struct _PButton PButton; | |
49 | |
50 PButton *create_pbutton(GList ** wlist, GdkPixmap * parent, GdkGC * gc, | |
51 gint x, gint y, gint w, gint h, gint nx, gint ny, | |
52 gint px, gint py, void (*push_cb) (void), SkinPixmapId si); | |
53 PButton *create_pbutton_ex(GList ** wlist, GdkPixmap * parent, GdkGC * gc, | |
54 gint x, gint y, gint w, gint h, gint nx, | |
55 gint ny, gint px, gint py, void (*push_cb) (void), | |
56 void (*release_cb) (void), SkinPixmapId si1, | |
57 SkinPixmapId si2); | |
58 void free_pbutton(PButton * b); | |
59 void pbutton_set_skin_index(PButton * b, SkinPixmapId si); | |
60 void pbutton_set_skin_index1(PButton * b, SkinPixmapId si); | |
61 void pbutton_set_skin_index2(PButton * b, SkinPixmapId si); | |
62 void pbutton_set_button_data(PButton * b, gint nx, gint ny, gint px, gint py); | |
63 | |
64 #endif |