annotate src/skins/ui_skinned_horizontal_slider.h @ 3047:4434b4c4a715

ported EsounD plugin
author Andrew O. Shadoura <bugzilla@tut.by>
date Fri, 17 Apr 2009 16:17:10 +0300
parents 963796db51ea
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2589
edf99201700e add ui_skinned_horizontal_slider
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
1 /*
edf99201700e add ui_skinned_horizontal_slider
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
2 * Audacious - a cross-platform multimedia player
edf99201700e add ui_skinned_horizontal_slider
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
3 * Copyright (c) 2007 Tomasz Moń
edf99201700e add ui_skinned_horizontal_slider
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
4 *
edf99201700e add ui_skinned_horizontal_slider
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
5 * Based on:
edf99201700e add ui_skinned_horizontal_slider
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
6 * BMP - Cross-platform multimedia player
edf99201700e add ui_skinned_horizontal_slider
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
7 * Copyright (C) 2003-2004 BMP development team.
edf99201700e add ui_skinned_horizontal_slider
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
8 * XMMS:
edf99201700e add ui_skinned_horizontal_slider
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
9 * Copyright (C) 1998-2003 XMMS development team.
edf99201700e add ui_skinned_horizontal_slider
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
10 *
edf99201700e add ui_skinned_horizontal_slider
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
11 * This program is free software; you can redistribute it and/or modify
edf99201700e add ui_skinned_horizontal_slider
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
12 * it under the terms of the GNU General Public License as published by
edf99201700e add ui_skinned_horizontal_slider
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
13 * the Free Software Foundation; under version 3 of the License.
edf99201700e add ui_skinned_horizontal_slider
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
14 *
edf99201700e add ui_skinned_horizontal_slider
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
15 * This program is distributed in the hope that it will be useful,
edf99201700e add ui_skinned_horizontal_slider
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
edf99201700e add ui_skinned_horizontal_slider
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
edf99201700e add ui_skinned_horizontal_slider
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
18 * GNU General Public License for more details.
edf99201700e add ui_skinned_horizontal_slider
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
19 *
edf99201700e add ui_skinned_horizontal_slider
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
20 * You should have received a copy of the GNU General Public License
edf99201700e add ui_skinned_horizontal_slider
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
21 * along with this program. If not, see <http://www.gnu.org/licenses>.
edf99201700e add ui_skinned_horizontal_slider
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
22 *
edf99201700e add ui_skinned_horizontal_slider
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
23 * The Audacious team does not consider modular code linking to
edf99201700e add ui_skinned_horizontal_slider
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
24 * Audacious or using our public API to be a derived work.
edf99201700e add ui_skinned_horizontal_slider
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
25 */
edf99201700e add ui_skinned_horizontal_slider
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
26
edf99201700e add ui_skinned_horizontal_slider
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
27 #ifndef AUDACIOUS_UI_SKINNED_HORIZONTAL_SLIDER_H
edf99201700e add ui_skinned_horizontal_slider
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
28 #define AUDACIOUS_UI_SKINNED_HORIZONTAL_SLIDER_H
edf99201700e add ui_skinned_horizontal_slider
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
29
edf99201700e add ui_skinned_horizontal_slider
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
30 #include <gtk/gtk.h>
edf99201700e add ui_skinned_horizontal_slider
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
31 #include "ui_skin.h"
edf99201700e add ui_skinned_horizontal_slider
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
32
edf99201700e add ui_skinned_horizontal_slider
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
33 #ifdef __cplusplus
edf99201700e add ui_skinned_horizontal_slider
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
34 extern "C" {
edf99201700e add ui_skinned_horizontal_slider
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
35 #endif
edf99201700e add ui_skinned_horizontal_slider
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
36
3017
963796db51ea Don't use deprecated gtk macros and types
Tomasz Mon <desowin@gmail.com>
parents: 2888
diff changeset
37 #define UI_SKINNED_HORIZONTAL_SLIDER(obj) G_TYPE_CHECK_INSTANCE_CAST (obj, ui_skinned_horizontal_slider_get_type (), UiSkinnedHorizontalSlider)
963796db51ea Don't use deprecated gtk macros and types
Tomasz Mon <desowin@gmail.com>
parents: 2888
diff changeset
38 #define UI_SKINNED_HORIZONTAL_SLIDER_CLASS(klass) G_TYPE_CHECK_CLASS_CAST (klass, ui_skinned_horizontal_slider_get_type (), UiSkinnedHorizontalSliderClass)
963796db51ea Don't use deprecated gtk macros and types
Tomasz Mon <desowin@gmail.com>
parents: 2888
diff changeset
39 #define UI_SKINNED_IS_HORIZONTAL_SLIDER(obj) G_TYPE_CHECK_INSTANCE_TYPE (obj, ui_skinned_horizontal_slider_get_type ())
2589
edf99201700e add ui_skinned_horizontal_slider
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
40
edf99201700e add ui_skinned_horizontal_slider
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
41 typedef struct _UiSkinnedHorizontalSlider UiSkinnedHorizontalSlider;
edf99201700e add ui_skinned_horizontal_slider
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
42 typedef struct _UiSkinnedHorizontalSliderClass UiSkinnedHorizontalSliderClass;
edf99201700e add ui_skinned_horizontal_slider
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
43
edf99201700e add ui_skinned_horizontal_slider
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
44 struct _UiSkinnedHorizontalSlider {
edf99201700e add ui_skinned_horizontal_slider
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
45 GtkWidget widget;
2888
7c7471554d88 convert some widgets into windowless ones
Tomasz Mon <desowin@gmail.com>
parents: 2698
diff changeset
46 GdkWindow *event_window;
2589
edf99201700e add ui_skinned_horizontal_slider
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
47 gboolean pressed;
edf99201700e add ui_skinned_horizontal_slider
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
48 gint x, y;
edf99201700e add ui_skinned_horizontal_slider
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
49 gint knob_nx, knob_ny, knob_px, knob_py;
edf99201700e add ui_skinned_horizontal_slider
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
50 };
edf99201700e add ui_skinned_horizontal_slider
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
51
edf99201700e add ui_skinned_horizontal_slider
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
52 struct _UiSkinnedHorizontalSliderClass {
edf99201700e add ui_skinned_horizontal_slider
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
53 GtkWidgetClass parent_class;
edf99201700e add ui_skinned_horizontal_slider
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
54 void (* motion) (UiSkinnedHorizontalSlider *horizontal_slider);
edf99201700e add ui_skinned_horizontal_slider
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
55 void (* release) (UiSkinnedHorizontalSlider *horizontal_slider);
edf99201700e add ui_skinned_horizontal_slider
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
56 void (* scaled) (UiSkinnedHorizontalSlider *horizontal_slider);
edf99201700e add ui_skinned_horizontal_slider
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
57 };
edf99201700e add ui_skinned_horizontal_slider
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
58 GtkWidget* ui_skinned_horizontal_slider_new(GtkWidget *fixed, gint x, gint y, gint w, gint h, gint knx, gint kny,
edf99201700e add ui_skinned_horizontal_slider
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
59 gint kpx, gint kpy, gint kw, gint kh, gint fh,
edf99201700e add ui_skinned_horizontal_slider
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
60 gint fo, gint min, gint max, gint(*fcb) (gint), SkinPixmapId si);
3017
963796db51ea Don't use deprecated gtk macros and types
Tomasz Mon <desowin@gmail.com>
parents: 2888
diff changeset
61 GType ui_skinned_horizontal_slider_get_type(void);
2589
edf99201700e add ui_skinned_horizontal_slider
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
62 void ui_skinned_horizontal_slider_set_position(GtkWidget *widget, gint pos);
edf99201700e add ui_skinned_horizontal_slider
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
63 gint ui_skinned_horizontal_slider_get_position(GtkWidget *widget);
edf99201700e add ui_skinned_horizontal_slider
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
64
edf99201700e add ui_skinned_horizontal_slider
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
65 #ifdef __cplusplus
edf99201700e add ui_skinned_horizontal_slider
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
66 }
edf99201700e add ui_skinned_horizontal_slider
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
67 #endif
edf99201700e add ui_skinned_horizontal_slider
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
68
edf99201700e add ui_skinned_horizontal_slider
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
69 #endif /* AUDACIOUS_UI_SKINNED_HORIZONTAL_SLIDER_H */