wxRuby Documentation Home

Wx::GridSizer

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.

Derived from

Sizer

Object

See also

Sizer

Methods

GridSizer.new

GridSizer.new(%(arg-type)Integer% rows, Integer cols, Integer vgap, Integer hgap) GridSizer.new(%(arg-type)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.

GridSizer#get_cols

Integer get_cols()

Returns the number of columns in the sizer.

GridSizer#get_hgap

Integer get_hgap()

Returns the horizontal gap (in pixels) between cells in the sizer.

GridSizer#get_rows

Integer get_rows()

Returns the number of rows in the sizer.

GridSizer#get_vgap

Integer get_vgap()

Returns the vertical gap (in pixels) between the cells in the sizer.

GridSizer#set_cols

set_cols(%(arg-type)Integer% cols)

Sets the number of columns in the sizer.

GridSizer#set_hgap

set_hgap(%(arg-type)Integer% gap)

Sets the horizontal gap (in pixels) between cells in the sizer.

GridSizer#set_rows

set_rows(%(arg-type)Integer% rows)

Sets the number of rows in the sizer.

GridSizer#set_vgap

set_vgap(%(arg-type)Integer% gap)

Sets the vertical gap (in pixels) between the cells in the sizer.

[This page automatically generated from the Textile source at 2023-06-09 00:45:25 +0000]