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.Actorcontaining 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.Widgetinto a Clutter scene, by retrieving the internalGtk.Bincontainer usingGtkClutter.Actor.get_widget() and adding theGtk.Widgetto it.
- classmethod new_with_contents(contents)¶
- Parameters:
contents (
Gtk.Widget) – aGtk.Widgetto pack into thisClutter.Actor- Returns:
the newly created
GtkClutter.Actor- Return type:
Creates a new
GtkClutter.Actorwidget. 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, orNoneif not content has been set- Return type:
Retrieves the child of the
Gtk.Binused 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.Binused to hold theGtkClutter.Actor:contentswidget
Property Details¶
- GtkClutter.Actor.props.contents¶
- Name:
contents- Type:
- Default Value:
- Flags:
The
Gtk.Widgetto be embedded into theGtkClutter.Actor