annotate src/skins/ui_skinned_equalizer_slider.h @ 3182:631d217913e0

alsa-ng: Fix arithmetic overflow on 32-bit systems.
author John Lindgren <john.lindgren@tds.net>
date Fri, 12 Jun 2009 09:17:09 -0400
parents 963796db51ea
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2605
ecd8b5653c30 add ui_skinned_equalizer_slider
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
1 /*
ecd8b5653c30 add ui_skinned_equalizer_slider
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
2 * Audacious - a cross-platform multimedia player
ecd8b5653c30 add ui_skinned_equalizer_slider
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
3 * Copyright (c) 2007 Tomasz Moń
ecd8b5653c30 add ui_skinned_equalizer_slider
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
4 *
ecd8b5653c30 add ui_skinned_equalizer_slider
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
5 * Based on:
ecd8b5653c30 add ui_skinned_equalizer_slider
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
6 * BMP - Cross-platform multimedia player
ecd8b5653c30 add ui_skinned_equalizer_slider
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
7 * Copyright (C) 2003-2004 BMP development team.
ecd8b5653c30 add ui_skinned_equalizer_slider
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
8 * XMMS:
ecd8b5653c30 add ui_skinned_equalizer_slider
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
9 * Copyright (C) 1998-2003 XMMS development team.
ecd8b5653c30 add ui_skinned_equalizer_slider
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
10 *
ecd8b5653c30 add ui_skinned_equalizer_slider
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
11 * This program is free software; you can redistribute it and/or modify
ecd8b5653c30 add ui_skinned_equalizer_slider
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
12 * it under the terms of the GNU General Public License as published by
ecd8b5653c30 add ui_skinned_equalizer_slider
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
13 * the Free Software Foundation; under version 3 of the License.
ecd8b5653c30 add ui_skinned_equalizer_slider
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
14 *
ecd8b5653c30 add ui_skinned_equalizer_slider
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
15 * This program is distributed in the hope that it will be useful,
ecd8b5653c30 add ui_skinned_equalizer_slider
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
ecd8b5653c30 add ui_skinned_equalizer_slider
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
ecd8b5653c30 add ui_skinned_equalizer_slider
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
18 * GNU General Public License for more details.
ecd8b5653c30 add ui_skinned_equalizer_slider
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
19 *
ecd8b5653c30 add ui_skinned_equalizer_slider
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
20 * You should have received a copy of the GNU General Public License
ecd8b5653c30 add ui_skinned_equalizer_slider
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
21 * along with this program; If not, see <http://www.gnu.org/licenses>.
ecd8b5653c30 add ui_skinned_equalizer_slider
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
22 */
ecd8b5653c30 add ui_skinned_equalizer_slider
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
23
ecd8b5653c30 add ui_skinned_equalizer_slider
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
24 #ifndef AUDACIOUS_UI_SKINNED_EQUALIZER_SLIDER_H
ecd8b5653c30 add ui_skinned_equalizer_slider
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
25 #define AUDACIOUS_UI_SKINNED_EQUALIZER_SLIDER_H
ecd8b5653c30 add ui_skinned_equalizer_slider
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
26
ecd8b5653c30 add ui_skinned_equalizer_slider
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
27 #include <gtk/gtk.h>
ecd8b5653c30 add ui_skinned_equalizer_slider
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
28 #include "ui_skin.h"
ecd8b5653c30 add ui_skinned_equalizer_slider
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
29
ecd8b5653c30 add ui_skinned_equalizer_slider
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
30 #ifdef __cplusplus
ecd8b5653c30 add ui_skinned_equalizer_slider
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
31 extern "C" {
ecd8b5653c30 add ui_skinned_equalizer_slider
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
32 #endif
ecd8b5653c30 add ui_skinned_equalizer_slider
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
33
ecd8b5653c30 add ui_skinned_equalizer_slider
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
34 #define EQUALIZER_MAX_GAIN 12.0
ecd8b5653c30 add ui_skinned_equalizer_slider
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
35
3017
963796db51ea Don't use deprecated gtk macros and types
Tomasz Mon <desowin@gmail.com>
parents: 2888
diff changeset
36 #define UI_SKINNED_EQUALIZER_SLIDER(obj) G_TYPE_CHECK_INSTANCE_CAST (obj, ui_skinned_equalizer_slider_get_type (), UiSkinnedEqualizerSlider)
963796db51ea Don't use deprecated gtk macros and types
Tomasz Mon <desowin@gmail.com>
parents: 2888
diff changeset
37 #define UI_SKINNED_EQUALIZER_SLIDER_CLASS(klass) G_TYPE_CHECK_CLASS_CAST (klass, ui_skinned_equalizer_slider_get_type (), UiSkinnedEqualizerSliderClass)
963796db51ea Don't use deprecated gtk macros and types
Tomasz Mon <desowin@gmail.com>
parents: 2888
diff changeset
38 #define UI_SKINNED_IS_EQUALIZER_SLIDER(obj) G_TYPE_CHECK_INSTANCE_TYPE (obj, ui_skinned_equalizer_slider_get_type ())
2605
ecd8b5653c30 add ui_skinned_equalizer_slider
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
39
ecd8b5653c30 add ui_skinned_equalizer_slider
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
40 typedef struct _UiSkinnedEqualizerSlider UiSkinnedEqualizerSlider;
ecd8b5653c30 add ui_skinned_equalizer_slider
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
41 typedef struct _UiSkinnedEqualizerSliderClass UiSkinnedEqualizerSliderClass;
ecd8b5653c30 add ui_skinned_equalizer_slider
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
42
ecd8b5653c30 add ui_skinned_equalizer_slider
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
43 struct _UiSkinnedEqualizerSlider {
ecd8b5653c30 add ui_skinned_equalizer_slider
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
44 GtkWidget widget;
2888
7c7471554d88 convert some widgets into windowless ones
Tomasz Mon <desowin@gmail.com>
parents: 2605
diff changeset
45 GdkWindow *event_window;
2605
ecd8b5653c30 add ui_skinned_equalizer_slider
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
46 gint x, y;
ecd8b5653c30 add ui_skinned_equalizer_slider
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
47 };
ecd8b5653c30 add ui_skinned_equalizer_slider
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
48
ecd8b5653c30 add ui_skinned_equalizer_slider
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
49 struct _UiSkinnedEqualizerSliderClass {
ecd8b5653c30 add ui_skinned_equalizer_slider
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
50 GtkWidgetClass parent_class;
ecd8b5653c30 add ui_skinned_equalizer_slider
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
51 void (* scaled) (UiSkinnedEqualizerSlider *equalizer_slider);
ecd8b5653c30 add ui_skinned_equalizer_slider
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
52 };
ecd8b5653c30 add ui_skinned_equalizer_slider
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
53
ecd8b5653c30 add ui_skinned_equalizer_slider
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
54 GtkWidget* ui_skinned_equalizer_slider_new(GtkWidget *fixed, gint x, gint y);
3017
963796db51ea Don't use deprecated gtk macros and types
Tomasz Mon <desowin@gmail.com>
parents: 2888
diff changeset
55 GType ui_skinned_equalizer_slider_get_type(void);
2605
ecd8b5653c30 add ui_skinned_equalizer_slider
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
56 void ui_skinned_equalizer_slider_set_position(GtkWidget *widget, gfloat pos);
ecd8b5653c30 add ui_skinned_equalizer_slider
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
57 gfloat ui_skinned_equalizer_slider_get_position(GtkWidget *widget);
ecd8b5653c30 add ui_skinned_equalizer_slider
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
58
ecd8b5653c30 add ui_skinned_equalizer_slider
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
59 #ifdef __cplusplus
ecd8b5653c30 add ui_skinned_equalizer_slider
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
60 }
ecd8b5653c30 add ui_skinned_equalizer_slider
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
61 #endif
ecd8b5653c30 add ui_skinned_equalizer_slider
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
62
ecd8b5653c30 add ui_skinned_equalizer_slider
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
63 #endif /* AUDACIOUS_UI_SKINNED_EQUALIZER_SLIDER_H */