2007-03-22 Matthew Allum <mallum@openedhand.com>
[clutter-gtk] / clutter-gtk / clutter-gtk.h
1 /*
2  * GTK-Clutter.
3  *
4  * GTK+ widget for Clutter.
5  *
6  * Authored By Iain Holmes  <iain@openedhand.com>
7  *
8  * Copyright (C) 2006 OpenedHand
9  *
10  * This library is free software; you can redistribute it and/or
11  * modify it under the terms of the GNU Lesser General Public
12  * License as published by the Free Software Foundation; either
13  * version 2 of the License, or (at your option) any later version.
14  *
15  * This library is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
18  * Lesser General Public License for more details.
19  *
20  * You should have received a copy of the GNU Lesser General Public
21  * License along with this library; if not, write to the
22  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
23  * Boston, MA 02111-1307, USA.
24  */
25
26 #ifndef __GTK_CLUTTER_H__
27 #define __GTK_CLUTTER_H__
28
29 #include <gtk/gtksocket.h>
30 #include <clutter/clutter-actor.h>
31
32 G_BEGIN_DECLS
33
34 #define GTK_TYPE_CLUTTER (gtk_clutter_get_type ())
35
36 #define GTK_CLUTTER(obj) \
37   (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
38   GTK_TYPE_CLUTTER, GtkClutter))
39
40 #define GTK_CLUTTER_CLASS(klass) \
41   (G_TYPE_CHECK_CLASS_CASE ((klass), \
42   GTK_TYPE_CLUTTER, GtkClutterClass))
43
44 #define GTK_IS_CLUTTER(obj) \
45   (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
46   GTK_TYPE_CLUTTER))
47
48 #define GTK_IS_CLUTTER_CLASS(klass) \
49   (G_TYPE_CHECK_CLASS_TYPE ((klass), \
50   GTK_TYPE_CLUTTER))
51
52 #define GTK_CLUTTER_STAGE_GET_CLASS(obj) \
53   (G_TYPE_INSTANCE_GET_CLASS ((obj), \
54   GTK_TYPE_CLUTTER, GtkClutterClass))
55
56 typedef struct _GtkClutter              GtkClutter;
57 typedef struct _GtkClutterClass         GtkClutterClass;
58 typedef struct _GtkClutterPrivate       GtkClutterPrivate;
59
60 struct _GtkClutter 
61 {
62   GtkSocket parent;
63
64   /*< private >*/
65   GtkClutterPrivate *priv;
66 };
67
68 struct _GtkClutterClass
69 {
70   GtkSocketClass parent_class;
71
72   void (*_gtk_clutter_1) (void);
73   void (*_gtk_clutter_2) (void);
74   void (*_gtk_clutter_3) (void);
75   void (*_gtk_clutter_4) (void);
76   void (*_gtk_clutter_5) (void);
77   void (*_gtk_clutter_6) (void);
78 };
79
80 GType gtk_clutter_get_type (void) G_GNUC_CONST;
81
82 GtkWidget    *gtk_clutter_new       (void);
83 ClutterActor *gtk_clutter_get_stage (GtkClutter *clutter);
84
85 G_END_DECLS
86
87 #endif /* __GTK_CLUTTER_H__ */