Clutter.TableLayout¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r/w |
Spacing between columns |
||
r/w |
The duration of the animations |
||
r/w |
The easing mode of the animations |
||
r/w |
Spacing between rows |
||
r/w |
Whether layout changes should be animated |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
parent_instance |
r |
Class Details¶
- class Clutter.TableLayout(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
The
Clutter.TableLayoutstructure contains only private data and should be accessed using the provided APINew in version 1.4.
Deprecated since version 1.18: Use
Clutter.GridLayoutinstead- classmethod new()¶
- Returns:
the newly created
Clutter.TableLayout- Return type:
Creates a new
Clutter.TableLayoutlayout managerNew in version 1.4.
Deprecated since version 1.18: Use
Clutter.GridLayoutinstead
- 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.TableAlignment, y_align:Clutter.TableAlignment)
Retrieves the horizontal and vertical alignment policies for actor as set using
Clutter.TableLayout.pack() orClutter.TableLayout.set_alignment().New in version 1.4.
Deprecated since version 1.12: Use
Clutter.Actor.get_x_align() andClutter.Actor.get_y_align() instead.
- get_column_count()¶
- Returns:
the number of columns
- Return type:
Retrieve the current number of columns in self
New in version 1.4.
Deprecated since version 1.18: No direct replacement is available
- get_column_spacing()¶
- Returns:
the spacing between columns of the
Clutter.TableLayout- Return type:
Retrieves the spacing set using
Clutter.TableLayout.set_column_spacing()New in version 1.4.
Deprecated since version 1.18: Use
Clutter.GridLayout:column-spacing
- get_easing_duration()¶
- Returns:
the duration of the animations, in milliseconds
- Return type:
Retrieves the duration set using
Clutter.TableLayout.set_easing_duration()New in version 1.4.
Deprecated since version 1.12:
Clutter.TableLayoutwill honour the easing state of the children when allocating them. SeeClutter.Actor.set_easing_mode() andClutter.Actor.set_easing_duration().
- get_easing_mode()¶
- Returns:
an easing mode
- Return type:
Retrieves the easing mode set using
Clutter.TableLayout.set_easing_mode()New in version 1.4.
Deprecated since version 1.12:
Clutter.TableLayoutwill honour the easing state of the children when allocating them. SeeClutter.Actor.set_easing_mode() andClutter.Actor.set_easing_duration().
- get_expand(actor)¶
- Parameters:
actor (
Clutter.Actor) – aClutter.Actorchild of self- Returns:
- x_expand:
return location for the horizontal expand policy
- y_expand:
return location for the vertical expand policy
- Return type:
Retrieves the horizontal and vertical expand policies for actor as set using
Clutter.TableLayout.pack() orClutter.TableLayout.set_expand()New in version 1.4.
Deprecated since version 1.12: Use
Clutter.Actor.get_x_expand() andClutter.Actor.get_y_expand() instead.
- 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.TableLayout.pack() orClutter.TableLayout.set_fill()New in version 1.4.
Deprecated since version 1.12: Use
Clutter.Actor.get_x_align() andClutter.Actor.get_y_align() instead.
- get_row_count()¶
- Returns:
the number of rows
- Return type:
Retrieve the current number rows in the self
New in version 1.4.
Deprecated since version 1.18: No direct replacement is available
- get_row_spacing()¶
- Returns:
the spacing between rows of the
Clutter.TableLayout- Return type:
Retrieves the spacing set using
Clutter.TableLayout.set_row_spacing()New in version 1.4.
Deprecated since version 1.18: Use
Clutter.GridLayout:row-spacinginstead
- get_span(actor)¶
- Parameters:
actor (
Clutter.Actor) – aClutter.Actorchild of self- Returns:
- column_span:
return location for the col span
- row_span:
return location for the row span
- Return type:
Retrieves the row and column span for actor as set using
Clutter.TableLayout.pack() orClutter.TableLayout.set_span()New in version 1.4.
Deprecated since version 1.18: Use the
widthandheightlayout properties ofClutter.GridLayoutinstead
- get_use_animations()¶
-
Retrieves whether self should animate changes in the layout properties
Since
Clutter.TableLayout.set_use_animations()New in version 1.4.
Deprecated since version 1.12:
Clutter.TableLayoutwill honour the easing state of the children when allocating them. SeeClutter.Actor.set_easing_mode() andClutter.Actor.set_easing_duration().
- pack(actor, column, row)¶
- Parameters:
actor (
Clutter.Actor) – aClutter.Actorcolumn (
int) – the column the actor should be put, or -1 to appendrow (
int) – the row the actor should be put, or -1 to append
Packs actor inside the
Clutter.Containerassociated to self at the given row and column.New in version 1.4.
Deprecated since version 1.18: Use
Clutter.GridLayout.attach() instead
- set_alignment(actor, x_align, y_align)¶
- Parameters:
actor (
Clutter.Actor) – aClutter.Actorchild of selfx_align (
Clutter.TableAlignment) – Horizontal alignment policy for actory_align (
Clutter.TableAlignment) – Vertical alignment policy for actor
Sets the horizontal and vertical alignment policies for actor inside self
New in version 1.4.
Deprecated since version 1.12: Use
Clutter.Actor.set_x_align() andClutter.Actor.set_y_align() instead.
- set_column_spacing(spacing)¶
- Parameters:
spacing (
int) – the spacing between columns of the layout, in pixels
Sets the spacing between columns of self
New in version 1.4.
Deprecated since version 1.18: Use
Clutter.GridLayout:column-spacinginstead
- 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
Use
Clutter.TableLayout.set_use_animations() to enable and disable the animationsNew in version 1.4.
Deprecated since version 1.12:
Clutter.TableLayoutwill honour the easing state of the children when allocating them. SeeClutter.Actor.set_easing_mode() andClutter.Actor.set_easing_duration().
- 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
Use
Clutter.TableLayout.set_use_animations() to enable and disable the animationsNew in version 1.4.
Deprecated since version 1.12:
Clutter.TableLayoutwill honour the easing state of the children when allocating them. SeeClutter.Actor.set_easing_mode() andClutter.Actor.set_easing_duration().
- set_expand(actor, x_expand, y_expand)¶
- Parameters:
actor (
Clutter.Actor) – aClutter.Actorchild of selfx_expand (
bool) – whether actor should allocate extra space horizontallyy_expand (
bool) – whether actor should allocate extra space vertically
Sets the horizontal and vertical expand policies for actor inside self
New in version 1.4.
Deprecated since version 1.12: Use
Clutter.Actor.set_x_expand() orClutter.Actor.set_y_expand() instead.
- 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.4.
Deprecated since version 1.12: Use
Clutter.Actor.set_x_align() andClutter.Actor.set_y_align() instead.
- set_row_spacing(spacing)¶
- Parameters:
spacing (
int) – the spacing between rows of the layout, in pixels
Sets the spacing between rows of self
New in version 1.4.
Deprecated since version 1.18: Use
Clutter.GridLayout:row-spacinginstead
- set_span(actor, column_span, row_span)¶
- Parameters:
actor (
Clutter.Actor) – aClutter.Actorchild of selfcolumn_span (
int) – Column span for actorrow_span (
int) – Row span for actor
Sets the row and column span for actor inside self
New in version 1.4.
Deprecated since version 1.18: Use the
widthandheightlayout properties ofClutter.GridLayoutinstead
- set_use_animations(animate)¶
-
Sets whether self should animate changes in the layout properties
The duration of the animations is controlled by
Clutter.TableLayout.set_easing_duration(); the easing mode to be used by the animations is controlled byClutter.TableLayout.set_easing_mode()New in version 1.4.
Deprecated since version 1.12:
Clutter.TableLayoutwill honour the easing state of the children when allocating them. SeeClutter.Actor.set_easing_mode() andClutter.Actor.set_easing_duration().
Property Details¶
- Clutter.TableLayout.props.column_spacing¶
-
The spacing between columns of the
Clutter.TableLayout, in pixelsNew in version 1.4.
Deprecated since version 1.18: Use
Clutter.GridLayout:column-spacinginstead
- Clutter.TableLayout.props.easing_duration¶
-
The duration of the animations, in case
Clutter.TableLayout:use-animationsis set toTrue.The duration is expressed in milliseconds.
New in version 1.4.
Deprecated since version 1.12:
Clutter.TableLayoutwill honour the easing state of the children when allocating them
- Clutter.TableLayout.props.easing_mode¶
-
The easing mode for the animations, in case
Clutter.TableLayout: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.4.
Deprecated since version 1.12:
Clutter.TableLayoutwill honour the easing state of the children when allocating them
- Clutter.TableLayout.props.row_spacing¶
-
The spacing between rows of the
Clutter.TableLayout, in pixelsNew in version 1.4.
Deprecated since version 1.18: Use
Clutter.GridLayout:row-spacinginstead
- Clutter.TableLayout.props.use_animations¶
-
Whether the
Clutter.TableLayoutshould animate changes in the layout properties.By default,
Clutter.TableLayoutwill honour the easing state of the children when allocating them. Setting this property toTruewill override the easing state with the layout manager’sClutter.TableLayout:easing-modeandClutter.TableLayout:easing-durationproperties.New in version 1.4.
Deprecated since version 1.12:
Clutter.TableLayoutwill honour the easing state of the children when allocating them