GtkClutter.Actor

g Atk.ImplementorIface Atk.ImplementorIface Clutter.Actor Clutter.Actor Atk.ImplementorIface->Clutter.Actor GtkClutter.Actor GtkClutter.Actor Clutter.Actor->GtkClutter.Actor Clutter.Animatable Clutter.Animatable Clutter.Animatable->Clutter.Actor Clutter.Container Clutter.Container Clutter.Container->Clutter.Actor Clutter.Scriptable Clutter.Scriptable Clutter.Scriptable->Clutter.Actor GObject.GInterface GObject.GInterface GObject.GInterface->Atk.ImplementorIface GObject.GInterface->Clutter.Animatable GObject.GInterface->Clutter.Container GObject.GInterface->Clutter.Scriptable GObject.InitiallyUnowned GObject.InitiallyUnowned GObject.InitiallyUnowned->Clutter.Actor GObject.Object GObject.Object GObject.Object->GObject.InitiallyUnowned

Subclasses:

None

Methods

Inherited:

Clutter.Actor (238), GObject.Object (37), Clutter.Animatable (5), Clutter.Container (17), Clutter.Scriptable (4)

Structs:

GObject.ObjectClass (5)

class

new ()

class

new_with_contents (contents)

get_contents ()

get_widget ()

Virtual Methods

Inherited:

Clutter.Actor (35), GObject.Object (7), Clutter.Animatable (5), Clutter.Container (13), Clutter.Scriptable (4)

Properties

Inherited:

Clutter.Actor (82)

Name

Type

Flags

Short Description

contents

Gtk.Widget

r/w/c

The widget to be embedded

Signals

Inherited:

Clutter.Actor (26), GObject.Object (1), Clutter.Container (3)

Fields

Inherited:

Clutter.Actor (26), GObject.Object (1), Clutter.Container (3)

Name

Type

Access

Description

parent_instance

Clutter.Actor

r

Class Details

class GtkClutter.Actor(**kwargs)
Bases:

Clutter.Actor

Abstract:

No

Structure:

GtkClutter.ActorClass

A Clutter.Actor containing a Gtk.Widget.

classmethod new()
Returns:

the newly created GtkClutter.Actor

Return type:

Clutter.Actor

Creates a new GtkClutter.Actor.

This widget can be used to embed a Gtk.Widget into a Clutter scene, by retrieving the internal Gtk.Bin container using GtkClutter.Actor.get_widget() and adding the Gtk.Widget to it.

classmethod new_with_contents(contents)
Parameters:

contents (Gtk.Widget) – a Gtk.Widget to pack into this Clutter.Actor

Returns:

the newly created GtkClutter.Actor

Return type:

Clutter.Actor

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);
get_contents()
Returns:

a Gtk.Widget, or None if not content has been set

Return type:

Gtk.Widget

Retrieves the child of the Gtk.Bin used to hold the contents of self.

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));
get_widget()
Returns:

a Gtk.Bin

Return type:

Gtk.Widget

Retrieves the Gtk.Bin used to hold the GtkClutter.Actor :contents widget

Property Details

GtkClutter.Actor.props.contents
Name:

contents

Type:

Gtk.Widget

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT

The Gtk.Widget to be embedded into the GtkClutter.Actor