class Iup::GridBox

A container which arranges its widgets in a left-to-right, top-to-bottom order to form a grid-like arrangement.

Example

The following example sets up a 2x2 grid of labels, each centered with a small gap between the columns:

box = Iup::GridBox.new(lbl1, lbl2, lbl3, lbl4) do |b|
  b.sizelin = 1 # the second line is used for calculating spacing
  b.numdiv = 2 # arranges labels with 2 columns
  b.alignmentlin = 'acenter'
  b.gapcol = 5
end

Also see: HBox, VBox