# Control Box (Arrangement)

(UI 0.9.9)

## Introduction

A Box allows the arrangement of other controls

## Class synopsis

class UI\Controls\Box extends UI\Control {
/* Constants */
const int Vertical;
const int Horizontal;
/* Properties */
protected $controls;
/* Constructor */
public function __construct(int `$orientation` = UI\Controls\Box::Horizontal)
/* Methods */
public function append(Control `$control`, bool `$stretchy` = `false`): int
public function delete(int `$index`): bool
public function getOrientation(): int
public function isPadded(): bool
public function setPadded(bool `$padded`)
/* Inherited methods */
public function UI\Control::destroy()
public function UI\Control::disable()
public function UI\Control::enable()
public function UI\Control::getParent(): UI\Control
public function UI\Control::getTopLevel(): int
public function UI\Control::hide()
public function UI\Control::isEnabled(): bool
public function UI\Control::isVisible(): bool
public function UI\Control::setParent(UI\Control `$parent`)
public function UI\Control::show()
}

## Properties

controls

  Contains controls, should not be manipulated directly

## Predefined Constants

`UI\Controls\Box::Vertical`

`UI\Controls\Box::Horizontal`

## Table of Contents

- UI\Controls\Box::append — Append Control
- UI\Controls\Box::__construct — Construct a new Box
- UI\Controls\Box::delete — Delete Control
- UI\Controls\Box::getOrientation — Get Orientation
- UI\Controls\Box::isPadded — Padding Detection
- UI\Controls\Box::setPadded — Set Padding

`↑` and `↓` to navigate • `Enter` to select • `Esc` to close • `/` to open