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
|
|
31 #define UI_SKINNED_NUMBER(obj) GTK_CHECK_CAST (obj, ui_skinned_number_get_type (), UiSkinnedNumber)
|
|
32 #define UI_SKINNED_NUMBER_CLASS(klass) GTK_CHECK_CLASS_CAST (klass, ui_skinned_number_get_type (), UiSkinnedNumberClass)
|
|
33 #define UI_SKINNED_IS_NUMBER(obj) GTK_CHECK_TYPE (obj, ui_skinned_number_get_type ())
|
|
34
|
|
35 typedef struct _UiSkinnedNumber UiSkinnedNumber;
|
|
36 typedef struct _UiSkinnedNumberClass UiSkinnedNumberClass;
|
|
37
|
|
38 struct _UiSkinnedNumber {
|
|
39 GtkWidget widget;
|
|
40
|
|
41 gint x, y, width, height;
|
|
42 gint num;
|
|
43 gboolean scaled;
|
|
44 SkinPixmapId skin_index;
|
|
45 };
|
|
46
|
|
47 struct _UiSkinnedNumberClass {
|
|
48 GtkWidgetClass parent_class;
|
|
49 void (* scaled) (UiSkinnedNumber *textbox);
|
|
50 };
|
|
51
|
|
52 GtkWidget* ui_skinned_number_new (GtkWidget *fixed, gint x, gint y, SkinPixmapId si);
|
|
53 GtkType ui_skinned_number_get_type(void);
|
|
54 void ui_skinned_number_set_number(GtkWidget *widget, gint num);
|
|
55 void ui_skinned_number_set_size(GtkWidget *widget, gint width, gint height);
|
|
56
|
|
57 #ifdef __cplusplus
|
|
58 }
|
|
59 #endif
|
|
60
|
|
61 #endif /* AUDACIOUS_UI_SKINNED_NUMBER_H */
|