GridLayout
Object Hierarchy:
Description:
[
CCode ( type_id =
"clutter_grid_layout_get_type ()" ) ]
[
Version ( since =
"1.12" ) ]
public class GridLayout :
LayoutManager
The GridLayout structure contains only private data and should be accessed using the provided API
Content:
Properties:
- public bool column_homogeneous { get; set; }
Whether all columns of the layout should have the same width
- public uint column_spacing { get; set; }
The amount of space in pixels between two consecutive columns
- public Orientation orientation { get; set; }
The orientation of the layout, either horizontal or vertical
- public bool row_homogeneous { get; set; }
Whether all rows of the layout should have the same height
- public uint row_spacing { get; set; }
The amount of space in pixels between two consecutive rows
Creation methods:
Methods:
- public void attach (Actor child, int left, int top, int width, int height)
Adds a widget to the grid.
- public void attach_next_to (Actor child, Actor? sibling, GridPosition side, int width, int height)
Adds a actor to the grid.
- public unowned Actor get_child_at (int left, int top)
Gets the child of this whose area covers
the grid cell whose upper left corner is at left
, top
.
- public bool get_column_homogeneous ()
Returns whether all columns of this have
the same width.
- public uint get_column_spacing ()
- public Orientation get_orientation ()
Retrieves the orientation of the this.
- public bool get_row_homogeneous ()
Returns whether all rows of this have the
same height.
- public uint get_row_spacing ()
- public void insert_column (int position)
Inserts a column at the specified position.
- public void insert_next_to (Actor sibling, GridPosition side)
Inserts a row or column at the specified position.
- public void insert_row (int position)
Inserts a row at the specified position.
- public void set_column_homogeneous (bool homogeneous)
Sets whether all columns of this will have
the same width.
- public void set_column_spacing (uint spacing)
Sets the spacing between columns of this
- public void set_orientation (Orientation orientation)
Sets the orientation of the this.
- public void set_row_homogeneous (bool homogeneous)
Sets whether all rows of this will have
the same height.
- public void set_row_spacing (uint spacing)
Sets the spacing between rows of this
Inherited Members:
All known members inherited from class Clutter.LayoutManager
All known members inherited from class GLib.Object