---
name: "wxBoxSizer"
section: "3erl"
platform: "linux"
package: "erlang-manpages"
version: "1:25.2.3+dfsg-1+deb12u4"
release: "Debian 12 (Bookworm)"
platforms: ["linux"]
url: "https://new.carta.tech/wxBoxSizer"
---

# wxBoxSizer(3erl)

Functions for wxBoxSizer class

## NAME

wxBoxSizer - Functions for wxBoxSizer class

## DESCRIPTION

The basic idea behind a box sizer is that windows will most often be laid out in rather simple basic geometry, typically in a row or a column or several hierarchies of either.

For more information, please see overview\_sizer\_box.

See: *wxSizer*, Overview sizer

This class is derived (and can use functions) from: *wxSizer*

wxWidgets docs: wxBoxSizer

## DATA TYPES

```
wxBoxSizer() = wx:wx_object()
```

## EXPORTS

```
new(Orient) -> wxBoxSizer()
```

Types:

Orient = integer()\

Constructor for a *wxBoxSizer*.

*orient* may be either of wxVERTICAL or wxHORIZONTAL for creating either a column sizer or a row sizer.

```
getOrientation(This) -> integer()
```

Types:

This = wxBoxSizer()\

Returns the orientation of the box sizer, either wxVERTICAL or wxHORIZONTAL.

```
destroy(This :: wxBoxSizer()) -> ok
```

Destroys the object.
