diff options
Diffstat (limited to 'cmd/ossxmix/gtkvu.h')
-rw-r--r-- | cmd/ossxmix/gtkvu.h | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/cmd/ossxmix/gtkvu.h b/cmd/ossxmix/gtkvu.h new file mode 100644 index 0000000..344d566 --- /dev/null +++ b/cmd/ossxmix/gtkvu.h @@ -0,0 +1,61 @@ +#ifndef __GTK_VU_H__ +#define __GTK_VU_H__ + +/* + * + * This file is part of Open Sound System. + * + * Copyright (C) 4Front Technologies 1996-2008. + * + * This this source file is released under GPL v2 license (no other versions). + * See the COPYING file included in the main directory of this source + * distribution for the license terms and conditions. + * + */ + +#include <gdk/gdk.h> +#include <gtk/gtkadjustment.h> +#include <gtk/gtkwidget.h> + + +#ifdef __cplusplus +extern "C" +{ +#endif /* __cplusplus */ + + +#define GTK_VU(obj) GTK_CHECK_CAST (obj, gtk_vu_get_type (), GtkVU) +#define GTK_VU_CLASS(klass) GTK_CHECK_CLASS_CAST (klass, gtk_vu_get_type (), GtkVUClass) +#define GTK_IS_VU(obj) GTK_CHECK_TYPE (obj, gtk_vu_get_type ()) + + + typedef struct _GtkVU GtkVU; + typedef struct _GtkVUClass GtkVUClass; + + struct _GtkVU + { + GtkWidget widget; + + guint level; + GdkGC *gc; + GdkPixmap *pixmap; + GdkColor colors[7]; + + }; + + struct _GtkVUClass + { + GtkWidgetClass parent_class; + }; + + + GtkWidget *gtk_vu_new (void); + GtkType gtk_vu_get_type (void); + void gtk_vu_set_level (GtkVU * vu, guint new_level); + +#ifdef __cplusplus +} +#endif /* __cplusplus */ + + +#endif /* __GTK_VU_H__ */ |