clutter-gtk 2.2.4-x64-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (60) hide show
  1. checksums.yaml +7 -0
  2. data/Rakefile +75 -0
  3. data/lib/clutter-gtk.rb +77 -0
  4. data/sample/events.rb +176 -0
  5. data/sample/multistage.rb +78 -0
  6. data/sample/redhand.png +0 -0
  7. data/sample/test-actor.rb +163 -0
  8. data/sample/test-scroll.rb +174 -0
  9. data/sample/test.rb +169 -0
  10. data/sample/window-test.rb +113 -0
  11. data/sample/window-test2.rb +132 -0
  12. data/test/clutter-gtk-test-utils.rb +21 -0
  13. data/test/run-test.rb +73 -0
  14. data/test/test-clutter-gtk-embed.rb +21 -0
  15. data/vendor/local/bin/libclutter-gtk-1.0-0.dll +0 -0
  16. data/vendor/local/include/clutter-gtk-1.0/clutter-gtk/clutter-gtk.h +17 -0
  17. data/vendor/local/include/clutter-gtk-1.0/clutter-gtk/gtk-clutter-actor.h +87 -0
  18. data/vendor/local/include/clutter-gtk-1.0/clutter-gtk/gtk-clutter-embed.h +94 -0
  19. data/vendor/local/include/clutter-gtk-1.0/clutter-gtk/gtk-clutter-texture.h +115 -0
  20. data/vendor/local/include/clutter-gtk-1.0/clutter-gtk/gtk-clutter-util.h +46 -0
  21. data/vendor/local/include/clutter-gtk-1.0/clutter-gtk/gtk-clutter-version.h +111 -0
  22. data/vendor/local/include/clutter-gtk-1.0/clutter-gtk/gtk-clutter-window.h +90 -0
  23. data/vendor/local/lib/girepository-1.0/GtkClutter-1.0.typelib +0 -0
  24. data/vendor/local/lib/libclutter-gtk-1.0.dll.a +0 -0
  25. data/vendor/local/lib/libclutter-gtk-1.0.la +41 -0
  26. data/vendor/local/lib/pkgconfig/clutter-gtk-1.0.pc +13 -0
  27. data/vendor/local/share/gir-1.0/GtkClutter-1.0.gir +696 -0
  28. data/vendor/local/share/gtk-doc/html/clutter-gtk-1.0/GtkClutterActor.html +307 -0
  29. data/vendor/local/share/gtk-doc/html/clutter-gtk-1.0/GtkClutterEmbed.html +305 -0
  30. data/vendor/local/share/gtk-doc/html/clutter-gtk-1.0/GtkClutterWindow.html +179 -0
  31. data/vendor/local/share/gtk-doc/html/clutter-gtk-1.0/annotation-glossary.html +48 -0
  32. data/vendor/local/share/gtk-doc/html/clutter-gtk-1.0/ch01.html +36 -0
  33. data/vendor/local/share/gtk-doc/html/clutter-gtk-1.0/ch02.html +42 -0
  34. data/vendor/local/share/gtk-doc/html/clutter-gtk-1.0/ch03.html +34 -0
  35. data/vendor/local/share/gtk-doc/html/clutter-gtk-1.0/clutter-gtk-1.0-Utility-Functions.html +258 -0
  36. data/vendor/local/share/gtk-doc/html/clutter-gtk-1.0/clutter-gtk-1.0.devhelp2 +50 -0
  37. data/vendor/local/share/gtk-doc/html/clutter-gtk-1.0/cluttergtk-glossary.html +35 -0
  38. data/vendor/local/share/gtk-doc/html/clutter-gtk-1.0/cluttergtk-object-hierarchy.html +45 -0
  39. data/vendor/local/share/gtk-doc/html/clutter-gtk-1.0/cluttergtk-object-index.html +60 -0
  40. data/vendor/local/share/gtk-doc/html/clutter-gtk-1.0/cluttergtk-objects.html +38 -0
  41. data/vendor/local/share/gtk-doc/html/clutter-gtk-1.0/home.png +0 -0
  42. data/vendor/local/share/gtk-doc/html/clutter-gtk-1.0/index.html +83 -0
  43. data/vendor/local/share/gtk-doc/html/clutter-gtk-1.0/index.sgml +60 -0
  44. data/vendor/local/share/gtk-doc/html/clutter-gtk-1.0/ix01.html +100 -0
  45. data/vendor/local/share/gtk-doc/html/clutter-gtk-1.0/ix02.html +198 -0
  46. data/vendor/local/share/gtk-doc/html/clutter-gtk-1.0/ix03.html +66 -0
  47. data/vendor/local/share/gtk-doc/html/clutter-gtk-1.0/ix04.html +32 -0
  48. data/vendor/local/share/gtk-doc/html/clutter-gtk-1.0/left-insensitive.png +0 -0
  49. data/vendor/local/share/gtk-doc/html/clutter-gtk-1.0/left.png +0 -0
  50. data/vendor/local/share/gtk-doc/html/clutter-gtk-1.0/license.html +59 -0
  51. data/vendor/local/share/gtk-doc/html/clutter-gtk-1.0/right-insensitive.png +0 -0
  52. data/vendor/local/share/gtk-doc/html/clutter-gtk-1.0/right.png +0 -0
  53. data/vendor/local/share/gtk-doc/html/clutter-gtk-1.0/style.css +476 -0
  54. data/vendor/local/share/gtk-doc/html/clutter-gtk-1.0/up-insensitive.png +0 -0
  55. data/vendor/local/share/gtk-doc/html/clutter-gtk-1.0/up.png +0 -0
  56. data/vendor/local/share/license/clutter-gtk/COPYING +504 -0
  57. data/vendor/local/share/locale/ja/LC_MESSAGES/cluttergtk-1.0.mo +0 -0
  58. data/vendor/local/share/locale/pl/LC_MESSAGES/cluttergtk-1.0.mo +0 -0
  59. data/vendor/local/share/locale/zh_CN/LC_MESSAGES/cluttergtk-1.0.mo +0 -0
  60. metadata +143 -0
@@ -0,0 +1,132 @@
1
+ #!/usr/bin/env ruby
2
+ #
3
+ # This sample code is a port of clutter-gtk/examples/gtk-clutter-window-test2.c.
4
+ # It is licensed under the terms of the GNU Lesser General Public
5
+ # License, version 2.1 or (at your option) later.
6
+ #
7
+ # The original header:
8
+ # (c) 2009, Collabora Ltd.
9
+ #
10
+ # Written by Davyd Madeley <davyd.madeley@collabora.co.uk>
11
+ #
12
+ # Copyright (C) 2013 Ruby-GNOME2 Project Team
13
+ #
14
+ # This library is free software; you can redistribute it and/or
15
+ # modify it under the terms of the GNU Lesser General Public
16
+ # License as published by the Free Software Foundation; either
17
+ # version 2.1 of the License, or (at your option) any later version.
18
+ #
19
+ # This library is distributed in the hope that it will be useful,
20
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
21
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
22
+ # Lesser General Public License for more details.
23
+ #
24
+ # You should have received a copy of the GNU Lesser General Public
25
+ # License along with this library; if not, write to the Free Software
26
+ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
27
+
28
+ require "clutter-gtk"
29
+ require "gdk_pixbuf2"
30
+
31
+ window = ClutterGtk::Window.new
32
+
33
+ table = Gtk::Grid.new
34
+
35
+ table.hexpand = true
36
+ table.vexpand = true
37
+
38
+ add_button = lambda do |stock_id, row|
39
+ button = Gtk::Button.new(:stock_id => stock_id)
40
+ table.insert_row(row)
41
+ table.insert_column(row)
42
+ table.attach(button, row, row, 1, 1)
43
+
44
+ button.signal_connect("clicked") do |_button|
45
+ puts("button clicked: #{stock_id}")
46
+
47
+ toplevel = _button.toplevel
48
+ if toplevel.is_a?(ClutterGtk::Window)
49
+ # create a texture from the button image
50
+ texture = ClutterGtk::Texture.new
51
+ image = _button.image
52
+ size = image.icon_size
53
+ texture.set_from_stock(_button, stock_id.to_s, size)
54
+
55
+ # position the texture on top of the existing icon
56
+ stage = toplevel.stage
57
+ stage.add_actor(texture)
58
+
59
+ allocation = image.allocation
60
+
61
+ # replace the icon itself
62
+ blank = Gdk::Pixbuf.new(:colorspace => :rgb,
63
+ :has_alpha => true,
64
+ :bits_per_sample => 8,
65
+ :width => allocation.width,
66
+ :height => allocation.height)
67
+ blank.fill!(0x00000000)
68
+ image.pixbuf = blank
69
+
70
+ # animate a fall due to gravity
71
+ toplevel_allocation = toplevel.allocation
72
+ texture.save_easing_state do
73
+ texture.easing_mode = :ease_in_quad
74
+ texture.easing_duration = 200
75
+ texture.set_final_state("x", allocation.x.to_f)
76
+ texture.set_final_state("y", allocation.y.to_f)
77
+ texture.y = toplevel_allocation.height.to_f
78
+ end
79
+
80
+ first_completed_id = texture.signal_connect_after("transitions-completed") do
81
+ image_allocation = image.allocation
82
+
83
+ # do the second animation, have the icon grow out from the middle of the
84
+ # button
85
+ texture.save_easing_state do
86
+ texture.easing_mode = :ease_out_sine
87
+ texture.easing_duration = 100
88
+ texture.set_final_state("x", image_allocation.x.to_f)
89
+ texture.set_final_state("y", image_allocation.y.to_f)
90
+ texture.set_final_state("scale-x", 0.0)
91
+ texture.set_final_state("scale-y", 0.0)
92
+ texture.scale_x = 1.0
93
+ texture.scale_y = 1.0
94
+ texture.set_final_state("scale-gravity", Clutter::Gravity::CENTER)
95
+ end
96
+
97
+ texture.signal_handler_disconnect(first_completed_id)
98
+
99
+ second_completed_id = texture.signal_connect_after("transitions-completed") do
100
+ # undo our changes
101
+ puts("set stock = #{stock_id}, size = #{size}")
102
+ image.icon_size = size
103
+ image.stock = stock_id
104
+ texture.signal_handler_disconnect(second_completed_id)
105
+ texture.destroy
106
+ end
107
+ end
108
+ end
109
+ end
110
+ end
111
+
112
+ add_button.call(Gtk::Stock::OK, 0)
113
+ add_button.call(Gtk::Stock::CANCEL, 1)
114
+ add_button.call(Gtk::Stock::CLOSE, 2)
115
+ add_button.call(Gtk::Stock::ABOUT, 3)
116
+ add_button.call(Gtk::Stock::BOLD, 4)
117
+ add_button.call(Gtk::Stock::ITALIC, 5)
118
+
119
+ window.add(table)
120
+ window.show_all
121
+
122
+ # override the gtk-button-images setting, since we kind
123
+ # of rely on this to be true to actually show the stock
124
+ # icon falling off the button
125
+ settings = window.settings
126
+ settings.gtk_button_images = true
127
+
128
+ window.signal_connect("destroy") do
129
+ Gtk.main_quit
130
+ end
131
+
132
+ Gtk.main
@@ -0,0 +1,21 @@
1
+ # Copyright (C) 2013 Ruby-GNOME2 Project Team
2
+ #
3
+ # This library is free software; you can redistribute it and/or
4
+ # modify it under the terms of the GNU Lesser General Public
5
+ # License as published by the Free Software Foundation; either
6
+ # version 2.1 of the License, or (at your option) any later version.
7
+ #
8
+ # This library is distributed in the hope that it will be useful,
9
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
10
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11
+ # Lesser General Public License for more details.
12
+ #
13
+ # You should have received a copy of the GNU Lesser General Public
14
+ # License along with this library; if not, write to the Free Software
15
+ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16
+
17
+ require "test-unit"
18
+ require "test/unit/notify"
19
+
20
+ module ClutterGtkTestUtils
21
+ end
data/test/run-test.rb ADDED
@@ -0,0 +1,73 @@
1
+ #!/usr/bin/env ruby
2
+ #
3
+ # Copyright (C) 2012-2013 Ruby-GNOME2 Project Team
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.1 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, write to the Free Software
17
+ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18
+
19
+ have_make = system("which make > /dev/null")
20
+
21
+ ruby_gnome2_base = File.join(File.dirname(__FILE__), "..", "..")
22
+ ruby_gnome2_base = File.expand_path(ruby_gnome2_base)
23
+
24
+ glib_base = File.join(ruby_gnome2_base, "glib2")
25
+ atk_base = File.join(ruby_gnome2_base, "atk")
26
+ pango_base = File.join(ruby_gnome2_base, "pango")
27
+ gdk_pixbuf_base = File.join(ruby_gnome2_base, "gdk_pixbuf2")
28
+ cairo_gobject_base = File.join(ruby_gnome2_base, "cairo-gobject")
29
+ gobject_introspection_base = File.join(ruby_gnome2_base, "gobject-introspection")
30
+ clutter_base = File.join(ruby_gnome2_base, "clutter")
31
+ gdk3_base = File.join(ruby_gnome2_base, "gdk3")
32
+ gtk3_base = File.join(ruby_gnome2_base, "gtk3")
33
+ clutter_gtk_base = File.join(ruby_gnome2_base, "clutter-gtk")
34
+
35
+ modules = [
36
+ [glib_base, "glib2"],
37
+ [atk_base, "atk"],
38
+ [pango_base, "pango"],
39
+ [gdk_pixbuf_base, "gdk_pixbuf2"],
40
+ [cairo_gobject_base, "cairo-gobject"],
41
+ [gobject_introspection_base, "gobject-introspection"],
42
+ [clutter_base, "clutter"],
43
+ [gdk3_base, "gdk3"],
44
+ [gtk3_base, "gtk3"],
45
+ [clutter_gtk_base, "clutter-gtk"],
46
+ ]
47
+ modules.each do |target, module_name|
48
+ if File.exist?(File.join(target, "Makefile")) and have_make
49
+ `make -C #{target.dump} > /dev/null` or exit(false)
50
+ end
51
+ $LOAD_PATH.unshift(File.join(target, "ext", module_name))
52
+ $LOAD_PATH.unshift(File.join(target, "lib"))
53
+ end
54
+
55
+ $LOAD_PATH.unshift(File.join(glib_base, "test"))
56
+ require "glib-test-init"
57
+
58
+ $VERBOSE = false # TODO: remove me
59
+
60
+ $LOAD_PATH.unshift(File.join(gobject_introspection_base, "test"))
61
+ require "gobject-introspection-test-utils"
62
+
63
+ $LOAD_PATH.unshift(File.join(clutter_base, "test"))
64
+ require "clutter-test-utils"
65
+
66
+ $LOAD_PATH.unshift(File.join(clutter_gtk_base, "test"))
67
+ require "clutter-gtk-test-utils"
68
+
69
+ require "clutter-gtk"
70
+
71
+ # exclude sample/test-*
72
+ clutter_gtk_test_base = File.join(clutter_gtk_base, "test")
73
+ exit Test::Unit::AutoRunner.run(true, clutter_gtk_test_base)
@@ -0,0 +1,21 @@
1
+ # Copyright (C) 2013 Ruby-GNOME2 Project Team
2
+ #
3
+ # This library is free software; you can redistribute it and/or
4
+ # modify it under the terms of the GNU Lesser General Public
5
+ # License as published by the Free Software Foundation; either
6
+ # version 2.1 of the License, or (at your option) any later version.
7
+ #
8
+ # This library is distributed in the hope that it will be useful,
9
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
10
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11
+ # Lesser General Public License for more details.
12
+ #
13
+ # You should have received a copy of the GNU Lesser General Public
14
+ # License along with this library; if not, write to the Free Software
15
+ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16
+
17
+ class ClutterGtkEmbedTest < Test::Unit::TestCase
18
+ def test_new
19
+ assert_not_nil(ClutterGtk::Embed.new)
20
+ end
21
+ end
@@ -0,0 +1,17 @@
1
+ #ifndef __CLUTTER_GTK_H__
2
+ #define __CLUTTER_GTK_H__
3
+
4
+ #define __CLUTTER_GTK_H_INSIDE__
5
+
6
+ /* Please, keep the list sorted alphabetically */
7
+
8
+ #include "gtk-clutter-actor.h"
9
+ #include "gtk-clutter-embed.h"
10
+ #include "gtk-clutter-texture.h"
11
+ #include "gtk-clutter-util.h"
12
+ #include "gtk-clutter-version.h"
13
+ #include "gtk-clutter-window.h"
14
+
15
+ #undef __CLUTTER_GTK_H_INSIDE__
16
+
17
+ #endif /* __CLUTTER_GTK_H__ */
@@ -0,0 +1,87 @@
1
+ /* gtk-clutter-actor.h: Gtk widget ClutterActor
2
+ *
3
+ * Copyright (C) 2009 Red Hat, Inc
4
+ * Copyright (C) 2010 Intel Corp
5
+ *
6
+ * This library is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU Lesser General Public
8
+ * License as published by the Free Software Foundation; either
9
+ * version 2 of the License, or (at your option) any later version.
10
+ *
11
+ * This library is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
+ * Lesser General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU Lesser General Public
17
+ * License along with this library. If not see <http://www.fsf.org/licensing>.
18
+ *
19
+ * Authors:
20
+ * Alexander Larsson <alexl@redhat.com>
21
+ * Emmanuele Bassi <ebassi@linux.intel.com>
22
+ */
23
+
24
+ #if !defined(__CLUTTER_GTK_H_INSIDE__) && !defined(CLUTTER_GTK_COMPILATION)
25
+ #error "Only <clutter-gtk/clutter-gtk.h> can be included directly."
26
+ #endif
27
+
28
+ #ifndef __GTK_CLUTTER_ACTOR_H__
29
+ #define __GTK_CLUTTER_ACTOR_H__
30
+
31
+ #include <gtk/gtk.h>
32
+ #include <clutter/clutter.h>
33
+
34
+ G_BEGIN_DECLS
35
+
36
+ #define GTK_CLUTTER_TYPE_ACTOR (gtk_clutter_actor_get_type ())
37
+ #define GTK_CLUTTER_ACTOR(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GTK_CLUTTER_TYPE_ACTOR, GtkClutterActor))
38
+ #define GTK_CLUTTER_IS_ACTOR(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GTK_CLUTTER_TYPE_ACTOR))
39
+ #define GTK_CLUTTER_ACTOR_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), GTK_CLUTTER_TYPE_ACTOR, GtkClutterActorClass))
40
+ #define GTK_CLUTTER_IS_ACTOR_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GTK_CLUTTER_TYPE_ACTOR))
41
+ #define GTK_CLUTTER_ACTOR_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GTK_CLUTTER_TYPE_ACTOR, GtkClutterActorClass))
42
+
43
+ typedef struct _GtkClutterActor GtkClutterActor;
44
+ typedef struct _GtkClutterActorPrivate GtkClutterActorPrivate;
45
+ typedef struct _GtkClutterActorClass GtkClutterActorClass;
46
+
47
+ /**
48
+ * GtkClutterActor:
49
+ *
50
+ * A ClutterActor containing a #GtkWidget.
51
+ */
52
+ struct _GtkClutterActor
53
+ {
54
+ /*< private >*/
55
+ ClutterActor parent_instance;
56
+
57
+ GtkClutterActorPrivate *priv;
58
+ };
59
+
60
+ /**
61
+ * GtkClutterActorClass:
62
+ *
63
+ * Base class for #GtkClutterActor.
64
+ */
65
+ struct _GtkClutterActorClass
66
+ {
67
+ /*< private >*/
68
+ ClutterActorClass 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_actor_get_type (void) G_GNUC_CONST;
80
+ ClutterActor *gtk_clutter_actor_new (void);
81
+ ClutterActor *gtk_clutter_actor_new_with_contents (GtkWidget *contents);
82
+ GtkWidget * gtk_clutter_actor_get_contents (GtkClutterActor *actor);
83
+ GtkWidget * gtk_clutter_actor_get_widget (GtkClutterActor *actor);
84
+
85
+ G_END_DECLS
86
+
87
+ #endif /* __GTK_CLUTTER_ACTOR_H__ */
@@ -0,0 +1,94 @@
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
+ #if !defined(__CLUTTER_GTK_H_INSIDE__) && !defined(CLUTTER_GTK_COMPILATION)
24
+ #error "Only <clutter-gtk/clutter-gtk.h> can be included directly."
25
+ #endif
26
+
27
+ #ifndef __GTK_CLUTTER_EMBED_H__
28
+ #define __GTK_CLUTTER_EMBED_H__
29
+
30
+ #include <gtk/gtk.h>
31
+ #include <clutter/clutter.h>
32
+
33
+ G_BEGIN_DECLS
34
+
35
+ #define GTK_CLUTTER_TYPE_EMBED (gtk_clutter_embed_get_type ())
36
+ #define GTK_CLUTTER_EMBED(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GTK_CLUTTER_TYPE_EMBED, GtkClutterEmbed))
37
+ #define GTK_CLUTTER_IS_EMBED(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GTK_CLUTTER_TYPE_EMBED))
38
+ #define GTK_CLUTTER_EMBED_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), GTK_CLUTTER_TYPE_EMBED, GtkClutterEmbedClass))
39
+ #define GTK_CLUTTER_IS_EMBED_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GTK_CLUTTER_TYPE_EMBED))
40
+ #define GTK_CLUTTER_EMBED_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GTK_CLUTTER_TYPE_EMBED, GtkClutterEmbedClass))
41
+
42
+ typedef struct _GtkClutterEmbed GtkClutterEmbed;
43
+ typedef struct _GtkClutterEmbedPrivate GtkClutterEmbedPrivate;
44
+ typedef struct _GtkClutterEmbedClass GtkClutterEmbedClass;
45
+
46
+ /**
47
+ * GtkClutterEmbed:
48
+ *
49
+ * A #GtkWidget containing the default Clutter stage.
50
+ *
51
+ * The <structname>GtkClutterEmbed</structname> structure contains only
52
+ * private data and should be accessed using the provided API.
53
+ */
54
+ struct _GtkClutterEmbed
55
+ {
56
+ /*< private >*/
57
+ GtkContainer parent_instance;
58
+
59
+ GtkClutterEmbedPrivate *priv;
60
+ };
61
+
62
+ /**
63
+ * GtkClutterEmbedClass:
64
+ *
65
+ * Base class for #GtkClutterEmbed.
66
+ *
67
+ * The <structname>GtkClutterEmbedClass</structname> contains only private
68
+ * data.
69
+ */
70
+ struct _GtkClutterEmbedClass
71
+ {
72
+ /*< private >*/
73
+ GtkContainerClass parent_class;
74
+
75
+ /* padding for future expansion */
76
+ void (*_clutter_gtk_reserved1) (void);
77
+ void (*_clutter_gtk_reserved2) (void);
78
+ void (*_clutter_gtk_reserved3) (void);
79
+ void (*_clutter_gtk_reserved4) (void);
80
+ void (*_clutter_gtk_reserved5) (void);
81
+ void (*_clutter_gtk_reserved6) (void);
82
+ };
83
+
84
+ GType gtk_clutter_embed_get_type (void) G_GNUC_CONST;
85
+
86
+ GtkWidget * gtk_clutter_embed_new (void);
87
+ ClutterActor *gtk_clutter_embed_get_stage (GtkClutterEmbed *embed);
88
+ void gtk_clutter_embed_set_use_layout_size (GtkClutterEmbed *embed,
89
+ gboolean use_layout_size);
90
+ gboolean gtk_clutter_embed_get_use_layout_size (GtkClutterEmbed *embed);
91
+
92
+ G_END_DECLS
93
+
94
+ #endif /* __GTK_CLUTTER_EMBED_H__ */