A grid sizer is a sizer which lays out its children in a two-dimensional table with all table fields having the same size, i.e. the width of each field is the width of the widest child, the height of each field is the height of the tallest child.
GridSizer.new(Integer rows, Integer cols, Integer vgap,
Integer hgap)
GridSizer.new(Integer cols, Integer vgap = 0,
Integer hgap = 0)
Constructor for a GridSizer. rows and cols determine the number of columns and rows in the sizer – if either of the parameters is zero, it will be calculated to form the total number of children in the sizer, thus making the sizer grow dynamically. vgap and hgap define extra space between all children.
Integer get_cols()
Returns the number of columns in the sizer.
Integer get_hgap()
Returns the horizontal gap (in pixels) between cells in the sizer.
Integer get_rows()
Returns the number of rows in the sizer.
Integer get_vgap()
Returns the vertical gap (in pixels) between the cells in the sizer.
set_cols(Integer cols)
Sets the number of columns in the sizer.
set_hgap(Integer gap)
Sets the horizontal gap (in pixels) between cells in the sizer.
set_rows(Integer rows)
Sets the number of rows in the sizer.
set_vgap(Integer gap)
Sets the vertical gap (in pixels) between the cells in the sizer.
[This page automatically generated from the Textile source at Fri Oct 31 16:06:43 +0000 2008]