Actor.with_contents


Description:

[ CCode ( has_construct_function = false , type = "ClutterActor*" ) ]
public Actor.with_contents (Widget contents)

Creates a new Actor 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);

Parameters:

contents

a Widget to pack into this Actor

Returns:

the newly created Actor




2022 vala-language.org