annotate audacious/widgets/hslider.h @ 1718:44c3711dd049 trunk

[svn] Fixed a LOT of warnings showing up with -Wall. This is the first step towards making Audacious compile with -Wall -Werror, but it's still far from beeing finished. PS: *sigh* I even had to patch C++ (therefore ugly) files!
author js
date Sat, 16 Sep 2006 17:17:22 -0700
parents a6e6d3500c13
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1653
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
1 /* XMMS - Cross-platform multimedia player
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
2 * Copyright (C) 1998-2000 Peter Alm, Mikael Alm, Olle Hallnas, Thomas Nilsson and 4Front Technologies
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
3 *
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
4 * This program is free software; you can redistribute it and/or modify
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
5 * it under the terms of the GNU General Public License as published by
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
6 * the Free Software Foundation; either version 2 of the License, or
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
7 * (at your option) any later version.
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
8 *
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
9 * This program is distributed in the hope that it will be useful,
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
12 * GNU General Public License for more details.
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
13 *
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
14 * You should have received a copy of the GNU General Public License
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
15 * along with this program; if not, write to the Free Software
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
17 */
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
18
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
19 #ifndef _WIDGETCORE_H_
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
20 #error Please do not include me directly! Use widgetcore.h instead!
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
21 #endif
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
22
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
23 #ifndef HSLIDER_H
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
24 #define HSLIDER_H
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
25
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
26 #include <glib.h>
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
27 #include <gdk/gdk.h>
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
28
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
29 #include "skin.h"
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
30 #include "widget.h"
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
31
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
32 #define HSLIDER(x) ((HSlider *)(x))
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
33 struct _HSlider {
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
34 Widget hs_widget;
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
35 gint hs_frame, hs_frame_offset, hs_frame_height, hs_min, hs_max;
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
36 gint hs_knob_nx, hs_knob_ny, hs_knob_px, hs_knob_py;
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
37 gint hs_knob_width, hs_knob_height;
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
38 gint hs_position;
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
39 gboolean hs_pressed;
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
40 gint hs_pressed_x, hs_pressed_y;
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
41 gint(*hs_frame_cb) (gint);
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
42 void (*hs_motion_cb) (gint);
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
43 void (*hs_release_cb) (gint);
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
44 SkinPixmapId hs_skin_index;
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
45 };
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
46
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
47 typedef struct _HSlider HSlider;
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
48
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
49 HSlider *create_hslider(GList ** wlist, GdkPixmap * parent, GdkGC * gc,
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
50 gint x, gint y, gint w, gint h, gint knx, gint kny,
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
51 gint kpx, gint kpy, gint kw, gint kh, gint fh,
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
52 gint fo, gint min, gint max, gint(*fcb) (gint),
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
53 void (*mcb) (gint), void (*rcb) (gint),
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
54 SkinPixmapId si);
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
55
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
56 void hslider_set_position(HSlider * hs, gint pos);
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
57 gint hslider_get_position(HSlider * hs);
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
58
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
59 #endif