A ClutterActor containing a #GtkWidget.
Creates a new #GtkClutterActor widget. This widget can be
used to embed a Gtk widget into a clutter scene.
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 shorthand for:
<example><programlisting>
ClutterActor *actor = gtk_clutter_actor_new ();
GtkWidget *bin = gtk_clutter_actor_get_widget (GTK_CLUTTER_ACTOR (actor));
gtk_container_add (GTK_CONTAINER (bin), contents);
</programlisting></example>
the newly created #GtkClutterActor
a #GtkWidget to pack into this #ClutterActor
Base class for #GtkClutterActor.
Extension of the #ClutterInitError enumeration for the integration
with GTK+
An enumeration of error types used in ClutterGtk texture functions
A #GtkWidget containing the default Clutter stage.
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 returned actor.
the Clutter stage. You should never destroy or unref
Base class for #GtkClutterEmbed.
Sets the horizontal and vertical adjustments used to determine
the position of the scrollable actor.
a #GtkAdjustment, or %NULL
a #GtkAdjustment, or %NULL
Retrieves the horizontal and vertical adjustments used to
determine the position of the scrollable actor.
return location for a #GtkAdjustment, or %NULL
return location for a #GtkAdjustment, or %NULL
Sets the horizontal and vertical adjustments used to determine
the position of the scrollable actor.
a #GtkAdjustment, or %NULL
a #GtkAdjustment, or %NULL
Retrieves the horizontal and vertical adjustments used to
determine the position of the scrollable actor.
return location for a #GtkAdjustment, or %NULL
return location for a #GtkAdjustment, or %NULL
The #GtkAdjustment that determines the value of the
horizontal position for this scrollable actor.
The #GtkAdjustment that determines the value of the
vertical position for this scrollable actor.
The #GtkClutterScrollableIface structure contains only private data
and should be accessed using the provided functions.
a #GtkAdjustment, or %NULL
a #GtkAdjustment, or %NULL
return location for a #GtkAdjustment, or %NULL
return location for a #GtkAdjustment, or %NULL
A #GtkWidget containing the default Clutter stage.
Creates a new #GtkClutterStandin widget. This widget is used as a stand-in
in the GTK+ widget tree for a widget that is sitting as a separate actor
on the #ClutterStage this widget is sat on.
This requires the widget tree to be embedded within a #GtkClutterActor.
the newly created #GtkClutterStandin
the #ClutterActor to stand-in for (or NULL)
Sets the actor for which the #GtkClutterStandin stands for
a #ClutterActor to stand in for, or %NULL
Retrieves a pointer to the actor that is represented by the standin widget
a #ClutterActor or %NULL
Base class for #GtkClutterStandin.
The #GtkClutterViewport structure contains only private data and
should be accessed using the provided functions.
Creates a new #GtkClutterViewport with the given adjustments.
the newly created viewport actor
horizontal adjustment, or %NULL
vertical adjustment, or %NULL
zoom adjustment, or %NULL
Retrieves the current translation factor ("origin") used when
displaying the child of @viewport.
return location for the X origin in pixels, or %NULL
return location for the Y origin in pixels, or %NULL
return location for the Z origin in pixels, or %NULL
The #ClutterActor inside the viewport.
The current origin of the viewport. You should use the
vertex to convert event coordinates for the child of the
viewport.
The #GtkClutterViewportClass structure contains only private data and
should be accessed using the provided functions.
A ClutterWindow containing a #GtkWidget.
Creates a new #GtkClutterWindow widget. This window provides a hidden
ClutterStage on which the child GtkWidgets are placed. This allows other
ClutterActors to also be placed on the stage.
the newly created #GtkClutterWindow
Retrieves the #ClutterStage that this window is mounting the GTK+ widget
tree onto.
Use this function if you wish to add other actors to the #ClutterStage.
the window's #ClutterStage
Base class for #GtkClutterWindow.
Sets the adjustment used to determine the zoom factor of
the zoomable actor
a #GtkAdjustment, or %NULL
Retrieves the adjustment used to determine the zoom factor of
the zoomable actor
a #GtkAdjustment
Sets the adjustment used to determine the zoom factor of
the zoomable actor
a #GtkAdjustment, or %NULL
Retrieves the adjustment used to determine the zoom factor of
the zoomable actor
a #GtkAdjustment
The #GtkAdjustment that determines the value of
the zoom factor for this zoomable actor
The #GtkClutterZoomableIface structure contains only private data
a #GtkAdjustment, or %NULL
a #GtkAdjustment
This utility function copies the width/height from the actor @src to the
actor @dest.
The primary use for this function is for packing actors in the
top-level #GtkClutterWindow, and having them resize with the window.
actor to copy the dimensions from
actor to copy the dimensions to
the direction to copy the dimensions in
Returns the #GtkAllocation of a widget relative to a widget known to
Clutter-GTK+.
This function is similar to gtk_clutter_calculate_root_allocation() but
returns the coordinates relative to a #GtkWidget that is already connected
to a #ClutterActor (for example, a #GtkClutterActor).
This function is used internally by Clutter-GTK+ to position actors within
their #GtkClutterStandin, but is provided in case it's useful to find the
position of a widget within the #GtkClutterActor that contains it).
a #GtkWidget to calculate the root-window allocation for
a #GtkAllocation to store the result in
Returns the #GtkAllocation of a widget relative to the top-level.
The #GtkAllocation of a widget is relative to the allocation of any
parent container that is backed by a #GdkWindow. Thus to work out the
allocation in the coordinates of the top-level (which is needed to be
provided to Clutter), we must add walk the widget tree and add the
allocations of any window-backed parent containers.
Use this function if you want to find out the position of a widget in
stage coordinates (normally so that you can align some animation on the
stage).
a #GtkWidget to calculate the root-window allocation for
a #GtkAllocation to store the result in
Run-time version check, to check the version the Clutter-GTK library
that an application is currently linked against
This is the run-time equivalent of the compile-time
%CLUTTER_GTK_CHECK_VERSION pre-processor macro
greater than (@major, @minor, @micro), and %FALSE otherwise
%TRUE if the version of the Clutter-GTK library is
major version, like 1 in 1.2.3
minor version, like 2 in 1.2.3
micro version, like 3 in 1.2.3
Retrieves the base color of @widget for the given @state and copies it
into @color.
a #GtkWidget
a state
return location for a #ClutterColor
Retrieves the background color of @widget for the given @state and copies
it into @color.
a #GtkWidget
a state
return location for a #ClutterColor
Retrieves the dark color of @widget for the given @state and copies it
into @color.
a #GtkWidget
a state
return location for a #ClutterColor
Retrieves the foreground color of @widget for the given @state and copies
it into @color.
a #GtkWidget
a state
return location for a #ClutterColor
Retrieves the light color of @widget for the given @state and copies it
into @color.
a #GtkWidget
a state
return location for a #ClutterColor
Retrieves the mid color of @widget for the given @state and copies it
into @color.
a #GtkWidget
a state
return location for a #ClutterColor
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.
recognized by ClutterGtk
a #GOptionGroup for the commandline arguments
Retrieves the text-aa color of @widget for the given @state and copies it
into @color.
a #GtkWidget
a state
return location for a #ClutterColor
Retrieves the text color of @widget for the given @state and copies it
into @color.
a #GtkWidget
a state
return location for a #ClutterColor
This function should be called instead of clutter_init() and
gtk_init().
on failure.
%CLUTTER_INIT_SUCCESS on success, a negative integer
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().
on failure.
%CLUTTER_INIT_SUCCESS on success, a negative integer
a pointer to the number of command line arguments.
a pointer to the array of command line arguments.
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
Creates a new #ClutterTexture and sets its contents to be
the @icon_name from the current icon theme.
was %NULL and @icon_name was not found.
the newly created texture, or %NULL if @widget
a #GtkWidget or %NULL
the name of the icon
the size of the icon, or -1
Creates a new #ClutterTexture and sets its contents with a copy
of @pixbuf.
the newly created #ClutterTexture
a #GdkPixbuf
Creates a new #ClutterTexture and sets its contents using the stock
icon @stock_id as rendered by @widget.
the newly created #ClutterTexture
a #GtkWidget
the stock id of the icon
the size of the icon, or -1
Sets the contents of @texture using the @icon_name from the
current icon theme.
%TRUE on success, %FALSE on failure.
a #ClutterTexture
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 #ClutterTexture
a #GdkPixbuf
Sets the contents of @texture using the stock icon @stock_id, as
rendered by @widget.
%TRUE on success, %FALSE on failure.
a #ClutterTexture
a #GtkWidget
the stock id of the icon
the size of the icon, or -1