annotate audacious/widgets/hslider.h @ 1541:06329cbf186a trunk

[svn] this massive commit does the following: - seriously cleans up dependencies on the WA2-like gui code - moves all of the WA2 stuff into a seperate library (libwidgets.a) - makes things less icky in the player tree
author nenolod
date Wed, 09 Aug 2006 02:47:22 -0700
parents
children 7c7195221c0b
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1541
06329cbf186a [svn] this massive commit does the following:
nenolod
parents:
diff changeset
1 /* XMMS - Cross-platform multimedia player
06329cbf186a [svn] this massive commit does the following:
nenolod
parents:
diff changeset
2 * Copyright (C) 1998-2000 Peter Alm, Mikael Alm, Olle Hallnas, Thomas Nilsson and 4Front Technologies
06329cbf186a [svn] this massive commit does the following:
nenolod
parents:
diff changeset
3 *
06329cbf186a [svn] this massive commit does the following:
nenolod
parents:
diff changeset
4 * This program is free software; you can redistribute it and/or modify
06329cbf186a [svn] this massive commit does the following:
nenolod
parents:
diff changeset
5 * it under the terms of the GNU General Public License as published by
06329cbf186a [svn] this massive commit does the following:
nenolod
parents:
diff changeset
6 * the Free Software Foundation; either version 2 of the License, or
06329cbf186a [svn] this massive commit does the following:
nenolod
parents:
diff changeset
7 * (at your option) any later version.
06329cbf186a [svn] this massive commit does the following:
nenolod
parents:
diff changeset
8 *
06329cbf186a [svn] this massive commit does the following:
nenolod
parents:
diff changeset
9 * This program is distributed in the hope that it will be useful,
06329cbf186a [svn] this massive commit does the following:
nenolod
parents:
diff changeset
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
06329cbf186a [svn] this massive commit does the following:
nenolod
parents:
diff changeset
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
06329cbf186a [svn] this massive commit does the following:
nenolod
parents:
diff changeset
12 * GNU General Public License for more details.
06329cbf186a [svn] this massive commit does the following:
nenolod
parents:
diff changeset
13 *
06329cbf186a [svn] this massive commit does the following:
nenolod
parents:
diff changeset
14 * You should have received a copy of the GNU General Public License
06329cbf186a [svn] this massive commit does the following:
nenolod
parents:
diff changeset
15 * along with this program; if not, write to the Free Software
06329cbf186a [svn] this massive commit does the following:
nenolod
parents:
diff changeset
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
06329cbf186a [svn] this massive commit does the following:
nenolod
parents:
diff changeset
17 */
06329cbf186a [svn] this massive commit does the following:
nenolod
parents:
diff changeset
18 #ifndef HSLIDER_H
06329cbf186a [svn] this massive commit does the following:
nenolod
parents:
diff changeset
19 #define HSLIDER_H
06329cbf186a [svn] this massive commit does the following:
nenolod
parents:
diff changeset
20
06329cbf186a [svn] this massive commit does the following:
nenolod
parents:
diff changeset
21 #include <glib.h>
06329cbf186a [svn] this massive commit does the following:
nenolod
parents:
diff changeset
22 #include <gdk/gdk.h>
06329cbf186a [svn] this massive commit does the following:
nenolod
parents:
diff changeset
23
06329cbf186a [svn] this massive commit does the following:
nenolod
parents:
diff changeset
24 #include "skin.h"
06329cbf186a [svn] this massive commit does the following:
nenolod
parents:
diff changeset
25 #include "widget.h"
06329cbf186a [svn] this massive commit does the following:
nenolod
parents:
diff changeset
26
06329cbf186a [svn] this massive commit does the following:
nenolod
parents:
diff changeset
27 #define HSLIDER(x) ((HSlider *)(x))
06329cbf186a [svn] this massive commit does the following:
nenolod
parents:
diff changeset
28 struct _HSlider {
06329cbf186a [svn] this massive commit does the following:
nenolod
parents:
diff changeset
29 Widget hs_widget;
06329cbf186a [svn] this massive commit does the following:
nenolod
parents:
diff changeset
30 gint hs_frame, hs_frame_offset, hs_frame_height, hs_min, hs_max;
06329cbf186a [svn] this massive commit does the following:
nenolod
parents:
diff changeset
31 gint hs_knob_nx, hs_knob_ny, hs_knob_px, hs_knob_py;
06329cbf186a [svn] this massive commit does the following:
nenolod
parents:
diff changeset
32 gint hs_knob_width, hs_knob_height;
06329cbf186a [svn] this massive commit does the following:
nenolod
parents:
diff changeset
33 gint hs_position;
06329cbf186a [svn] this massive commit does the following:
nenolod
parents:
diff changeset
34 gboolean hs_pressed;
06329cbf186a [svn] this massive commit does the following:
nenolod
parents:
diff changeset
35 gint hs_pressed_x, hs_pressed_y;
06329cbf186a [svn] this massive commit does the following:
nenolod
parents:
diff changeset
36 gint(*hs_frame_cb) (gint);
06329cbf186a [svn] this massive commit does the following:
nenolod
parents:
diff changeset
37 void (*hs_motion_cb) (gint);
06329cbf186a [svn] this massive commit does the following:
nenolod
parents:
diff changeset
38 void (*hs_release_cb) (gint);
06329cbf186a [svn] this massive commit does the following:
nenolod
parents:
diff changeset
39 SkinPixmapId hs_skin_index;
06329cbf186a [svn] this massive commit does the following:
nenolod
parents:
diff changeset
40 };
06329cbf186a [svn] this massive commit does the following:
nenolod
parents:
diff changeset
41
06329cbf186a [svn] this massive commit does the following:
nenolod
parents:
diff changeset
42 typedef struct _HSlider HSlider;
06329cbf186a [svn] this massive commit does the following:
nenolod
parents:
diff changeset
43
06329cbf186a [svn] this massive commit does the following:
nenolod
parents:
diff changeset
44 HSlider *create_hslider(GList ** wlist, GdkPixmap * parent, GdkGC * gc,
06329cbf186a [svn] this massive commit does the following:
nenolod
parents:
diff changeset
45 gint x, gint y, gint w, gint h, gint knx, gint kny,
06329cbf186a [svn] this massive commit does the following:
nenolod
parents:
diff changeset
46 gint kpx, gint kpy, gint kw, gint kh, gint fh,
06329cbf186a [svn] this massive commit does the following:
nenolod
parents:
diff changeset
47 gint fo, gint min, gint max, gint(*fcb) (gint),
06329cbf186a [svn] this massive commit does the following:
nenolod
parents:
diff changeset
48 void (*mcb) (gint), void (*rcb) (gint),
06329cbf186a [svn] this massive commit does the following:
nenolod
parents:
diff changeset
49 SkinPixmapId si);
06329cbf186a [svn] this massive commit does the following:
nenolod
parents:
diff changeset
50
06329cbf186a [svn] this massive commit does the following:
nenolod
parents:
diff changeset
51 void hslider_set_position(HSlider * hs, gint pos);
06329cbf186a [svn] this massive commit does the following:
nenolod
parents:
diff changeset
52 gint hslider_get_position(HSlider * hs);
06329cbf186a [svn] this massive commit does the following:
nenolod
parents:
diff changeset
53
06329cbf186a [svn] this massive commit does the following:
nenolod
parents:
diff changeset
54 #endif