Top |
GtkClutterActor implements ClutterContainer, ClutterScriptable, ClutterAnimatable and AtkImplementorIface.
GtkClutterActor is a ClutterContainer that also allows embedding any GtkWidget in a Clutter scenegraph.
GtkClutterActor only allows embedding GtkWidgets when inside the ClutterStage provided by a GtkClutterEmbed: it is not possible to use GtkClutterActor in a ClutterStage handled by Clutter alone.
ClutterActor *
gtk_clutter_actor_new (void
);
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.
ClutterActor *
gtk_clutter_actor_new_with_contents (GtkWidget *contents
);
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:
1 2 3 4 |
ClutterActor *actor = gtk_clutter_actor_new (); GtkWidget *bin = gtk_clutter_actor_get_widget (GTK_CLUTTER_ACTOR (actor)); gtk_container_add (GTK_CONTAINER (bin), contents); |
GtkWidget *
gtk_clutter_actor_get_contents (GtkClutterActor *actor
);
Retrieves the child of the GtkBin used to hold the contents of actor
.
This convenience function is the logical equivalent of:
1 2 3 4 |
GtkWidget *bin; bin = gtk_clutter_actor_get_widget (GTK_CLUTTER_ACTOR (actor)); return gtk_bin_get_child (GTK_BIN (bin)); |
GtkWidget *
gtk_clutter_actor_get_widget (GtkClutterActor *actor
);
Retrieves the GtkBin used to hold the “contents” widget
“contents”
property“contents” GtkWidget *
The GtkWidget to be embedded into the GtkClutterActor
Flags: Read / Write / Construct