Class: Clutter::GridLayout
- Inherits:
-
LayoutManager
- Object
- GObject::InitiallyUnowned
- LayoutManager
- Clutter::GridLayout
- Defined in:
- (unknown)
Overview
The Clutter::GridLayoutClass structure contains only private data and should be accessed using the provided API
Instance Method Summary collapse
-
#attach(child, left, top, width, height) ⇒ nil
Adds a widget to the grid.
-
#attach_next_to(child, sibling, side, width, height) ⇒ nil
Adds a actor to the grid.
-
#column_homogeneous ⇒ Boolean
Returns whether all columns of layout have the same width.
-
#column_homogeneous=(column_homogeneous) ⇒ Boolean
Whether all columns of the layout should have the same width.
-
#column_homogeneous? ⇒ Boolean
Whether all columns of the layout should have the same width.
-
#column_spacing ⇒ Integer
The amount of space in pixels between two consecutive columns.
-
#column_spacing=(column_spacing) ⇒ Integer
The amount of space in pixels between two consecutive columns.
-
#get_child_at(left, top) ⇒ Clutter::Actor
Gets the child of layout whose area covers the grid cell whose upper left corner is at left, top.
-
#initialize ⇒ Clutter::LayoutManager
constructor
Creates a new Clutter::GridLayout.
-
#insert_column(position) ⇒ nil
Inserts a column at the specified position.
-
#insert_next_to(sibling, side) ⇒ nil
Inserts a row or column at the specified position.
-
#insert_row(position) ⇒ nil
Inserts a row at the specified position.
-
#orientation ⇒ Clutter::Orientation
The orientation of the layout, either horizontal or vertical.
-
#orientation=(orientation) ⇒ Clutter::Orientation
The orientation of the layout, either horizontal or vertical.
-
#row_homogeneous ⇒ Boolean
Returns whether all rows of layout have the same height.
-
#row_homogeneous=(row_homogeneous) ⇒ Boolean
Whether all rows of the layout should have the same height.
-
#row_homogeneous? ⇒ Boolean
Whether all rows of the layout should have the same height.
-
#row_spacing ⇒ Integer
The amount of space in pixels between two consecutive rows.
-
#row_spacing=(row_spacing) ⇒ Integer
The amount of space in pixels between two consecutive rows.
Methods inherited from LayoutManager
#allocate, #animation_progress, #begin_animation, #child_get, #child_get_property, #child_set, #child_set_property, #container=, #end_animation, #find_child_property, #get_child_meta, #get_preferred_height, #get_preferred_width, #layout_changed, #list_child_properties
Constructor Details
#initialize ⇒ Clutter::LayoutManager
Creates a new Clutter::GridLayout
Instance Method Details
#attach(child, left, top, width, height) ⇒ nil
Adds a widget to the grid.
The position of child is determined by left and top. The number of 'cells' that child will occupy is determined by width and height.
#attach_next_to(child, sibling, side, width, height) ⇒ nil
Adds a actor to the grid.
The actor is placed next to sibling, on the side determined by side. When sibling is nil, the actor is placed in row (for left or right placement) or column 0 (for top or bottom placement), at the end indicated by side.
Attaching widgets labeled [1], [2], [3] with sibling == nil and side == %CLUTTER_GRID_POSITION_LEFT yields a layout of [3][2][1].
#column_homogeneous ⇒ Boolean
Returns whether all columns of layout have the same width.
#column_homogeneous=(column_homogeneous) ⇒ Boolean
Whether all columns of the layout should have the same width
#column_homogeneous? ⇒ Boolean
Whether all columns of the layout should have the same width
#column_spacing ⇒ Integer
The amount of space in pixels between two consecutive columns
#column_spacing=(column_spacing) ⇒ Integer
The amount of space in pixels between two consecutive columns
#get_child_at(left, top) ⇒ Clutter::Actor
Gets the child of layout whose area covers the grid cell whose upper left corner is at left, top.
#insert_column(position) ⇒ nil
Inserts a column at the specified position.
Children which are attached at or to the right of this position are moved one column to the right. Children which span across this position are grown to span the new column.
#insert_next_to(sibling, side) ⇒ nil
Inserts a row or column at the specified position.
The new row or column is placed next to sibling, on the side determined by side. If side is %CLUTTER_GRID_POSITION_LEFT or %CLUTTER_GRID_POSITION_BOTTOM, a row is inserted. If side is %CLUTTER_GRID_POSITION_LEFT of %CLUTTER_GRID_POSITION_RIGHT, a column is inserted.
#insert_row(position) ⇒ nil
Inserts a row at the specified position.
Children which are attached at or below this position are moved one row down. Children which span across this position are grown to span the new row.
#orientation ⇒ Clutter::Orientation
The orientation of the layout, either horizontal or vertical
#orientation=(orientation) ⇒ Clutter::Orientation
The orientation of the layout, either horizontal or vertical
#row_homogeneous ⇒ Boolean
Returns whether all rows of layout have the same height.
#row_homogeneous=(row_homogeneous) ⇒ Boolean
Whether all rows of the layout should have the same height
#row_homogeneous? ⇒ Boolean
Whether all rows of the layout should have the same height
#row_spacing ⇒ Integer
The amount of space in pixels between two consecutive rows
#row_spacing=(row_spacing) ⇒ Integer
The amount of space in pixels between two consecutive rows