Grid
Object Hierarchy:
Description:
public class Grid :
Container
A container that lays out it children in a grid.
Content:
Properties:
- public int rows { construct; get; }
Gets the number of rows in the grid.
- public int columns { construct; get; }
Gets the number of columns in the grid.
- public int border { set; }
Sets all border widths (top, bottom, left, right, row, column) for the
widget.
- public int border_row { set; get; }
Gets and sets the width of the border that is drawn between rows of
the Grid.
- public int border_column { set; get; }
Gets and sets the width of the border that is drawn between columns of
the Grid.
Creation methods:
Methods:
- protected override int get_preferred_width ()
Gets the preferred width of the widget.
- protected override int get_preferred_height ()
Gets the preferred height of the widget.
- protected override int get_preferred_width_for_height (int height)
Gets the preferred width of the widget for the specified height.
- protected override int get_preferred_height_for_width (int width)
Gets the preferred height of the widget for the specified width.
- public bool get_position_for_child (Widget child, out int row, out int column)
Gets the row and column of a widget contained in the Grid.
- public Widget? get_child_at (int row, int column)
Gets the child widget at the specified row and column.
- public void add_at (Widget child, int row, int column, int rowspan = 1, int colspan = 1)
Add a widget to the specified row and column with optional spans.
- protected override void do_layout ()
Implementations should override this method if they need to handle
laying out its contents.
- protected override void draw_border (Color color)
Implementations can override this if they need special handling for
the border.
Inherited Members:
All known members inherited from class EV3devKit.UI.Container
All known members inherited from class EV3devKit.UI.Widget
All known members inherited from class GLib.Object
- @new
- newv
- new_valist
- get_type
- get_class
- @ref
- unref
- ref_sink
- weak_ref
- weak_unref
- add_weak_pointer
- remove_weak_pointer
- @get
- @set
- get_property
- set_property
- get_data
- set_data
- set_data_full
- steal_data
- get_qdata
- set_qdata
- set_qdata_full
- steal_qdata
- freeze_notify
- thaw_notify
- dispose
- constructed
- notify_property
- connect
- disconnect
- add_toggle_ref
- remove_toggle_ref
- bind_property
- notify
- ref_count