UIInhaltsverzeichnis
Represents a position (x,y)EinführungPoints are used throughout UI to represent co-ordinates on a screen, control, or area. KlassenbeschreibungUI\Point
final
class UI\Point
{
/* Eigenschaften */
public
$x
;
public
$y
;
/* Constructor */
public __construct
( float
$x
, float $y
)/* Methoden */
public static UI\Point at
( float
$point
)
public static UI\Point at
( UI\Size
$size
)
public float getX
( void
)
public float getY
( void
)
public setX
( float
$point
)
public setY
( float
}$point
)Eigenschaften
Represents dimenstions (width, height)EinführungSizes are used throughout UI to represent the size of a screen, control, or area. KlassenbeschreibungUI\Size
final
class UI\Size
{
/* Eigenschaften */
public
$width
;
public
$height
;
/* Constructor */
public __construct
( float
$width
, float $height
)/* Methoden */
public float getHeight
( void
)
public float getWidth
( void
)
public static UI\Size of
( float
$size
)
public static UI\Size of
( UI\Point
$point
)
public setHeight
( float
$size
)
public setWidth
( float
}$size
)Eigenschaften
WindowEinführungRepresents a UI Window KlassenbeschreibungUI\Window
class UI\Window
extends
UI\Control
{
/* Eigenschaften */
protected
$controls
;
/* Constructor */
public __construct
( string
$title
, Size $size
[, boolean $menu = false
] )/* Methoden */
public add
( UI\Control
$control
)
public error
( string
$title
, string $msg
)
public UI\Size getSize
( void
)
public string getTitle
( void
)
public bool hasBorders
( void
)
public bool hasMargin
( void
)
public bool isFullScreen
( void
)
public msg
( string
$title
, string $msg
)
protected int onClosing
( void
)
public string open
( void
)
public string save
( void
)
public setBorders
( boolean
$borders
)
public setFullScreen
( boolean
$full
)
public setMargin
( boolean
$margin
)
public setSize
( UI\Size
$size
)
public setTitle
( string
$title
)/* Geerbte Methoden */
public UI\Control::destroy
( void
)
public UI\Control::disable
( void
)
public UI\Control::enable
( void
)
public UI\Control UI\Control::getParent
( void
)
public int UI\Control::getTopLevel
( void
)
public UI\Control::hide
( void
)
public bool UI\Control::isEnabled
( void
)
public bool UI\Control::isVisible
( void
)
public UI\Control::setParent
( UI\Control
$parent
)
public UI\Control::show
( void
)
}Eigenschaften
ControlEinführungThis is the closed base class for all UI Controls. KlassenbeschreibungUI\Control
final
class UI\Control
{
/* Methoden */
public destroy
( void
)
public disable
( void
)
public enable
( void
)
public UI\Control getParent
( void
)
public int getTopLevel
( void
)
public hide
( void
)
public bool isEnabled
( void
)
public bool isVisible
( void
)
public setParent
( UI\Control
$parent
)
public show
( void
)
}MenuMenu ItemAreaEinführungAn Area represents a canvas which can be used to draw, and respond to mouse and key events. KlassenbeschreibungUI\Area
class UI\Area
extends
UI\Control
{
/* Constants */
const
integer
UI\Area::Ctrl
;
const
integer
UI\Area::Alt
;
const
integer
UI\Area::Shift
;
const
integer
UI\Area::Super
;
const
integer
UI\Area::Down
;
const
integer
UI\Area::Up
;
/* Methoden */
protected onDraw
( UI\Draw\Pen
$pen
, UI\Size $areaSize
, UI\Point $clipPoint
, UI\Size $clipSize
)
protected onKey
( string
$key
, integer $ext
, integer $flags
)
protected onMouse
( UI\Point
$areaPoint
, UI\Size $areaSize
, integer $flags
)
public redraw
( void
)
public scrollTo
( UI\Point
$point
, UI\Size $size
)
public setSize
( UI\Size
$size
)/* Geerbte Methoden */
public UI\Control::destroy
( void
)
public UI\Control::disable
( void
)
public UI\Control::enable
( void
)
public UI\Control UI\Control::getParent
( void
)
public int UI\Control::getTopLevel
( void
)
public UI\Control::hide
( void
)
public bool UI\Control::isEnabled
( void
)
public bool UI\Control::isVisible
( void
)
public UI\Control::setParent
( UI\Control
$parent
)
public UI\Control::show
( void
)
}Vordefinierte Konstanten
Execution SchedulerEinführungThis facility schedules repetitive execution of a callback, useful for animations and other such activities. KlassenbeschreibungUI\Executor
abstract
class UI\Executor
{
/* Constructor */
public __construct
( void
)
public __construct
( integer
$microseconds
)
public __construct
( integer
$seconds
, integer $microseconds
)/* Methoden */
public void kill
( void
)
abstract protected void onExecute
( void
)
public bool setInterval
( integer
$microseconds
)
public bool setInterval
( integer
}$seconds
, integer $microseconds
)Tab ControlEinführungA Tab can contain many pages of Controls, each with a title, each selectable by the user. KlassenbeschreibungUI\Controls\Tab
class UI\Controls\Tab
extends
UI\Control
{
/* Eigenschaften */
protected
$controls
;
/* Methoden */
public integer append
( string
$name
, UI\Control $control
)
public boolean delete
( integer
$index
)
public bool hasMargin
( integer
$page
)
public insertAt
( string
$name
, integer $page
, UI\Control $control
)
public integer pages
( void
)
public setMargin
( integer
$page
, boolean $margin
)/* Geerbte Methoden */
public UI\Control::destroy
( void
)
public UI\Control::disable
( void
)
public UI\Control::enable
( void
)
public UI\Control UI\Control::getParent
( void
)
public int UI\Control::getTopLevel
( void
)
public UI\Control::hide
( void
)
public bool UI\Control::isEnabled
( void
)
public bool UI\Control::isVisible
( void
)
public UI\Control::setParent
( UI\Control
$parent
)
public UI\Control::show
( void
)
}Eigenschaften
Check ControlEinführungA Check is a labelled checkable box KlassenbeschreibungUI\Controls\Check
class UI\Controls\Check
extends
UI\Control
{
/* Constructor */
public __construct
( string
$text
)/* Methoden */
public string getText
( void
)
public bool isChecked
( void
)
protected onToggle
( void
)
public setChecked
( boolean
$checked
)
public setText
( string
$text
)/* Geerbte Methoden */
public UI\Control::destroy
( void
)
public UI\Control::disable
( void
)
public UI\Control::enable
( void
)
public UI\Control UI\Control::getParent
( void
)
public int UI\Control::getTopLevel
( void
)
public UI\Control::hide
( void
)
public bool UI\Control::isEnabled
( void
)
public bool UI\Control::isVisible
( void
)
public UI\Control::setParent
( UI\Control
$parent
)
public UI\Control::show
( void
)
}Button ControlEinführungRepresents a labelled clickable button KlassenbeschreibungUI\Controls\Button
class UI\Controls\Button
extends
UI\Control
{
/* Constructor */
public __construct
( string
$text
)/* Methoden */
public string getText
( void
)
protected onClick
( void
)
public setText
( string
$text
)/* Geerbte Methoden */
public UI\Control::destroy
( void
)
public UI\Control::disable
( void
)
public UI\Control::enable
( void
)
public UI\Control UI\Control::getParent
( void
)
public int UI\Control::getTopLevel
( void
)
public UI\Control::hide
( void
)
public bool UI\Control::isEnabled
( void
)
public bool UI\Control::isVisible
( void
)
public UI\Control::setParent
( UI\Control
$parent
)
public UI\Control::show
( void
)
}ColorButton ControlEinführungA Color Button is a button which displays a color picker when clicked KlassenbeschreibungUI\Controls\ColorButton
class UI\Controls\ColorButton
extends
UI\Control
{
/* Methoden */
public UI\Color getColor
( void
)
protected onChange
( void
)
public setColor
( UI\Draw\Color
$color
)
public setColor
( integer
$color
)/* Geerbte Methoden */
public UI\Control::destroy
( void
)
public UI\Control::disable
( void
)
public UI\Control::enable
( void
)
public UI\Control UI\Control::getParent
( void
)
public int UI\Control::getTopLevel
( void
)
public UI\Control::hide
( void
)
public bool UI\Control::isEnabled
( void
)
public bool UI\Control::isVisible
( void
)
public UI\Control::setParent
( UI\Control
$parent
)
public UI\Control::show
( void
)
}Label ControlEinführungA Label is a single line of text, meant to identify, for the user, some element of the interface. KlassenbeschreibungUI\Controls\Label
class UI\Controls\Label
extends
UI\Control
{
/* Constructor */
public __construct
( string
$text
)/* Methoden */
public string getText
( void
)
public setText
( string
$text
)/* Geerbte Methoden */
public UI\Control::destroy
( void
)
public UI\Control::disable
( void
)
public UI\Control::enable
( void
)
public UI\Control UI\Control::getParent
( void
)
public int UI\Control::getTopLevel
( void
)
public UI\Control::hide
( void
)
public bool UI\Control::isEnabled
( void
)
public bool UI\Control::isVisible
( void
)
public UI\Control::setParent
( UI\Control
$parent
)
public UI\Control::show
( void
)
}Entry ControlEinführungAn Entry is a text entry control, suitable for entering plain text, passwords, or search terms. KlassenbeschreibungUI\Controls\Entry
class UI\Controls\Entry
extends
UI\Control
{
/* Constants */
const
integer
UI\Controls\Entry::Normal
;
const
integer
UI\Controls\Entry::Password
;
const
integer
UI\Controls\Entry::Search
;
/* Constructor */
public __construct
([ integer
$type = UI\Controls\Entry::Normal
] )/* Methoden */
public string getText
( void
)
public bool isReadOnly
( void
)
protected onChange
( void
)
public setReadOnly
( boolean
$readOnly
)
public setText
( string
$text
)/* Geerbte Methoden */
public UI\Control::destroy
( void
)
public UI\Control::disable
( void
)
public UI\Control::enable
( void
)
public UI\Control UI\Control::getParent
( void
)
public int UI\Control::getTopLevel
( void
)
public UI\Control::hide
( void
)
public bool UI\Control::isEnabled
( void
)
public bool UI\Control::isVisible
( void
)
public UI\Control::setParent
( UI\Control
$parent
)
public UI\Control::show
( void
)
}Vordefinierte Konstanten
MultilineEntry ControlEinführungA Multiline Entry is a text entry control able to hold multiple lines of text, with or without wrapping. KlassenbeschreibungUI\Controls\MultilineEntry
class UI\Controls\MultilineEntry
extends
UI\Control
{
/* Constants */
const
integer
UI\Controls\MultilineEntry::Wrap
;
const
integer
UI\Controls\MultilineEntry::NoWrap
;
/* Constructor */
public __construct
([ integer
$type
] )/* Methoden */
public append
( string
$text
)
public string getText
( void
)
public bool isReadOnly
( void
)
protected onChange
( void
)
public setReadOnly
( boolean
$readOnly
)
public setText
( string
$text
)/* Geerbte Methoden */
public UI\Control::destroy
( void
)
public UI\Control::disable
( void
)
public UI\Control::enable
( void
)
public UI\Control UI\Control::getParent
( void
)
public int UI\Control::getTopLevel
( void
)
public UI\Control::hide
( void
)
public bool UI\Control::isEnabled
( void
)
public bool UI\Control::isVisible
( void
)
public UI\Control::setParent
( UI\Control
$parent
)
public UI\Control::show
( void
)
}Vordefinierte Konstanten
Spin ControlEinführungA Spin box is a text box with an up-down control which changes the integer value in the box, within a defined range KlassenbeschreibungUI\Controls\Spin
class UI\Controls\Spin
extends
UI\Control
{
/* Constructor */
public __construct
( integer
$min
, integer $max
)/* Methoden */
public int getValue
( void
)
protected onChange
( void
)
public setValue
( integer
$value
)/* Geerbte Methoden */
public UI\Control::destroy
( void
)
public UI\Control::disable
( void
)
public UI\Control::enable
( void
)
public UI\Control UI\Control::getParent
( void
)
public int UI\Control::getTopLevel
( void
)
public UI\Control::hide
( void
)
public bool UI\Control::isEnabled
( void
)
public bool UI\Control::isVisible
( void
)
public UI\Control::setParent
( UI\Control
$parent
)
public UI\Control::show
( void
)
}Slider ControlEinführungA 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. KlassenbeschreibungUI\Controls\Slider
class UI\Controls\Slider
extends
UI\Control
{
/* Constructor */
public __construct
( integer
$min
, integer $max
)/* Methoden */
public integer getValue
( void
)
protected onChange
( void
)
public setValue
( integer
$value
)/* Geerbte Methoden */
public UI\Control::destroy
( void
)
public UI\Control::disable
( void
)
public UI\Control::enable
( void
)
public UI\Control UI\Control::getParent
( void
)
public int UI\Control::getTopLevel
( void
)
public UI\Control::hide
( void
)
public bool UI\Control::isEnabled
( void
)
public bool UI\Control::isVisible
( void
)
public UI\Control::setParent
( UI\Control
$parent
)
public UI\Control::show
( void
)
}Progress ControlEinführungA Progress control is a familiar Progress bar: It represents progress as a percentage, with a possible range of 0 to 100 (inclusive). KlassenbeschreibungUI\Controls\Progress
class UI\Controls\Progress
extends
UI\Control
{
/* Methoden */
public int getValue
( void
)
public setValue
( integer
$value
)/* Geerbte Methoden */
public UI\Control::destroy
( void
)
public UI\Control::disable
( void
)
public UI\Control::enable
( void
)
public UI\Control UI\Control::getParent
( void
)
public int UI\Control::getTopLevel
( void
)
public UI\Control::hide
( void
)
public bool UI\Control::isEnabled
( void
)
public bool UI\Control::isVisible
( void
)
public UI\Control::setParent
( UI\Control
$parent
)
public UI\Control::show
( void
)
}Control SeparatorEinführungA Separator represents a control separator, it has no other function. KlassenbeschreibungUI\Controls\Separator
class UI\Controls\Separator
extends
UI\Control
{
/* Constants */
const
integer
UI\Controls\Separator::Horizontal
;
const
integer
UI\Controls\Separator::Vertical
;
/* Constructor */
public __construct
([ integer
$type = UI\Controls\Separator::Horizontal
] )/* Geerbte Methoden */
public UI\Control::destroy
( void
)
public UI\Control::disable
( void
)
public UI\Control::enable
( void
)
public UI\Control UI\Control::getParent
( void
)
public int UI\Control::getTopLevel
( void
)
public UI\Control::hide
( void
)
public bool UI\Control::isEnabled
( void
)
public bool UI\Control::isVisible
( void
)
public UI\Control::setParent
( UI\Control
$parent
)
public UI\Control::show
( void
)
}Vordefinierte Konstanten
Combo ControlEinführungA Combo control represents a list of options, like the familiar select HTML element. KlassenbeschreibungUI\Controls\Combo
class UI\Controls\Combo
extends
UI\Control
{
/* Methoden */
public append
( string
$text
)
public integer getSelected
( void
)
protected onSelected
( void
)
public setSelected
( integer
$index
)/* Geerbte Methoden */
public UI\Control::destroy
( void
)
public UI\Control::disable
( void
)
public UI\Control::enable
( void
)
public UI\Control UI\Control::getParent
( void
)
public int UI\Control::getTopLevel
( void
)
public UI\Control::hide
( void
)
public bool UI\Control::isEnabled
( void
)
public bool UI\Control::isVisible
( void
)
public UI\Control::setParent
( UI\Control
$parent
)
public UI\Control::show
( void
)
}EdiableCombo ControlEinführungAn Editable Combo is a Combo which allows the user to enter custom options KlassenbeschreibungUI\Controls\EditableCombo
class UI\Controls\EditableCombo
extends
UI\Control
{
/* Methoden */
public append
( string
$text
)
public string getText
( void
)
protected onChange
( void
)
public setText
( string
$text
)/* Geerbte Methoden */
public UI\Control::destroy
( void
)
public UI\Control::disable
( void
)
public UI\Control::enable
( void
)
public UI\Control UI\Control::getParent
( void
)
public int UI\Control::getTopLevel
( void
)
public UI\Control::hide
( void
)
public bool UI\Control::isEnabled
( void
)
public bool UI\Control::isVisible
( void
)
public UI\Control::setParent
( UI\Control
$parent
)
public UI\Control::show
( void
)
}Radio ControlEinführungA Radio is similar to the radio input type familiar from HTML KlassenbeschreibungUI\Controls\Radio
class UI\Controls\Radio
extends
UI\Control
{
/* Methoden */
public append
( string
$text
)
public integer getSelected
( void
)
protected onSelected
( void
)
public setSelected
( integer
$index
)/* Geerbte Methoden */
public UI\Control::destroy
( void
)
public UI\Control::disable
( void
)
public UI\Control::enable
( void
)
public UI\Control UI\Control::getParent
( void
)
public int UI\Control::getTopLevel
( void
)
public UI\Control::hide
( void
)
public bool UI\Control::isEnabled
( void
)
public bool UI\Control::isVisible
( void
)
public UI\Control::setParent
( UI\Control
$parent
)
public UI\Control::show
( void
)
}Picker ControlEinführungA Picker represents a button which when clicked presents a native Date/Time/DateTime Picker interface to the user. KlassenbeschreibungUI\Controls\Picker
class UI\Controls\Picker
extends
UI\Control
{
/* Constants */
const
integer
UI\Controls\Picker::Date
;
const
integer
UI\Controls\Picker::Time
;
const
integer
UI\Controls\Picker::DateTime
;
/* Constructor */
public __construct
([ integer
$type = UI\Controls\Picker::Date
] )/* Geerbte Methoden */
public UI\Control::destroy
( void
)
public UI\Control::disable
( void
)
public UI\Control::enable
( void
)
public UI\Control UI\Control::getParent
( void
)
public int UI\Control::getTopLevel
( void
)
public UI\Control::hide
( void
)
public bool UI\Control::isEnabled
( void
)
public bool UI\Control::isVisible
( void
)
public UI\Control::setParent
( UI\Control
$parent
)
public UI\Control::show
( void
)
}Vordefinierte Konstanten
Control Form (Arrangement)EinführungA Form is a control which allows the arrangement of other controls into a familiar layout (the form). KlassenbeschreibungUI\Controls\Form
class UI\Controls\Form
extends
UI\Control
{
/* Eigenschaften */
protected
$controls
;
/* Methoden */
public integer append
( string
$label
, UI\Control $control
[, boolean $stretchy = false
] )
public boolean delete
( integer
$index
)
public bool isPadded
( void
)
public setPadded
( boolean
$padded
)/* Geerbte Methoden */
public UI\Control::destroy
( void
)
public UI\Control::disable
( void
)
public UI\Control::enable
( void
)
public UI\Control UI\Control::getParent
( void
)
public int UI\Control::getTopLevel
( void
)
public UI\Control::hide
( void
)
public bool UI\Control::isEnabled
( void
)
public bool UI\Control::isVisible
( void
)
public UI\Control::setParent
( UI\Control
$parent
)
public UI\Control::show
( void
)
}Eigenschaften
Control Grid (Arrangement)EinführungA Grid is a control which is allows the arrangement of children into a grid KlassenbeschreibungUI\Controls\Grid
class UI\Controls\Grid
extends
UI\Control
{
/* Constants */
const
integer
UI\Controls\Grid::Fill
;
const
integer
UI\Controls\Grid::Start
;
const
integer
UI\Controls\Grid::Center
;
const
integer
UI\Controls\Grid::End
;
const
integer
UI\Controls\Grid::Leading
;
const
integer
UI\Controls\Grid::Top
;
const
integer
UI\Controls\Grid::Trailing
;
const
integer
UI\Controls\Grid::Bottom
;
/* Eigenschaften */
protected
$controls
;
/* Methoden */
public append
( UI\Control
$control
, integer $left
, integer $top
, integer $xspan
, integer $yspan
, boolean $hexpand
, integer $halign
, boolean $vexpand
, integer $valign
)
public bool isPadded
( void
)
public setPadded
( boolean
$padding
)/* Geerbte Methoden */
public UI\Control::destroy
( void
)
public UI\Control::disable
( void
)
public UI\Control::enable
( void
)
public UI\Control UI\Control::getParent
( void
)
public int UI\Control::getTopLevel
( void
)
public UI\Control::hide
( void
)
public bool UI\Control::isEnabled
( void
)
public bool UI\Control::isVisible
( void
)
public UI\Control::setParent
( UI\Control
$parent
)
public UI\Control::show
( void
)
}Vordefinierte Konstanten
Eigenschaften
Control Group (Arrangement)EinführungA Group is a titled container for child controls KlassenbeschreibungUI\Controls\Group
class UI\Controls\Group
extends
UI\Control
{
/* Eigenschaften */
protected
$controls
;
/* Constructor */
public __construct
( string
$title
)/* Methoden */
public append
( UI\Control
$control
)
public string getTitle
( void
)
public bool hasMargin
( void
)
public setMargin
( boolean
$margin
)
public setTitle
( string
$title
)/* Geerbte Methoden */
public UI\Control::destroy
( void
)
public UI\Control::disable
( void
)
public UI\Control::enable
( void
)
public UI\Control UI\Control::getParent
( void
)
public int UI\Control::getTopLevel
( void
)
public UI\Control::hide
( void
)
public bool UI\Control::isEnabled
( void
)
public bool UI\Control::isVisible
( void
)
public UI\Control::setParent
( UI\Control
$parent
)
public UI\Control::show
( void
)
}Eigenschaften
Control Box (Arrangement)EinführungA Box allows the arrangement of other controls KlassenbeschreibungUI\Controls\Box
class UI\Controls\Box
extends
UI\Control
{
/* Constants */
const
integer
UI\Controls\Box::Vertical
;
const
integer
UI\Controls\Box::Horizontal
;
/* Eigenschaften */
protected
$controls
;
/* Constructor */
public __construct
([ integer
$orientation = UI\Controls\Box::Horizontal
] )/* Methoden */
public integer append
( Control
$control
[, boolean $stretchy = false
] )
public boolean delete
( integer
$index
)
public integer getOrientation
( void
)
public bool isPadded
( void
)
public setPadded
( boolean
$padded
)/* Geerbte Methoden */
public UI\Control::destroy
( void
)
public UI\Control::disable
( void
)
public UI\Control::enable
( void
)
public UI\Control UI\Control::getParent
( void
)
public int UI\Control::getTopLevel
( void
)
public UI\Control::hide
( void
)
public bool UI\Control::isEnabled
( void
)
public bool UI\Control::isVisible
( void
)
public UI\Control::setParent
( UI\Control
$parent
)
public UI\Control::show
( void
)
}Eigenschaften
Vordefinierte Konstanten
Draw PenEinführungThe Pen is passed to the Area Draw event handler, it is used for clipping, filling, stroking, and writing to Draw Paths. KlassenbeschreibungUI\Draw\Pen
final
class UI\Draw\Pen
{
/* Methoden */
public clip
( UI\Draw\Path
$path
)
public fill
( UI\Draw\Path
$path
, UI\Draw\Brush $with
)
public fill
( UI\Draw\Path
$path
, UI\Draw\Color $with
)
public fill
( UI\Draw\Path
$path
, integer $with
)
public restore
( void
)
public save
( void
)
public stroke
( UI\Draw\Path
$path
, UI\Draw\Brush $with
, UI\Draw\Stroke $stroke
)
public stroke
( UI\Draw\Path
$path
, UI\Draw\Color $with
, UI\Draw\Stroke $stroke
)
public stroke
( UI\Draw\Path
$path
, integer $with
, UI\Draw\Stroke $stroke
)
public transform
( UI\Draw\Matrix
$matrix
)
public write
( UI\Point
}$point
, UI\Draw\Text\Layout $layout
)Draw PathEinführungA Draw Path guides a Draw Pen, telling the Pen where to draw on an Area. KlassenbeschreibungUI\Draw\Path
class UI\Draw\Path
{
/* Constants */
const
integer
UI\Draw\Path::Winding
;
const
integer
UI\Draw\Path::Alternate
;
/* Constructor */
public __construct
([ integer
$mode = UI\Draw\Path::Winding
] )/* Methoden */
public addRectangle
( UI\Point
$point
, UI\Size $size
)
public arcTo
( UI\Point
$point
, float $radius
, float $angle
, float $sweep
, float $negative
)
public bezierTo
( UI\Point
$point
, float $radius
, float $angle
, float $sweep
, float $negative
)
public closeFigure
( void
)
public end
( void
)
public lineTo
( UI\Point
$point
, float $radius
, float $angle
, float $sweep
, float $negative
)
public newFigure
( UI\Point
$point
)
public newFigureWithArc
( UI\Point
}$point
, float $radius
, float $angle
, float $sweep
, float $negative
)Vordefinierte Konstanten
Draw MatrixEinführung
KlassenbeschreibungUI\Draw\Matrix
class UI\Draw\Matrix
{
/* Methoden */
public invert
( void
)
public bool isInvertible
( void
)
public UI\Draw\Matrix multiply
( UI\Draw\Matrix
$matrix
)
public rotate
( UI\Point
$point
, float $amount
)
public scale
( UI\Point
$center
, UI\Point $point
)
public skew
( UI\Point
$point
, UI\Point $amount
)
public translate
( UI\Point
}$point
)Color RepresentationEinführungRepresents RGBA colours, individual channels are accessible via public properties. KlassenbeschreibungUI\Draw\Color
class UI\Draw\Color
{
/* Constants */
const
integer
UI\Draw\Color::Red
;
const
integer
UI\Draw\Color::Green
;
const
integer
UI\Draw\Color::Blue
;
const
integer
UI\Draw\Color::Alpha
;
/* Eigenschaften */
public
$r
;
public
$g
;
public
$b
;
public
$a
;
/* Constructor */
public __construct
([ UI\Draw\Color
$color
] )
public __construct
([ integer
$color
] )/* Methoden */
public float getChannel
( integer
$channel
)
public void setChannel
( integer
}$channel
, float $value
)Eigenschaften
Vordefinierte Konstanten
Draw StrokeEinführungHolds the configuration for the Pen to perform a stroke KlassenbeschreibungUI\Draw\Stroke
class UI\Draw\Stroke
{
/* Constructor */
public __construct
([ integer
$cap = UI\Draw\Line\Cap::Flat
[, integer $join = UI\Draw\Line\Join::Miter
[, float $thickness = 1
[, float $miterLimit = 10
]]]] )/* Methoden */
public integer getCap
( void
)
public integer getJoin
( void
)
public float getMiterLimit
( void
)
public float getThickness
( void
)
public setCap
( integer
$cap
)
public setJoin
( integer
$join
)
public setMiterLimit
( float
$limit
)
public setThickness
( float
}$thickness
)BrushesEinführungRepresents a solid color brush KlassenbeschreibungUI\Draw\Brush
class UI\Draw\Brush
{
/* Constructor */
public __construct
( UI\Draw\Color
$color
)
public __construct
( integer
$color
)/* Methoden */
public UI\Draw\Color getColor
( void
)
public void setColor
( UI\Draw\Color
$color
)
public void setColor
( integer
}$color
)Gradient BrushesEinführungAbstract for gradient brushes KlassenbeschreibungUI\Draw\Brush\Gradient
abstract
class UI\Draw\Brush\Gradient
extends
UI\Draw\Brush
{
/* Methoden */
public integer addStop
( float
$position
, UI\Draw\Color $color
)
public integer addStop
( float
$position
, integer $color
)
public integer delStop
( integer
$index
)
public boolean setStop
( integer
$index
, float $position
, UI\Draw\Color $color
)
public boolean setStop
( integer
$index
, float $position
, integer $color
)/* Geerbte Methoden */
public UI\Draw\Color UI\Draw\Brush::getColor
( void
)
public void UI\Draw\Brush::setColor
( UI\Draw\Color
$color
)
public void UI\Draw\Brush::setColor
( integer
}$color
)Linear GradientEinführung
KlassenbeschreibungUI\Draw\Brush\LinearGradient
class UI\Draw\Brush\LinearGradient
extends
UI\Draw\Brush\Gradient
{
/* Constructor */
public __construct
( UI\Point
$start
, UI\Point $end
)/* Geerbte Methoden */
public integer UI\Draw\Brush\Gradient::addStop
( float
$position
, UI\Draw\Color $color
)
public integer UI\Draw\Brush\Gradient::addStop
( float
$position
, integer $color
)
public integer UI\Draw\Brush\Gradient::delStop
( integer
$index
)
public boolean UI\Draw\Brush\Gradient::setStop
( integer
$index
, float $position
, UI\Draw\Color $color
)
public boolean UI\Draw\Brush\Gradient::setStop
( integer
}$index
, float $position
, integer $color
)Radial GradientEinführung
KlassenbeschreibungUI\Draw\Brush\RadialGradient
class UI\Draw\Brush\RadialGradient
extends
UI\Draw\Brush\Gradient
{
/* Constructor */
public __construct
( UI\Point
$start
, UI\Point $outer
, float $radius
)/* Geerbte Methoden */
public integer UI\Draw\Brush\Gradient::addStop
( float
$position
, UI\Draw\Color $color
)
public integer UI\Draw\Brush\Gradient::addStop
( float
$position
, integer $color
)
public integer UI\Draw\Brush\Gradient::delStop
( integer
$index
)
public boolean UI\Draw\Brush\Gradient::setStop
( integer
$index
, float $position
, UI\Draw\Color $color
)
public boolean UI\Draw\Brush\Gradient::setStop
( integer
}$index
, float $position
, integer $color
)Represents Text LayoutEinführungA Text Layout represents the layout of text which will be drawn by the Pen KlassenbeschreibungUI\Draw\Text\Layout
class UI\Draw\Text\Layout
{
/* Constructor */
public __construct
( string
$text
, UI\Draw\Text\Font $font
, float $width
)/* Methoden */
public setColor
( UI\Draw\Color
$color
[, integer $start = 0
[, integer $end
]] )
public setColor
( integer
$color
[, integer $start = 0
[, integer $end
]] )
public setWidth
( float
}$width
)Represents a FontEinführungLoads a described font KlassenbeschreibungUI\Draw\Text\Font
class UI\Draw\Text\Font
{
/* Constructor */
public __construct
( UI\Draw\Text\Font\Descriptor
$descriptor
)/* Methoden */
public float getAscent
( void
)
public float getDescent
( void
)
public float getLeading
( void
)
public float getUnderlinePosition
( void
)
public float getUnderlineThickness
( void
)
}Font DescriptorEinführungDescribes a font KlassenbeschreibungUI\Draw\Text\Font\Descriptor
class UI\Draw\Text\Font\Descriptor
{
/* Constructor */
public __construct
( string
$family
, float $size
[, integer $weight = UI\Draw\Text\Font\Weight::Normal
[, integer $italic = UI\Draw\Text\Font\Italic::Normal
[, integer $stretch = UI\Draw\Text\Font\Stretch::Normal
]]] )/* Methoden */
public string getFamily
( void
)
public int getItalic
( void
)
public float getSize
( void
)
public int getStretch
( void
)
public int getWeight
( void
)
}Font Weight SettingsEinführung
KlassenbeschreibungUI\Draw\Text\Font\Weight
final
class UI\Draw\Text\Font\Weight
{
/* Constants */
const
integer
UI\Draw\Text\Font\Weight::Thin
;
const
integer
UI\Draw\Text\Font\Weight::UltraLight
;
const
integer
UI\Draw\Text\Font\Weight::Light
;
const
integer
UI\Draw\Text\Font\Weight::Book
;
const
integer
UI\Draw\Text\Font\Weight::Normal
;
const
integer
UI\Draw\Text\Font\Weight::Medium
;
const
integer
UI\Draw\Text\Font\Weight::SemiBold
;
const
integer
UI\Draw\Text\Font\Weight::Bold
;
const
integer
UI\Draw\Text\Font\Weight::UltraBold
;
const
integer
UI\Draw\Text\Font\Weight::Heavy
;
const
integer
UI\Draw\Text\Font\Weight::UltraHeavy
;
}Italic Font SettingsEinführung
KlassenbeschreibungUI\Draw\Text\Font\Italic
final
class UI\Draw\Text\Font\Italic
{
/* Constants */
const
integer
UI\Draw\Text\Font\Italic::Normal
= 0
;
const
integer
UI\Draw\Text\Font\Italic::Oblique
= 1
;
const
integer
UI\Draw\Text\Font\Italic::Italic
= 2
;
}Font Stretch SettingsEinführung
KlassenbeschreibungUI\Draw\Text\Font\Stretch
final
class UI\Draw\Text\Font\Stretch
{
/* Constants */
const
integer
UI\Draw\Text\Font\Stretch::UltraCondensed
= 0
;
const
integer
UI\Draw\Text\Font\Stretch::ExtraCondensed
= 1
;
const
integer
UI\Draw\Text\Font\Stretch::Condensed
= 2
;
const
integer
UI\Draw\Text\Font\Stretch::SemiCondensed
= 3
;
const
integer
UI\Draw\Text\Font\Stretch::Normal
= 4
;
const
integer
UI\Draw\Text\Font\Stretch::SemiExpanded
= 5
;
const
integer
UI\Draw\Text\Font\Stretch::Expanded
= 6
;
const
integer
UI\Draw\Text\Font\Stretch::ExtraExpanded
= 7
;
const
integer
UI\Draw\Text\Font\Stretch::UltraExpanded
= 8
;
}Line Cap SettingsEinführung
KlassenbeschreibungUI\Draw\Line\Cap
final
class UI\Draw\Line\Cap
{
/* Constants */
const
integer
UI\Draw\Line\Cap::Flat
;
const
integer
UI\Draw\Line\Cap::Round
;
const
integer
UI\Draw\Line\Cap::Square
;
}Line Join SettingsEinführung
KlassenbeschreibungUI\Draw\Line\Join
final
class UI\Draw\Line\Join
{
/* Constants */
const
integer
UI\Draw\Line\Join::Miter
;
const
integer
UI\Draw\Line\Join::Round
;
const
integer
UI\Draw\Line\Join::Bevel
;
}Key IdentifiersEinführung
KlassenbeschreibungUI\Key
final
class UI\Key
{
/* Constants */
const
integer
UI\Key::Escape
;
const
integer
UI\Key::Insert
;
const
integer
UI\Key::Delete
;
const
integer
UI\Key::Home
;
const
integer
UI\Key::End
;
const
integer
UI\Key::PageUp
;
const
integer
UI\Key::PageDown
;
const
integer
UI\Key::Up
;
const
integer
UI\Key::Down
;
const
integer
UI\Key::Left
;
const
integer
UI\Key::Right
;
const
integer
UI\Key::F1
;
const
integer
UI\Key::F2
;
const
integer
UI\Key::F3
;
const
integer
UI\Key::F4
;
const
integer
UI\Key::F5
;
const
integer
UI\Key::F6
;
const
integer
UI\Key::F7
;
const
integer
UI\Key::F8
;
const
integer
UI\Key::F9
;
const
integer
UI\Key::F10
;
const
integer
UI\Key::F11
;
const
integer
UI\Key::F12
;
const
integer
UI\Key::N0
;
const
integer
UI\Key::N1
;
const
integer
UI\Key::N2
;
const
integer
UI\Key::N3
;
const
integer
UI\Key::N4
;
const
integer
UI\Key::N5
;
const
integer
UI\Key::N6
;
const
integer
UI\Key::N7
;
const
integer
UI\Key::N8
;
const
integer
UI\Key::N9
;
const
integer
UI\Key::NDot
;
const
integer
UI\Key::NEnter
;
const
integer
UI\Key::NAdd
;
const
integer
UI\Key::NSubtract
;
const
integer
UI\Key::NMultiply
;
const
integer
UI\Key::NDivide
;
}InvalidArgumentExceptionEinführung
KlassenbeschreibungUI\Exception\InvalidArgumentException
class UI\Exception\InvalidArgumentException
extends
InvalidArgumentException
implements
Throwable
{
/* Geerbte Eigenschaften */
protected
string
$message
;
protected
int
$code
;
protected
string
$file
;
protected
int
$line
;
/* Geerbte Methoden */
final public string Exception::getMessage
( void
)
final public Exception Exception::getPrevious
( void
)
final public mixed Exception::getCode
( void
)
final public string Exception::getFile
( void
)
final public int Exception::getLine
( void
)
final public array Exception::getTrace
( void
)
final public string Exception::getTraceAsString
( void
)
public string Exception::__toString
( void
)
final private void Exception::__clone
( void
)
}RuntimeExceptionEinführung
KlassenbeschreibungUI\Exception\RuntimeException
class UI\Exception\RuntimeException
extends
RuntimeException
implements
Throwable
{
/* Geerbte Eigenschaften */
protected
string
$message
;
protected
int
$code
;
protected
string
$file
;
protected
int
$line
;
/* Geerbte Methoden */
final public string Exception::getMessage
( void
)
final public Exception Exception::getPrevious
( void
)
final public mixed Exception::getCode
( void
)
final public string Exception::getFile
( void
)
final public int Exception::getLine
( void
)
final public array Exception::getTrace
( void
)
final public string Exception::getTraceAsString
( void
)
public string Exception::__toString
( void
)
final private void Exception::__clone
( void
)
} |