Clutter.BoxLayout¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r/w |
The duration of the animations |
||
r/w |
The easing mode of the animations |
||
r/w |
Whether the layout should be homogeneous, i.e. all children get the same size |
||
r/w |
The orientation of the layout |
||
r/w |
Whether to pack items at the start of the box |
||
r/w |
Spacing between children |
||
r/w |
Whether layout changes should be animated |
||
d/r/w |
Whether the layout should be vertical, rather than horizontal |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
parent_instance |
r |
Class Details¶
- class Clutter.BoxLayout(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
The
Clutter.BoxLayoutstructure contains only private data and should be accessed using the provided APINew in version 1.2.
- classmethod new()¶
- Returns:
the newly created
Clutter.BoxLayout- Return type:
Creates a new
Clutter.BoxLayoutlayout managerNew in version 1.2.
- get_alignment(actor)¶
- Parameters:
actor (
Clutter.Actor) – aClutter.Actorchild of self- Returns:
- x_align:
return location for the horizontal alignment policy
- y_align:
return location for the vertical alignment policy
- Return type:
(x_align:
Clutter.BoxAlignment, y_align:Clutter.BoxAlignment)
Retrieves the horizontal and vertical alignment policies for actor as set using
Clutter.BoxLayout.pack() orClutter.BoxLayout.set_alignment()New in version 1.2.
Deprecated since version 1.12:
Clutter.BoxLayoutwill honourClutter.Actor'sClutter.Actor:x-alignandClutter.Actor:y-alignproperies
- get_easing_duration()¶
- Returns:
the duration of the animations, in milliseconds
- Return type:
Retrieves the duration set using
Clutter.BoxLayout.set_easing_duration()New in version 1.2.
Deprecated since version 1.12.
- get_easing_mode()¶
- Returns:
an easing mode
- Return type:
Retrieves the easing mode set using
Clutter.BoxLayout.set_easing_mode()New in version 1.2.
Deprecated since version 1.12.
- get_expand(actor)¶
- Parameters:
actor (
Clutter.Actor) – aClutter.Actorchild of self- Returns:
Trueif theClutter.Actorshould expand,Falseotherwise- Return type:
Retrieves whether actor should expand inside self
New in version 1.2.
Deprecated since version 1.12:
Clutter.BoxLayoutwill honourClutter.Actor'sClutter.Actor:x-expandandClutter.Actor:y-expandproperies
- get_fill(actor)¶
- Parameters:
actor (
Clutter.Actor) – aClutter.Actorchild of self- Returns:
- x_fill:
return location for the horizontal fill policy
- y_fill:
return location for the vertical fill policy
- Return type:
Retrieves the horizontal and vertical fill policies for actor as set using
Clutter.BoxLayout.pack() orClutter.BoxLayout.set_fill()New in version 1.2.
Deprecated since version 1.12:
Clutter.BoxLayoutwill honourClutter.Actor'sClutter.Actor:x-alignandClutter.Actor:y-alignproperies
- get_homogeneous()¶
- Returns:
Trueif theClutter.BoxLayoutis arranging its children homogeneously, andFalseotherwise- Return type:
Retrieves if the children sizes are allocated homogeneously.
New in version 1.4.
- get_orientation()¶
- Returns:
the orientation of the layout
- Return type:
Retrieves the orientation of the self.
New in version 1.12.
- get_pack_start()¶
- Returns:
Trueif theClutter.BoxLayoutshould pack children at the beginning of the layout, andFalseotherwise- Return type:
Retrieves the value set using
Clutter.BoxLayout.set_pack_start()New in version 1.2.
- get_spacing()¶
- Returns:
the spacing between children of the
Clutter.BoxLayout- Return type:
Retrieves the spacing set using
Clutter.BoxLayout.set_spacing()New in version 1.2.
- get_use_animations()¶
-
Retrieves whether self should animate changes in the layout properties.
New in version 1.2.
Deprecated since version 1.12.
- get_vertical()¶
- Returns:
Trueif theClutter.BoxLayoutis arranging its children vertically, andFalseotherwise- Return type:
Retrieves the orientation of the self as set using the
Clutter.BoxLayout.set_vertical() functionNew in version 1.2.
Deprecated since version 1.12: Use
Clutter.BoxLayout.get_orientation() instead
- pack(actor, expand, x_fill, y_fill, x_align, y_align)¶
- Parameters:
actor (
Clutter.Actor) – aClutter.Actorexpand (
bool) – whether the actor should expandx_fill (
bool) – whether the actor should fill horizontallyy_fill (
bool) – whether the actor should fill verticallyx_align (
Clutter.BoxAlignment) – the horizontal alignment policy for actory_align (
Clutter.BoxAlignment) – the vertical alignment policy for actor
Packs actor inside the
Clutter.Containerassociated to self and sets the layout propertiesNew in version 1.2.
Deprecated since version 1.12:
Clutter.BoxLayouthonoursClutter.Actor's align and expand properties. The preferred way is adding the actor withClutter.Actor.add_child() and settingClutter.Actor:x-align,Clutter.Actor:y-align,Clutter.Actor:x-expandandClutter.Actor:y-expand
- set_alignment(actor, x_align, y_align)¶
- Parameters:
actor (
Clutter.Actor) – aClutter.Actorchild of selfx_align (
Clutter.BoxAlignment) – Horizontal alignment policy for actory_align (
Clutter.BoxAlignment) – Vertical alignment policy for actor
Sets the horizontal and vertical alignment policies for actor inside self
New in version 1.2.
Deprecated since version 1.12:
Clutter.BoxLayoutwill honourClutter.Actor'sClutter.Actor:x-alignandClutter.Actor:y-alignproperies
- set_easing_duration(msecs)¶
- Parameters:
msecs (
int) – the duration of the animations, in milliseconds
Sets the duration of the animations used by self when animating changes in the layout properties.
New in version 1.2.
Deprecated since version 1.12: The layout manager will honour the easing state of the children when allocating them.
- set_easing_mode(mode)¶
- Parameters:
mode (
int) – an easing mode, either fromClutter.AnimationModeor a logical id fromClutter.Alpha.register_func()
Sets the easing mode to be used by self when animating changes in layout properties.
New in version 1.2.
Deprecated since version 1.12: The layout manager will honour the easing state of the children when allocating them.
- set_expand(actor, expand)¶
- Parameters:
actor (
Clutter.Actor) – aClutter.Actorchild of selfexpand (
bool) – whether actor should expand
Sets whether actor should expand inside self
New in version 1.2.
Deprecated since version 1.12:
Clutter.BoxLayoutwill honourClutter.Actor'sClutter.Actor:x-expandandClutter.Actor:y-expandproperies
- set_fill(actor, x_fill, y_fill)¶
- Parameters:
actor (
Clutter.Actor) – aClutter.Actorchild of selfx_fill (
bool) – whether actor should fill horizontally the allocated spacey_fill (
bool) – whether actor should fill vertically the allocated space
Sets the horizontal and vertical fill policies for actor inside self
New in version 1.2.
Deprecated since version 1.12:
Clutter.BoxLayoutwill honourClutter.Actor'sClutter.Actor:x-alignandClutter.Actor:y-alignproperies
- set_homogeneous(homogeneous)¶
-
Sets whether the size of self children should be homogeneous
New in version 1.4.
- set_orientation(orientation)¶
- Parameters:
orientation (
Clutter.Orientation) – the orientation of theClutter.BoxLayout
Sets the orientation of the
Clutter.BoxLayoutlayout manager.New in version 1.12.
- set_pack_start(pack_start)¶
- Parameters:
pack_start (
bool) –Trueif the self should pack children at the beginning of the layout
Sets whether children of self should be layed out by appending them or by prepending them
New in version 1.2.
- set_spacing(spacing)¶
- Parameters:
spacing (
int) – the spacing between children of the layout, in pixels
Sets the spacing between children of self
New in version 1.2.
- set_use_animations(animate)¶
-
Sets whether self should animate changes in the layout properties
The duration of the animations is controlled by
Clutter.BoxLayout.set_easing_duration(); the easing mode to be used by the animations is controlled byClutter.BoxLayout.set_easing_mode().Enabling animations will override the easing state of each child of the actor using self, and will use the
Clutter.BoxLayout:easing-modeandClutter.BoxLayout:easing-durationproperties instead.New in version 1.2.
Deprecated since version 1.12: The layout manager will honour the easing state of the children when allocating them.
- set_vertical(vertical)¶
-
Sets whether self should arrange its children vertically alongside the Y axis, instead of horizontally alongside the X axis
New in version 1.2.
Deprecated since version 1.12: Use
Clutter.BoxLayout.set_orientation() instead.
Property Details¶
- Clutter.BoxLayout.props.easing_duration¶
-
The duration of the animations, in case
Clutter.BoxLayout:use-animationsis set toTrue.The duration is expressed in milliseconds.
New in version 1.2.
Deprecated since version 1.12: The
Clutter.BoxLayoutwill honour the easing state of the children when allocating them.
- Clutter.BoxLayout.props.easing_mode¶
-
The easing mode for the animations, in case
Clutter.BoxLayout:use-animationsis set toTrue.The easing mode has the same semantics of
Clutter.Animation:mode: it can either be a value from theClutter.AnimationModeenumeration, likeClutter.AnimationMode.EASE_OUT_CUBIC, or a logical id as returned byClutter.Alpha.register_func().The default value is
Clutter.AnimationMode.EASE_OUT_CUBIC.New in version 1.2.
Deprecated since version 1.12: The
Clutter.BoxLayoutwill honour the easing state of the children when allocating them.
- Clutter.BoxLayout.props.homogeneous¶
-
Whether the
Clutter.BoxLayoutshould arrange its children homogeneously, i.e. all children get the same sizeNew in version 1.4.
- Clutter.BoxLayout.props.orientation¶
- Name:
orientation- Type:
- Default Value:
- Flags:
The orientation of the
Clutter.BoxLayout, either horizontal or verticalNew in version 1.12.
- Clutter.BoxLayout.props.pack_start¶
-
Whether the
Clutter.BoxLayoutshould pack items at the start or append them at the endNew in version 1.2.
- Clutter.BoxLayout.props.spacing¶
-
The spacing between children of the
Clutter.BoxLayout, in pixelsNew in version 1.2.
- Clutter.BoxLayout.props.use_animations¶
-
Whether the
Clutter.BoxLayoutshould animate changes in the layout, overriding the easing state of the children.New in version 1.2.
Deprecated since version 1.12:
Clutter.BoxLayoutwill honour the easing state of the children when allocating them.
- Clutter.BoxLayout.props.vertical¶
- Name:
vertical- Type:
- Default Value:
- Flags:
Whether the
Clutter.BoxLayoutshould arrange its children alongside the Y axis, instead of alongside the X axisNew in version 1.2.
Deprecated since version 1.12: Use
Clutter.BoxLayout:orientationinstead.