annotate audacious/hslider.h @ 149:908ef215f340 trunk

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