A ClutterActor containing a #GtkWidget.
Creates a new #GtkClutterActor.
This widget can be used to embed a #GtkWidget into a Clutter scene,
by retrieving the internal #GtkBin container using
gtk_clutter_actor_get_widget() and adding the #GtkWidget to it.
the newly created #GtkClutterActor
Creates a new #GtkClutterActor widget. This widget can be
used to embed a Gtk widget into a clutter scene.
This function is the logical equivalent of:
|[
ClutterActor *actor = gtk_clutter_actor_new ();
GtkWidget *bin = gtk_clutter_actor_get_widget (GTK_CLUTTER_ACTOR (actor));
gtk_container_add (GTK_CONTAINER (bin), contents);
]|
the newly created #GtkClutterActor
a #GtkWidget to pack into this #ClutterActor
Retrieves the child of the #GtkBin used to hold the contents of @actor.
This convenience function is the logical equivalent of:
|[
GtkWidget *bin;
bin = gtk_clutter_actor_get_widget (GTK_CLUTTER_ACTOR (actor));
return gtk_bin_get_child (GTK_BIN (bin));
]|
a #GtkWidget, or %NULL if not content
has been set
a #GtkClutterActor
Retrieves the #GtkBin used to hold the #GtkClutterActor:contents widget
a #GtkBin
a #GtkClutterActor
The #GtkWidget to be embedded into the #GtkClutterActor
Base class for #GtkClutterActor.
A #GtkWidget containing the default Clutter stage.
The <structname>GtkClutterEmbed</structname> structure contains only
private data and should be accessed using the provided API.
Creates a new #GtkClutterEmbed widget. This widget can be
used to build a scene using Clutter API into a GTK+ application.
the newly created #GtkClutterEmbed
Retrieves the #ClutterStage from @embed. The returned stage can be
used to add actors to the Clutter scene.
the Clutter stage. You should never
destroy or unref the returned actor.
a #GtkClutterEmbed
Retrieves whether the embedding uses the layout size, see
gtk_clutter_embed_set_use_layout_size() for details.
%TRUE if reporting stage size as widget size, %FALSE otherwise.
a #GtkClutterEmbed
Changes the way @embed requests size. If @use_layout_size is
%TRUE, the @embed widget will request the size that the
LayoutManager reports as the preferred size. This means that
a Gtk+ window will automatically get the natural and minimum
toplevel window sizes. This is useful when the contents of the
clutter stage is similar to a traditional UI.
If @use_layout_size is %FALSE (which is the default) then @embed
will not request any size and its up to the embedder to make sure
there is some size (by setting a custom size on the widget or a default
size on the toplevel. This makes more sense when using the @embed
as a viewport into a potentially unlimited clutter space.
a #GtkClutterEmbed
a boolean
The #GtkWidget to be embedded into the #GtkClutterActor
Base class for #GtkClutterEmbed.
The <structname>GtkClutterEmbedClass</structname> contains only private
data.
The <structname>GtkClutterTexture</structname> structure contains
only private data and should be accessed using the provided API.
Creates a new #GtkClutterTexture actor.
the newly created #GtkClutterTexture
instance
Sets the contents of @texture using the @icon_name from the
current icon theme.
%TRUE on success, %FALSE on failure
a #GtkClutterTexture
a #GtkWidget or %NULL
the name of the icon
the icon size or -1
Sets the contents of @texture with a copy of @pixbuf.
%TRUE on success, %FALSE on failure.
a #GtkClutterTexture
a #GdkPixbuf
Sets the contents of @texture using the stock icon @stock_id, as
rendered by @widget.
%TRUE on success, %FALSE on failure.
a #GtkClutterTexture
a #GtkWidget
the stock id of the icon
the size of the icon, or -1
The <structname>GtkClutterTextureClass</structname> structure contains
only private data.
Error enumeration for #GtkClutterTexture
Invalid stock id
A #GtkWindow containing a #ClutterStage.
The <structname>GtkClutterWindow</structname> structure contains only
private data and it should be accessed using the provided API.
Creates a new #GtkClutterWindow widget.
This window provides a hidden #ClutterStage on which the child
#GtkWidget<!-- -->s are placed. This allows other #ClutterActor<!-- -->s
to also be placed on the stage.
the newly created #GtkClutterWindow
Retrieves the #ClutterStage that this window is embedding
Use this function if you wish to add other actors to the #ClutterStage.
the window's #ClutterStage
the #GtkClutterWindow
Base class for #GtkClutterWindow.
The <structname>GtkClutterWindowClass</structname> structure contains
only private data.
Returns a #GOptionGroup for the command line arguments recognized
by Clutter. You should add this group to your #GOptionContext with
g_option_context_add_group(), if you are using g_option_context_parse()
to parse your commandline arguments instead of using gtk_clutter_init()
or gtk_clutter_init_with_args().
You should add this option group to your #GOptionContext after
the GTK option group created with gtk_get_option_group(), and after
the clutter option group obtained from clutter_get_option_group_without_init().
You should not use clutter_get_option_group() together with this function.
You must pass %TRUE to gtk_get_option_group() since gtk-clutter's option
group relies on it.
Parsing options using g_option_context_parse() with a #GOptionContext
containing the returned #GOptionGroupwith will result in Clutter's and
GTK-Clutter's initialisation. That is, the following code:
|[
g_option_context_add_group (context, gtk_get_option_group (TRUE));
g_option_context_add_group (context, cogl_get_option_group ());
g_option_context_add_group (context, clutter_get_option_group_without_init ());
g_option_context_add_group (context, gtk_clutter_get_option_group ());
res = g_option_context_parse (context, &argc, &argc, NULL);
]|
is functionally equivalent to:
|[
gtk_clutter_init (&argc, &argv);
]|
After g_option_context_parse() on a #GOptionContext containing the
the returned #GOptionGroup has returned %TRUE, Clutter and GTK-Clutter are
guaranteed to be initialized.
a #GOptionGroup for the commandline arguments
recognized by ClutterGtk
This function should be called instead of clutter_init() and
gtk_init().
%CLUTTER_INIT_SUCCESS on success, a negative integer
on failure.
pointer to the arguments count, or %NULL
pointer to the
arguments vector, or %NULL
This function should be called instead of clutter_init() and
gtk_init_with_args().
%CLUTTER_INIT_SUCCESS on success, a negative integer
on failure.
a pointer to the number of command line
arguments, or %NULL
a pointer to the array
of command line arguments, or %NULL
a string which is displayed in
the first line of <option>--help</option> output, after
<literal><replaceable>programname</replaceable> [OPTION...]</literal>
a
%NULL-terminated array of #GOptionEntry<!-- -->s describing the
options of your program
a translation domain to use for
translating the <option>--help</option> output for the options
in @entries with gettext(), or %NULL