comparison audacious/widgets/hslider.h @ 1653:a6e6d3500c13 trunk

[svn] - revert back to r2216
author nenolod
date Thu, 07 Sep 2006 22:26:54 -0700
parents
children
comparison
equal deleted inserted replaced
1652:62c5bff8a05b 1653:a6e6d3500c13
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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 */
18
19 #ifndef _WIDGETCORE_H_
20 #error Please do not include me directly! Use widgetcore.h instead!
21 #endif
22
23 #ifndef HSLIDER_H
24 #define HSLIDER_H
25
26 #include <glib.h>
27 #include <gdk/gdk.h>
28
29 #include "skin.h"
30 #include "widget.h"
31
32 #define HSLIDER(x) ((HSlider *)(x))
33 struct _HSlider {
34 Widget hs_widget;
35 gint hs_frame, hs_frame_offset, hs_frame_height, hs_min, hs_max;
36 gint hs_knob_nx, hs_knob_ny, hs_knob_px, hs_knob_py;
37 gint hs_knob_width, hs_knob_height;
38 gint hs_position;
39 gboolean hs_pressed;
40 gint hs_pressed_x, hs_pressed_y;
41 gint(*hs_frame_cb) (gint);
42 void (*hs_motion_cb) (gint);
43 void (*hs_release_cb) (gint);
44 SkinPixmapId hs_skin_index;
45 };
46
47 typedef struct _HSlider HSlider;
48
49 HSlider *create_hslider(GList ** wlist, GdkPixmap * parent, GdkGC * gc,
50 gint x, gint y, gint w, gint h, gint knx, gint kny,
51 gint kpx, gint kpy, gint kw, gint kh, gint fh,
52 gint fo, gint min, gint max, gint(*fcb) (gint),
53 void (*mcb) (gint), void (*rcb) (gint),
54 SkinPixmapId si);
55
56 void hslider_set_position(HSlider * hs, gint pos);
57 gint hslider_get_position(HSlider * hs);
58
59 #endif