19eb7f72dec32899f78bdaaa511226a5216b063e
[clutter-gtk] / clutter-gtk / gtk-clutter-embed.h
1 /* gtk-clutter-embed.h: Embeddable ClutterStage
2  *
3  * Copyright (C) 2007 OpenedHand
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this library. If not see <http://www.fsf.org/licensing>.
17  *
18  * Authors:
19  *   Iain Holmes  <iain@openedhand.com>
20  *   Emmanuele Bassi  <ebassi@openedhand.com>
21  */
22
23 #ifndef __GTK_CLUTTER_EMBED_H__
24 #define __GTK_CLUTTER_EMBED_H__
25
26 #include <gtk/gtkwidget.h>
27 #include <clutter/clutter-main.h>
28 #include <clutter/clutter-actor.h>
29
30 G_BEGIN_DECLS
31
32 #define GTK_TYPE_CLUTTER_EMBED          (gtk_clutter_embed_get_type ())
33 #define GTK_CLUTTER_EMBED(o)            (G_TYPE_CHECK_INSTANCE_CAST ((o), GTK_TYPE_CLUTTER_EMBED, GtkClutterEmbed))
34 #define GTK_IS_CLUTTER_EMBED(o)         (G_TYPE_CHECK_INSTANCE_TYPE ((o), GTK_TYPE_CLUTTER_EMBED))
35 #define GTK_CLUTTER_EMBED_CLASS(k)      (G_TYPE_CHECK_CLASS_CAST ((k), GTK_TYPE_CLUTTER_EMBED, GtkClutterEmbedClass))
36 #define GTK_IS_CLUTTER_EMBED_CLASS(k)   (G_TYPE_CHECK_CLASS_TYPE ((k), GTK_TYPE_CLUTTER_EMBED))
37 #define GTK_CLUTTER_EMBED_GET_CLASS(o)  (G_TYPE_INSTANCE_GET_CLASS ((o), GTK_TYPE_CLUTTER_EMBED, GtkClutterEmbedClass))
38
39 typedef struct _GtkClutterEmbed         GtkClutterEmbed;
40 typedef struct _GtkClutterEmbedPrivate  GtkClutterEmbedPrivate;
41 typedef struct _GtkClutterEmbedClass    GtkClutterEmbedClass;
42
43 /**
44  * GtkClutterEmbed:
45  *
46  * A #GtkWidget containing the default Clutter stage.
47  *
48  * Since: 0.6
49  */
50 struct _GtkClutterEmbed
51 {
52   /*< private >*/
53   GtkWidget parent_instance;
54
55   GtkClutterEmbedPrivate *priv;
56 };
57
58 /**
59  * GtkClutterEmbedClass:
60  *
61  * Base class for #GtkClutterEmbed.
62  *
63  * Since: 0.6
64  */
65 struct _GtkClutterEmbedClass
66 {
67   /*< private >*/
68   GtkWidgetClass parent_class;
69
70   /* padding for future expansion */
71   void (*_clutter_gtk_reserved1) (void);
72   void (*_clutter_gtk_reserved2) (void);
73   void (*_clutter_gtk_reserved3) (void);
74   void (*_clutter_gtk_reserved4) (void);
75   void (*_clutter_gtk_reserved5) (void);
76   void (*_clutter_gtk_reserved6) (void);
77 };
78
79 GType         gtk_clutter_embed_get_type  (void) G_GNUC_CONST;
80 GtkWidget *   gtk_clutter_embed_new       (void);
81 ClutterActor *gtk_clutter_embed_get_stage (GtkClutterEmbed *embed);
82
83 ClutterInitError gtk_clutter_init (gint    *argc,
84                                    gchar ***argv);
85
86 G_END_DECLS
87
88 #endif /* __GTK_CLUTTER_EMBED_H__ */