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 API- New in version 1.2. - classmethod new()¶
- Returns:
- the newly created - Clutter.BoxLayout
- Return type:
 - Creates a new - Clutter.BoxLayoutlayout manager- New in version 1.2. 
 - get_alignment(actor)¶
- Parameters:
- actor ( - Clutter.Actor) – a- Clutter.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() or- Clutter.BoxLayout.set_alignment()- New in version 1.2. - Deprecated since version 1.12: - Clutter.BoxLayoutwill honour- Clutter.Actor's- Clutter.Actor- :x-alignand- Clutter.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) – a- Clutter.Actorchild of self
- Returns:
- Trueif the- Clutter.Actorshould expand,- Falseotherwise
- Return type:
 - Retrieves whether actor should expand inside self - New in version 1.2. - Deprecated since version 1.12: - Clutter.BoxLayoutwill honour- Clutter.Actor's- Clutter.Actor- :x-expandand- Clutter.Actor- :y-expandproperies
 - get_fill(actor)¶
- Parameters:
- actor ( - Clutter.Actor) – a- Clutter.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() or- Clutter.BoxLayout.set_fill()- New in version 1.2. - Deprecated since version 1.12: - Clutter.BoxLayoutwill honour- Clutter.Actor's- Clutter.Actor- :x-alignand- Clutter.Actor- :y-alignproperies
 - get_homogeneous()¶
- Returns:
- Trueif the- Clutter.BoxLayoutis arranging its children homogeneously, and- Falseotherwise
- 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 the- Clutter.BoxLayoutshould pack children at the beginning of the layout, and- Falseotherwise
- 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 the- Clutter.BoxLayoutis arranging its children vertically, and- Falseotherwise
- Return type:
 - Retrieves the orientation of the self as set using the - Clutter.BoxLayout.set_vertical() function- New 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) – a- Clutter.Actor
- expand ( - bool) – whether the actor should expand
- x_fill ( - bool) – whether the actor should fill horizontally
- y_fill ( - bool) – whether the actor should fill vertically
- x_align ( - Clutter.BoxAlignment) – the horizontal alignment policy for actor
- y_align ( - Clutter.BoxAlignment) – the vertical alignment policy for actor
 
 - Packs actor inside the - Clutter.Containerassociated to self and sets the layout properties- New in version 1.2. - Deprecated since version 1.12: - Clutter.BoxLayouthonours- Clutter.Actor's align and expand properties. The preferred way is adding the actor with- Clutter.Actor.add_child() and setting- Clutter.Actor- :x-align,- Clutter.Actor- :y-align,- Clutter.Actor- :x-expandand- Clutter.Actor- :y-expand
 - set_alignment(actor, x_align, y_align)¶
- Parameters:
- actor ( - Clutter.Actor) – a- Clutter.Actorchild of self
- x_align ( - Clutter.BoxAlignment) – Horizontal alignment policy for actor
- y_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 honour- Clutter.Actor's- Clutter.Actor- :x-alignand- Clutter.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 from- Clutter.AnimationModeor a logical id from- Clutter.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) – a- Clutter.Actorchild of self
- expand ( - bool) – whether actor should expand
 
 - Sets whether actor should expand inside self - New in version 1.2. - Deprecated since version 1.12: - Clutter.BoxLayoutwill honour- Clutter.Actor's- Clutter.Actor- :x-expandand- Clutter.Actor- :y-expandproperies
 - set_fill(actor, x_fill, y_fill)¶
- Parameters:
- actor ( - Clutter.Actor) – a- Clutter.Actorchild of self
- x_fill ( - bool) – whether actor should fill horizontally the allocated space
- y_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 honour- Clutter.Actor's- Clutter.Actor- :x-alignand- Clutter.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 the- Clutter.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 vertical- New 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 axis- New in version 1.2. - Deprecated since version 1.12: Use - Clutter.BoxLayout- :orientationinstead.