- « UI\Control::show
- UI\Menu::append »

- PHP Manual
- UI
- Menu

# Menu

(UI 0.9.9)

## 简介

Menus must be constructed before the first Window, and can be shown on any Window

## 类摘要

class UI\Menu {
/* Constructor */
public function __construct(string `$name`)
/* 方法 */
public function append(string `$name`, string `$type` = UI\MenuItem::class): UI\MenuItem
public function appendAbout(string `$type` = UI\MenuItem::class): UI\MenuItem
public function appendCheck(string `$name`, string `$type` = UI\MenuItem::class): UI\MenuItem
public function appendPreferences(string `$type` = UI\MenuItem::class): UI\MenuItem
public function appendQuit(string `$type` = UI\MenuItem::class): UI\MenuItem
public function appendSeparator()
}

## 目录

- UI\Menu::append — Append Menu Item
- UI\Menu::appendAbout — Append About Menu Item
- UI\Menu::appendCheck — Append Checkable Menu Item
- UI\Menu::appendPreferences — Append Preferences Menu Item
- UI\Menu::appendQuit — Append Quit Menu Item
- UI\Menu::appendSeparator — Append Menu Item Separator
- UI\Menu::__construct — Construct a new Menu

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