# Window

(UI 0.9.9)

## 简介

Represents a UI Window

## 类摘要

class UI\Window extends UI\Control {
/* 属性 */
protected $controls;
/* Constructor */
public function __construct(string `$title`, Size `$size`, bool `$menu` = `false`)
/* 方法 */
public function add(UI\Control `$control`)
public function error(string `$title`, string `$msg`)
public function getSize(): UI\Size
public function getTitle(): string
public function hasBorders(): bool
public function hasMargin(): bool
public function isFullScreen(): bool
public function msg(string `$title`, string `$msg`)
protected function onClosing(): int
public function open(): string
public function save(): string
public function setBorders(bool `$borders`)
public function setFullScreen(bool `$full`)
public function setMargin(bool `$margin`)
public function setSize(UI\Size `$size`)
public function setTitle(string `$title`)
/* 继承的方法 */
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()
}

## 属性

controls

  Contains controls, should not be manipulated directly

## 目录

- UI\Window::add — Add a Control
- UI\Window::__construct — Construct a new Window
- UI\Window::error — Show Error Box
- UI\Window::getSize — Get Window Size
- UI\Window::getTitle — Get Title
- UI\Window::hasBorders — Border Detection
- UI\Window::hasMargin — Margin Detection
- UI\Window::isFullScreen — Full Screen Detection
- UI\Window::msg — Show Message Box
- UI\Window::onClosing — Closing Callback
- UI\Window::open — Open Dialog
- UI\Window::save — Save Dialog
- UI\Window::setBorders — Border Use
- UI\Window::setFullScreen — Full Screen Use
- UI\Window::setMargin — Margin Use
- UI\Window::setSize — Set Size
- UI\Window::setTitle — Window Title

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