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.Box
structure 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.Box
actor- 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-set
property is set toFalse
the returnedClutter.Color
is 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.LayoutManager
is owned by theClutter.Box
and it should not be unreferenced- Return type:
Retrieves the
Clutter.LayoutManager
instance 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.Actor
properties ([
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.Color
orNone
) – the background color, orNone
to 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.LayoutManager
for selfA
Clutter.LayoutManager
is 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 0x0000000)>
- Flags:
The color to be used to paint the background of the
Clutter.Box
. Setting this property will set theClutter.Box
:color-set
property as a side effectThis property sets the
Clutter.Actor
:background-color
property internally.New in version 1.2.
Deprecated since version 1.10: Use the
Clutter.Actor
:background-color
property
- Clutter.Box.props.color_set¶
-
Whether the
Clutter.Box
:color
property has been set.This property reads the
Clutter.Actor
:background-color-set
property internally.New in version 1.2.
Deprecated since version 1.10: Use the
Clutter.Actor
:background-color-set
property