Mercurial > audlegacy-plugins
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 |
rev | line source |
---|---|
2588 | 1 /* |
2 * Audacious - a cross-platform multimedia player | |
3 * Copyright (c) 2007 Tomasz Moń | |
4 * | |
5 * This program is free software; you can redistribute it and/or modify | |
6 * it under the terms of the GNU General Public License as published by | |
7 * the Free Software Foundation; under version 3 of the License. | |
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, see <http://www.gnu.org/licenses>. | |
16 * | |
17 * The Audacious team does not consider modular code linking to | |
18 * Audacious or using our public API to be a derived work. | |
19 */ | |
20 | |
21 #ifndef AUDACIOUS_UI_SKINNED_NUMBER_H | |
22 #define AUDACIOUS_UI_SKINNED_NUMBER_H | |
23 | |
24 #include <gtk/gtk.h> | |
25 #include "ui_skin.h" | |
26 | |
27 #ifdef __cplusplus | |
28 extern "C" { | |
29 #endif | |
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 | 34 |
35 typedef struct _UiSkinnedNumber UiSkinnedNumber; | |
36 typedef struct _UiSkinnedNumberClass UiSkinnedNumberClass; | |
37 | |
38 struct _UiSkinnedNumber { | |
39 GtkWidget widget; | |
40 | |
2888
7c7471554d88
convert some widgets into windowless ones
Tomasz Mon <desowin@gmail.com>
parents:
2588
diff
changeset
|
41 GdkWindow *event_window; |
2588 | 42 gint x, y, width, height; |
43 gint num; | |
44 gboolean scaled; | |
45 SkinPixmapId skin_index; | |
46 }; | |
47 | |
48 struct _UiSkinnedNumberClass { | |
49 GtkWidgetClass parent_class; | |
50 void (* scaled) (UiSkinnedNumber *textbox); | |
51 }; | |
52 | |
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 | 55 void ui_skinned_number_set_number(GtkWidget *widget, gint num); |
56 void ui_skinned_number_set_size(GtkWidget *widget, gint width, gint height); | |
57 | |
58 #ifdef __cplusplus | |
59 } | |
60 #endif | |
61 | |
62 #endif /* AUDACIOUS_UI_SKINNED_NUMBER_H */ |