GtkClutter.Embed¶
- Subclasses:
None
Methods¶
- Inherited:
Gtk.Container (35), Gtk.Widget (278), GObject.Object (37), Gtk.Buildable (10)
- Structs:
Gtk.ContainerClass (5), Gtk.WidgetClass (12), GObject.ObjectClass (5)
class |
|
|
|
|
Virtual Methods¶
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/c |
Whether to use the reported size of the LayoutManager on the stage as the widget size. |
Style Properties¶
- Inherited:
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent_instance |
r |
Class Details¶
- class GtkClutter.Embed(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
A
Gtk.Widget
containing the default Clutter stage.The
GtkClutter.Embed
structure contains only private data and should be accessed using the provided API.- classmethod new()¶
- Returns:
the newly created
GtkClutter.Embed
- Return type:
Creates a new
GtkClutter.Embed
widget. This widget can be used to build a scene using Clutter API into a GTK+ application.
- get_stage()¶
- Returns:
the Clutter stage. You should never destroy or unref the returned actor.
- Return type:
Retrieves the
Clutter.Stage
from self. The returned stage can be used to add actors to the Clutter scene.
- get_use_layout_size()¶
-
Retrieves whether the embedding uses the layout size, see
GtkClutter.Embed.set_use_layout_size
() for details.New in version 1.4.
- set_use_layout_size(use_layout_size)¶
- Parameters:
use_layout_size (
bool
) – a boolean
Changes the way self requests size. If use_layout_size is
True
, the self widget will request the size that the LayoutManager reports as the preferred size. This means that a Gtk+ window will automatically get the natural and minimum toplevel window sizes. This is useful when the contents of the clutter stage is similar to a traditional UI.If use_layout_size is
False
(which is the default) then self will not request any size and its up to the embedder to make sure there is some size (by setting a custom size on the widget or a default size on the toplevel. This makes more sense when using the self as a viewport into a potentially unlimited clutter space.New in version 1.4.
Property Details¶
- GtkClutter.Embed.props.use_layout_size¶
-
The
Gtk.Widget
to be embedded into theGtkClutter.Actor
New in version 1.4.