wxRuby Documentation Home

# Wx::BoxSizer

BoxSizers arrange their contents as either a column or a row, and may be
nested to create sophisticated resizeable layouts. The idea behind a box
sizer is that windows will most often be laid out in rather simple basic
geometry, a row or a column, or hierarchies of both.

The subclasses `Wx::HBoxSizer` and `Wx::VBoxSizer` are simply shortcuts
for creating horizontal and vertical BoxSizers, respectively. The
following are equivalent:

Wx::BoxSizer.new(Wx::HORIZONTAL) Wx::HBoxSizer.new

## Derived from

Sizer

Object

## See also

Sizer

## Methods

- BoxSizer.new
- BoxSizer#get_orientation

### BoxSizer.new

BoxSizer.new(%(arg-type)Integer% orient)

Constructor for a BoxSizer. orient may be either of `Wx::VERTICAL`
or `Wx::HORIZONTAL` for creating either a column sizer or a row sizer.

### BoxSizer#get_orientation

Integer get_orientation()

Returns the orientation of the box sizer, either Wx::VERTICAL
or Wx::HORIZONTAL.

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