annotate src/audacious/ui_skinned_textbox.h @ 4267:a41fb6bc632a

- src stuff traveled to src_flow.c - vis works again.
author Eugene Zagidullin <e.asphyx@gmail.com>
date Sun, 10 Feb 2008 07:19:45 +0300
parents 742f00832961
children 246244ead30e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2911
cd21a4556dd2 include UiSkinnedTextbox
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
1 /*
cd21a4556dd2 include UiSkinnedTextbox
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
2 * Audacious - a cross-platform multimedia player
3840
46591501603e Add my name in few places
Tomasz Mon <desowin@gmail.com>
parents: 3251
diff changeset
3 * Copyright (c) 2007 Tomasz Moń
2911
cd21a4556dd2 include UiSkinnedTextbox
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
4 *
2980
d58560be5a4c draw directly instead using embeded GtkImage
Tomasz Mon <desowin@gmail.com>
parents: 2948
diff changeset
5 * Based on:
d58560be5a4c draw directly instead using embeded GtkImage
Tomasz Mon <desowin@gmail.com>
parents: 2948
diff changeset
6 * BMP - Cross-platform multimedia player
d58560be5a4c draw directly instead using embeded GtkImage
Tomasz Mon <desowin@gmail.com>
parents: 2948
diff changeset
7 * Copyright (C) 2003-2004 BMP development team.
d58560be5a4c draw directly instead using embeded GtkImage
Tomasz Mon <desowin@gmail.com>
parents: 2948
diff changeset
8 * XMMS:
d58560be5a4c draw directly instead using embeded GtkImage
Tomasz Mon <desowin@gmail.com>
parents: 2948
diff changeset
9 * Copyright (C) 1998-2003 XMMS development team.
d58560be5a4c draw directly instead using embeded GtkImage
Tomasz Mon <desowin@gmail.com>
parents: 2948
diff changeset
10 *
2911
cd21a4556dd2 include UiSkinnedTextbox
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
11 * This program is free software; you can redistribute it and/or modify
cd21a4556dd2 include UiSkinnedTextbox
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
12 * it under the terms of the GNU General Public License as published by
3121
3b6d316f8b09 GPL3 relicensing.
William Pitcock <nenolod@atheme-project.org>
parents: 3105
diff changeset
13 * the Free Software Foundation; under version 3 of the License.
2911
cd21a4556dd2 include UiSkinnedTextbox
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
14 *
cd21a4556dd2 include UiSkinnedTextbox
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
15 * This program is distributed in the hope that it will be useful,
cd21a4556dd2 include UiSkinnedTextbox
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
cd21a4556dd2 include UiSkinnedTextbox
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
cd21a4556dd2 include UiSkinnedTextbox
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
18 * GNU General Public License for more details.
cd21a4556dd2 include UiSkinnedTextbox
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
19 *
cd21a4556dd2 include UiSkinnedTextbox
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
20 * You should have received a copy of the GNU General Public License
3121
3b6d316f8b09 GPL3 relicensing.
William Pitcock <nenolod@atheme-project.org>
parents: 3105
diff changeset
21 * along with this program. If not, see <http://www.gnu.org/licenses>.
3123
f1c756f39e6c Invoke "Plugins are not derived work" clause provided by GPL3.
William Pitcock <nenolod@atheme-project.org>
parents: 3121
diff changeset
22 *
f1c756f39e6c Invoke "Plugins are not derived work" clause provided by GPL3.
William Pitcock <nenolod@atheme-project.org>
parents: 3121
diff changeset
23 * The Audacious team does not consider modular code linking to
f1c756f39e6c Invoke "Plugins are not derived work" clause provided by GPL3.
William Pitcock <nenolod@atheme-project.org>
parents: 3121
diff changeset
24 * Audacious or using our public API to be a derived work.
2911
cd21a4556dd2 include UiSkinnedTextbox
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
25 */
cd21a4556dd2 include UiSkinnedTextbox
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
26
cd21a4556dd2 include UiSkinnedTextbox
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
27 #ifndef UISKINNEDTEXTBOX_H
cd21a4556dd2 include UiSkinnedTextbox
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
28 #define UISKINNEDTEXTBOX_H
cd21a4556dd2 include UiSkinnedTextbox
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
29
3219
2f08ee945857 fix includes
Tomasz Mon <desowin@gmail.com>
parents: 3123
diff changeset
30 #include <gtk/gtk.h>
3251
f02623377013 goodbye widgets directory
Tomasz Mon <desowin@gmail.com>
parents: 3250
diff changeset
31 #include "skin.h"
3219
2f08ee945857 fix includes
Tomasz Mon <desowin@gmail.com>
parents: 3123
diff changeset
32
2980
d58560be5a4c draw directly instead using embeded GtkImage
Tomasz Mon <desowin@gmail.com>
parents: 2948
diff changeset
33 #ifdef __cplusplus
d58560be5a4c draw directly instead using embeded GtkImage
Tomasz Mon <desowin@gmail.com>
parents: 2948
diff changeset
34 extern "C" {
3105
1912eba1004b cleaning
Tomasz Mon <desowin@gmail.com>
parents: 3005
diff changeset
35 #endif
2943
a8f2c99727eb replace Textbox in playlistwin with UiSkinnedTextbox, textbox.c no longer needed, temporary comment out g_usleep in textbox_scroll as it needs to be run as new thread
Tomasz Mon <desowin@gmail.com>
parents: 2942
diff changeset
36
2980
d58560be5a4c draw directly instead using embeded GtkImage
Tomasz Mon <desowin@gmail.com>
parents: 2948
diff changeset
37 #define UI_SKINNED_TEXTBOX(obj) GTK_CHECK_CAST (obj, ui_skinned_textbox_get_type (), UiSkinnedTextbox)
d58560be5a4c draw directly instead using embeded GtkImage
Tomasz Mon <desowin@gmail.com>
parents: 2948
diff changeset
38 #define UI_SKINNED_TEXTBOX_CLASS(klass) GTK_CHECK_CLASS_CAST (klass, ui_skinned_textbox_get_type (), UiSkinnedTextboxClass)
d58560be5a4c draw directly instead using embeded GtkImage
Tomasz Mon <desowin@gmail.com>
parents: 2948
diff changeset
39 #define UI_SKINNED_IS_TEXTBOX(obj) GTK_CHECK_TYPE (obj, ui_skinned_textbox_get_type ())
2911
cd21a4556dd2 include UiSkinnedTextbox
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
40
2980
d58560be5a4c draw directly instead using embeded GtkImage
Tomasz Mon <desowin@gmail.com>
parents: 2948
diff changeset
41 typedef struct _UiSkinnedTextbox UiSkinnedTextbox;
d58560be5a4c draw directly instead using embeded GtkImage
Tomasz Mon <desowin@gmail.com>
parents: 2948
diff changeset
42 typedef struct _UiSkinnedTextboxClass UiSkinnedTextboxClass;
2911
cd21a4556dd2 include UiSkinnedTextbox
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
43
cd21a4556dd2 include UiSkinnedTextbox
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
44 struct _UiSkinnedTextbox {
2980
d58560be5a4c draw directly instead using embeded GtkImage
Tomasz Mon <desowin@gmail.com>
parents: 2948
diff changeset
45 GtkWidget widget;
d58560be5a4c draw directly instead using embeded GtkImage
Tomasz Mon <desowin@gmail.com>
parents: 2948
diff changeset
46
d58560be5a4c draw directly instead using embeded GtkImage
Tomasz Mon <desowin@gmail.com>
parents: 2948
diff changeset
47 gint x, y, width, height;
d58560be5a4c draw directly instead using embeded GtkImage
Tomasz Mon <desowin@gmail.com>
parents: 2948
diff changeset
48 gchar *text;
2911
cd21a4556dd2 include UiSkinnedTextbox
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
49 };
cd21a4556dd2 include UiSkinnedTextbox
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
50
cd21a4556dd2 include UiSkinnedTextbox
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
51 struct _UiSkinnedTextboxClass {
2980
d58560be5a4c draw directly instead using embeded GtkImage
Tomasz Mon <desowin@gmail.com>
parents: 2948
diff changeset
52 GtkWidgetClass parent_class;
2942
1a59a0ced6a8 make scrolling stop for second when it reaches end, replace remaining mainwin TextBox with UiSkinnedTextbox
Tomasz Mon <desowin@gmail.com>
parents: 2918
diff changeset
53 void (* clicked) (UiSkinnedTextbox *textbox);
2911
cd21a4556dd2 include UiSkinnedTextbox
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
54 void (* double_clicked) (UiSkinnedTextbox *textbox);
2942
1a59a0ced6a8 make scrolling stop for second when it reaches end, replace remaining mainwin TextBox with UiSkinnedTextbox
Tomasz Mon <desowin@gmail.com>
parents: 2918
diff changeset
55 void (* right_clicked) (UiSkinnedTextbox *textbox);
4217
742f00832961 some more progress, but still broken
Cristi Magherusan <majeru@atheme.org>
parents: 3840
diff changeset
56 void (* scaled) (UiSkinnedTextbox *textbox);
2911
cd21a4556dd2 include UiSkinnedTextbox
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
57 void (* redraw) (UiSkinnedTextbox *textbox);
cd21a4556dd2 include UiSkinnedTextbox
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
58 };
cd21a4556dd2 include UiSkinnedTextbox
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
59
3005
3db40ad79fd9 request GdkGC when needed rather than carry one around
Tomasz Mon <desowin@gmail.com>
parents: 2996
diff changeset
60 GtkWidget* ui_skinned_textbox_new (GtkWidget *fixed, gint x, gint y, gint w, gboolean allow_scroll, SkinPixmapId si);
2980
d58560be5a4c draw directly instead using embeded GtkImage
Tomasz Mon <desowin@gmail.com>
parents: 2948
diff changeset
61 GtkType ui_skinned_textbox_get_type(void);
d58560be5a4c draw directly instead using embeded GtkImage
Tomasz Mon <desowin@gmail.com>
parents: 2948
diff changeset
62 void ui_skinned_textbox_set_xfont(GtkWidget *widget, gboolean use_xfont, const gchar * fontname);
2911
cd21a4556dd2 include UiSkinnedTextbox
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
63 void ui_skinned_textbox_set_text(GtkWidget *widget, const gchar *text);
cd21a4556dd2 include UiSkinnedTextbox
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
64 void ui_skinned_textbox_set_scroll(GtkWidget *widget, gboolean scroll);
2943
a8f2c99727eb replace Textbox in playlistwin with UiSkinnedTextbox, textbox.c no longer needed, temporary comment out g_usleep in textbox_scroll as it needs to be run as new thread
Tomasz Mon <desowin@gmail.com>
parents: 2942
diff changeset
65 void ui_skinned_textbox_move_relative(GtkWidget *widget, gint x, gint y);
2911
cd21a4556dd2 include UiSkinnedTextbox
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
66
2980
d58560be5a4c draw directly instead using embeded GtkImage
Tomasz Mon <desowin@gmail.com>
parents: 2948
diff changeset
67 #ifdef __cplusplus
d58560be5a4c draw directly instead using embeded GtkImage
Tomasz Mon <desowin@gmail.com>
parents: 2948
diff changeset
68 }
2911
cd21a4556dd2 include UiSkinnedTextbox
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
69 #endif
2980
d58560be5a4c draw directly instead using embeded GtkImage
Tomasz Mon <desowin@gmail.com>
parents: 2948
diff changeset
70
d58560be5a4c draw directly instead using embeded GtkImage
Tomasz Mon <desowin@gmail.com>
parents: 2948
diff changeset
71 #endif