annotate src/skins/ui_skinned_number.h @ 3185:d3cf6d14c960

alsa-ng: Add support for SND_FLOAT (SND_PCM_FORMAT_FLOAT).
author William Pitcock <nenolod@atheme.org>
date Fri, 19 Jun 2009 07:59:56 -0500
parents 963796db51ea
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2588
fa798fbd5fe9 add ui_skinned_number
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
1 /*
fa798fbd5fe9 add ui_skinned_number
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
2 * Audacious - a cross-platform multimedia player
fa798fbd5fe9 add ui_skinned_number
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
3 * Copyright (c) 2007 Tomasz Moń
fa798fbd5fe9 add ui_skinned_number
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
4 *
fa798fbd5fe9 add ui_skinned_number
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
5 * This program is free software; you can redistribute it and/or modify
fa798fbd5fe9 add ui_skinned_number
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
6 * it under the terms of the GNU General Public License as published by
fa798fbd5fe9 add ui_skinned_number
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
7 * the Free Software Foundation; under version 3 of the License.
fa798fbd5fe9 add ui_skinned_number
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
8 *
fa798fbd5fe9 add ui_skinned_number
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
9 * This program is distributed in the hope that it will be useful,
fa798fbd5fe9 add ui_skinned_number
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
fa798fbd5fe9 add ui_skinned_number
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
fa798fbd5fe9 add ui_skinned_number
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
12 * GNU General Public License for more details.
fa798fbd5fe9 add ui_skinned_number
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
13 *
fa798fbd5fe9 add ui_skinned_number
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
14 * You should have received a copy of the GNU General Public License
fa798fbd5fe9 add ui_skinned_number
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
15 * along with this program. If not, see <http://www.gnu.org/licenses>.
fa798fbd5fe9 add ui_skinned_number
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
16 *
fa798fbd5fe9 add ui_skinned_number
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
17 * The Audacious team does not consider modular code linking to
fa798fbd5fe9 add ui_skinned_number
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
18 * Audacious or using our public API to be a derived work.
fa798fbd5fe9 add ui_skinned_number
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
19 */
fa798fbd5fe9 add ui_skinned_number
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
20
fa798fbd5fe9 add ui_skinned_number
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
21 #ifndef AUDACIOUS_UI_SKINNED_NUMBER_H
fa798fbd5fe9 add ui_skinned_number
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
22 #define AUDACIOUS_UI_SKINNED_NUMBER_H
fa798fbd5fe9 add ui_skinned_number
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
23
fa798fbd5fe9 add ui_skinned_number
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
24 #include <gtk/gtk.h>
fa798fbd5fe9 add ui_skinned_number
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
25 #include "ui_skin.h"
fa798fbd5fe9 add ui_skinned_number
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
26
fa798fbd5fe9 add ui_skinned_number
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
27 #ifdef __cplusplus
fa798fbd5fe9 add ui_skinned_number
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
28 extern "C" {
fa798fbd5fe9 add ui_skinned_number
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
29 #endif
fa798fbd5fe9 add ui_skinned_number
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
30
3017
963796db51ea Don't use deprecated gtk macros and types
Tomasz Mon <desowin@gmail.com>
parents: 2888
diff changeset
31 #define UI_SKINNED_NUMBER(obj) G_TYPE_CHECK_INSTANCE_CAST (obj, ui_skinned_number_get_type (), UiSkinnedNumber)
963796db51ea Don't use deprecated gtk macros and types
Tomasz Mon <desowin@gmail.com>
parents: 2888
diff changeset
32 #define UI_SKINNED_NUMBER_CLASS(klass) G_TYPE_CHECK_CLASS_CAST (klass, ui_skinned_number_get_type (), UiSkinnedNumberClass)
963796db51ea Don't use deprecated gtk macros and types
Tomasz Mon <desowin@gmail.com>
parents: 2888
diff changeset
33 #define UI_SKINNED_IS_NUMBER(obj) G_TYPE_CHECK_INSTANCE_TYPE (obj, ui_skinned_number_get_type ())
2588
fa798fbd5fe9 add ui_skinned_number
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
34
fa798fbd5fe9 add ui_skinned_number
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
35 typedef struct _UiSkinnedNumber UiSkinnedNumber;
fa798fbd5fe9 add ui_skinned_number
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
36 typedef struct _UiSkinnedNumberClass UiSkinnedNumberClass;
fa798fbd5fe9 add ui_skinned_number
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
37
fa798fbd5fe9 add ui_skinned_number
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
38 struct _UiSkinnedNumber {
fa798fbd5fe9 add ui_skinned_number
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
39 GtkWidget widget;
fa798fbd5fe9 add ui_skinned_number
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
40
2888
7c7471554d88 convert some widgets into windowless ones
Tomasz Mon <desowin@gmail.com>
parents: 2588
diff changeset
41 GdkWindow *event_window;
2588
fa798fbd5fe9 add ui_skinned_number
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
42 gint x, y, width, height;
fa798fbd5fe9 add ui_skinned_number
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
43 gint num;
fa798fbd5fe9 add ui_skinned_number
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
44 gboolean scaled;
fa798fbd5fe9 add ui_skinned_number
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
45 SkinPixmapId skin_index;
fa798fbd5fe9 add ui_skinned_number
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
46 };
fa798fbd5fe9 add ui_skinned_number
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
47
fa798fbd5fe9 add ui_skinned_number
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
48 struct _UiSkinnedNumberClass {
fa798fbd5fe9 add ui_skinned_number
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
49 GtkWidgetClass parent_class;
fa798fbd5fe9 add ui_skinned_number
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
50 void (* scaled) (UiSkinnedNumber *textbox);
fa798fbd5fe9 add ui_skinned_number
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
51 };
fa798fbd5fe9 add ui_skinned_number
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
52
fa798fbd5fe9 add ui_skinned_number
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
53 GtkWidget* ui_skinned_number_new (GtkWidget *fixed, gint x, gint y, SkinPixmapId si);
3017
963796db51ea Don't use deprecated gtk macros and types
Tomasz Mon <desowin@gmail.com>
parents: 2888
diff changeset
54 GType ui_skinned_number_get_type(void);
2588
fa798fbd5fe9 add ui_skinned_number
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
55 void ui_skinned_number_set_number(GtkWidget *widget, gint num);
fa798fbd5fe9 add ui_skinned_number
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
56 void ui_skinned_number_set_size(GtkWidget *widget, gint width, gint height);
fa798fbd5fe9 add ui_skinned_number
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
57
fa798fbd5fe9 add ui_skinned_number
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
58 #ifdef __cplusplus
fa798fbd5fe9 add ui_skinned_number
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
59 }
fa798fbd5fe9 add ui_skinned_number
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
60 #endif
fa798fbd5fe9 add ui_skinned_number
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
61
fa798fbd5fe9 add ui_skinned_number
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
62 #endif /* AUDACIOUS_UI_SKINNED_NUMBER_H */