Class
ClutterGridLayout
since: 13
Description [src]
class Clutter.GridLayout : Clutter.LayoutManager
{
/* No available fields */
}
A layout manager for a grid of actors
ClutterGridLayout
is a layout manager which arranges its child widgets in
rows and columns. It is a very similar to ClutterBoxLayout
, but it
consistently uses ClutterActor
‘s alignment and expansion flags instead of
custom child properties.
Children are added using clutter_grid_layout_attach(). They can span
multiple rows or columns. It is also possible to add a child next to an
existing child, using clutter_grid_layout_attach_next_to(). The behaviour of
ClutterGridLayout
when several children occupy the same grid cell is undefined.
ClutterGridLayout
can be used like a ClutterBoxLayout
by just using
clutter_actor_add_child(), which will place children next to each other in
the direction determined by the ClutterGridLayout:orientation
property.
Available since: 13
Instance methods
clutter_grid_layout_get_child_at
Gets the child of layout
whose area covers the grid
cell whose upper left corner is at left
, top
.
since: 13
clutter_grid_layout_get_column_homogeneous
Returns whether all columns of layout
have the same width.
since: 13
clutter_grid_layout_get_column_spacing
Retrieves the spacing set using clutter_grid_layout_set_column_spacing()
since: 13
clutter_grid_layout_get_row_homogeneous
Returns whether all rows of layout
have the same height.
since: 13
clutter_grid_layout_get_row_spacing
Retrieves the spacing set using clutter_grid_layout_set_row_spacing()
since: 13
clutter_grid_layout_set_column_homogeneous
Sets whether all columns of layout
will have the same width.
since: 13
clutter_grid_layout_set_row_homogeneous
Sets whether all rows of layout
will have the same height.
since: 13
Methods inherited from ClutterLayoutManager (12)
clutter_layout_manager_allocate
Allocates the children of container
given an area.
since: 13
clutter_layout_manager_child_get
Retrieves the values for a list of properties out of the
ClutterLayoutMeta
created by manager
and attached to the
child of a container
.
since: 13
clutter_layout_manager_child_get_property
Gets a property on the ClutterLayoutMeta
created by manager
and
attached to a child of container
.
since: 13
clutter_layout_manager_child_set
Sets a list of properties and their values on the ClutterLayoutMeta
associated by manager
to a child of container
.
since: 13
clutter_layout_manager_child_set_property
Sets a property on the ClutterLayoutMeta
created by manager
and
attached to a child of container
.
since: 13
clutter_layout_manager_find_child_property
Retrieves the GParamSpec
for the layout property name
inside
the ClutterLayoutMeta
sub-class used by manager
.
since: 13
clutter_layout_manager_get_child_meta
Retrieves the ClutterLayoutMeta
that the layout manager
associated
to the actor
child of container
, eventually by creating one if the
ClutterLayoutManager
supports layout properties.
since: 13
clutter_layout_manager_get_preferred_height
Computes the minimum and natural heights of the container
according
to manager
.
since: 13
clutter_layout_manager_get_preferred_width
Computes the minimum and natural widths of the container
according
to manager
.
since: 13
clutter_layout_manager_layout_changed
Emits the ClutterLayoutManager::layout-changed
signal on manager
.
since: 13
clutter_layout_manager_list_child_properties
Retrieves all the GParamSpec
s for the layout properties
stored inside the ClutterLayoutMeta
sub-class used by manager
.
since: 13
clutter_layout_manager_set_container
If the ClutterLayoutManager
sub-class allows it, allow
adding a weak reference of the container
using manager
from within the layout manager.
since: 13
Properties
Clutter.GridLayout:column-homogeneous
Whether all columns of the layout should have the same width.
since: 13
Clutter.GridLayout:column-spacing
The amount of space in pixels between two consecutive columns.
since: 13
Clutter.GridLayout:orientation
The orientation of the layout, either horizontal or vertical.
since: 13
Clutter.GridLayout:row-homogeneous
Whether all rows of the layout should have the same height.
since: 13
Clutter.GridLayout:row-spacing
The amount of space in pixels between two consecutive rows.
since: 13
Signals
Signals inherited from ClutterLayoutManager (1)
ClutterLayoutManager::layout-changed
The signal is emitted each time a layout manager
has been changed. Every ClutterActor
using the manager
instance
as a layout manager should connect a handler to the
ClutterLayoutManager::layout-changed
signal and queue a relayout on themselves:
since: 13
Signals inherited from GObject (1)
GObject::notify
The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.
since: 2.0