Mercurial > audlegacy
annotate src/audacious/ui_svis.h @ 3121:3b6d316f8b09 trunk
GPL3 relicensing.
| author | William Pitcock <nenolod@atheme-project.org> |
|---|---|
| date | Fri, 20 Jul 2007 08:59:47 -0500 |
| parents | 34f37c59e87b |
| children | f1c756f39e6c |
| rev | line source |
|---|---|
| 3054 | 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 | |
|
3121
3b6d316f8b09
GPL3 relicensing.
William Pitcock <nenolod@atheme-project.org>
parents:
3054
diff
changeset
|
7 * the Free Software Foundation; under version 3 of the License. |
| 3054 | 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 | |
|
3121
3b6d316f8b09
GPL3 relicensing.
William Pitcock <nenolod@atheme-project.org>
parents:
3054
diff
changeset
|
15 * along with this program. If not, see <http://www.gnu.org/licenses>. |
| 3054 | 16 */ |
| 17 | |
| 18 #ifndef UISVIS_H | |
| 19 #define UISVIS_H | |
| 20 | |
| 21 #include <gdk/gdk.h> | |
| 22 #include <gtk/gtkadjustment.h> | |
| 23 #include <gtk/gtkwidget.h> | |
| 24 | |
| 25 #ifdef __cplusplus | |
| 26 extern "C" { | |
| 27 #endif | |
| 28 | |
| 29 #define UI_SVIS(obj) GTK_CHECK_CAST (obj, ui_svis_get_type (), UiSVis) | |
| 30 #define UI_SVIS_CLASS(klass) GTK_CHECK_CLASS_CAST (klass, ui_svis_get_type (), UiSVisClass) | |
| 31 #define UI_IS_SVIS(obj) GTK_CHECK_TYPE (obj, ui_svis_get_type ()) | |
| 32 | |
| 33 typedef struct _UiSVis UiSVis; | |
| 34 typedef struct _UiSVisClass UiSVisClass; | |
| 35 | |
| 36 struct _UiSVis { | |
| 37 GtkWidget widget; | |
| 38 | |
| 39 gint x, y, width, height; | |
| 40 gint data[75]; | |
| 41 gint refresh_delay; | |
| 42 gboolean double_size; | |
| 43 GtkWidget *fixed; | |
| 44 gboolean visible_window; | |
| 45 GdkWindow *event_window; | |
| 46 }; | |
| 47 | |
| 48 struct _UiSVisClass { | |
| 49 GtkWidgetClass parent_class; | |
| 50 void (* doubled) (UiSVis *vis); | |
| 51 }; | |
| 52 | |
| 53 GtkWidget* ui_svis_new (GtkWidget *fixed, gint x, gint y); | |
| 54 GtkType ui_svis_get_type(void); | |
| 55 void ui_svis_clear_data(GtkWidget *widget); | |
| 56 void ui_svis_timeout_func(GtkWidget *widget, guchar * data); | |
| 57 void ui_svis_set_visible(GtkWidget *widget, gboolean window_is_visible); | |
| 58 | |
| 59 #ifdef __cplusplus | |
| 60 } | |
| 61 #endif | |
| 62 | |
| 63 #endif |
