GtkClutter.Actor.new_with_contents
function new_with_contents(contents: Gtk.Widget): Clutter.Actor { // Gjs wrapper for gtk_clutter_actor_new_with_contents() }
Creates a new GtkClutter.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); ]|
- contents
a Gtk.Widget to pack into this Clutter.Actor
- Returns
the newly created GtkClutter.Actor