annotate audacious/pbutton.h @ 237:02c17a5c99e3 trunk

[svn] - Implement widget_draw_quick(widget_t *) for doing an immediate draw operation on a widget. - Use widget_draw_quick() to force a playlist update on unshade.
author nenolod
date Sat, 26 Nov 2005 18:28:19 -0800
parents cb178e5ad177
children d7d70779c074
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);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
39 SkinPixmapId pb_skin_index1, pb_skin_index2;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
40 };
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
41
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
42 typedef struct _PButton PButton;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
43
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
44 PButton *create_pbutton(GList ** wlist, GdkPixmap * parent, GdkGC * gc,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
45 gint x, gint y, gint w, gint h, gint nx, gint ny,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
46 gint px, gint py, void (*cb) (void), SkinPixmapId si);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
47 PButton *create_pbutton_ex(GList ** wlist, GdkPixmap * parent, GdkGC * gc,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
48 gint x, gint y, gint w, gint h, gint nx,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
49 gint ny, gint px, gint py, void (*cb) (void),
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
50 SkinPixmapId si1, SkinPixmapId si2);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
51 void free_pbutton(PButton * b);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
52 void pbutton_set_skin_index(PButton * b, SkinPixmapId si);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
53 void pbutton_set_skin_index1(PButton * b, SkinPixmapId si);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
54 void pbutton_set_skin_index2(PButton * b, SkinPixmapId si);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
55 void pbutton_set_button_data(PButton * b, gint nx, gint ny, gint px, gint py);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
56
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
57 #endif