Mercurial > audlegacy-plugins
annotate src/skins/ui_skinned_textbox.h @ 3105:1d42b759a2a9
gio: getc() would infinite loop in a situation
author | William Pitcock <nenolod@atheme.org> |
---|---|
date | Thu, 30 Apr 2009 12:27:14 -0500 |
parents | 963796db51ea |
children |
rev | line source |
---|---|
2586 | 1 /* |
2 * Audacious - a cross-platform multimedia player | |
3 * Copyright (c) 2007 Tomasz Moń | |
4 * | |
5 * Based on: | |
6 * BMP - Cross-platform multimedia player | |
7 * Copyright (C) 2003-2004 BMP development team. | |
8 * XMMS: | |
9 * Copyright (C) 1998-2003 XMMS development team. | |
10 * | |
11 * This program is free software; you can redistribute it and/or modify | |
12 * it under the terms of the GNU General Public License as published by | |
13 * the Free Software Foundation; under version 3 of the License. | |
14 * | |
15 * This program is distributed in the hope that it will be useful, | |
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
18 * GNU General Public License for more details. | |
19 * | |
20 * You should have received a copy of the GNU General Public License | |
21 * along with this program. If not, see <http://www.gnu.org/licenses>. | |
22 * | |
23 * The Audacious team does not consider modular code linking to | |
24 * Audacious or using our public API to be a derived work. | |
25 */ | |
26 | |
27 #ifndef AUDACIOUS_UI_SKINNED_TEXTBOX_H | |
28 #define AUDACIOUS_UI_SKINNED_TEXTBOX_H | |
29 | |
30 #include <gtk/gtk.h> | |
31 #include "ui_skin.h" | |
32 | |
33 #ifdef __cplusplus | |
34 extern "C" { | |
35 #endif | |
36 | |
3017
963796db51ea
Don't use deprecated gtk macros and types
Tomasz Mon <desowin@gmail.com>
parents:
2860
diff
changeset
|
37 #define UI_SKINNED_TEXTBOX(obj) G_TYPE_CHECK_INSTANCE_CAST (obj, ui_skinned_textbox_get_type (), UiSkinnedTextbox) |
963796db51ea
Don't use deprecated gtk macros and types
Tomasz Mon <desowin@gmail.com>
parents:
2860
diff
changeset
|
38 #define UI_SKINNED_TEXTBOX_CLASS(klass) G_TYPE_CHECK_CLASS_CAST (klass, ui_skinned_textbox_get_type (), UiSkinnedTextboxClass) |
963796db51ea
Don't use deprecated gtk macros and types
Tomasz Mon <desowin@gmail.com>
parents:
2860
diff
changeset
|
39 #define UI_SKINNED_IS_TEXTBOX(obj) G_TYPE_CHECK_INSTANCE_TYPE (obj, ui_skinned_textbox_get_type ()) |
2586 | 40 |
41 typedef struct _UiSkinnedTextbox UiSkinnedTextbox; | |
42 typedef struct _UiSkinnedTextboxClass UiSkinnedTextboxClass; | |
43 | |
44 struct _UiSkinnedTextbox { | |
45 GtkWidget widget; | |
46 | |
2860
2e081c64a529
transform UiSkinnedTextbox into windowless widget
Tomasz Mon <desowin@gmail.com>
parents:
2698
diff
changeset
|
47 GdkWindow *event_window; |
2586 | 48 gint x, y, width, height; |
49 gchar *text; | |
50 }; | |
51 | |
52 struct _UiSkinnedTextboxClass { | |
53 GtkWidgetClass parent_class; | |
54 void (* clicked) (UiSkinnedTextbox *textbox); | |
55 void (* double_clicked) (UiSkinnedTextbox *textbox); | |
56 void (* right_clicked) (UiSkinnedTextbox *textbox); | |
57 void (* scaled) (UiSkinnedTextbox *textbox); | |
58 }; | |
59 | |
60 GtkWidget* ui_skinned_textbox_new (GtkWidget *fixed, gint x, gint y, gint w, gboolean allow_scroll, SkinPixmapId si); | |
3017
963796db51ea
Don't use deprecated gtk macros and types
Tomasz Mon <desowin@gmail.com>
parents:
2860
diff
changeset
|
61 GType ui_skinned_textbox_get_type(void); |
2586 | 62 void ui_skinned_textbox_set_xfont(GtkWidget *widget, gboolean use_xfont, const gchar * fontname); |
63 void ui_skinned_textbox_set_text(GtkWidget *widget, const gchar *text); | |
64 void ui_skinned_textbox_set_scroll(GtkWidget *widget, gboolean scroll); | |
65 void ui_skinned_textbox_move_relative(GtkWidget *widget, gint x, gint y); | |
66 | |
67 #ifdef __cplusplus | |
68 } | |
69 #endif | |
70 | |
71 #endif /* AUDACIOUS_UI_SKINNED_TEXTBOX_H */ |