Mercurial > audlegacy
comparison src/audacious/ui_skinned_number.h @ 3001:6d4b7b739232 trunk
fully implement UiSkinnedNumber, number.c no longer needed
author | Tomasz Mon <desowin@gmail.com> |
---|---|
date | Sun, 08 Jul 2007 12:21:09 +0200 |
parents | |
children | 26c68f59663d |
comparison
equal
deleted
inserted
replaced
3000:bbca1e0e054a | 3001:6d4b7b739232 |
---|---|
1 /* | |
2 * Audacious - a cross-platform multimedia player | |
3 * Copyright (c) 2007 Audacious development team. | |
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 2 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, write to the Free Software | |
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
17 */ | |
18 | |
19 #ifndef UISKINNEDNUMBER_H | |
20 #define UISKINNEDNUMBER_H | |
21 | |
22 #include <gdk/gdk.h> | |
23 #include <gtk/gtkadjustment.h> | |
24 #include <gtk/gtkwidget.h> | |
25 | |
26 #ifdef __cplusplus | |
27 extern "C" { | |
28 #endif | |
29 | |
30 #define UI_SKINNED_NUMBER(obj) GTK_CHECK_CAST (obj, ui_skinned_number_get_type (), UiSkinnedNumber) | |
31 #define UI_SKINNED_NUMBER_CLASS(klass) GTK_CHECK_CLASS_CAST (klass, ui_skinned_number_get_type (), UiSkinnedNumberClass) | |
32 #define UI_SKINNED_IS_NUMBER(obj) GTK_CHECK_TYPE (obj, ui_skinned_number_get_type ()) | |
33 | |
34 typedef struct _UiSkinnedNumber UiSkinnedNumber; | |
35 typedef struct _UiSkinnedNumberClass UiSkinnedNumberClass; | |
36 | |
37 struct _UiSkinnedNumber { | |
38 GtkWidget widget; | |
39 | |
40 gint x, y, width, height; | |
41 gint num; | |
42 gboolean double_size; | |
43 GdkPixmap *img; | |
44 GdkGC *gc; | |
45 SkinPixmapId skin_index; | |
46 GtkWidget *fixed; | |
47 }; | |
48 | |
49 struct _UiSkinnedNumberClass { | |
50 GtkWidgetClass parent_class; | |
51 void (* clicked) (UiSkinnedNumber *textbox); | |
52 void (* doubled) (UiSkinnedNumber *textbox); | |
53 void (* redraw) (UiSkinnedNumber *textbox); | |
54 }; | |
55 | |
56 GtkWidget* ui_skinned_number_new (GtkWidget *fixed, GdkPixmap * parent, GdkGC * gc, gint x, gint y, SkinPixmapId si); | |
57 GtkType ui_skinned_number_get_type(void); | |
58 void ui_skinned_number_set_number(GtkWidget *widget, gint num); | |
59 | |
60 #ifdef __cplusplus | |
61 } | |
62 #endif | |
63 | |
64 #endif |