Recognizes if input is ogg or not.
[xiph.git] / postfish / readout.h
blobddd391d233018b72232c323dfd099bcdb6526b98
1 /*
3 * postfish
4 *
5 * Copyright (C) 2002-2005 Monty
7 * Postfish is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2, or (at your option)
10 * any later version.
12 * Postfish is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with Postfish; see the file COPYING. If not, write to the
19 * Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
24 #ifndef __READOUT_H__
25 #define __READOUT_H__
27 #include <sys/time.h>
28 #include <time.h>
29 #include <glib.h>
30 #include <glib-object.h>
31 #include <gtk/gtkcontainer.h>
32 #include <gtk/gtkdrawingarea.h>
33 #include <gdk/gdkdrawable.h>
35 G_BEGIN_DECLS
37 #define READOUT_TYPE (readout_get_type ())
38 #define READOUT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), READOUT_TYPE, Readout))
39 #define READOUT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), READOUT_TYPE, ReadoutClass))
40 #define IS_READOUT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), READOUT_TYPE))
41 #define IS_READOUT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), READOUT_TYPE))
43 typedef struct _Readout Readout;
44 typedef struct _ReadoutClass ReadoutClass;
46 struct _Readout{
48 GtkDrawingArea canvas;
49 GdkPixmap *backing;
50 PangoLayout *layout;
53 struct _ReadoutClass{
55 GtkDrawingAreaClass parent_class;
56 void (* readout) (Readout *m);
60 GType readout_get_type (void);
61 GtkWidget* readout_new (char *markup);
62 void readout_set (Readout *m,char *markup);
63 const gchar* readout_get (Readout *r);
65 G_END_DECLS
67 #endif