# Control Box (Arrangement)

(UI 0.9.9)

## 简介

A Box allows the arrangement of other controls

## 类摘要

class UI\Controls\Box extends UI\Control {
/* 常量 */
const int Vertical;
const int Horizontal;
/* 属性 */
protected $controls;
/* Constructor */
public __construct(int `$orientation` = UI\Controls\Box::Horizontal)
/* 方法 */
public append(Control `$control`, bool `$stretchy` = `false`): int
public delete(int `$index`): bool
public getOrientation(): int
public isPadded(): bool
public setPadded(bool `$padded`)
/* 继承的方法 */
public UI\Control::destroy()
public UI\Control::disable()
public UI\Control::enable()
public UI\Control::getParent(): UI\Control
public UI\Control::getTopLevel(): int
public UI\Control::hide()
public UI\Control::isEnabled(): bool
public UI\Control::isVisible(): bool
public UI\Control::setParent(UI\Control `$parent`)
public UI\Control::show()
}

## 属性

controls

  Contains controls, should not be manipulated directly

## 预定义常量

`UI\Controls\Box::Vertical`

`UI\Controls\Box::Horizontal`

## 目录

- 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