PHP Manual
Function Reference
GUI Extensions
UI
Introduction
Installing/Configuring
UI\Point
UI\Size
UI\Window
UI\Control
UI\Menu
UI\MenuItem
UI\Area
UI\Executor
UI\Controls\Tab
UI\Controls\Check
UI\Controls\Button
UI\Controls\ColorButton
UI\Controls\Label
UI\Controls\Entry
UI\Controls\MultilineEntry
UI\Controls\Spin
UI\Controls\Slider
UI\Controls\Progress
UI\Controls\Separator
UI\Controls\Combo
UI\Controls\EditableCombo
UI\Controls\Radio
UI\Controls\Picker
UI\Controls\Form
UI\Controls\Grid
UI\Controls\Group
UI\Controls\Box
UI\Draw\Pen
UI\Draw\Path
UI\Draw\Matrix
UI\Draw\Color
UI\Draw\Stroke
UI\Draw\Brush
UI\Draw\Brush\Gradient
UI\Draw\Brush\LinearGradient
UI\Draw\Brush\RadialGradient
UI\Draw\Text\Layout
UI\Draw\Text\Font
UI\Draw\Text\Font\Descriptor
UI Functions
UI\Draw\Text\Font\Weight
UI\Draw\Text\Font\Italic
UI\Draw\Text\Font\Stretch
UI\Draw\Line\Cap
UI\Draw\Line\Join
UI\Key
UI\Exception\InvalidArgumentException
UI\Exception\RuntimeException
UI\Control::show
UI\Menu::append
UI
PHP Manual
Menu
Introduction
Menus must be constructed before the first Window, and can be shown on any Window
Class synopsis
UI\Menu
class
UI\Menu
{
/* Constructor */
public
__construct
(
string
$name
)
/* Methods */
public
UI\MenuItem
append
(
string
$name
,
string
$type
= UI\MenuItem::class
)
public
UI\MenuItem
appendAbout
(
string
$type
= UI\MenuItem::class
)
public
UI\MenuItem
appendCheck
(
string
$name
,
string
$type
= UI\MenuItem::class
)
public
UI\MenuItem
appendPreferences
(
string
$type
= UI\MenuItem::class
)
public
UI\MenuItem
appendQuit
(
string
$type
= UI\MenuItem::class
)
public
appendSeparator
()
}
Table of Contents
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