annotate Plugins/Visualization/paranormal/pn/pnvis.h @ 1523:aa1e05d66f6d trunk

[svn] - it might help if i actually ran bison on the script parser eh :)
author nenolod
date Mon, 07 Aug 2006 21:47:55 -0700
parents 0c5fdcf3f947
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1507
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
1 /* Paranormal - A highly customizable audio visualization library
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
2 * Copyright (C) 2001 Jamie Gennis <jgennis@mindspring.com>
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
3 *
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
4 * This library is free software; you can redistribute it and/or
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
5 * modify it under the terms of the GNU Library General Public
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
6 * License as published by the Free Software Foundation; either
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
7 * version 2 of the License, or (at your option) any later version.
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
8 *
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
9 * This library is distributed in the hope that it will be useful,
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
12 * Library General Public License for more details.
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
13 *
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
14 * You should have received a copy of the GNU Library General Public
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
15 * License along with this library; if not, write to the Free
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
16 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
17 */
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
18
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
19 #ifndef __PN_VIS_H__
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
20 #define __PN_VIS_H__
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
21
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
22 #include <glib.h>
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
23 #include "pnuserobject.h"
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
24 #include "pnactuator.h"
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
25 #include "pnimage.h"
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
26 #include "pnaudiodata.h"
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
27
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
28
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
29 G_BEGIN_DECLS
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
30
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
31
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
32 #define PN_TYPE_VIS (pn_vis_get_type ())
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
33 #define PN_VIS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PN_TYPE_VIS, PnVis))
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
34 #define PN_VIS_CLASS(class) (G_TYPE_CHECK_CLASS_CAST ((class), PN_TYPE_VIS, PnVisClass))
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
35 #define PN_IS_VIS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PN_TYPE_VIS))
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
36 #define PN_IS_VIS_CLASS(class) (G_TYPE_CHECK_CLASS_TYPE ((class), PN_TYPE_VIS))
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
37 #define PN_VIS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PN_TYPE_VIS, PnVisClass))
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
38
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
39 typedef struct _PnVis PnVis;
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
40 typedef struct _PnVisClass PnVisClass;
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
41
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
42 struct _PnVis
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
43 {
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
44 PnUserObject parent;
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
45
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
46 PnActuator *root_actuator;
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
47 PnImage *root_image;
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
48 };
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
49
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
50 struct _PnVisClass
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
51 {
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
52 PnUserObjectClass parent_class;
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
53 };
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
54
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
55 /* Creators */
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
56 GType pn_vis_get_type (void);
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
57 PnVis *pn_vis_new (guint image_width,
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
58 guint image_height);
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
59
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
60 /* Accessors */
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
61 void pn_vis_set_root_actuator (PnVis *vis,
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
62 PnActuator *actuator);
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
63 PnActuator *pn_vis_get_root_actuator (PnVis *vis);
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
64 void pn_vis_set_image_size (PnVis *vis,
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
65 guint width,
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
66 guint height);
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
67
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
68 /* Actions */
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
69 gboolean pn_vis_save_to_file (PnVis *vis,
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
70 const gchar *fname);
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
71 gboolean pn_vis_load_from_file (PnVis *vis,
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
72 const gchar *fname);
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
73 PnImage *pn_vis_render (PnVis *vis,
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
74 PnAudioData *audio_data);
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
75
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
76
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
77
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
78
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
79
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
80 #endif /* __PN_VIS_H__ */