GtkClutter.Actor¶
- Subclasses:
None
Methods¶
- Inherited:
Clutter.Actor (238), GObject.Object (37), Clutter.Animatable (5), Clutter.Container (17), Clutter.Scriptable (4)
- Structs:
class |
|
class |
|
|
|
|
Virtual Methods¶
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
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 |
r |
Class Details¶
- class GtkClutter.Actor(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
A
Clutter.Actor
containing aGtk.Widget
.- classmethod new()¶
- Returns:
the newly created
GtkClutter.Actor
- Return type:
Creates a new
GtkClutter.Actor
.This widget can be used to embed a
Gtk.Widget
into a Clutter scene, by retrieving the internalGtk.Bin
container usingGtkClutter.Actor.get_widget
() and adding theGtk.Widget
to it.
- classmethod new_with_contents(contents)¶
- Parameters:
contents (
Gtk.Widget
) – aGtk.Widget
to pack into thisClutter.Actor
- Returns:
the newly created
GtkClutter.Actor
- Return type:
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
, orNone
if not content has been set- Return type:
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:
Retrieves the
Gtk.Bin
used to hold theGtkClutter.Actor
:contents
widget
Property Details¶
- GtkClutter.Actor.props.contents¶
- Name:
contents
- Type:
- Default Value:
- Flags:
The
Gtk.Widget
to be embedded into theGtkClutter.Actor