Clutter.Box¶
- Subclasses:
None
Methods¶
- Inherited:
Clutter.Actor (238), GObject.Object (37), Clutter.Animatable (5), Clutter.Container (17), Clutter.Scriptable (4)
- Structs:
class |
|
|
|
|
|
|
|
|
Virtual Methods¶
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r/w |
The background color of the box |
||
r/w |
Whether the background color is set |
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 Clutter.Box(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
The
Clutter.Boxstructure contains only private data and should be accessed using the provided APINew in version 1.2.
- classmethod new(manager)¶
- Parameters:
manager (
Clutter.LayoutManager) – aClutter.LayoutManager- Returns:
the newly created
Clutter.Boxactor- Return type:
Creates a new
Clutter.Box. The children of the box will be layed out by the passed managerNew in version 1.2.
Deprecated since version 1.10: Use
Clutter.Actor.new() instead.
- get_color()¶
- Returns:
return location for a
Clutter.Color- Return type:
color:
Clutter.Color
Retrieves the background color of self
If the
Clutter.Box:color-setproperty is set toFalsethe returnedClutter.Coloris undefinedNew in version 1.2.
Deprecated since version 1.10: Use
Clutter.Actor.get_background_color() instead.
- get_layout_manager()¶
- Returns:
a
Clutter.LayoutManager. The returnedClutter.LayoutManageris owned by theClutter.Boxand it should not be unreferenced- Return type:
Retrieves the
Clutter.LayoutManagerinstance used by selfNew in version 1.2.
Deprecated since version 1.10: Use
Clutter.Actor.get_layout_manager() instead.
- packv(actor, properties, values)¶
- Parameters:
actor (
Clutter.Actor) – aClutter.Actorproperties ([
str]) – a vector containing the property names to setvalues ([
GObject.Value]) – a vector containing the property values to set
Vector-based variant of clutter_box_pack(), intended for language bindings to use
New in version 1.2.
Deprecated since version 1.10: Use
Clutter.Actor.add_child() instead. To set specific layout properties, use clutter_layout_manager_child_set()
- set_color(color)¶
- Parameters:
color (
Clutter.ColororNone) – the background color, orNoneto unset
Sets (or unsets) the background color for self
New in version 1.2.
Deprecated since version 1.10: Use
Clutter.Actor.set_background_color() instead.
- set_layout_manager(manager)¶
- Parameters:
manager (
Clutter.LayoutManager) – aClutter.LayoutManager
Sets the
Clutter.LayoutManagerfor selfA
Clutter.LayoutManageris a delegate object that controls the layout of the children of selfNew in version 1.2.
Deprecated since version 1.10: Use
Clutter.Actor.set_layout_manager() instead.
Property Details¶
- Clutter.Box.props.color¶
- Name:
color- Type:
- Default Value:
<Color structure at 0x000000000000 (ClutterColor at 0x00000000)>- Flags:
The color to be used to paint the background of the
Clutter.Box. Setting this property will set theClutter.Box:color-setproperty as a side effectThis property sets the
Clutter.Actor:background-colorproperty internally.New in version 1.2.
Deprecated since version 1.10: Use the
Clutter.Actor:background-colorproperty
- Clutter.Box.props.color_set¶
-
Whether the
Clutter.Box:colorproperty has been set.This property reads the
Clutter.Actor:background-color-setproperty internally.New in version 1.2.
Deprecated since version 1.10: Use the
Clutter.Actor:background-color-setproperty