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.
See:
This class is derived, and can use functions, from:
wxWidgets docs: wxGridSizer
Summary
Functions
Destroys the object
Returns the number of columns that has been specified for the sizer.
Returns the horizontal gap (in pixels) between cells in the sizer.
Returns the number of rows that has been specified for the sizer.
Returns the vertical gap (in pixels) between the cells in the sizer.
Sets the number of columns in the sizer.
Sets the horizontal gap (in pixels) between cells in the sizer.
Sets the number of rows in the sizer.
Sets the vertical gap (in pixels) between the cells in the sizer.
Types
-type wxGridSizer() :: wx:wx_object().
Functions
destroy(This :: wxGridSizer()) -> ok
Destroys the object
getCols(This :: wxGridSizer()) -> integer()
Returns the number of columns that has been specified for the sizer.
Returns zero if the sizer is automatically adjusting the number of columns depending on
number of its children. To get the effective number of columns or rows being currently
used, see GetEffectiveColsCount() (not implemented in wx)
getHGap(This :: wxGridSizer()) -> integer()
Returns the horizontal gap (in pixels) between cells in the sizer.
getRows(This :: wxGridSizer()) -> integer()
Returns the number of rows that has been specified for the sizer.
Returns zero if the sizer is automatically adjusting the number of rows depending on
number of its children. To get the effective number of columns or rows being currently
used, see GetEffectiveRowsCount() (not implemented in wx).
getVGap(This :: wxGridSizer()) -> integer()
Returns the vertical gap (in pixels) between the cells in the sizer.
new(Cols :: integer(), Options :: [Option]) -> wxGridSizer()
-spec new(Cols, Vgap, Hgap) -> wxGridSizer() when Cols :: integer(), Vgap :: integer(), Hgap :: integer(); (Rows, Cols, Gap) -> wxGridSizer() when Rows :: integer(), Cols :: integer(), Gap :: {W :: integer(), H :: integer()}.
new(Rows, Cols, Vgap, Hgap) -> wxGridSizer()
Types
Rows = Cols = Vgap = Hgap = integer()
setCols(This :: wxGridSizer(), Cols :: integer()) -> ok
Sets the number of columns in the sizer.
setHGap(This :: wxGridSizer(), Gap :: integer()) -> ok
Sets the horizontal gap (in pixels) between cells in the sizer.
setRows(This :: wxGridSizer(), Rows :: integer()) -> ok
Sets the number of rows in the sizer.
setVGap(This :: wxGridSizer(), Gap :: integer()) -> ok
Sets the vertical gap (in pixels) between the cells in the sizer.