Book/ui-Phpdoc专题

UI

目录

简介

Points are used throughout UI to represent co-ordinates on a screen, control, or area.

类摘要

UI\Point

final class UI\Point {

/* 属性 */

public $x ;

public $y ;

/* Constructor */

public <span class="methodname">__construct ( <span class="methodparam">float $x , <span class="methodparam">float $y )

/* 方法 */

public <span class="modifier">static UI\Point <span class="methodname">at ( <span class="type">float $point )

public <span class="modifier">static UI\Point <span class="methodname">at ( <span class="type">UI\Size $size )

public float getX ( <span class="methodparam">void )

public float getY ( <span class="methodparam">void )

public <span class="methodname">setX ( <span class="type">float $point )

public <span class="methodname">setY ( <span class="type">float $point )

}

属性

x
Holds the X co-ordinate, can be read/written directly

y
Holds the Y co-ordinate, can be read/written directly

UI\Point::at

Size Coercion

说明

public <span class="modifier">static UI\Point <span class="methodname">UI\Point::at ( <span class="methodparam">float $point )

public <span class="modifier">static UI\Point <span class="methodname">UI\Point::at ( <span class="methodparam">UI\Size $size )

Shall return a UI\Point object where x and y are equal to those supplied, either in float or UI\Size form

参数

point
The value for x and y

size
The Size to convert

返回值

The resulting Point

UI\Point::__construct

Construct a new Point

说明

public <span class="methodname">UI\Point::__construct ( <span class="methodparam">float $x , <span class="methodparam">float $y )

Construct a new Point using new co-ordinates

参数

x
The new X co-ordinate

y
The new Y co-ordinate

UI\Point::getX

Retrieves X

说明

public float UI\Point::getX ( <span class="methodparam">void )

Retrieves the X co-ordinate

参数

此函数没有参数。

返回值

The current X co-ordinate

UI\Point::getY

Retrieves Y

说明

public float UI\Point::getY ( <span class="methodparam">void )

Retrieves the Y co-ordinate

参数

此函数没有参数。

返回值

The current Y co-ordinate

UI\Point::setX

Set X

说明

public <span class="methodname">UI\Point::setX ( <span class="methodparam">float $point )

Set the X co-ordinate

参数

point
The new X co-ordinate

返回值

UI\Point::setY

Set Y

说明

public <span class="methodname">UI\Point::setY ( <span class="methodparam">float $point )

Set the Y co-ordinate

参数

point
The new Y co-ordinate

返回值

简介

Sizes are used throughout UI to represent the size of a screen, control, or area.

类摘要

UI\Size

final class UI\Size {

/* 属性 */

public $width ;

public $height ;

/* Constructor */

public <span class="methodname">__construct ( <span class="methodparam">float $width , float $height )

/* 方法 */

public float getHeight ( <span class="methodparam">void )

public float getWidth ( <span class="methodparam">void )

public <span class="modifier">static UI\Size <span class="methodname">of ( <span class="type">float $size )

public <span class="modifier">static UI\Size <span class="methodname">of ( <span class="type">UI\Point $point )

public <span class="methodname">setHeight ( <span class="type">float $size )

public <span class="methodname">setWidth ( <span class="type">float $size )

}

属性

width
Holds the width, can be read/written directly

height
Holds the height, can be read/written directly

UI\Size::__construct

Construct a new Size

说明

public <span class="methodname">UI\Size::__construct ( <span class="methodparam">float $width , float $height )

Construct a new Size using new width and height

参数

width
The new width

height
The new height

UI\Size::getHeight

Retrieves Height

说明

public float UI\Size::getHeight ( <span class="methodparam">void )

Retrieves the Height

参数

此函数没有参数。

返回值

The current Height

UI\Size::getWidth

Retrives Width

说明

public float UI\Size::getWidth ( <span class="methodparam">void )

Retrieves the Width

参数

此函数没有参数。

返回值

The current Width

UI\Size::of

Point Coercion

说明

public <span class="modifier">static UI\Size <span class="methodname">UI\Size::of ( <span class="type">float $size )

public <span class="modifier">static UI\Size <span class="methodname">UI\Size::of ( <span class="type">UI\Point $point )

Shall return a UI\Size object where width and height are equal to those supplied, either in float or UI\Point form

参数

size
The value for width and height

point
The Point to convert

返回值

The resulting Size

UI\Size::setHeight

Set Height

说明

public <span class="methodname">UI\Size::setHeight ( <span class="methodparam">float $size )

Set new Height

参数

size
The new Height

返回值

UI\Size::setWidth

Set Width

说明

public <span class="methodname">UI\Size::setWidth ( <span class="methodparam">float $size )

Set new Width

参数

size
The new Width

返回值

简介

Represents a UI Window

类摘要

UI\Window

class UI\Window <span class="ooclass"> extends UI\Control {

/* 属性 */

protected $controls ;

/* Constructor */

public <span class="methodname">__construct ( <span class="methodparam">string $title , Size $size [, bool $menu = false ] )

/* 方法 */

public add ( UI\Control $control )

public <span class="methodname">error ( <span class="type">string $title , <span class="methodparam">string $msg )

public UI\Size getSize ( <span class="methodparam">void )

public string getTitle ( <span class="methodparam">void )

public bool hasBorders ( <span class="methodparam">void )

public bool hasMargin ( <span class="methodparam">void )

public bool isFullScreen ( <span class="methodparam">void )

public msg ( string $title , <span class="type">string $msg )

protected int onClosing ( <span class="methodparam">void )

public string open ( <span class="methodparam">void )

public string save ( <span class="methodparam">void )

public <span class="methodname">setBorders ( <span class="type">bool $borders )

public <span class="methodname">setFullScreen ( <span class="methodparam">bool $full )

public <span class="methodname">setMargin ( <span class="type">bool $margin )

public <span class="methodname">setSize ( <span class="type">UI\Size $size )

public <span class="methodname">setTitle ( <span class="type">string $title )

/* 继承的方法 */

public <span class="methodname">UI\Control::destroy ( <span class="methodparam">void )

public <span class="methodname">UI\Control::disable ( <span class="methodparam">void )

public <span class="methodname">UI\Control::enable ( <span class="methodparam">void )

public <span class="type">UI\Control <span class="methodname">UI\Control::getParent ( <span class="methodparam">void )

public int <span class="methodname">UI\Control::getTopLevel ( <span class="methodparam">void )

public <span class="methodname">UI\Control::hide ( <span class="methodparam">void )

public bool UI\Control::isEnabled ( <span class="methodparam">void )

public bool UI\Control::isVisible ( <span class="methodparam">void )

public <span class="methodname">UI\Control::setParent ( <span class="methodparam">UI\Control $parent )

public <span class="methodname">UI\Control::show ( <span class="methodparam">void )

}

属性

controls
Contains controls, should not be manipulated directly

UI\Window::add

Add a Control

说明

public <span class="methodname">UI\Window::add ( <span class="methodparam">UI\Control $control )

Shall add a Control to this Window

参数

control
The Control to add

返回值

UI\Window::__construct

Construct a new Window

说明

public <span class="methodname">UI\Window::__construct ( <span class="methodparam">string $title , Size $size [, bool $menu = false ] )

Shall construct a new Window

参数

title
The title of the Window

size
The size of the Window

menu
Menu switch

UI\Window::error

Show Error Box

说明

public <span class="methodname">UI\Window::error ( <span class="methodparam">string $title , string $msg )

Shall show an error box

参数

title
The title of the error box

msg
The message for the error box

UI\Window::getSize

Get Window Size

说明

public UI\Size UI\Window::getSize ( <span class="methodparam">void )

Shall return the size of this Window

参数

此函数没有参数。

返回值

UI\Window::getTitle

Get Title

说明

public string UI\Window::getTitle ( <span class="methodparam">void )

Shall retrieve the title of this Window

参数

此函数没有参数。

返回值

UI\Window::hasBorders

Border Detection

说明

public bool UI\Window::hasBorders ( <span class="methodparam">void )

Shall detect if borders are used on this Window

参数

此函数没有参数。

返回值

UI\Window::hasMargin

Margin Detection

说明

public bool UI\Window::hasMargin ( <span class="methodparam">void )

Shall detect if margins are used on this Window

参数

此函数没有参数。

返回值

UI\Window::isFullScreen

Full Screen Detection

说明

public bool UI\Window::isFullScreen ( <span class="methodparam">void )

Shall detect if this Window us using the whole screen

参数

此函数没有参数。

返回值

UI\Window::msg

Show Message Box

说明

public <span class="methodname">UI\Window::msg ( <span class="methodparam">string $title , string $msg )

Shall show a message box

参数

title
The title of the message box

msg
The message

UI\Window::onClosing

Closing Callback

说明

protected int UI\Window::onClosing ( <span class="methodparam">void )

Should gracefully destroy this Window

参数

此函数没有参数。

返回值

UI\Window::open

Open Dialog

说明

public string UI\Window::open ( <span class="methodparam">void )

Shall show an open file dialog

参数

此函数没有参数。

返回值

Returns the name of the file selected for opening

UI\Window::save

Save Dialog

说明

public string UI\Window::save ( <span class="methodparam">void )

Shall show a save dialog

参数

此函数没有参数。

返回值

Returns the file name selecting for saving

UI\Window::setBorders

Border Use

说明

public <span class="methodname">UI\Window::setBorders ( <span class="methodparam">bool $borders )

Shall enable or disable the use of borders on this Window

参数

borders

UI\Window::setFullScreen

Full Screen Use

说明

public <span class="methodname">UI\Window::setFullScreen ( <span class="methodparam">bool $full )

Shall enable or disable the use of the full screen for this Window

Warning

本函数还未编写文档,仅有参数列表。

参数

full

UI\Window::setMargin

Margin Use

说明

public <span class="methodname">UI\Window::setMargin ( <span class="methodparam">bool $margin )

Shall enable or disable the use of margins for this Window

参数

margin

UI\Window::setSize

Set Size

说明

public <span class="methodname">UI\Window::setSize ( <span class="methodparam">UI\Size $size )

Shall set the size of this Window

参数

size

返回值

UI\Window::setTitle

Window Title

说明

public <span class="methodname">UI\Window::setTitle ( <span class="methodparam">string $title )

Shall set the title for this Window

参数

title
The new title

简介

This is the closed base class for all UI Controls.

类摘要

UI\Control

final class UI\Control {

/* 方法 */

public <span class="methodname">destroy ( <span class="methodparam">void )

public <span class="methodname">disable ( <span class="methodparam">void )

public <span class="methodname">enable ( void )

public <span class="type">UI\Control <span class="methodname">getParent ( <span class="methodparam">void )

public int <span class="methodname">getTopLevel ( <span class="methodparam">void )

public <span class="methodname">hide ( void )

public bool isEnabled ( <span class="methodparam">void )

public bool isVisible ( <span class="methodparam">void )

public <span class="methodname">setParent ( <span class="type">UI\Control $parent )

public <span class="methodname">show ( void )

}

UI\Control::destroy

Destroy Control

说明

public <span class="methodname">UI\Control::destroy ( <span class="methodparam">void )

Shall destroy this Control

参数

此函数没有参数。

返回值

UI\Control::disable

Disable Control

说明

public <span class="methodname">UI\Control::disable ( <span class="methodparam">void )

Shall disable this Control

参数

此函数没有参数。

返回值

UI\Control::enable

Enable Control

说明

public <span class="methodname">UI\Control::enable ( <span class="methodparam">void )

Shall enable this Control

参数

此函数没有参数。

返回值

UI\Control::getParent

Get Parent Control

说明

public <span class="type">UI\Control <span class="methodname">UI\Control::getParent ( <span class="methodparam">void )

Shall return the parent Control

参数

此函数没有参数。

返回值

UI\Control::getTopLevel

Get Top Level

说明

public int <span class="methodname">UI\Control::getTopLevel ( <span class="methodparam">void )

Warning

本函数还未编写文档,仅有参数列表。

参数

此函数没有参数。

返回值

UI\Control::hide

Hide Control

说明

public <span class="methodname">UI\Control::hide ( <span class="methodparam">void )

Shall hide this Control

参数

此函数没有参数。

返回值

UI\Control::isEnabled

Determine if Control is enabled

说明

public bool UI\Control::isEnabled ( <span class="methodparam">void )

Shall detect if this Control is enabled

参数

此函数没有参数。

返回值

UI\Control::isVisible

Determine if Control is visible

说明

public bool UI\Control::isVisible ( <span class="methodparam">void )

Shall detect if this Control is visible

参数

此函数没有参数。

返回值

UI\Control::setParent

Set Parent Control

说明

public <span class="methodname">UI\Control::setParent ( <span class="methodparam">UI\Control $parent )

Shall set the parent Control of this Control

参数

parent
The parent Control

返回值

UI\Control::show

Control Show

说明

public <span class="methodname">UI\Control::show ( <span class="methodparam">void )

Shall show this Control

参数

此函数没有参数。

返回值

简介

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

类摘要

UI\Menu

class UI\Menu {

/* Constructor */

public <span class="methodname">__construct ( <span class="methodparam">string $name )

/* 方法 */

public <span class="type">UI\MenuItem append ( string $name [, <span class="type">string $type = UI\MenuItem::class ] )

public <span class="type">UI\MenuItem <span class="methodname">appendAbout ([ <span class="methodparam">string $type<span class="initializer"> = UI\MenuItem::class ] )

public <span class="type">UI\MenuItem <span class="methodname">appendCheck ( <span class="type">string $name [, <span class="methodparam">string $type<span class="initializer"> = UI\MenuItem::class ] )

public <span class="type">UI\MenuItem <span class="methodname">appendPreferences ([ <span class="methodparam">string $type<span class="initializer"> = UI\MenuItem::class ] )

public <span class="type">UI\MenuItem <span class="methodname">appendQuit ([ <span class="type">string $type = UI\MenuItem::class ] )

public <span class="methodname">appendSeparator ( <span class="methodparam">void )

}

UI\Menu::append

Append Menu Item

说明

public <span class="type">UI\MenuItem <span class="methodname">UI\Menu::append ( <span class="methodparam">string $name [, string $type<span class="initializer"> = UI\MenuItem::class ] )

Shall append a new Menu Item

参数

name
The name (text) for the new item

type
The type for the new item

返回值

A constructed object of the given type

UI\Menu::appendAbout

Append About Menu Item

说明

public <span class="type">UI\MenuItem <span class="methodname">UI\Menu::appendAbout ([ <span class="methodparam">string $type<span class="initializer"> = UI\MenuItem::class ] )

Shall append an About menu item

参数

type
The type for the new item

返回值

A constructed About menu item of the given type

UI\Menu::appendCheck

Append Checkable Menu Item

说明

public <span class="type">UI\MenuItem <span class="methodname">UI\Menu::appendCheck ( <span class="methodparam">string $name [, string $type<span class="initializer"> = UI\MenuItem::class ] )

Shall append a checkable menu item

参数

name
The name (text) for the new item

type
The type for the new item

返回值

A constructed checkable menu item of the given type

UI\Menu::appendPreferences

Append Preferences Menu Item

说明

public <span class="type">UI\MenuItem <span class="methodname">UI\Menu::appendPreferences ([ <span class="methodparam">string $type<span class="initializer"> = UI\MenuItem::class ] )

Shall append a Preferences menu item

参数

type
The type for the new item

返回值

A constructed Preferences menu item of the given type

UI\Menu::appendQuit

Append Quit Menu Item

说明

public <span class="type">UI\MenuItem <span class="methodname">UI\Menu::appendQuit ([ <span class="methodparam">string $type<span class="initializer"> = UI\MenuItem::class ] )

Shall append a Quit menu item

参数

type
The type for the new item

返回值

A constructed Quit menu item of the given type

UI\Menu::appendSeparator

Append Menu Item Separator

说明

public <span class="methodname">UI\Menu::appendSeparator ( <span class="methodparam">void )

Shall append a separator

参数

此函数没有参数。

UI\Menu::__construct

Construct a new Menu

说明

public <span class="methodname">UI\Menu::__construct ( <span class="methodparam">string $name )

Shall construct a new Menu

参数

name
The name (text) for the menu

简介

Menu Items should only be created by the Menu

类摘要

UI\MenuItem

class UI\MenuItem {

/* 方法 */

public <span class="methodname">disable ( <span class="methodparam">void )

public <span class="methodname">enable ( void )

public bool isChecked ( <span class="methodparam">void )

protected <span class="methodname">onClick ( <span class="methodparam">void )

public <span class="methodname">setChecked ( <span class="type">bool $checked )

}

UI\MenuItem::disable

Disable Menu Item

说明

public <span class="methodname">UI\MenuItem::disable ( <span class="methodparam">void )

Shall disable this Menu Item

参数

此函数没有参数。

UI\MenuItem::enable

Enable Menu Item

说明

public <span class="methodname">UI\MenuItem::enable ( <span class="methodparam">void )

Shall enable this Menu Item

参数

此函数没有参数。

UI\MenuItem::isChecked

Detect Checked

说明

public bool UI\MenuItem::isChecked ( <span class="methodparam">void )

Shall detect if this Menu Item is checked

参数

此函数没有参数。

UI\MenuItem::onClick

On Click Callback

说明

protected <span class="methodname">UI\MenuItem::onClick ( <span class="methodparam">void )

Shall be executed when this Menu Item is clicked

参数

此函数没有参数。

UI\MenuItem::setChecked

Set Checked

说明

public <span class="methodname">UI\MenuItem::setChecked ( <span class="methodparam">bool $checked )

Shall set the checked status of this Menu Item

参数

checked
The new status

简介

An Area represents a canvas which can be used to draw, and respond to mouse and key events.

类摘要

UI\Area

class UI\Area extends UI\Control {

/* Constants */

const int UI\Area::Ctrl ;

const int UI\Area::Alt ;

const int UI\Area::Shift ;

const int UI\Area::Super ;

const int UI\Area::Down ;

const int UI\Area::Up ;

/* 方法 */

protected <span class="methodname">onDraw ( <span class="type">UI\Draw\Pen $pen , <span class="methodparam">UI\Size $areaSize , <span class="type">UI\Point $clipPoint , <span class="methodparam">UI\Size $clipSize )

protected <span class="methodname">onKey ( <span class="type">string $key , <span class="methodparam">int $ext , <span class="methodparam">int $flags )

protected <span class="methodname">onMouse ( <span class="type">UI\Point $areaPoint , <span class="methodparam">UI\Size $areaSize , <span class="type">int $flags )

public <span class="methodname">redraw ( void )

public <span class="methodname">scrollTo ( <span class="type">UI\Point $point , <span class="methodparam">UI\Size $size )

public <span class="methodname">setSize ( <span class="type">UI\Size $size )

/* 继承的方法 */

public <span class="methodname">UI\Control::destroy ( <span class="methodparam">void )

public <span class="methodname">UI\Control::disable ( <span class="methodparam">void )

public <span class="methodname">UI\Control::enable ( <span class="methodparam">void )

public <span class="type">UI\Control <span class="methodname">UI\Control::getParent ( <span class="methodparam">void )

public int <span class="methodname">UI\Control::getTopLevel ( <span class="methodparam">void )

public <span class="methodname">UI\Control::hide ( <span class="methodparam">void )

public bool UI\Control::isEnabled ( <span class="methodparam">void )

public bool UI\Control::isVisible ( <span class="methodparam">void )

public <span class="methodname">UI\Control::setParent ( <span class="methodparam">UI\Control $parent )

public <span class="methodname">UI\Control::show ( <span class="methodparam">void )

}

预定义常量

UI\Area::Ctrl
Shall be set in the modifiers passed to key and mouse events when the CTRL key is active

UI\Area::Alt
Shall be set in the modifiers passed to key and mouse events when the ALT key is active

UI\Area::Shift
Shall be set in the modifiers passed to key and mouse events when the SHIFT key is active

UI\Area::Super

UI\Area::Down
Shall be set in the modifiers passed to key and mouse events

UI\Area::Up
Shall be set in the modifiers passed to key and mouse events

UI\Area::onDraw

Draw Callback

说明

protected <span class="methodname">UI\Area::onDraw ( <span class="methodparam">UI\Draw\Pen $pen , <span class="type">UI\Size $areaSize , <span class="methodparam">UI\Point $clipPoint , <span class="type">UI\Size $clipSize )

Shall be invoked when this Area requires redrawing

参数

pen
A Pen suitable for drawing in this Area

areaSize
The size of the Area

clipPoint
The clip point of the Area

clipSize
The clip size of the Area

UI\Area::onKey

Key Callback

说明

protected <span class="methodname">UI\Area::onKey ( <span class="methodparam">string $key , int $ext , int $flags )

Shall be executed on key events

参数

key
The key pressed

ext
The extended key pressed

flags
Event modifiers

返回值

UI\Area::onMouse

Mouse Callback

说明

protected <span class="methodname">UI\Area::onMouse ( <span class="methodparam">UI\Point $areaPoint , <span class="type">UI\Size $areaSize , <span class="methodparam">int $flags )

Shall be executed on mouse events

参数

areaPoint
The co-ordinates of the event

areaSize
The size of the area of the event

flags
Event modifiers

UI\Area::redraw

Redraw Area

说明

public <span class="methodname">UI\Area::redraw ( <span class="methodparam">void )

Requests that this Area is redrawn

参数

此函数没有参数。

返回值

UI\Area::scrollTo

Area Scroll

说明

public <span class="methodname">UI\Area::scrollTo ( <span class="methodparam">UI\Point $point , UI\Size $size )

Scroll this Area

参数

point
The point to scroll to

size
The size of the scroll pane

UI\Area::setSize

Set Size

说明

public <span class="methodname">UI\Area::setSize ( <span class="methodparam">UI\Size $size )

Sets the size of this Area

参数

size
The new size

简介

This facility schedules repetitive execution of a callback, useful for animations and other such activities.

类摘要

UI\Executor

abstract class UI\Executor {

/* Constructor */

public <span class="methodname">__construct ( <span class="methodparam">void )

public <span class="methodname">__construct ( <span class="methodparam">int $microseconds )

public <span class="methodname">__construct ( <span class="methodparam">int $seconds , int $microseconds )

/* 方法 */

public void kill ( <span class="methodparam">void )

abstract <span class="modifier">protected void <span class="methodname">onExecute ( <span class="methodparam">void )

public bool setInterval ( <span class="methodparam">int $microseconds )

public bool setInterval ( <span class="methodparam">int $seconds , int $microseconds )

}

UI\Executor::__construct

Construct a new Executor

说明

public <span class="methodname">UI\Executor::__construct ( <span class="methodparam">void )

public <span class="methodname">UI\Executor::__construct ( <span class="methodparam">int $microseconds )

public <span class="methodname">UI\Executor::__construct ( <span class="methodparam">int $seconds , int $microseconds )

Shall construct an executor with the given interval, will not start executing until main loop is entered

参数

seconds
Seconds between executions

microseconds
Microseconds between executions

UI\Executor::kill

Stop Executor

说明

public void UI\Executor::kill ( <span class="methodparam">void )

Shall stop an executor, the executor cannot be restarted

参数

此函数没有参数。

返回值

UI\Executor::onExecute

Execution Callback

说明

abstract <span class="modifier">protected void <span class="methodname">UI\Executor::onExecute ( <span class="methodparam">void )

Shall be repetitively queued for execution in the main thread

参数

此函数没有参数。

返回值

UI\Executor::setInterval

Interval Manipulation

说明

public bool UI\Executor::setInterval ( <span class="methodparam">int $microseconds )

public bool UI\Executor::setInterval ( <span class="methodparam">int $seconds , int $microseconds )

Shall set the new interval. An interval of 0 will pause the executor until a new interval has been set

参数

seconds

microseconds

返回值

Indication of success

简介

A Tab can contain many pages of Controls, each with a title, each selectable by the user.

类摘要

UI\Controls\Tab

class UI\Controls\Tab <span class="ooclass"> extends UI\Control {

/* 属性 */

protected $controls ;

/* 方法 */

public int <span class="methodname">append ( <span class="type">string $name , <span class="methodparam">UI\Control $control )

public bool delete ( <span class="type">int $index )

public bool hasMargin ( <span class="methodparam">int $page )

public <span class="methodname">insertAt ( <span class="type">string $name , <span class="methodparam">int $page , <span class="methodparam">UI\Control $control )

public int <span class="methodname">pages ( void )

public <span class="methodname">setMargin ( <span class="type">int $page , <span class="type">bool $margin )

/* 继承的方法 */

public <span class="methodname">UI\Control::destroy ( <span class="methodparam">void )

public <span class="methodname">UI\Control::disable ( <span class="methodparam">void )

public <span class="methodname">UI\Control::enable ( <span class="methodparam">void )

public <span class="type">UI\Control <span class="methodname">UI\Control::getParent ( <span class="methodparam">void )

public int <span class="methodname">UI\Control::getTopLevel ( <span class="methodparam">void )

public <span class="methodname">UI\Control::hide ( <span class="methodparam">void )

public bool UI\Control::isEnabled ( <span class="methodparam">void )

public bool UI\Control::isVisible ( <span class="methodparam">void )

public <span class="methodname">UI\Control::setParent ( <span class="methodparam">UI\Control $parent )

public <span class="methodname">UI\Control::show ( <span class="methodparam">void )

}

属性

controls
Contains controls, should not be manipulated directly

UI\Controls\Tab::append

Append Page

说明

public int <span class="methodname">UI\Controls\Tab::append ( <span class="methodparam">string $name , UI\Control $control )

Append a new page to this Tab

参数

name
The name for the new page

control
The control for the new page

返回值

Shall return the index of the appended control, may be 0

UI\Controls\Tab::delete

Delete Page

说明

public bool UI\Controls\Tab::delete ( <span class="methodparam">int $index )

Shall remove the selected page from this Tab

参数

index
The index of the page to remove

返回值

Indication of success

UI\Controls\Tab::hasMargin

Margin Detection

说明

public bool UI\Controls\Tab::hasMargin ( <span class="methodparam">int $page )

Shall detect if the given page has a margin.

参数

page
The index of the page

返回值

UI\Controls\Tab::insertAt

Insert Page

说明

public <span class="methodname">UI\Controls\Tab::insertAt ( <span class="methodparam">string $name , int $page , UI\Control $control )

Shall insert a new page into this Tab

参数

name
The name for the new page

page
The index to perform the insertion before

control
The control for the new page

UI\Controls\Tab::pages

Page Count

说明

public int <span class="methodname">UI\Controls\Tab::pages ( <span class="methodparam">void )

Shall return the number of pages in this Tab

参数

此函数没有参数。

返回值

The number of pages in this Tab

UI\Controls\Tab::setMargin

Set Margin

说明

public <span class="methodname">UI\Controls\Tab::setMargin ( <span class="methodparam">int $page , <span class="methodparam">bool $margin )

Shall enable or disable margins on the selected page

参数

page
The page to select

margin
Margin switch

简介

A Check is a labelled checkable box

类摘要

UI\Controls\Check

class UI\Controls\Check <span class="ooclass"> extends UI\Control {

/* Constructor */

public <span class="methodname">__construct ( <span class="methodparam">string $text )

/* 方法 */

public string getText ( <span class="methodparam">void )

public bool isChecked ( <span class="methodparam">void )

protected <span class="methodname">onToggle ( <span class="methodparam">void )

public <span class="methodname">setChecked ( <span class="type">bool $checked )

public <span class="methodname">setText ( <span class="type">string $text )

/* 继承的方法 */

public <span class="methodname">UI\Control::destroy ( <span class="methodparam">void )

public <span class="methodname">UI\Control::disable ( <span class="methodparam">void )

public <span class="methodname">UI\Control::enable ( <span class="methodparam">void )

public <span class="type">UI\Control <span class="methodname">UI\Control::getParent ( <span class="methodparam">void )

public int <span class="methodname">UI\Control::getTopLevel ( <span class="methodparam">void )

public <span class="methodname">UI\Control::hide ( <span class="methodparam">void )

public bool UI\Control::isEnabled ( <span class="methodparam">void )

public bool UI\Control::isVisible ( <span class="methodparam">void )

public <span class="methodname">UI\Control::setParent ( <span class="methodparam">UI\Control $parent )

public <span class="methodname">UI\Control::show ( <span class="methodparam">void )

}

UI\Controls\Check::__construct

Construct a new Check

说明

public <span class="methodname">UI\Controls\Check::__construct ( <span class="methodparam">string $text )

Shall construct a new Check

参数

text
The text (label) for the Check box

UI\Controls\Check::getText

Get Text

说明

public string UI\Controls\Check::getText ( <span class="methodparam">void )

Shall return the text (label) for this Check

参数

此函数没有参数。

返回值

The current text (label)

UI\Controls\Check::isChecked

Checked Detection

说明

public bool UI\Controls\Check::isChecked ( <span class="methodparam">void )

Shall detect the status of this Check

参数

此函数没有参数。

UI\Controls\Check::onToggle

Toggle Callback

说明

protected <span class="methodname">UI\Controls\Check::onToggle ( <span class="methodparam">void )

Shall be executed when the status of this Check is changed

参数

此函数没有参数。

UI\Controls\Check::setChecked

Set Checked

说明

public <span class="methodname">UI\Controls\Check::setChecked ( <span class="methodparam">bool $checked )

Shall change the status of this Check

参数

checked
The new status

UI\Controls\Check::setText

Set Text

说明

public <span class="methodname">UI\Controls\Check::setText ( <span class="methodparam">string $text )

Shall set the text (label) for this Check

参数

text
The new text (label)

简介

Represents a labelled clickable button

类摘要

UI\Controls\Button

class UI\Controls\Button <span class="ooclass"> extends UI\Control {

/* Constructor */

public <span class="methodname">__construct ( <span class="methodparam">string $text )

/* 方法 */

public string getText ( <span class="methodparam">void )

protected <span class="methodname">onClick ( <span class="methodparam">void )

public <span class="methodname">setText ( <span class="type">string $text )

/* 继承的方法 */

public <span class="methodname">UI\Control::destroy ( <span class="methodparam">void )

public <span class="methodname">UI\Control::disable ( <span class="methodparam">void )

public <span class="methodname">UI\Control::enable ( <span class="methodparam">void )

public <span class="type">UI\Control <span class="methodname">UI\Control::getParent ( <span class="methodparam">void )

public int <span class="methodname">UI\Control::getTopLevel ( <span class="methodparam">void )

public <span class="methodname">UI\Control::hide ( <span class="methodparam">void )

public bool UI\Control::isEnabled ( <span class="methodparam">void )

public bool UI\Control::isVisible ( <span class="methodparam">void )

public <span class="methodname">UI\Control::setParent ( <span class="methodparam">UI\Control $parent )

public <span class="methodname">UI\Control::show ( <span class="methodparam">void )

}

UI\Controls\Button::__construct

Construct a new Button

说明

public <span class="methodname">UI\Controls\Button::__construct ( <span class="methodparam">string $text )

Shall construct a new Button

参数

text
The text (label) for this Button

UI\Controls\Button::getText

Get Text

说明

public string UI\Controls\Button::getText ( <span class="methodparam">void )

Shall retrieve the text (label) for this Button

参数

此函数没有参数。

返回值

The current text (label)

UI\Controls\Button::onClick

Click Handler

说明

protected <span class="methodname">UI\Controls\Button::onClick ( <span class="methodparam">void )

Shall be executed when this Button is clicked

参数

此函数没有参数。

UI\Controls\Button::setText

Set Text

说明

public <span class="methodname">UI\Controls\Button::setText ( <span class="methodparam">string $text )

Shall set the text (label) for this Button

参数

text
The new text (label)

简介

A Color Button is a button which displays a color picker when clicked

类摘要

UI\Controls\ColorButton

class UI\Controls\ColorButton <span class="ooclass"> extends UI\Control {

/* 方法 */

public UI\Color getColor ( <span class="methodparam">void )

protected <span class="methodname">onChange ( <span class="methodparam">void )

public <span class="methodname">setColor ( <span class="type">UI\Draw\Color $color )

public <span class="methodname">setColor ( <span class="type">int $color )

/* 继承的方法 */

public <span class="methodname">UI\Control::destroy ( <span class="methodparam">void )

public <span class="methodname">UI\Control::disable ( <span class="methodparam">void )

public <span class="methodname">UI\Control::enable ( <span class="methodparam">void )

public <span class="type">UI\Control <span class="methodname">UI\Control::getParent ( <span class="methodparam">void )

public int <span class="methodname">UI\Control::getTopLevel ( <span class="methodparam">void )

public <span class="methodname">UI\Control::hide ( <span class="methodparam">void )

public bool UI\Control::isEnabled ( <span class="methodparam">void )

public bool UI\Control::isVisible ( <span class="methodparam">void )

public <span class="methodname">UI\Control::setParent ( <span class="methodparam">UI\Control $parent )

public <span class="methodname">UI\Control::show ( <span class="methodparam">void )

}

UI\Controls\ColorButton::getColor

Get Color

说明

public UI\Color UI\Controls\ColorButton::getColor ( void )

Shall retrieve the currently selected Color

参数

此函数没有参数。

返回值

UI\Controls\ColorButton::onChange

Change Handler

说明

protected <span class="methodname">UI\Controls\ColorButton::onChange ( <span class="methodparam">void )

Shall be executed when the selected Color is changed

参数

此函数没有参数。

UI\Controls\ColorButton::setColor

Set Color

说明

public <span class="methodname">UI\Controls\ColorButton::setColor ( <span class="methodparam">UI\Draw\Color $color )

public <span class="methodname">UI\Controls\ColorButton::setColor ( <span class="methodparam">int $color )

Shall set the currently selected Color

参数

color
The new color

简介

A Label is a single line of text, meant to identify, for the user, some element of the interface.

类摘要

UI\Controls\Label

class UI\Controls\Label <span class="ooclass"> extends UI\Control {

/* Constructor */

public <span class="methodname">__construct ( <span class="methodparam">string $text )

/* 方法 */

public string getText ( <span class="methodparam">void )

public <span class="methodname">setText ( <span class="type">string $text )

/* 继承的方法 */

public <span class="methodname">UI\Control::destroy ( <span class="methodparam">void )

public <span class="methodname">UI\Control::disable ( <span class="methodparam">void )

public <span class="methodname">UI\Control::enable ( <span class="methodparam">void )

public <span class="type">UI\Control <span class="methodname">UI\Control::getParent ( <span class="methodparam">void )

public int <span class="methodname">UI\Control::getTopLevel ( <span class="methodparam">void )

public <span class="methodname">UI\Control::hide ( <span class="methodparam">void )

public bool UI\Control::isEnabled ( <span class="methodparam">void )

public bool UI\Control::isVisible ( <span class="methodparam">void )

public <span class="methodname">UI\Control::setParent ( <span class="methodparam">UI\Control $parent )

public <span class="methodname">UI\Control::show ( <span class="methodparam">void )

}

UI\Controls\Label::__construct

Construct a new Label

说明

public <span class="methodname">UI\Controls\Label::__construct ( <span class="methodparam">string $text )

Shall construct a new Label

参数

text
The text for this label

UI\Controls\Label::getText

Get Text

说明

public string UI\Controls\Label::getText ( <span class="methodparam">void )

Shall return the current text for this Label

Warning

本函数还未编写文档,仅有参数列表。

参数

此函数没有参数。

返回值

UI\Controls\Label::setText

Set Text

说明

public <span class="methodname">UI\Controls\Label::setText ( <span class="methodparam">string $text )

Shall set the text for this Label

参数

text
The new text

简介

An Entry is a text entry control, suitable for entering plain text, passwords, or search terms.

类摘要

UI\Controls\Entry

class UI\Controls\Entry <span class="ooclass"> extends UI\Control {

/* Constants */

const int UI\Controls\Entry::Normal ;

const int UI\Controls\Entry::Password ;

const int UI\Controls\Entry::Search ;

/* Constructor */

public <span class="methodname">__construct ([ <span class="methodparam">int $type<span class="initializer"> = UI\Controls\Entry::Normal ] )

/* 方法 */

public string getText ( <span class="methodparam">void )

public bool isReadOnly ( <span class="methodparam">void )

protected <span class="methodname">onChange ( <span class="methodparam">void )

public <span class="methodname">setReadOnly ( <span class="type">bool $readOnly )

public <span class="methodname">setText ( <span class="type">string $text )

/* 继承的方法 */

public <span class="methodname">UI\Control::destroy ( <span class="methodparam">void )

public <span class="methodname">UI\Control::disable ( <span class="methodparam">void )

public <span class="methodname">UI\Control::enable ( <span class="methodparam">void )

public <span class="type">UI\Control <span class="methodname">UI\Control::getParent ( <span class="methodparam">void )

public int <span class="methodname">UI\Control::getTopLevel ( <span class="methodparam">void )

public <span class="methodname">UI\Control::hide ( <span class="methodparam">void )

public bool UI\Control::isEnabled ( <span class="methodparam">void )

public bool UI\Control::isVisible ( <span class="methodparam">void )

public <span class="methodname">UI\Control::setParent ( <span class="methodparam">UI\Control $parent )

public <span class="methodname">UI\Control::show ( <span class="methodparam">void )

}

预定义常量

UI\Controls\Entry::Normal
A normal single line entry

UI\Controls\Entry::Password
A password entry

UI\Controls\Entry::Search
A search entry

UI\Controls\Entry::__construct

Construct a new Entry

说明

public <span class="methodname">UI\Controls\Entry::__construct ([ <span class="methodparam">int $type<span class="initializer"> = UI\Controls\Entry::Normal ] )

Construct a new entry of the given type

参数

type
Entry::Normal, Entry::Password, or Entry::Search

UI\Controls\Entry::getText

Get Text

说明

public string UI\Controls\Entry::getText ( <span class="methodparam">void )

Shall return the current text from this Entry

参数

此函数没有参数。

返回值

The current text

UI\Controls\Entry::isReadOnly

Detect Read Only

说明

public bool UI\Controls\Entry::isReadOnly ( <span class="methodparam">void )

Shall detect if this Entry is read only

参数

此函数没有参数。

返回值

UI\Controls\Entry::onChange

Change Handler

说明

protected <span class="methodname">UI\Controls\Entry::onChange ( <span class="methodparam">void )

Shall be executed when the text in this Entry changes

参数

此函数没有参数。

UI\Controls\Entry::setReadOnly

Set Read Only

说明

public <span class="methodname">UI\Controls\Entry::setReadOnly ( <span class="methodparam">bool $readOnly )

Shall enable or disable read only for this Entry

参数

readOnly

UI\Controls\Entry::setText

Set Text

说明

public <span class="methodname">UI\Controls\Entry::setText ( <span class="methodparam">string $text )

Shall set the text for this Entry

参数

text
The new text

简介

A Multiline Entry is a text entry control able to hold multiple lines of text, with or without wrapping.

类摘要

UI\Controls\MultilineEntry

class UI\Controls\MultilineEntry extends UI\Control {

/* Constants */

const int UI\Controls\MultilineEntry::Wrap ;

const int UI\Controls\MultilineEntry::NoWrap ;

/* Constructor */

public <span class="methodname">__construct ([ <span class="methodparam">int $type ] )

/* 方法 */

public <span class="methodname">append ( <span class="type">string $text )

public string getText ( <span class="methodparam">void )

public bool isReadOnly ( <span class="methodparam">void )

protected <span class="methodname">onChange ( <span class="methodparam">void )

public <span class="methodname">setReadOnly ( <span class="type">bool $readOnly )

public <span class="methodname">setText ( <span class="type">string $text )

/* 继承的方法 */

public <span class="methodname">UI\Control::destroy ( <span class="methodparam">void )

public <span class="methodname">UI\Control::disable ( <span class="methodparam">void )

public <span class="methodname">UI\Control::enable ( <span class="methodparam">void )

public <span class="type">UI\Control <span class="methodname">UI\Control::getParent ( <span class="methodparam">void )

public int <span class="methodname">UI\Control::getTopLevel ( <span class="methodparam">void )

public <span class="methodname">UI\Control::hide ( <span class="methodparam">void )

public bool UI\Control::isEnabled ( <span class="methodparam">void )

public bool UI\Control::isVisible ( <span class="methodparam">void )

public <span class="methodname">UI\Control::setParent ( <span class="methodparam">UI\Control $parent )

public <span class="methodname">UI\Control::show ( <span class="methodparam">void )

}

预定义常量

UI\Controls\MultilineEntry::Wrap
Allow lines to wrap

UI\Controls\MultilineEntry::NoWrap
Do not allow lines to wrap

UI\Controls\MultilineEntry::append

Append Text

说明

public <span class="methodname">UI\Controls\MultilineEntry::append ( <span class="methodparam">string $text )

Shall append the given text to the text in this Multiline Entry

参数

text
The text to append

UI\Controls\MultilineEntry::__construct

Construct a new Multiline Entry

说明

public <span class="methodname">UI\Controls\MultilineEntry::__construct ([ int $type ] )

Shall construct a new Multiline Entry of the given type

参数

type
MultilineEntry::Wrap or MultilineEntry::NoWrap

UI\Controls\MultilineEntry::getText

Get Text

说明

public string UI\Controls\MultilineEntry::getText ( void )

Shall return the text in this Multiline Entry

参数

此函数没有参数。

UI\Controls\MultilineEntry::isReadOnly

Read Only Detection

说明

public bool UI\Controls\MultilineEntry::isReadOnly ( void )

Shall detect if this Multiline Entry is read only

参数

此函数没有参数。

UI\Controls\MultilineEntry::onChange

Change Handler

说明

protected <span class="methodname">UI\Controls\MultilineEntry::onChange ( <span class="methodparam">void )

Shall be executed when the text in this Multiline Entry is changed

参数

此函数没有参数。

UI\Controls\MultilineEntry::setReadOnly

Set Read Only

说明

public <span class="methodname">UI\Controls\MultilineEntry::setReadOnly ( bool $readOnly )

Shall enable or disable read only on this Multiline Entry

参数

readOnly

UI\Controls\MultilineEntry::setText

Set Text

说明

public <span class="methodname">UI\Controls\MultilineEntry::setText ( <span class="methodparam">string $text )

Shall set the text in this Multiline Entry

参数

text
The new text

简介

A Spin box is a text box with an up-down control which changes the integer value in the box, within a defined range

类摘要

UI\Controls\Spin

class UI\Controls\Spin <span class="ooclass"> extends UI\Control {

/* Constructor */

public <span class="methodname">__construct ( <span class="methodparam">int $min , <span class="methodparam">int $max )

/* 方法 */

public int <span class="methodname">getValue ( <span class="methodparam">void )

protected <span class="methodname">onChange ( <span class="methodparam">void )

public <span class="methodname">setValue ( <span class="type">int $value )

/* 继承的方法 */

public <span class="methodname">UI\Control::destroy ( <span class="methodparam">void )

public <span class="methodname">UI\Control::disable ( <span class="methodparam">void )

public <span class="methodname">UI\Control::enable ( <span class="methodparam">void )

public <span class="type">UI\Control <span class="methodname">UI\Control::getParent ( <span class="methodparam">void )

public int <span class="methodname">UI\Control::getTopLevel ( <span class="methodparam">void )

public <span class="methodname">UI\Control::hide ( <span class="methodparam">void )

public bool UI\Control::isEnabled ( <span class="methodparam">void )

public bool UI\Control::isVisible ( <span class="methodparam">void )

public <span class="methodname">UI\Control::setParent ( <span class="methodparam">UI\Control $parent )

public <span class="methodname">UI\Control::show ( <span class="methodparam">void )

}

UI\Controls\Spin::__construct

Construct a new Spin

说明

public <span class="methodname">UI\Controls\Spin::__construct ( <span class="methodparam">int $min , <span class="methodparam">int $max )

Constructs a new Spin with the given range

参数

min
The minimum value allowed

max
The maximum value allowed

UI\Controls\Spin::getValue

Get Value

说明

public int <span class="methodname">UI\Controls\Spin::getValue ( <span class="methodparam">void )

Get the value in this Spin

参数

此函数没有参数。

UI\Controls\Spin::onChange

Change Handler

说明

protected <span class="methodname">UI\Controls\Spin::onChange ( <span class="methodparam">void )

Shall be executed when the value in this Spin changes

参数

此函数没有参数。

UI\Controls\Spin::setValue

Set Value

说明

public <span class="methodname">UI\Controls\Spin::setValue ( <span class="methodparam">int $value )

Set the value in this Spin

参数

value
The new value

简介

A Slider is a control which represents a range, and a current value in the range. The sliding element of the control (sometimes called the "thumb") reflects the value, and can be adjusted within the range.

类摘要

UI\Controls\Slider

class UI\Controls\Slider <span class="ooclass"> extends UI\Control {

/* Constructor */

public <span class="methodname">__construct ( <span class="methodparam">int $min , <span class="methodparam">int $max )

/* 方法 */

public int <span class="methodname">getValue ( <span class="methodparam">void )

protected <span class="methodname">onChange ( <span class="methodparam">void )

public <span class="methodname">setValue ( <span class="type">int $value )

/* 继承的方法 */

public <span class="methodname">UI\Control::destroy ( <span class="methodparam">void )

public <span class="methodname">UI\Control::disable ( <span class="methodparam">void )

public <span class="methodname">UI\Control::enable ( <span class="methodparam">void )

public <span class="type">UI\Control <span class="methodname">UI\Control::getParent ( <span class="methodparam">void )

public int <span class="methodname">UI\Control::getTopLevel ( <span class="methodparam">void )

public <span class="methodname">UI\Control::hide ( <span class="methodparam">void )

public bool UI\Control::isEnabled ( <span class="methodparam">void )

public bool UI\Control::isVisible ( <span class="methodparam">void )

public <span class="methodname">UI\Control::setParent ( <span class="methodparam">UI\Control $parent )

public <span class="methodname">UI\Control::show ( <span class="methodparam">void )

}

UI\Controls\Slider::__construct

Construct a new Slider

说明

public <span class="methodname">UI\Controls\Slider::__construct ( <span class="methodparam">int $min , <span class="methodparam">int $max )

Construct a new Slider with the given range

参数

min
The minimum allowed value

max
The maximum allowed value

UI\Controls\Slider::getValue

Get Value

说明

public int <span class="methodname">UI\Controls\Slider::getValue ( <span class="methodparam">void )

Get the value from this Slider

参数

此函数没有参数。

UI\Controls\Slider::onChange

Change Handler

说明

protected <span class="methodname">UI\Controls\Slider::onChange ( <span class="methodparam">void )

Shall be executed when the value of this Slider changes

参数

此函数没有参数。

UI\Controls\Slider::setValue

Set Value

说明

public <span class="methodname">UI\Controls\Slider::setValue ( <span class="methodparam">int $value )

Shall set the value for this Slider

参数

value
The new value

简介

A Progress control is a familiar Progress bar: It represents progress as a percentage, with a possible range of 0 to 100 (inclusive).

类摘要

UI\Controls\Progress

class UI\Controls\Progress <span class="ooclass"> extends UI\Control {

/* 方法 */

public int <span class="methodname">getValue ( <span class="methodparam">void )

public <span class="methodname">setValue ( <span class="type">int $value )

/* 继承的方法 */

public <span class="methodname">UI\Control::destroy ( <span class="methodparam">void )

public <span class="methodname">UI\Control::disable ( <span class="methodparam">void )

public <span class="methodname">UI\Control::enable ( <span class="methodparam">void )

public <span class="type">UI\Control <span class="methodname">UI\Control::getParent ( <span class="methodparam">void )

public int <span class="methodname">UI\Control::getTopLevel ( <span class="methodparam">void )

public <span class="methodname">UI\Control::hide ( <span class="methodparam">void )

public bool UI\Control::isEnabled ( <span class="methodparam">void )

public bool UI\Control::isVisible ( <span class="methodparam">void )

public <span class="methodname">UI\Control::setParent ( <span class="methodparam">UI\Control $parent )

public <span class="methodname">UI\Control::show ( <span class="methodparam">void )

}

UI\Controls\Progress::getValue

Get Value

说明

public int <span class="methodname">UI\Controls\Progress::getValue ( <span class="methodparam">void )

Shall retrieve the current value of this Progress bar

参数

此函数没有参数。

UI\Controls\Progress::setValue

Set Value

说明

public <span class="methodname">UI\Controls\Progress::setValue ( <span class="methodparam">int $value )

Shall set the value for this Progress bar

参数

value
An integer between 0 and 100 (inclusive)

简介

A Separator represents a control separator, it has no other function.

类摘要

UI\Controls\Separator

class UI\Controls\Separator <span class="ooclass"> extends UI\Control {

/* Constants */

const int UI\Controls\Separator::Horizontal ;

const int UI\Controls\Separator::Vertical ;

/* Constructor */

public <span class="methodname">__construct ([ <span class="methodparam">int $type<span class="initializer"> = UI\Controls\Separator::Horizontal ] )

/* 继承的方法 */

public <span class="methodname">UI\Control::destroy ( <span class="methodparam">void )

public <span class="methodname">UI\Control::disable ( <span class="methodparam">void )

public <span class="methodname">UI\Control::enable ( <span class="methodparam">void )

public <span class="type">UI\Control <span class="methodname">UI\Control::getParent ( <span class="methodparam">void )

public int <span class="methodname">UI\Control::getTopLevel ( <span class="methodparam">void )

public <span class="methodname">UI\Control::hide ( <span class="methodparam">void )

public bool UI\Control::isEnabled ( <span class="methodparam">void )

public bool UI\Control::isVisible ( <span class="methodparam">void )

public <span class="methodname">UI\Control::setParent ( <span class="methodparam">UI\Control $parent )

public <span class="methodname">UI\Control::show ( <span class="methodparam">void )

}

预定义常量

UI\Controls\Separator::Horizontal
A Horizontal Separator

UI\Controls\Separator::Vertical
A Vertical Separator

UI\Controls\Separator::__construct

Construct a new Separator

说明

public <span class="methodname">UI\Controls\Separator::__construct ([ int $type<span class="initializer"> = UI\Controls\Separator::Horizontal ] )

Shall construct a new Separator of the given type

参数

type
Separator::Horizonal or Separator::Vertical

简介

A Combo control represents a list of options, like the familiar select HTML element.

类摘要

UI\Controls\Combo

class UI\Controls\Combo <span class="ooclass"> extends UI\Control {

/* 方法 */

public <span class="methodname">append ( <span class="type">string $text )

public int <span class="methodname">getSelected ( <span class="methodparam">void )

protected <span class="methodname">onSelected ( <span class="methodparam">void )

public <span class="methodname">setSelected ( <span class="type">int $index )

/* 继承的方法 */

public <span class="methodname">UI\Control::destroy ( <span class="methodparam">void )

public <span class="methodname">UI\Control::disable ( <span class="methodparam">void )

public <span class="methodname">UI\Control::enable ( <span class="methodparam">void )

public <span class="type">UI\Control <span class="methodname">UI\Control::getParent ( <span class="methodparam">void )

public int <span class="methodname">UI\Control::getTopLevel ( <span class="methodparam">void )

public <span class="methodname">UI\Control::hide ( <span class="methodparam">void )

public bool UI\Control::isEnabled ( <span class="methodparam">void )

public bool UI\Control::isVisible ( <span class="methodparam">void )

public <span class="methodname">UI\Control::setParent ( <span class="methodparam">UI\Control $parent )

public <span class="methodname">UI\Control::show ( <span class="methodparam">void )

}

UI\Controls\Combo::append

Append Option

说明

public <span class="methodname">UI\Controls\Combo::append ( <span class="methodparam">string $text )

Append an option to this Combo

参数

text
The text for the new option

UI\Controls\Combo::getSelected

Get Selected Option

说明

public int <span class="methodname">UI\Controls\Combo::getSelected ( <span class="methodparam">void )

Shall retrieve the index of the option selected in this Combo

参数

此函数没有参数。

UI\Controls\Combo::onSelected

Selected Handler

说明

protected <span class="methodname">UI\Controls\Combo::onSelected ( <span class="methodparam">void )

Shall be executed when an option is selected in this Combo

参数

此函数没有参数。

UI\Controls\Combo::setSelected

Set Selected Option

说明

public <span class="methodname">UI\Controls\Combo::setSelected ( <span class="methodparam">int $index )

Shall set the currently selected option in this Combo

参数

index
The index of the option to select

简介

An Editable Combo is a Combo which allows the user to enter custom options

类摘要

UI\Controls\EditableCombo

class UI\Controls\EditableCombo extends UI\Control {

/* 方法 */

public <span class="methodname">append ( <span class="type">string $text )

public string getText ( <span class="methodparam">void )

protected <span class="methodname">onChange ( <span class="methodparam">void )

public <span class="methodname">setText ( <span class="type">string $text )

/* 继承的方法 */

public <span class="methodname">UI\Control::destroy ( <span class="methodparam">void )

public <span class="methodname">UI\Control::disable ( <span class="methodparam">void )

public <span class="methodname">UI\Control::enable ( <span class="methodparam">void )

public <span class="type">UI\Control <span class="methodname">UI\Control::getParent ( <span class="methodparam">void )

public int <span class="methodname">UI\Control::getTopLevel ( <span class="methodparam">void )

public <span class="methodname">UI\Control::hide ( <span class="methodparam">void )

public bool UI\Control::isEnabled ( <span class="methodparam">void )

public bool UI\Control::isVisible ( <span class="methodparam">void )

public <span class="methodname">UI\Control::setParent ( <span class="methodparam">UI\Control $parent )

public <span class="methodname">UI\Control::show ( <span class="methodparam">void )

}

UI\Controls\EditableCombo::append

Append Option

说明

public <span class="methodname">UI\Controls\EditableCombo::append ( <span class="methodparam">string $text )

Shall append a new option to this Editable Combo

参数

text
The text for the new option

UI\Controls\EditableCombo::getText

Get Text

说明

public string UI\Controls\EditableCombo::getText ( void )

Get the value of the currently selected option in this Editable Combo

参数

此函数没有参数。

UI\Controls\EditableCombo::onChange

Change Handler

说明

protected <span class="methodname">UI\Controls\EditableCombo::onChange ( <span class="methodparam">void )

Shall be executed when the value of this Editable Combobox changes

参数

此函数没有参数。

UI\Controls\EditableCombo::setText

Set Text

说明

public <span class="methodname">UI\Controls\EditableCombo::setText ( <span class="methodparam">string $text )

Shall set the text of the currently selected option in this Editable Combo

参数

text
The new text

简介

A Radio is similar to the radio input type familiar from HTML

类摘要

UI\Controls\Radio

class UI\Controls\Radio <span class="ooclass"> extends UI\Control {

/* 方法 */

public <span class="methodname">append ( <span class="type">string $text )

public int <span class="methodname">getSelected ( <span class="methodparam">void )

protected <span class="methodname">onSelected ( <span class="methodparam">void )

public <span class="methodname">setSelected ( <span class="type">int $index )

/* 继承的方法 */

public <span class="methodname">UI\Control::destroy ( <span class="methodparam">void )

public <span class="methodname">UI\Control::disable ( <span class="methodparam">void )

public <span class="methodname">UI\Control::enable ( <span class="methodparam">void )

public <span class="type">UI\Control <span class="methodname">UI\Control::getParent ( <span class="methodparam">void )

public int <span class="methodname">UI\Control::getTopLevel ( <span class="methodparam">void )

public <span class="methodname">UI\Control::hide ( <span class="methodparam">void )

public bool UI\Control::isEnabled ( <span class="methodparam">void )

public bool UI\Control::isVisible ( <span class="methodparam">void )

public <span class="methodname">UI\Control::setParent ( <span class="methodparam">UI\Control $parent )

public <span class="methodname">UI\Control::show ( <span class="methodparam">void )

}

UI\Controls\Radio::append

Append Option

说明

public <span class="methodname">UI\Controls\Radio::append ( <span class="methodparam">string $text )

Shall append a new option to this Radio

参数

text
The text (label) for the option

UI\Controls\Radio::getSelected

Get Selected Option

说明

public int <span class="methodname">UI\Controls\Radio::getSelected ( <span class="methodparam">void )

Shall retrieve the index of the currently selected option in this Radio

参数

此函数没有参数。

UI\Controls\Radio::onSelected

Selected Handler

说明

protected <span class="methodname">UI\Controls\Radio::onSelected ( <span class="methodparam">void )

Shall be executed when the option selected in this Radio changes

参数

此函数没有参数。

UI\Controls\Radio::setSelected

Set Selected Option

说明

public <span class="methodname">UI\Controls\Radio::setSelected ( <span class="methodparam">int $index )

Shall set the currently selected option in this Radio

参数

index
The index of the option to select

简介

A Picker represents a button which when clicked presents a native Date/Time/DateTime Picker interface to the user.

类摘要

UI\Controls\Picker

class UI\Controls\Picker <span class="ooclass"> extends UI\Control {

/* Constants */

const int UI\Controls\Picker::Date ;

const int UI\Controls\Picker::Time ;

const int UI\Controls\Picker::DateTime ;

/* Constructor */

public <span class="methodname">__construct ([ <span class="methodparam">int $type<span class="initializer"> = UI\Controls\Picker::Date ] )

/* 继承的方法 */

public <span class="methodname">UI\Control::destroy ( <span class="methodparam">void )

public <span class="methodname">UI\Control::disable ( <span class="methodparam">void )

public <span class="methodname">UI\Control::enable ( <span class="methodparam">void )

public <span class="type">UI\Control <span class="methodname">UI\Control::getParent ( <span class="methodparam">void )

public int <span class="methodname">UI\Control::getTopLevel ( <span class="methodparam">void )

public <span class="methodname">UI\Control::hide ( <span class="methodparam">void )

public bool UI\Control::isEnabled ( <span class="methodparam">void )

public bool UI\Control::isVisible ( <span class="methodparam">void )

public <span class="methodname">UI\Control::setParent ( <span class="methodparam">UI\Control $parent )

public <span class="methodname">UI\Control::show ( <span class="methodparam">void )

}

预定义常量

UI\Controls\Picker::Date
A Date Picker

UI\Controls\Picker::Time
A Time Picker

UI\Controls\Picker::DateTime
A Date and Time Picker

UI\Controls\Picker::__construct

Construct a new Picker

说明

public <span class="methodname">UI\Controls\Picker::__construct ([ <span class="methodparam">int $type<span class="initializer"> = UI\Controls\Picker::Date ] )

Construct a new Picker of the given type

参数

type
Picker::Date, Picker::Time, or Picker::DateTime

简介

A Form is a control which allows the arrangement of other controls into a familiar layout (the form).

类摘要

UI\Controls\Form

class UI\Controls\Form <span class="ooclass"> extends UI\Control {

/* 属性 */

protected $controls ;

/* 方法 */

public int <span class="methodname">append ( <span class="type">string $label , <span class="methodparam">UI\Control $control [, <span class="type">bool $stretchy = false ] )

public bool delete ( <span class="type">int $index )

public bool isPadded ( <span class="methodparam">void )

public <span class="methodname">setPadded ( <span class="type">bool $padded )

/* 继承的方法 */

public <span class="methodname">UI\Control::destroy ( <span class="methodparam">void )

public <span class="methodname">UI\Control::disable ( <span class="methodparam">void )

public <span class="methodname">UI\Control::enable ( <span class="methodparam">void )

public <span class="type">UI\Control <span class="methodname">UI\Control::getParent ( <span class="methodparam">void )

public int <span class="methodname">UI\Control::getTopLevel ( <span class="methodparam">void )

public <span class="methodname">UI\Control::hide ( <span class="methodparam">void )

public bool UI\Control::isEnabled ( <span class="methodparam">void )

public bool UI\Control::isVisible ( <span class="methodparam">void )

public <span class="methodname">UI\Control::setParent ( <span class="methodparam">UI\Control $parent )

public <span class="methodname">UI\Control::show ( <span class="methodparam">void )

}

属性

controls
Contains controls, should not be manipulated directly

UI\Controls\Form::append

Append Control

说明

public int <span class="methodname">UI\Controls\Form::append ( <span class="methodparam">string $label , UI\Control $control [, <span class="type">bool $stretchy = false ] )

Shall append the control to the form, and set the label

参数

label
The text for the label

control
A control

stretchy
Should be set true to stretch the control

返回值

Shall return the index of the appended control, may be 0

UI\Controls\Form::delete

Delete Control

说明

public bool UI\Controls\Form::delete ( <span class="methodparam">int $index )

Shall delete the control at the given index in this Form

参数

index
The index of the control to remove

返回值

Indication of succcess

UI\Controls\Form::isPadded

Padding Detection

说明

public bool UI\Controls\Form::isPadded ( <span class="methodparam">void )

Shall detect if padding is enabled on this Form

参数

此函数没有参数。

UI\Controls\Form::setPadded

Set Padding

说明

public <span class="methodname">UI\Controls\Form::setPadded ( <span class="methodparam">bool $padded )

Shall enable or disable padding on this Form

参数

padded

简介

A Grid is a control which is allows the arrangement of children into a grid

类摘要

UI\Controls\Grid

class UI\Controls\Grid <span class="ooclass"> extends UI\Control {

/* Constants */

const int UI\Controls\Grid::Fill ;

const int UI\Controls\Grid::Start ;

const int UI\Controls\Grid::Center ;

const int UI\Controls\Grid::End ;

const int UI\Controls\Grid::Leading ;

const int UI\Controls\Grid::Top ;

const int UI\Controls\Grid::Trailing ;

const int UI\Controls\Grid::Bottom ;

/* 属性 */

protected $controls ;

/* 方法 */

public <span class="methodname">append ( <span class="type">UI\Control $control , <span class="methodparam">int $left , <span class="methodparam">int $top , <span class="methodparam">int $xspan , int $yspan , bool $hexpand , <span class="type">int $halign , <span class="methodparam">bool $vexpand , int $valign )

public bool isPadded ( <span class="methodparam">void )

public <span class="methodname">setPadded ( <span class="type">bool $padding )

/* 继承的方法 */

public <span class="methodname">UI\Control::destroy ( <span class="methodparam">void )

public <span class="methodname">UI\Control::disable ( <span class="methodparam">void )

public <span class="methodname">UI\Control::enable ( <span class="methodparam">void )

public <span class="type">UI\Control <span class="methodname">UI\Control::getParent ( <span class="methodparam">void )

public int <span class="methodname">UI\Control::getTopLevel ( <span class="methodparam">void )

public <span class="methodname">UI\Control::hide ( <span class="methodparam">void )

public bool UI\Control::isEnabled ( <span class="methodparam">void )

public bool UI\Control::isVisible ( <span class="methodparam">void )

public <span class="methodname">UI\Control::setParent ( <span class="methodparam">UI\Control $parent )

public <span class="methodname">UI\Control::show ( <span class="methodparam">void )

}

预定义常量

UI\Controls\Grid::Fill

UI\Controls\Grid::Start

UI\Controls\Grid::Center

UI\Controls\Grid::End

UI\Controls\Grid::Leading

UI\Controls\Grid::Top

UI\Controls\Grid::Trailing

UI\Controls\Grid::Bottom

属性

controls
Contains controls, should not be manipulated directly

UI\Controls\Grid::append

Append Control

说明

public <span class="methodname">UI\Controls\Grid::append ( <span class="methodparam">UI\Control $control , <span class="type">int $left , <span class="type">int $top , <span class="type">int $xspan , <span class="methodparam">int $yspan , bool $hexpand , <span class="type">int $halign , <span class="methodparam">bool $vexpand , int $valign )

Warning

本函数还未编写文档,仅有参数列表。

参数

control
The Control to append

left

top

xspan

yspan

hexpand

halign

vexpand

valign

返回值

UI\Controls\Grid::isPadded

Padding Detection

说明

public bool UI\Controls\Grid::isPadded ( <span class="methodparam">void )

Shall detect if padding is enabled on this Grid

参数

此函数没有参数。

UI\Controls\Grid::setPadded

Set Padding

说明

public <span class="methodname">UI\Controls\Grid::setPadded ( <span class="methodparam">bool $padding )

Shall enable or disable padding for this Grid

参数

padding

简介

A Group is a titled container for child controls

类摘要

UI\Controls\Group

class UI\Controls\Group <span class="ooclass"> extends UI\Control {

/* 属性 */

protected $controls ;

/* Constructor */

public <span class="methodname">__construct ( <span class="methodparam">string $title )

/* 方法 */

public <span class="methodname">append ( <span class="type">UI\Control $control )

public string getTitle ( <span class="methodparam">void )

public bool hasMargin ( <span class="methodparam">void )

public <span class="methodname">setMargin ( <span class="type">bool $margin )

public <span class="methodname">setTitle ( <span class="type">string $title )

/* 继承的方法 */

public <span class="methodname">UI\Control::destroy ( <span class="methodparam">void )

public <span class="methodname">UI\Control::disable ( <span class="methodparam">void )

public <span class="methodname">UI\Control::enable ( <span class="methodparam">void )

public <span class="type">UI\Control <span class="methodname">UI\Control::getParent ( <span class="methodparam">void )

public int <span class="methodname">UI\Control::getTopLevel ( <span class="methodparam">void )

public <span class="methodname">UI\Control::hide ( <span class="methodparam">void )

public bool UI\Control::isEnabled ( <span class="methodparam">void )

public bool UI\Control::isVisible ( <span class="methodparam">void )

public <span class="methodname">UI\Control::setParent ( <span class="methodparam">UI\Control $parent )

public <span class="methodname">UI\Control::show ( <span class="methodparam">void )

}

属性

controls
Contains controls, should not be manipulated directly

UI\Controls\Group::append

Append Control

说明

public <span class="methodname">UI\Controls\Group::append ( <span class="methodparam">UI\Control $control )

Shall append a control to this Group

参数

control
The control to append

UI\Controls\Group::__construct

Construct a new Group

说明

public <span class="methodname">UI\Controls\Group::__construct ( <span class="methodparam">string $title )

Shall construct a new Group with the given title

参数

title
The text for the title label

UI\Controls\Group::getTitle

Get Title

说明

public string UI\Controls\Group::getTitle ( <span class="methodparam">void )

Shall return the current title for this Group

参数

此函数没有参数。

返回值

The current title

UI\Controls\Group::hasMargin

Margin Detection

说明

public bool UI\Controls\Group::hasMargin ( <span class="methodparam">void )

Shall detect if this Group has a margin

参数

此函数没有参数。

UI\Controls\Group::setMargin

Set Margin

说明

public <span class="methodname">UI\Controls\Group::setMargin ( <span class="methodparam">bool $margin )

Shall enable or disable margins for this Group

参数

margin

UI\Controls\Group::setTitle

Set Title

说明

public <span class="methodname">UI\Controls\Group::setTitle ( <span class="methodparam">string $title )

Shall set the title for this Group

参数

title
The text for the new title

简介

A Box allows the arrangement of other controls

类摘要

UI\Controls\Box

class UI\Controls\Box <span class="ooclass"> extends UI\Control {

/* Constants */

const int UI\Controls\Box::Vertical ;

const int UI\Controls\Box::Horizontal ;

/* 属性 */

protected $controls ;

/* Constructor */

public <span class="methodname">__construct ([ <span class="methodparam">int $orientation<span class="initializer"> = UI\Controls\Box::Horizontal ] )

/* 方法 */

public int <span class="methodname">append ( <span class="type">Control $control [, <span class="methodparam">bool $stretchy<span class="initializer"> = false ] )

public bool delete ( <span class="type">int $index )

public int <span class="methodname">getOrientation ( <span class="methodparam">void )

public bool isPadded ( <span class="methodparam">void )

public <span class="methodname">setPadded ( <span class="type">bool $padded )

/* 继承的方法 */

public <span class="methodname">UI\Control::destroy ( <span class="methodparam">void )

public <span class="methodname">UI\Control::disable ( <span class="methodparam">void )

public <span class="methodname">UI\Control::enable ( <span class="methodparam">void )

public <span class="type">UI\Control <span class="methodname">UI\Control::getParent ( <span class="methodparam">void )

public int <span class="methodname">UI\Control::getTopLevel ( <span class="methodparam">void )

public <span class="methodname">UI\Control::hide ( <span class="methodparam">void )

public bool UI\Control::isEnabled ( <span class="methodparam">void )

public bool UI\Control::isVisible ( <span class="methodparam">void )

public <span class="methodname">UI\Control::setParent ( <span class="methodparam">UI\Control $parent )

public <span class="methodname">UI\Control::show ( <span class="methodparam">void )

}

属性

controls
Contains controls, should not be manipulated directly

预定义常量

UI\Controls\Box::Vertical

UI\Controls\Box::Horizontal

UI\Controls\Box::append

Append Control

说明

public int <span class="methodname">UI\Controls\Box::append ( <span class="methodparam">Control $control [, bool $stretchy = false ] )

Shall append the given control to this Box

参数

control
The control to append

stretchy
Set true to stretch the control

返回值

Shall return the index of the appended control, may be 0

UI\Controls\Box::__construct

Construct a new Box

说明

public <span class="methodname">UI\Controls\Box::__construct ([ <span class="methodparam">int $orientation<span class="initializer"> = UI\Controls\Box::Horizontal ] )

Shall construct a new box

参数

orientation
Box::Horizontal or Box::Vertical

UI\Controls\Box::delete

Delete Control

说明

public bool UI\Controls\Box::delete ( <span class="methodparam">int $index )

Shall delete the control at the given index from this Box

参数

index
The index of the control to delete

返回值

Indication of success

UI\Controls\Box::getOrientation

Get Orientation

说明

public int <span class="methodname">UI\Controls\Box::getOrientation ( <span class="methodparam">void )

Shall retrieve the orientation of this Box

参数

此函数没有参数。

UI\Controls\Box::isPadded

Padding Detection

说明

public bool UI\Controls\Box::isPadded ( <span class="methodparam">void )

Shall detect if padding is enabled on this Box

参数

此函数没有参数。

UI\Controls\Box::setPadded

Set Padding

说明

public <span class="methodname">UI\Controls\Box::setPadded ( <span class="methodparam">bool $padded )

Shall enable or disable padding on this Box

参数

padded

简介

The Pen is passed to the Area Draw event handler, it is used for clipping, filling, stroking, and writing to Draw Paths.

类摘要

UI\Draw\Pen

final class UI\Draw\Pen {

/* 方法 */

public <span class="methodname">clip ( <span class="type">UI\Draw\Path $path )

public <span class="methodname">fill ( <span class="type">UI\Draw\Path $path , <span class="methodparam">UI\Draw\Brush $with )

public <span class="methodname">fill ( <span class="type">UI\Draw\Path $path , <span class="methodparam">UI\Draw\Color $with )

public <span class="methodname">fill ( <span class="type">UI\Draw\Path $path , <span class="methodparam">int $with )

public <span class="methodname">restore ( <span class="methodparam">void )

public <span class="methodname">save ( void )

public <span class="methodname">stroke ( <span class="type">UI\Draw\Path $path , <span class="methodparam">UI\Draw\Brush $with , <span class="type">UI\Draw\Stroke $stroke )

public <span class="methodname">stroke ( <span class="type">UI\Draw\Path $path , <span class="methodparam">UI\Draw\Color $with , <span class="type">UI\Draw\Stroke $stroke )

public <span class="methodname">stroke ( <span class="type">UI\Draw\Path $path , <span class="methodparam">int $with , <span class="methodparam">UI\Draw\Stroke $stroke )

public <span class="methodname">transform ( <span class="type">UI\Draw\Matrix $matrix )

public <span class="methodname">write ( <span class="type">UI\Point $point , <span class="methodparam">UI\Draw\Text\Layout $layout )

}

UI\Draw\Pen::clip

Clip a Path

说明

public <span class="methodname">UI\Draw\Pen::clip ( <span class="methodparam">UI\Draw\Path $path )

Shall clip the given Path

参数

path
The path to clip

UI\Draw\Pen::fill

Fill a Path

说明

public <span class="methodname">UI\Draw\Pen::fill ( <span class="methodparam">UI\Draw\Path $path , <span class="type">UI\Draw\Brush $with )

public <span class="methodname">UI\Draw\Pen::fill ( <span class="methodparam">UI\Draw\Path $path , <span class="type">UI\Draw\Color $with )

public <span class="methodname">UI\Draw\Pen::fill ( <span class="methodparam">UI\Draw\Path $path , int $with )

Shall fill the given path

参数

path
The path to fill

with
The color or brush to fill with

UI\Draw\Pen::restore

Restore

说明

public <span class="methodname">UI\Draw\Pen::restore ( <span class="methodparam">void )

Shall restore a previously saved Pen

参数

此函数没有参数。

UI\Draw\Pen::save

Save

说明

public <span class="methodname">UI\Draw\Pen::save ( <span class="methodparam">void )

Shall save the Pen

参数

此函数没有参数。

UI\Draw\Pen::stroke

Stroke a Path

说明

public <span class="methodname">UI\Draw\Pen::stroke ( <span class="methodparam">UI\Draw\Path $path , <span class="type">UI\Draw\Brush $with , <span class="methodparam">UI\Draw\Stroke $stroke )

public <span class="methodname">UI\Draw\Pen::stroke ( <span class="methodparam">UI\Draw\Path $path , <span class="type">UI\Draw\Color $with , <span class="methodparam">UI\Draw\Stroke $stroke )

public <span class="methodname">UI\Draw\Pen::stroke ( <span class="methodparam">UI\Draw\Path $path , int $with , <span class="type">UI\Draw\Stroke $stroke )

Shall stroke the given path

参数

path
The path to stroke

with
The color or brush to stroke with

stroke
The configuration of the stroke

UI\Draw\Pen::transform

Matrix Transform

说明

public <span class="methodname">UI\Draw\Pen::transform ( <span class="methodparam">UI\Draw\Matrix $matrix )

Shall perform matrix transformation

参数

matrix
The matrix to use

UI\Draw\Pen::write

Draw Text at Point

说明

public <span class="methodname">UI\Draw\Pen::write ( <span class="methodparam">UI\Point $point , <span class="type">UI\Draw\Text\Layout $layout )

Shall draw the given text layout at the given point

参数

point
The point to perform the drawing

layout
The layout of the text to draw

简介

A Draw Path guides a Draw Pen, telling the Pen where to draw on an Area.

类摘要

UI\Draw\Path

class UI\Draw\Path {

/* Constants */

const int UI\Draw\Path::Winding ;

const int UI\Draw\Path::Alternate ;

/* Constructor */

public <span class="methodname">__construct ([ <span class="methodparam">int $mode<span class="initializer"> = UI\Draw\Path::Winding ] )

/* 方法 */

public <span class="methodname">addRectangle ( <span class="type">UI\Point $point , <span class="methodparam">UI\Size $size )

public <span class="methodname">arcTo ( <span class="type">UI\Point $point , <span class="methodparam">float $radius , float $angle , <span class="type">float $sweep , <span class="methodparam">float $negative )

public <span class="methodname">bezierTo ( <span class="type">UI\Point $point , <span class="methodparam">float $radius , float $angle , <span class="type">float $sweep , <span class="methodparam">float $negative )

public <span class="methodname">closeFigure ( <span class="methodparam">void )

public end ( void )

public <span class="methodname">lineTo ( <span class="type">UI\Point $point , <span class="methodparam">float $radius , float $angle , <span class="type">float $sweep , <span class="methodparam">float $negative )

public <span class="methodname">newFigure ( <span class="type">UI\Point $point )

public <span class="methodname">newFigureWithArc ( <span class="methodparam">UI\Point $point , float $radius , <span class="type">float $angle , <span class="methodparam">float $sweep , float $negative )

}

预定义常量

UI\Draw\Path::Winding
This is the default draw path mode

UI\Draw\Path::Alternate
This is the alternate draw path mode

UI\Draw\Path::addRectangle

Draw a Rectangle

说明

public <span class="methodname">UI\Draw\Path::addRectangle ( <span class="methodparam">UI\Point $point , UI\Size $size )

Shall map the path of a rectangle of the given size, at the given point

参数

point
The point to begin the shape

size
The size of the rectangle

UI\Draw\Path::arcTo

Draw an Arc

说明

public <span class="methodname">UI\Draw\Path::arcTo ( <span class="methodparam">UI\Point $point , float $radius , <span class="type">float $angle , <span class="methodparam">float $sweep , float $negative )

Shall map the path for an arc

参数

point
The point to begin mapping

radius
The radius of the arc

angle
The angle of the arc

sweep
The sweep of the arc

negative

返回值

UI\Draw\Path::bezierTo

Draw Bezier Curve

说明

public <span class="methodname">UI\Draw\Path::bezierTo ( <span class="methodparam">UI\Point $point , float $radius , <span class="type">float $angle , <span class="methodparam">float $sweep , float $negative )

Shall draw a bezier curve

参数

point
The point at which to begin mapping

radius
The radius of the curve

angle
The angle of the curve

sweep
The sweep of the curve

negative

UI\Draw\Path::closeFigure

Close Figure

说明

public <span class="methodname">UI\Draw\Path::closeFigure ( <span class="methodparam">void )

Shall close the current figure

参数

此函数没有参数。

UI\Draw\Path::__construct

Construct a new Path

说明

public <span class="methodname">UI\Draw\Path::__construct ([ <span class="methodparam">int $mode<span class="initializer"> = UI\Draw\Path::Winding ] )

Shall construct a new path in the given mode

参数

mode
Path::Winding or Path::Alternate

UI\Draw\Path::end

Finalize Path

说明

public <span class="methodname">UI\Draw\Path::end ( <span class="methodparam">void )

Shall finalize this Path

参数

此函数没有参数。

UI\Draw\Path::lineTo

Draw a Line

说明

public <span class="methodname">UI\Draw\Path::lineTo ( <span class="methodparam">UI\Point $point , float $radius , <span class="type">float $angle , <span class="methodparam">float $sweep , float $negative )

Shall map the path for a line

参数

point
The point to begin mapping

radius

angle

sweep

negative

返回值

UI\Draw\Path::newFigure

Draw Figure

说明

public <span class="methodname">UI\Draw\Path::newFigure ( <span class="methodparam">UI\Point $point )

Shall map a new figure at the given point

参数

point
The point to begin mapping

UI\Draw\Path::newFigureWithArc

Draw Figure with Arc

说明

public <span class="methodname">UI\Draw\Path::newFigureWithArc ( <span class="methodparam">UI\Point $point , float $radius , <span class="type">float $angle , <span class="methodparam">float $sweep , float $negative )

参数

point

radius

angle

sweep

negative

返回值

简介

类摘要

UI\Draw\Matrix

class UI\Draw\Matrix {

/* 方法 */

public <span class="methodname">invert ( void )

public bool isInvertible ( <span class="methodparam">void )

public <span class="type">UI\Draw\Matrix <span class="methodname">multiply ( <span class="type">UI\Draw\Matrix $matrix )

public <span class="methodname">rotate ( <span class="type">UI\Point $point , <span class="methodparam">float $amount )

public <span class="methodname">scale ( <span class="type">UI\Point $center , <span class="methodparam">UI\Point $point )

public <span class="methodname">skew ( <span class="type">UI\Point $point , <span class="methodparam">UI\Point $amount )

public <span class="methodname">translate ( <span class="type">UI\Point $point )

}

UI\Draw\Matrix::invert

Invert Matrix

说明

public <span class="methodname">UI\Draw\Matrix::invert ( <span class="methodparam">void )

Shall invert this matrix

参数

此函数没有参数。

UI\Draw\Matrix::isInvertible

Invertible Detection

说明

public bool UI\Draw\Matrix::isInvertible ( <span class="methodparam">void )

Shall detect if this Matrix may be inverted

参数

此函数没有参数。

UI\Draw\Matrix::multiply

Multiply Matrix

说明

public <span class="type">UI\Draw\Matrix <span class="methodname">UI\Draw\Matrix::multiply ( <span class="methodparam">UI\Draw\Matrix $matrix )

Shall multiply this matrix with the given matrix

参数

此函数没有参数。

返回值

The new Matrix

UI\Draw\Matrix::rotate

Rotate Matrix

说明

public <span class="methodname">UI\Draw\Matrix::rotate ( <span class="methodparam">UI\Point $point , float $amount )

Shall rotate this Matrix

参数

point

amount

UI\Draw\Matrix::scale

Scale Matrix

说明

public <span class="methodname">UI\Draw\Matrix::scale ( <span class="methodparam">UI\Point $center , UI\Point $point )

Shall scale this Matrix

参数

center

point

UI\Draw\Matrix::skew

Skew Matrix

说明

public <span class="methodname">UI\Draw\Matrix::skew ( <span class="methodparam">UI\Point $point , UI\Point $amount )

Shall skew this Matrix

参数

point

amount

UI\Draw\Matrix::translate

Translate Matrix

说明

public <span class="methodname">UI\Draw\Matrix::translate ( <span class="methodparam">UI\Point $point )

Shall translate this Matrix

参数

point

简介

Represents RGBA colours, individual channels are accessible via public properties.

类摘要

UI\Draw\Color

class UI\Draw\Color {

/* Constants */

const int UI\Draw\Color::Red ;

const int UI\Draw\Color::Green ;

const int UI\Draw\Color::Blue ;

const int UI\Draw\Color::Alpha ;

/* 属性 */

public $r ;

public $g ;

public $b ;

public $a ;

/* Constructor */

public <span class="methodname">__construct ([ <span class="methodparam">UI\Draw\Color $color ] )

public <span class="methodname">__construct ([ <span class="methodparam">int $color ] )

/* 方法 */

public float getChannel ( <span class="methodparam">int $channel )

public void setChannel ( <span class="methodparam">int $channel , float $value )

}

属性

r
Provides access to the red channel

g
Provides access to the green channel

b
Provides access to the blue channel

a
Provides access to the alpha channel

预定义常量

UI\Draw\Color::Red
Identifies the red channel

UI\Draw\Color::Green
Identifies the green channel

UI\Draw\Color::Blue
Identifies the blue channel

UI\Draw\Color::Alpha
Identifies the alpha channel

UI\Draw\Color::__construct

Construct new Color

说明

public <span class="methodname">UI\Draw\Color::__construct ([ <span class="methodparam">UI\Draw\Color $color ] )

public <span class="methodname">UI\Draw\Color::__construct ([ <span class="methodparam">int $color ] )

Shall construct a new color

参数

color
May be UI\Draw\Color or RRGGBBAA

UI\Draw\Color::getChannel

Color Manipulation

说明

public float UI\Draw\Color::getChannel ( <span class="methodparam">int $channel )

Shall retrieve the value for a channel

参数

channel
Constant channel identity

返回值

The current value of the requested channel

UI\Draw\Color::setChannel

Color Manipulation

说明

public void UI\Draw\Color::setChannel ( <span class="methodparam">int $channel , float $value )

Shall set the selected channel to the given value

参数

channel
Constant channel identity

value
The new value for the selected channel

返回值

简介

Holds the configuration for the Pen to perform a stroke

类摘要

UI\Draw\Stroke

class UI\Draw\Stroke {

/* Constructor */

public <span class="methodname">__construct ([ <span class="methodparam">int $cap<span class="initializer"> = UI\Draw\Line\Cap::Flat [, <span class="methodparam">int $join<span class="initializer"> = UI\Draw\Line\Join::Miter [, float $thickness = 1 [, <span class="methodparam">float $miterLimit<span class="initializer"> = 10 ]]]] )

/* 方法 */

public int <span class="methodname">getCap ( void )

public int <span class="methodname">getJoin ( <span class="methodparam">void )

public float getMiterLimit ( <span class="methodparam">void )

public float getThickness ( <span class="methodparam">void )

public <span class="methodname">setCap ( <span class="type">int $cap )

public <span class="methodname">setJoin ( <span class="type">int $join )

public <span class="methodname">setMiterLimit ( <span class="methodparam">float $limit )

public <span class="methodname">setThickness ( <span class="type">float $thickness )

}

UI\Draw\Stroke::__construct

Construct a new Stroke

说明

public <span class="methodname">UI\Draw\Stroke::__construct ([ <span class="methodparam">int $cap<span class="initializer"> = UI\Draw\Line\Cap::Flat [, <span class="methodparam">int $join<span class="initializer"> = UI\Draw\Line\Join::Miter [, float $thickness = 1 [, <span class="methodparam">float $miterLimit<span class="initializer"> = 10 ]]]] )

Shall construct a new Stroke

参数

cap
UI\Draw\Line\Cap::Flat, UI\Draw\Line\Cap::Round, or UI\Draw\Line\Cap::Square

join
UI\Draw\Line\Join::Miter, UI\Draw\Line\Join::Round, or UI\Draw\Line\Join::Bevel

thickness
The thickness of the stroke

miterLimit
Miter limit (default is sensible for all supported platforms)

UI\Draw\Stroke::getCap

Get Line Cap

说明

public int <span class="methodname">UI\Draw\Stroke::getCap ( <span class="methodparam">void )

Shall retrieve the line cap setting of this Stroke

参数

此函数没有参数。

返回值

UI\Draw\Line\Cap::Flat, UI\Draw\Line\Cap::Round, or UI\Draw\Line\Cap::Square

UI\Draw\Stroke::getJoin

Get Line Join

说明

public int <span class="methodname">UI\Draw\Stroke::getJoin ( <span class="methodparam">void )

Shall retrieve the line join setting of this Stroke

参数

此函数没有参数。

返回值

UI\Draw\Line\Join::Miter, UI\Draw\Line\Join::Round, or UI\Draw\Line\Join::Bevel

UI\Draw\Stroke::getMiterLimit

Get Miter Limit

说明

public float UI\Draw\Stroke::getMiterLimit ( <span class="methodparam">void )

Shall retrieve the miter limit of this Stroke

参数

此函数没有参数。

返回值

The current miter limit

UI\Draw\Stroke::getThickness

Get Thickness

说明

public float UI\Draw\Stroke::getThickness ( <span class="methodparam">void )

Shall retrieve the thickness of this Stroke

参数

此函数没有参数。

返回值

The current thickness

UI\Draw\Stroke::setCap

Set Line Cap

说明

public <span class="methodname">UI\Draw\Stroke::setCap ( <span class="methodparam">int $cap )

Shall set the line cap setting for this Stroke

参数

cap
UI\Draw\Line\Cap::Flat, UI\Draw\Line\Cap::Round, or UI\Draw\Line\Cap::Square

UI\Draw\Stroke::setJoin

Set Line Join

说明

public <span class="methodname">UI\Draw\Stroke::setJoin ( <span class="methodparam">int $join )

Shall set the line join setting for this Stroke

参数

join
UI\Draw\Line\Join::Miter, UI\Draw\Line\Join::Round, or UI\Draw\Line\Join::Bevel

返回值

UI\Draw\Stroke::setMiterLimit

Set Miter Limit

说明

public <span class="methodname">UI\Draw\Stroke::setMiterLimit ( <span class="methodparam">float $limit )

Set the miter limit for this Stroke

参数

limit
The new limit

UI\Draw\Stroke::setThickness

Set Thickness

说明

public <span class="methodname">UI\Draw\Stroke::setThickness ( <span class="methodparam">float $thickness )

Shall set the thickness for this Stroke

参数

thickness
The new thickness

简介

Represents a solid color brush

类摘要

UI\Draw\Brush

class UI\Draw\Brush {

/* Constructor */

public <span class="methodname">__construct ( <span class="methodparam">UI\Draw\Color $color )

public <span class="methodname">__construct ( <span class="methodparam">int $color )

/* 方法 */

public <span class="type">UI\Draw\Color <span class="methodname">getColor ( <span class="methodparam">void )

public void setColor ( <span class="methodparam">UI\Draw\Color $color )

public void setColor ( <span class="methodparam">int $color )

}

UI\Draw\Brush::__construct

Construct a new Brush

说明

public <span class="methodname">UI\Draw\Brush::__construct ( <span class="methodparam">UI\Draw\Color $color )

public <span class="methodname">UI\Draw\Brush::__construct ( <span class="methodparam">int $color )

Shall construct a solid brush using the given color

参数

color
Can be a UI\Draw\Color or RRGGBBAA

UI\Draw\Brush::getColor

Get Color

说明

public <span class="type">UI\Draw\Color <span class="methodname">UI\Draw\Brush::getColor ( <span class="methodparam">void )

Shall return a UI\Draw\Color for this brush

参数

此函数没有参数。

返回值

The current color of the brush

UI\Draw\Brush::setColor

Set Color

说明

public void UI\Draw\Brush::setColor ( <span class="methodparam">UI\Draw\Color $color )

public void UI\Draw\Brush::setColor ( <span class="methodparam">int $color )

Shall set the color of this brush to the color provided

参数

color
Can be a UI\Draw\Color or RRGGBBAA

返回值

简介

Abstract for gradient brushes

类摘要

UI\Draw\Brush\Gradient

abstract class UI\Draw\Brush\Gradient <span class="modifier">extends UI\Draw\Brush {

/* 方法 */

public int <span class="methodname">addStop ( <span class="type">float $position , <span class="methodparam">UI\Draw\Color $color )

public int <span class="methodname">addStop ( <span class="type">float $position , <span class="methodparam">int $color )

public int <span class="methodname">delStop ( <span class="type">int $index )

public bool setStop ( <span class="methodparam">int $index , float $position , <span class="type">UI\Draw\Color $color )

public bool setStop ( <span class="methodparam">int $index , float $position , <span class="type">int $color )

/* 继承的方法 */

public <span class="type">UI\Draw\Color <span class="methodname">UI\Draw\Brush::getColor ( <span class="methodparam">void )

public void UI\Draw\Brush::setColor ( <span class="methodparam">UI\Draw\Color $color )

public void UI\Draw\Brush::setColor ( <span class="methodparam">int $color )

}

UI\Draw\Brush\Gradient::addStop

Stop Manipulation

说明

public int <span class="methodname">UI\Draw\Brush\Gradient::addStop ( <span class="methodparam">float $position , UI\Draw\Color $color )

public int <span class="methodname">UI\Draw\Brush\Gradient::addStop ( <span class="methodparam">float $position , int $color )

Shall at a stop of the given color at the given position

参数

position
The position for the new stop

color
The color for the new stop, may be UI\Draw\Color or RRGGBBAA

返回值

Total number of stops

UI\Draw\Brush\Gradient::delStop

Stop Manipulation

说明

public int <span class="methodname">UI\Draw\Brush\Gradient::delStop ( <span class="methodparam">int $index )

Warning

本函数还未编写文档,仅有参数列表。

参数

index

返回值

Total number of stops

UI\Draw\Brush\Gradient::setStop

Stop Manipulation

说明

public bool UI\Draw\Brush\Gradient::setStop ( int $index , float $position , <span class="type">UI\Draw\Color $color )

public bool UI\Draw\Brush\Gradient::setStop ( int $index , float $position , <span class="type">int $color )

参数

index
The index of the stop to set

position
The position for the stop

color
The color for the stop, may be UI\Draw\Color or RRGGBBAA

返回值

Indication of success

简介

类摘要

UI\Draw\Brush\LinearGradient

class UI\Draw\Brush\LinearGradient extends UI\Draw\Brush\Gradient {

/* Constructor */

public <span class="methodname">__construct ( <span class="methodparam">UI\Point $start , UI\Point $end )

/* 继承的方法 */

public int <span class="methodname">UI\Draw\Brush\Gradient::addStop ( <span class="methodparam">float $position , UI\Draw\Color $color )

public int <span class="methodname">UI\Draw\Brush\Gradient::addStop ( <span class="methodparam">float $position , int $color )

public int <span class="methodname">UI\Draw\Brush\Gradient::delStop ( <span class="methodparam">int $index )

public bool UI\Draw\Brush\Gradient::setStop ( int $index , float $position , <span class="type">UI\Draw\Color $color )

public bool UI\Draw\Brush\Gradient::setStop ( int $index , float $position , <span class="type">int $color )

}

UI\Draw\Brush\LinearGradient::__construct

Construct a Linear Gradient

说明

public <span class="methodname">UI\Draw\Brush\LinearGradient::__construct ( UI\Point $start , <span class="type">UI\Point $end )

Shall construct a new linear gradient

参数

start

end

简介

类摘要

UI\Draw\Brush\RadialGradient

class UI\Draw\Brush\RadialGradient extends UI\Draw\Brush\Gradient {

/* Constructor */

public <span class="methodname">__construct ( <span class="methodparam">UI\Point $start , UI\Point $outer , <span class="type">float $radius )

/* 继承的方法 */

public int <span class="methodname">UI\Draw\Brush\Gradient::addStop ( <span class="methodparam">float $position , UI\Draw\Color $color )

public int <span class="methodname">UI\Draw\Brush\Gradient::addStop ( <span class="methodparam">float $position , int $color )

public int <span class="methodname">UI\Draw\Brush\Gradient::delStop ( <span class="methodparam">int $index )

public bool UI\Draw\Brush\Gradient::setStop ( int $index , float $position , <span class="type">UI\Draw\Color $color )

public bool UI\Draw\Brush\Gradient::setStop ( int $index , float $position , <span class="type">int $color )

}

UI\Draw\Brush\RadialGradient::__construct

Construct a new Radial Gradient

说明

public <span class="methodname">UI\Draw\Brush\RadialGradient::__construct ( UI\Point $start , <span class="type">UI\Point $outer , <span class="methodparam">float $radius )

Shall construct a new radial gradient

参数

start

outer

radius

简介

A Text Layout represents the layout of text which will be drawn by the Pen

类摘要

UI\Draw\Text\Layout

class UI\Draw\Text\Layout {

/* Constructor */

public <span class="methodname">__construct ( <span class="methodparam">string $text , UI\Draw\Text\Font $font , <span class="type">float $width )

/* 方法 */

public <span class="methodname">setColor ( <span class="type">UI\Draw\Color $color [, <span class="methodparam">int $start<span class="initializer"> = 0 [, <span class="methodparam">int $end ]] )

public <span class="methodname">setColor ( <span class="type">int $color [, <span class="methodparam">int $start<span class="initializer"> = 0 [, <span class="methodparam">int $end ]] )

public <span class="methodname">setWidth ( <span class="type">float $width )

}

UI\Draw\Text\Layout::__construct

Construct a new Text Layout

说明

public <span class="methodname">UI\Draw\Text\Layout::__construct ( <span class="methodparam">string $text , UI\Draw\Text\Font $font , <span class="type">float $width )

Shall construct a new Text Layout

参数

text
The text for the layout

font
The font to use for writing

width
The width of the layout

UI\Draw\Text\Layout::setColor

Set Color

说明

public <span class="methodname">UI\Draw\Text\Layout::setColor ( <span class="methodparam">UI\Draw\Color $color [, <span class="type">int $start = 0 [, <span class="type">int $end ]] )

public <span class="methodname">UI\Draw\Text\Layout::setColor ( <span class="methodparam">int $color [, int $start<span class="initializer"> = 0 [, <span class="methodparam">int $end ]] )

Shall set the Color for all of, or a range of the text in the Layout

参数

color
The color to use

start
The starting character

end
The ending character, by default the end of the string

UI\Draw\Text\Layout::setWidth

Set Width

说明

public <span class="methodname">UI\Draw\Text\Layout::setWidth ( <span class="methodparam">float $width )

Shall set the width of this Text Layout

参数

width
The new width

简介

Loads a described font

类摘要

UI\Draw\Text\Font

class UI\Draw\Text\Font {

/* Constructor */

public <span class="methodname">__construct ( <span class="methodparam"><span class="type">UI\Draw\Text\Font\Descriptor $descriptor )

/* 方法 */

public float getAscent ( <span class="methodparam">void )

public float getDescent ( <span class="methodparam">void )

public float getLeading ( <span class="methodparam">void )

public float getUnderlinePosition ( <span class="methodparam">void )

public float getUnderlineThickness ( <span class="methodparam">void )

}

UI\Draw\Text\Font::__construct

Construct a new Font

说明

public <span class="methodname">UI\Draw\Text\Font::__construct ( <span class="methodparam"><span class="type">UI\Draw\Text\Font\Descriptor $descriptor )

Shall construct a new Font using the given descriptor

参数

descriptor
The descriptor for the Font

UI\Draw\Text\Font::getAscent

Font Metrics

说明

public float UI\Draw\Text\Font::getAscent ( <span class="methodparam">void )

参数

此函数没有参数。

返回值

UI\Draw\Text\Font::getDescent

Font Metrics

说明

public float UI\Draw\Text\Font::getDescent ( <span class="methodparam">void )

参数

此函数没有参数。

返回值

UI\Draw\Text\Font::getLeading

Font Metrics

说明

public float UI\Draw\Text\Font::getLeading ( <span class="methodparam">void )

参数

此函数没有参数。

返回值

UI\Draw\Text\Font::getUnderlinePosition

Font Metrics

说明

public float <span class="methodname">UI\Draw\Text\Font::getUnderlinePosition ( void )

参数

此函数没有参数。

返回值

UI\Draw\Text\Font::getUnderlineThickness

Font Metrics

说明

public float <span class="methodname">UI\Draw\Text\Font::getUnderlineThickness ( void )

参数

此函数没有参数。

返回值

简介

Describes a font

类摘要

UI\Draw\Text\Font\Descriptor

class UI\Draw\Text\Font\Descriptor {

/* Constructor */

public <span class="methodname">__construct ( <span class="methodparam">string $family , float $size [, int $weight = UI\Draw\Text\Font\Weight::Normal [, <span class="methodparam">int $italic<span class="initializer"> = UI\Draw\Text\Font\Italic::Normal [, <span class="methodparam">int $stretch<span class="initializer"> = UI\Draw\Text\Font\Stretch::Normal ]]] )

/* 方法 */

public string getFamily ( <span class="methodparam">void )

public int <span class="methodname">getItalic ( <span class="methodparam">void )

public float getSize ( <span class="methodparam">void )

public int <span class="methodname">getStretch ( <span class="methodparam">void )

public int <span class="methodname">getWeight ( <span class="methodparam">void )

}

UI\Draw\Text\Font\Descriptor::__construct

Construct a new Font Descriptor

说明

public <span class="methodname">UI\Draw\Text\Font\Descriptor::__construct ( string $family , <span class="type">float $size [, <span class="methodparam">int $weight<span class="initializer"> = UI\Draw\Text\Font\Weight::Normal [, <span class="methodparam">int $italic<span class="initializer"> = UI\Draw\Text\Font\Italic::Normal [, <span class="methodparam">int $stretch<span class="initializer"> = UI\Draw\Text\Font\Stretch::Normal ]]] )

Shall construct a new Font Descriptor

参数

family
The name of a valid family of fonts

size
The preferred size

weight
UI\Draw\Text\Font\Weight constant

italic
UI\Draw\Text\Font\Italic constant

stretch
UI\Draw\Text\Font\Stretch constant

UI\Draw\Text\Font\Descriptor::getFamily

Get Font Family

说明

public string <span class="methodname">UI\Draw\Text\Font\Descriptor::getFamily ( void )

Shall return the requested font family

参数

此函数没有参数。

返回值

UI\Draw\Text\Font\Descriptor::getItalic

Style Detection

说明

public int <span class="methodname">UI\Draw\Text\Font\Descriptor::getItalic ( void )

Shall return constant setting

参数

此函数没有参数。

返回值

UI\Draw\Text\Font\Descriptor::getSize

Size Detection

说明

public float <span class="methodname">UI\Draw\Text\Font\Descriptor::getSize ( void )

Shall return the requested size

参数

此函数没有参数。

返回值

UI\Draw\Text\Font\Descriptor::getStretch

Style Detection

说明

public int <span class="methodname">UI\Draw\Text\Font\Descriptor::getStretch ( void )

Shall return requested stretch

参数

此函数没有参数。

返回值

UI\Draw\Text\Font\Descriptor::getWeight

Weight Detection

说明

public int <span class="methodname">UI\Draw\Text\Font\Descriptor::getWeight ( void )

Shall return requested weight

参数

此函数没有参数。

返回值

简介

类摘要

UI\Draw\Text\Font\Weight

final class UI\Draw\Text\Font\Weight {

/* Constants */

const int UI\Draw\Text\Font\Weight::Thin ;

const int UI\Draw\Text\Font\Weight::UltraLight ;

const int UI\Draw\Text\Font\Weight::Light ;

const int UI\Draw\Text\Font\Weight::Book ;

const int UI\Draw\Text\Font\Weight::Normal ;

const int UI\Draw\Text\Font\Weight::Medium ;

const int UI\Draw\Text\Font\Weight::SemiBold ;

const int UI\Draw\Text\Font\Weight::Bold ;

const int UI\Draw\Text\Font\Weight::UltraBold ;

const int UI\Draw\Text\Font\Weight::Heavy ;

const int UI\Draw\Text\Font\Weight::UltraHeavy ;

}

简介

类摘要

UI\Draw\Text\Font\Italic

final class UI\Draw\Text\Font\Italic {

/* Constants */

const int UI\Draw\Text\Font\Italic::Normal = 0 ;

const int UI\Draw\Text\Font\Italic::Oblique = 1 ;

const int UI\Draw\Text\Font\Italic::Italic = 2 ;

}

简介

类摘要

UI\Draw\Text\Font\Stretch

final class UI\Draw\Text\Font\Stretch {

/* Constants */

const int UI\Draw\Text\Font\Stretch::UltraCondensed = 0 ;

const int UI\Draw\Text\Font\Stretch::ExtraCondensed = 1 ;

const int UI\Draw\Text\Font\Stretch::Condensed = 2 ;

const int UI\Draw\Text\Font\Stretch::SemiCondensed = 3 ;

const int UI\Draw\Text\Font\Stretch::Normal = 4 ;

const int UI\Draw\Text\Font\Stretch::SemiExpanded = 5 ;

const int UI\Draw\Text\Font\Stretch::Expanded = 6 ;

const int UI\Draw\Text\Font\Stretch::ExtraExpanded = 7 ;

const int UI\Draw\Text\Font\Stretch::UltraExpanded = 8 ;

}

简介

类摘要

UI\Draw\Line\Cap

final class UI\Draw\Line\Cap {

/* Constants */

const int UI\Draw\Line\Cap::Flat ;

const int UI\Draw\Line\Cap::Round ;

const int UI\Draw\Line\Cap::Square ;

}

简介

类摘要

UI\Draw\Line\Join

final class UI\Draw\Line\Join {

/* Constants */

const int UI\Draw\Line\Join::Miter ;

const int UI\Draw\Line\Join::Round ;

const int UI\Draw\Line\Join::Bevel ;

}

简介

类摘要

UI\Key

final class UI\Key {

/* Constants */

const int UI\Key::Escape ;

const int UI\Key::Insert ;

const int UI\Key::Delete ;

const int UI\Key::Home ;

const int UI\Key::End ;

const int UI\Key::PageUp ;

const int UI\Key::PageDown ;

const int UI\Key::Up ;

const int UI\Key::Down ;

const int UI\Key::Left ;

const int UI\Key::Right ;

const int UI\Key::F1 ;

const int UI\Key::F2 ;

const int UI\Key::F3 ;

const int UI\Key::F4 ;

const int UI\Key::F5 ;

const int UI\Key::F6 ;

const int UI\Key::F7 ;

const int UI\Key::F8 ;

const int UI\Key::F9 ;

const int UI\Key::F10 ;

const int UI\Key::F11 ;

const int UI\Key::F12 ;

const int UI\Key::N0 ;

const int UI\Key::N1 ;

const int UI\Key::N2 ;

const int UI\Key::N3 ;

const int UI\Key::N4 ;

const int UI\Key::N5 ;

const int UI\Key::N6 ;

const int UI\Key::N7 ;

const int UI\Key::N8 ;

const int UI\Key::N9 ;

const int UI\Key::NDot ;

const int UI\Key::NEnter ;

const int UI\Key::NAdd ;

const int UI\Key::NSubtract ;

const int UI\Key::NMultiply ;

const int UI\Key::NDivide ;

}

简介

类摘要

UI\Exception\InvalidArgumentException

class UI\Exception\InvalidArgumentException extends InvalidArgumentException <span class="oointerface">implements <span class="interfacename">Throwable {

/* 继承的属性 */

protected string $message ;

protected int $code ;

protected string $file ;

protected int $line ;

/* 继承的方法 */

final public string <span class="methodname">Exception::getMessage ( <span class="methodparam">void )

final public Throwable <span class="methodname">Exception::getPrevious ( <span class="methodparam">void )

final public mixed <span class="methodname">Exception::getCode ( <span class="methodparam">void )

final public string <span class="methodname">Exception::getFile ( <span class="methodparam">void )

final public int <span class="methodname">Exception::getLine ( <span class="methodparam">void )

final public array <span class="methodname">Exception::getTrace ( <span class="methodparam">void )

final public string <span class="methodname">Exception::getTraceAsString ( <span class="methodparam">void )

public string Exception::__toString ( <span class="methodparam">void )

final <span class="modifier">private void <span class="methodname">Exception::__clone ( <span class="methodparam">void )

}

简介

类摘要

UI\Exception\RuntimeException

class UI\Exception\RuntimeException extends RuntimeException implements <span class="interfacename">Throwable {

/* 继承的属性 */

protected string $message ;

protected int $code ;

protected string $file ;

protected int $line ;

/* 继承的方法 */

final public string <span class="methodname">Exception::getMessage ( <span class="methodparam">void )

final public Throwable <span class="methodname">Exception::getPrevious ( <span class="methodparam">void )

final public mixed <span class="methodname">Exception::getCode ( <span class="methodparam">void )

final public string <span class="methodname">Exception::getFile ( <span class="methodparam">void )

final public int <span class="methodname">Exception::getLine ( <span class="methodparam">void )

final public array <span class="methodname">Exception::getTrace ( <span class="methodparam">void )

final public string <span class="methodname">Exception::getTraceAsString ( <span class="methodparam">void )

public string Exception::__toString ( <span class="methodparam">void )

final <span class="modifier">private void <span class="methodname">Exception::__clone ( <span class="methodparam">void )

}


本站为非盈利网站,作品由网友提供上传,如无意中有侵犯您的版权,请联系删除