Clutter.FlowLayout¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w |
The spacing between columns |
||
r/w |
Whether each item should receive the same allocation |
||
r/w |
Maximum width for each column |
||
r/w |
Maximum height for each row |
||
r/w |
Minimum width for each column |
||
r/w |
Minimum height for each row |
||
r/w/c |
The orientation of the layout |
||
r/w |
The spacing between rows |
||
r/w |
Snap to grid |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent_instance |
r |
Class Details¶
- class Clutter.FlowLayout(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
The
Clutter.FlowLayout
structure contains only private data and should be accessed using the provided APINew in version 1.2.
- classmethod new(orientation)¶
- Parameters:
orientation (
Clutter.FlowOrientation
) – the orientation of the flow layout- Returns:
the newly created
Clutter.FlowLayout
- Return type:
Creates a new
Clutter.FlowLayout
with the given orientationNew in version 1.2.
- get_column_spacing()¶
- Returns:
the spacing between columns of the
Clutter.FlowLayout
, in pixels- Return type:
Retrieves the spacing between columns
New in version 1.2.
- get_column_width()¶
- Returns:
- Return type:
Retrieves the minimum and maximum column widths
New in version 1.2.
- get_homogeneous()¶
- Returns:
True
if theClutter.FlowLayout
is homogeneous- Return type:
Retrieves whether the self is homogeneous
New in version 1.2.
- get_orientation()¶
- Returns:
the orientation of the
Clutter.FlowLayout
- Return type:
Retrieves the orientation of the self
New in version 1.2.
- get_row_height()¶
- Returns:
- Return type:
Retrieves the minimum and maximum row heights
New in version 1.2.
- get_row_spacing()¶
- Returns:
the spacing between rows of the
Clutter.FlowLayout
, in pixels- Return type:
Retrieves the spacing between rows
New in version 1.2.
- get_snap_to_grid()¶
-
Retrieves the value of
Clutter.FlowLayout
:snap-to-grid
propertyNew in version 1.16.
- set_column_spacing(spacing)¶
- Parameters:
spacing (
float
) – the space between columns
Sets the space between columns, in pixels
New in version 1.2.
- set_column_width(min_width, max_width)¶
- Parameters:
Sets the minimum and maximum widths that a column can have
New in version 1.2.
- set_homogeneous(homogeneous)¶
- Parameters:
homogeneous (
bool
) – whether the layout should be homogeneous or not
Sets whether the self should allocate the same space for each child
New in version 1.2.
- set_orientation(orientation)¶
- Parameters:
orientation (
Clutter.FlowOrientation
) – the orientation of the layout
Sets the orientation of the flow layout
The orientation controls the direction used to allocate the children: either horizontally or vertically. The orientation also controls the direction of the overflowing
New in version 1.2.
- set_row_height(min_height, max_height)¶
- Parameters:
Sets the minimum and maximum heights that a row can have
New in version 1.2.
Property Details¶
- Clutter.FlowLayout.props.column_spacing¶
-
The spacing between columns, in pixels; the value of this property is honoured by horizontal non-overflowing layouts and by vertical overflowing layouts
New in version 1.2.
- Clutter.FlowLayout.props.homogeneous¶
-
Whether each child inside the
Clutter.FlowLayout
should receive the same allocationNew in version 1.2.
- Clutter.FlowLayout.props.max_column_width¶
-
Maximum width for each column in the layout, in pixels. If set to -1 the width will be the maximum child width
New in version 1.2.
- Clutter.FlowLayout.props.max_row_height¶
-
Maximum height for each row in the layout, in pixels. If set to -1 the width will be the maximum child height
New in version 1.2.
- Clutter.FlowLayout.props.min_column_width¶
-
Minimum width for each column in the layout, in pixels
New in version 1.2.
- Clutter.FlowLayout.props.min_row_height¶
-
Minimum height for each row in the layout, in pixels
New in version 1.2.
- Clutter.FlowLayout.props.orientation¶
- Name:
orientation
- Type:
- Default Value:
- Flags:
The orientation of the
Clutter.FlowLayout
. The children of the layout will be layed out following the orientation.This property also controls the overflowing directions
New in version 1.2.
- Clutter.FlowLayout.props.row_spacing¶
-
The spacing between rows, in pixels; the value of this property is honoured by vertical non-overflowing layouts and by horizontal overflowing layouts
New in version 1.2.