0
|
1 /* XMMS - Cross-platform multimedia player
|
|
2 * Copyright (C) 1998-2000 Peter Alm, Mikael Alm, Olle Hallnas, Thomas Nilsson and 4Front Technologies
|
|
3 *
|
|
4 * This program is free software; you can redistribute it and/or modify
|
|
5 * it under the terms of the GNU General Public License as published by
|
|
6 * the Free Software Foundation; either version 2 of the License, or
|
|
7 * (at your option) any later version.
|
|
8 *
|
|
9 * This program is distributed in the hope that it will be useful,
|
|
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
12 * GNU General Public License for more details.
|
|
13 *
|
|
14 * You should have received a copy of the GNU General Public License
|
|
15 * along with this program; if not, write to the Free Software
|
|
16 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
17 */
|
|
18 #ifndef HSLIDER_H
|
|
19 #define HSLIDER_H
|
|
20
|
|
21 #include <glib.h>
|
|
22 #include <gdk/gdk.h>
|
|
23
|
|
24 #include "skin.h"
|
|
25 #include "widget.h"
|
|
26
|
|
27 #define HSLIDER(x) ((HSlider *)(x))
|
|
28 struct _HSlider {
|
|
29 Widget hs_widget;
|
|
30 gint hs_frame, hs_frame_offset, hs_frame_height, hs_min, hs_max;
|
|
31 gint hs_knob_nx, hs_knob_ny, hs_knob_px, hs_knob_py;
|
|
32 gint hs_knob_width, hs_knob_height;
|
|
33 gint hs_position;
|
|
34 gboolean hs_pressed;
|
|
35 gint hs_pressed_x, hs_pressed_y;
|
|
36 gint(*hs_frame_cb) (gint);
|
|
37 void (*hs_motion_cb) (gint);
|
|
38 void (*hs_release_cb) (gint);
|
|
39 SkinPixmapId hs_skin_index;
|
|
40 };
|
|
41
|
|
42 typedef struct _HSlider HSlider;
|
|
43
|
|
44 HSlider *create_hslider(GList ** wlist, GdkPixmap * parent, GdkGC * gc,
|
|
45 gint x, gint y, gint w, gint h, gint knx, gint kny,
|
|
46 gint kpx, gint kpy, gint kw, gint kh, gint fh,
|
|
47 gint fo, gint min, gint max, gint(*fcb) (gint),
|
|
48 void (*mcb) (gint), void (*rcb) (gint),
|
|
49 SkinPixmapId si);
|
|
50
|
|
51 void hslider_set_position(HSlider * hs, gint pos);
|
|
52 gint hslider_get_position(HSlider * hs);
|
|
53
|
|
54 #endif
|