Mercurial > audlegacy
annotate src/audacious/ui_vis.h @ 3105:1912eba1004b audacious-1.4.0-dr1
cleaning
| author | Tomasz Mon <desowin@gmail.com> |
|---|---|
| date | Thu, 19 Jul 2007 16:21:31 +0200 |
| parents | 766a0fd12f7d |
| children | 3b6d316f8b09 |
| rev | line source |
|---|---|
| 3020 | 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 UIVIS_H | |
| 20 #define UIVIS_H | |
| 21 | |
| 22 #ifdef __cplusplus | |
| 23 extern "C" { | |
| 24 #endif | |
| 25 | |
| 26 #define UI_VIS(obj) GTK_CHECK_CAST (obj, ui_vis_get_type (), UiVis) | |
| 27 #define UI_VIS_CLASS(klass) GTK_CHECK_CLASS_CAST (klass, ui_vis_get_type (), UiVisClass) | |
| 28 #define UI_IS_VIS(obj) GTK_CHECK_TYPE (obj, ui_vis_get_type ()) | |
| 29 | |
| 30 typedef enum { | |
| 31 VIS_ANALYZER, VIS_SCOPE, VIS_VOICEPRINT, VIS_OFF | |
| 32 } VisType; | |
| 33 | |
| 34 typedef enum { | |
| 35 ANALYZER_NORMAL, ANALYZER_FIRE, ANALYZER_VLINES | |
| 36 } AnalyzerMode; | |
| 37 | |
| 38 typedef enum { | |
| 39 ANALYZER_LINES, ANALYZER_BARS | |
| 40 } AnalyzerType; | |
| 41 | |
| 42 typedef enum { | |
| 43 SCOPE_DOT, SCOPE_LINE, SCOPE_SOLID | |
| 44 } ScopeMode; | |
| 45 typedef enum { | |
| 46 VOICEPRINT_NORMAL, VOICEPRINT_FIRE, VOICEPRINT_ICE | |
| 47 } VoiceprintMode; | |
| 48 | |
| 49 | |
| 50 typedef enum { | |
| 51 VU_NORMAL, VU_SMOOTH | |
| 52 } VUMode; | |
| 53 | |
| 54 typedef enum { | |
| 55 REFRESH_FULL, REFRESH_HALF, REFRESH_QUARTER, REFRESH_EIGTH | |
| 56 } RefreshRate; | |
| 57 | |
| 58 typedef enum { | |
| 59 FALLOFF_SLOWEST, FALLOFF_SLOW, FALLOFF_MEDIUM, FALLOFF_FAST, | |
| 60 FALLOFF_FASTEST | |
| 61 } FalloffSpeed; | |
| 62 | |
| 63 typedef struct _UiVis UiVis; | |
| 64 typedef struct _UiVisClass UiVisClass; | |
| 65 | |
| 66 struct _UiVis { | |
| 67 GtkWidget widget; | |
| 68 | |
| 69 gint x, y, width, height; | |
| 70 gfloat data[75], peak[75], peak_speed[75]; | |
| 71 gint refresh_delay; | |
| 72 gboolean double_size; | |
| 73 GtkWidget *fixed; | |
| 74 gboolean visible_window; | |
|
3058
766a0fd12f7d
do not place GDK_INPUT_ONLY windows in widget->window, use a event_window field for them
Giacomo Lozito <james@develia.org>
parents:
3026
diff
changeset
|
75 GdkWindow *event_window; |
| 3020 | 76 }; |
| 77 | |
| 78 struct _UiVisClass { | |
| 79 GtkWidgetClass parent_class; | |
| 80 void (* doubled) (UiVis *vis); | |
| 81 }; | |
| 82 | |
| 83 GtkWidget* ui_vis_new (GtkWidget *fixed, gint x, gint y, gint width); | |
| 84 GtkType ui_vis_get_type(void); | |
| 85 void ui_vis_set_vis(GtkWidget *widget, gint num); | |
| 86 void ui_vis_clear_data(GtkWidget *widget); | |
| 87 void ui_vis_timeout_func(GtkWidget *widget, guchar * data); | |
| 88 void ui_vis_set_visible(GtkWidget *widget, gboolean window_is_visible); | |
| 89 | |
| 90 #ifdef __cplusplus | |
| 91 } | |
| 92 #endif | |
| 93 | |
| 94 #endif |
