add clutter-gtk
[clutter-gtk] / clutter-gtk / gtk-clutter.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 _HAVE_GTK_CLUTTER_H
27 #define _HAVE_GTK_CLUTTER_H
28
29 #include <gtk/gtkdrawingarea.h>
30
31 #include <clutter/clutter-actor.h>
32
33 G_BEGIN_DECLS
34
35 #define GTK_TYPE_CLUTTER gtk_clutter_get_type ()
36
37 #define GTK_CLUTTER(obj) \
38   (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
39   GTK_TYPE_CLUTTER, GtkClutter))
40
41 #define GTK_CLUTTER_CLASS(klass) \
42   (G_TYPE_CHECK_CLASS_CASE ((klass), \
43   GTK_TYPE_CLUTTER, GtkClutterClass))
44
45 #define GTK_IS_CLUTTER(obj) \
46   (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
47   GTK_TYPE_CLUTTER))
48
49 #define GTK_IS_CLUTTER_CLASS(klass) \
50   (G_TYPE_CHECK_CLASS_TYPE ((klass), \
51   GTK_TYPE_CLUTTER))
52
53 #define GTK_CLUTTER_STAGE_GET_CLASS(obj) \
54   (G_TYPE_INSTANCE_GET_CLASS ((obj), \
55   GTK_TYPE_CLUTTER, GtkClutterClass))
56
57 typedef struct _GtkClutterPrivate GtkClutterPrivate;
58 typedef struct _GtkClutter GtkClutter;
59 typedef struct _GtkClutterClass GtkClutterClass;
60
61 struct _GtkClutter 
62 {
63   GtkDrawingArea parent;
64
65   /*< private >*/
66   GtkClutterPrivate *priv;
67 };
68
69 struct _GtkClutterClass
70 {
71   GtkDrawingAreaClass parent_class;
72 };
73
74 GType gtk_clutter_get_type (void);
75
76 ClutterActor *gtk_clutter_get_stage (GtkClutter *clutter);
77
78 G_END_DECLS
79
80 #endif