UI目次
Represents a position (x,y)はじめに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 __construct(float
$x , float $y )/* メソッド */
public static UI\Point at(float
$point )public static UI\Point at(UI\Size
$size )public float getX()
public float getY()
public setX(float
$point )public setY(float
}$point )プロパティ
Represents dimensions (width, height)はじめに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 __construct(float
$width , float $height )/* メソッド */
public float getHeight()
public float getWidth()
public static UI\Size of(float
$size )public static UI\Size of(UI\Point
$point )public setHeight(float
$size )public setWidth(float
}$size )プロパティ
WindowはじめにRepresents a UI Window クラス概要UI\Window
class UI\Window
extends
UI\Control
{
/* プロパティ */
protected
$controls;
/* Constructor */
public __construct(string
$title , Size $size , bool $menu = false )/* メソッド */
public add(UI\Control
$control )public error(string
$title , string $msg )public UI\Size getSize()
public string getTitle()
public bool hasBorders()
public bool hasMargin()
public bool isFullScreen()
public msg(string
$title , string $msg )protected int onClosing()
public string open()
public string save()
public setBorders(bool
$borders )public setFullScreen(bool
$full )public setMargin(bool
$margin )public setSize(UI\Size
$size )public setTitle(string
$title )/* 継承したメソッド */
public UI\Control::destroy()
public UI\Control::disable()
public UI\Control::enable()
public UI\Control UI\Control::getParent()
public int UI\Control::getTopLevel()
public UI\Control::hide()
public bool UI\Control::isEnabled()
public bool UI\Control::isVisible()
public UI\Control::setParent(UI\Control
$parent )public UI\Control::show()
}プロパティ
ControlはじめにThis is the closed base class for all UI Controls. クラス概要UI\Control
final
class UI\Control
{
/* メソッド */
public destroy()
public disable()
public enable()
public UI\Control getParent()
public int getTopLevel()
public hide()
public bool isEnabled()
public bool isVisible()
public setParent(UI\Control
$parent )public show()
}MenuMenu ItemAreaはじめに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
{
/* 定数 */
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 onDraw(
UI\Draw\Pen $pen ,UI\Size $areaSize ,UI\Point $clipPoint ,UI\Size $clipSize ) protected onKey(string
$key , int $ext , int $flags )protected onMouse(UI\Point
$areaPoint , UI\Size $areaSize , int $flags )public redraw()
public scrollTo(UI\Point
$point , UI\Size $size )public setSize(UI\Size
$size )/* 継承したメソッド */
public UI\Control::destroy()
public UI\Control::disable()
public UI\Control::enable()
public UI\Control UI\Control::getParent()
public int UI\Control::getTopLevel()
public UI\Control::hide()
public bool UI\Control::isEnabled()
public bool UI\Control::isVisible()
public UI\Control::setParent(UI\Control
$parent )public UI\Control::show()
}定義済み定数
Execution SchedulerはじめにThis facility schedules repetitive execution of a callback, useful for animations and other such activities. クラス概要UI\Executor
abstract
class UI\Executor
{
/* Constructor */
public __construct()
public __construct(int
$microseconds )public __construct(int
$seconds , int $microseconds )/* メソッド */
public void kill()
abstract protected void onExecute()
public bool setInterval(int
$microseconds )public bool setInterval(int
}$seconds , int $microseconds )Tab ControlはじめにA Tab can contain many pages of Controls, each with a title, each selectable by the user. クラス概要UI\Controls\Tab
class UI\Controls\Tab
extends
UI\Control
{
/* プロパティ */
protected
$controls;
/* メソッド */
public int append(string
$name , UI\Control $control )public bool delete(int
$index )public bool hasMargin(int
$page )public insertAt(string
$name , int $page , UI\Control $control )public int pages()
public setMargin(int
$page , bool $margin )/* 継承したメソッド */
public UI\Control::destroy()
public UI\Control::disable()
public UI\Control::enable()
public UI\Control UI\Control::getParent()
public int UI\Control::getTopLevel()
public UI\Control::hide()
public bool UI\Control::isEnabled()
public bool UI\Control::isVisible()
public UI\Control::setParent(UI\Control
$parent )public UI\Control::show()
}プロパティ
Check ControlはじめにA Check is a labelled checkable box クラス概要UI\Controls\Check
class UI\Controls\Check
extends
UI\Control
{
/* Constructor */
public __construct(string
$text )/* メソッド */
public string getText()
public bool isChecked()
protected onToggle()
public setChecked(bool
$checked )public setText(string
$text )/* 継承したメソッド */
public UI\Control::destroy()
public UI\Control::disable()
public UI\Control::enable()
public UI\Control UI\Control::getParent()
public int UI\Control::getTopLevel()
public UI\Control::hide()
public bool UI\Control::isEnabled()
public bool UI\Control::isVisible()
public UI\Control::setParent(UI\Control
$parent )public UI\Control::show()
}Button ControlはじめにRepresents a labelled clickable button クラス概要UI\Controls\Button
class UI\Controls\Button
extends
UI\Control
{
/* Constructor */
public __construct(string
$text )/* メソッド */
public string getText()
protected onClick()
public setText(string
$text )/* 継承したメソッド */
public UI\Control::destroy()
public UI\Control::disable()
public UI\Control::enable()
public UI\Control UI\Control::getParent()
public int UI\Control::getTopLevel()
public UI\Control::hide()
public bool UI\Control::isEnabled()
public bool UI\Control::isVisible()
public UI\Control::setParent(UI\Control
$parent )public UI\Control::show()
}ColorButton ControlはじめにA Color Button is a button which displays a color picker when clicked クラス概要UI\Controls\ColorButton
class UI\Controls\ColorButton
extends
UI\Control
{
/* メソッド */
public UI\Color getColor()
protected onChange()
public setColor(UI\Draw\Color
$color )public setColor(int
$color )/* 継承したメソッド */
public UI\Control::destroy()
public UI\Control::disable()
public UI\Control::enable()
public UI\Control UI\Control::getParent()
public int UI\Control::getTopLevel()
public UI\Control::hide()
public bool UI\Control::isEnabled()
public bool UI\Control::isVisible()
public UI\Control::setParent(UI\Control
$parent )public UI\Control::show()
}Label Controlはじめに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
extends
UI\Control
{
/* Constructor */
public __construct(string
$text )/* メソッド */
public string getText()
public setText(string
$text )/* 継承したメソッド */
public UI\Control::destroy()
public UI\Control::disable()
public UI\Control::enable()
public UI\Control UI\Control::getParent()
public int UI\Control::getTopLevel()
public UI\Control::hide()
public bool UI\Control::isEnabled()
public bool UI\Control::isVisible()
public UI\Control::setParent(UI\Control
$parent )public UI\Control::show()
}Entry ControlはじめにAn Entry is a text entry control, suitable for entering plain text, passwords, or search terms. クラス概要UI\Controls\Entry
class UI\Controls\Entry
extends
UI\Control
{
/* 定数 */
const
int
UI\Controls\Entry::Normal;
const
int
UI\Controls\Entry::Password;
const
int
UI\Controls\Entry::Search;
/* Constructor */
public __construct(int
$type = UI\Controls\Entry::Normal)/* メソッド */
public string getText()
public bool isReadOnly()
protected onChange()
public setReadOnly(bool
$readOnly )public setText(string
$text )/* 継承したメソッド */
public UI\Control::destroy()
public UI\Control::disable()
public UI\Control::enable()
public UI\Control UI\Control::getParent()
public int UI\Control::getTopLevel()
public UI\Control::hide()
public bool UI\Control::isEnabled()
public bool UI\Control::isVisible()
public UI\Control::setParent(UI\Control
$parent )public UI\Control::show()
}定義済み定数
MultilineEntry Controlはじめに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
{
/* 定数 */
const
int
UI\Controls\MultilineEntry::Wrap;
const
int
UI\Controls\MultilineEntry::NoWrap;
/* Constructor */
public __construct(int
$type = ?)/* メソッド */
public append(string
$text )public string getText()
public bool isReadOnly()
protected onChange()
public setReadOnly(bool
$readOnly )public setText(string
$text )/* 継承したメソッド */
public UI\Control::destroy()
public UI\Control::disable()
public UI\Control::enable()
public UI\Control UI\Control::getParent()
public int UI\Control::getTopLevel()
public UI\Control::hide()
public bool UI\Control::isEnabled()
public bool UI\Control::isVisible()
public UI\Control::setParent(UI\Control
$parent )public UI\Control::show()
}定義済み定数
Spin Controlはじめに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
extends
UI\Control
{
/* Constructor */
public __construct(int
$min , int $max )/* メソッド */
public int getValue()
protected onChange()
public setValue(int
$value )/* 継承したメソッド */
public UI\Control::destroy()
public UI\Control::disable()
public UI\Control::enable()
public UI\Control UI\Control::getParent()
public int UI\Control::getTopLevel()
public UI\Control::hide()
public bool UI\Control::isEnabled()
public bool UI\Control::isVisible()
public UI\Control::setParent(UI\Control
$parent )public UI\Control::show()
}Slider Controlはじめに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
extends
UI\Control
{
/* Constructor */
public __construct(int
$min , int $max )/* メソッド */
public int getValue()
protected onChange()
public setValue(int
$value )/* 継承したメソッド */
public UI\Control::destroy()
public UI\Control::disable()
public UI\Control::enable()
public UI\Control UI\Control::getParent()
public int UI\Control::getTopLevel()
public UI\Control::hide()
public bool UI\Control::isEnabled()
public bool UI\Control::isVisible()
public UI\Control::setParent(UI\Control
$parent )public UI\Control::show()
}Progress Controlはじめに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
extends
UI\Control
{
/* メソッド */
public int getValue()
public setValue(int
$value )/* 継承したメソッド */
public UI\Control::destroy()
public UI\Control::disable()
public UI\Control::enable()
public UI\Control UI\Control::getParent()
public int UI\Control::getTopLevel()
public UI\Control::hide()
public bool UI\Control::isEnabled()
public bool UI\Control::isVisible()
public UI\Control::setParent(UI\Control
$parent )public UI\Control::show()
}Control SeparatorはじめにA Separator represents a control separator, it has no other function. クラス概要UI\Controls\Separator
class UI\Controls\Separator
extends
UI\Control
{
/* 定数 */
const
int
UI\Controls\Separator::Horizontal;
const
int
UI\Controls\Separator::Vertical;
/* Constructor */
public __construct(int
$type = UI\Controls\Separator::Horizontal)/* 継承したメソッド */
public UI\Control::destroy()
public UI\Control::disable()
public UI\Control::enable()
public UI\Control UI\Control::getParent()
public int UI\Control::getTopLevel()
public UI\Control::hide()
public bool UI\Control::isEnabled()
public bool UI\Control::isVisible()
public UI\Control::setParent(UI\Control
$parent )public UI\Control::show()
}定義済み定数
Combo ControlはじめにA Combo control represents a list of options, like the familiar select HTML element. クラス概要UI\Controls\Combo
class UI\Controls\Combo
extends
UI\Control
{
/* メソッド */
public append(string
$text )public int getSelected()
protected onSelected()
public setSelected(int
$index )/* 継承したメソッド */
public UI\Control::destroy()
public UI\Control::disable()
public UI\Control::enable()
public UI\Control UI\Control::getParent()
public int UI\Control::getTopLevel()
public UI\Control::hide()
public bool UI\Control::isEnabled()
public bool UI\Control::isVisible()
public UI\Control::setParent(UI\Control
$parent )public UI\Control::show()
}EdiableCombo Controlはじめに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 append(string
$text )public string getText()
protected onChange()
public setText(string
$text )/* 継承したメソッド */
public UI\Control::destroy()
public UI\Control::disable()
public UI\Control::enable()
public UI\Control UI\Control::getParent()
public int UI\Control::getTopLevel()
public UI\Control::hide()
public bool UI\Control::isEnabled()
public bool UI\Control::isVisible()
public UI\Control::setParent(UI\Control
$parent )public UI\Control::show()
}Radio ControlはじめにA Radio is similar to the radio input type familiar from HTML クラス概要UI\Controls\Radio
class UI\Controls\Radio
extends
UI\Control
{
/* メソッド */
public append(string
$text )public int getSelected()
protected onSelected()
public setSelected(int
$index )/* 継承したメソッド */
public UI\Control::destroy()
public UI\Control::disable()
public UI\Control::enable()
public UI\Control UI\Control::getParent()
public int UI\Control::getTopLevel()
public UI\Control::hide()
public bool UI\Control::isEnabled()
public bool UI\Control::isVisible()
public UI\Control::setParent(UI\Control
$parent )public UI\Control::show()
}Picker Controlはじめに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
extends
UI\Control
{
/* 定数 */
const
int
UI\Controls\Picker::Date;
const
int
UI\Controls\Picker::Time;
const
int
UI\Controls\Picker::DateTime;
/* Constructor */
public __construct(int
$type = UI\Controls\Picker::Date)/* 継承したメソッド */
public UI\Control::destroy()
public UI\Control::disable()
public UI\Control::enable()
public UI\Control UI\Control::getParent()
public int UI\Control::getTopLevel()
public UI\Control::hide()
public bool UI\Control::isEnabled()
public bool UI\Control::isVisible()
public UI\Control::setParent(UI\Control
$parent )public UI\Control::show()
}定義済み定数
Control Form (Arrangement)はじめに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
extends
UI\Control
{
/* プロパティ */
protected
$controls;
/* メソッド */
public int append(string
$label , UI\Control $control , bool $stretchy = false )public bool delete(int
$index )public bool isPadded()
public setPadded(bool
$padded )/* 継承したメソッド */
public UI\Control::destroy()
public UI\Control::disable()
public UI\Control::enable()
public UI\Control UI\Control::getParent()
public int UI\Control::getTopLevel()
public UI\Control::hide()
public bool UI\Control::isEnabled()
public bool UI\Control::isVisible()
public UI\Control::setParent(UI\Control
$parent )public UI\Control::show()
}プロパティ
Control Grid (Arrangement)はじめにA Grid is a control which is allows the arrangement of children into a grid クラス概要UI\Controls\Grid
class UI\Controls\Grid
extends
UI\Control
{
/* 定数 */
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 append(
UI\Control $control ,int $left ,int $top ,int $xspan ,int $yspan ,bool $hexpand ,int $halign ,bool $vexpand ,int $valign ) public bool isPadded()
public setPadded(bool
$padding )/* 継承したメソッド */
public UI\Control::destroy()
public UI\Control::disable()
public UI\Control::enable()
public UI\Control UI\Control::getParent()
public int UI\Control::getTopLevel()
public UI\Control::hide()
public bool UI\Control::isEnabled()
public bool UI\Control::isVisible()
public UI\Control::setParent(UI\Control
$parent )public UI\Control::show()
}定義済み定数
プロパティ
Control Group (Arrangement)はじめにA Group is a titled container for child controls クラス概要UI\Controls\Group
class UI\Controls\Group
extends
UI\Control
{
/* プロパティ */
protected
$controls;
/* Constructor */
public __construct(string
$title )/* メソッド */
public append(UI\Control
$control )public string getTitle()
public bool hasMargin()
public setMargin(bool
$margin )public setTitle(string
$title )/* 継承したメソッド */
public UI\Control::destroy()
public UI\Control::disable()
public UI\Control::enable()
public UI\Control UI\Control::getParent()
public int UI\Control::getTopLevel()
public UI\Control::hide()
public bool UI\Control::isEnabled()
public bool UI\Control::isVisible()
public UI\Control::setParent(UI\Control
$parent )public UI\Control::show()
}プロパティ
Control Box (Arrangement)はじめにA Box allows the arrangement of other controls クラス概要UI\Controls\Box
class UI\Controls\Box
extends
UI\Control
{
/* 定数 */
const
int
UI\Controls\Box::Vertical;
const
int
UI\Controls\Box::Horizontal;
/* プロパティ */
protected
$controls;
/* Constructor */
public __construct(int
$orientation = UI\Controls\Box::Horizontal)/* メソッド */
public int append(Control
$control , bool $stretchy = false )public bool delete(int
$index )public int getOrientation()
public bool isPadded()
public setPadded(bool
$padded )/* 継承したメソッド */
public UI\Control::destroy()
public UI\Control::disable()
public UI\Control::enable()
public UI\Control UI\Control::getParent()
public int UI\Control::getTopLevel()
public UI\Control::hide()
public bool UI\Control::isEnabled()
public bool UI\Control::isVisible()
public UI\Control::setParent(UI\Control
$parent )public UI\Control::show()
}プロパティ
定義済み定数
Draw Penはじめに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 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 , int $with )public restore()
public save()
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 , int $with , UI\Draw\Stroke $stroke )public transform(UI\Draw\Matrix
$matrix )public write(UI\Point
}$point , UI\Draw\Text\Layout $layout )Draw PathはじめにA Draw Path guides a Draw Pen, telling the Pen where to draw on an Area. クラス概要UI\Draw\Path
class UI\Draw\Path
{
/* 定数 */
const
int
UI\Draw\Path::Winding;
const
int
UI\Draw\Path::Alternate;
/* Constructor */
public __construct(int
$mode = UI\Draw\Path::Winding)/* メソッド */
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()
public end()
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 ) 定義済み定数
Draw Matrixはじめに
クラス概要UI\Draw\Matrix
class UI\Draw\Matrix
{
/* メソッド */
public invert()
public bool isInvertible()
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 RepresentationはじめにRepresents RGBA colours, individual channels are accessible via public properties. クラス概要UI\Draw\Color
class UI\Draw\Color
{
/* 定数 */
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 __construct(UI\Draw\Color
$color = ?)public __construct(int
$color = ?)/* メソッド */
public float getChannel(int
$channel )public void setChannel(int
}$channel , float $value )プロパティ
定義済み定数
Draw StrokeはじめにHolds the configuration for the Pen to perform a stroke クラス概要UI\Draw\Stroke
class UI\Draw\Stroke
{
/* Constructor */
public __construct(
int $cap = UI\Draw\Line\Cap::Flat,int $join = UI\Draw\Line\Join::Miter,float $thickness = 1,float $miterLimit = 10) /* メソッド */
public int getCap()
public int getJoin()
public float getMiterLimit()
public float getThickness()
public setCap(int
$cap )public setJoin(int
$join )public setMiterLimit(float
$limit )public setThickness(float
}$thickness )BrushesはじめにRepresents a solid color brush クラス概要UI\Draw\Brush
class UI\Draw\Brush
{
/* Constructor */
public __construct(UI\Draw\Color
$color )public __construct(int
$color )/* メソッド */
public UI\Draw\Color getColor()
public void setColor(UI\Draw\Color
$color )public void setColor(int
}$color )Gradient BrushesはじめにAbstract for gradient brushes クラス概要UI\Draw\Brush\Gradient
abstract
class UI\Draw\Brush\Gradient
extends
UI\Draw\Brush
{
/* メソッド */
public int addStop(float
$position , UI\Draw\Color $color )public int addStop(float
$position , int $color )public int delStop(int
$index )public bool setStop(int
$index , float $position , UI\Draw\Color $color )public bool setStop(int
$index , float $position , int $color )/* 継承したメソッド */
public UI\Draw\Color UI\Draw\Brush::getColor()
public void UI\Draw\Brush::setColor(UI\Draw\Color
$color )public void UI\Draw\Brush::setColor(int
}$color )Linear Gradientはじめに
クラス概要UI\Draw\Brush\LinearGradient
class UI\Draw\Brush\LinearGradient
extends
UI\Draw\Brush\Gradient
{
/* Constructor */
public __construct(UI\Point
$start , UI\Point $end )/* 継承したメソッド */
public int UI\Draw\Brush\Gradient::addStop(float
$position , UI\Draw\Color $color )public int UI\Draw\Brush\Gradient::addStop(float
$position , int $color )public int UI\Draw\Brush\Gradient::delStop(int
$index )public bool UI\Draw\Brush\Gradient::setStop(int
$index , float $position , UI\Draw\Color $color )public bool UI\Draw\Brush\Gradient::setStop(int
}$index , float $position , int $color )Radial Gradientはじめに
クラス概要UI\Draw\Brush\RadialGradient
class UI\Draw\Brush\RadialGradient
extends
UI\Draw\Brush\Gradient
{
/* Constructor */
public __construct(UI\Point
$start , UI\Point $outer , float $radius )/* 継承したメソッド */
public int UI\Draw\Brush\Gradient::addStop(float
$position , UI\Draw\Color $color )public int UI\Draw\Brush\Gradient::addStop(float
$position , int $color )public int UI\Draw\Brush\Gradient::delStop(int
$index )public bool UI\Draw\Brush\Gradient::setStop(int
$index , float $position , UI\Draw\Color $color )public bool UI\Draw\Brush\Gradient::setStop(int
}$index , float $position , int $color )Represents Text Layoutはじめに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 __construct(string
$text , UI\Draw\Text\Font $font , float $width )/* メソッド */
public setColor(UI\Draw\Color
$color , int $start = 0, int $end = ?)public setColor(int
$color , int $start = 0, int $end = ?)public setWidth(float
}$width )Represents a FontはじめにLoads a described font クラス概要UI\Draw\Text\Font
class UI\Draw\Text\Font
{
/* Constructor */
public __construct(UI\Draw\Text\Font\Descriptor
$descriptor )/* メソッド */
public float getAscent()
public float getDescent()
public float getLeading()
public float getUnderlinePosition()
public float getUnderlineThickness()
}Font DescriptorはじめにDescribes a font クラス概要UI\Draw\Text\Font\Descriptor
class UI\Draw\Text\Font\Descriptor
{
/* Constructor */
public __construct(
string $family ,float $size ,int $weight = UI\Draw\Text\Font\Weight::Normal,int $italic = UI\Draw\Text\Font\Italic::Normal,int $stretch = UI\Draw\Text\Font\Stretch::Normal) /* メソッド */
public string getFamily()
public int getItalic()
public float getSize()
public int getStretch()
public int getWeight()
}Font Weight Settingsはじめに
クラス概要UI\Draw\Text\Font\Weight
final
class UI\Draw\Text\Font\Weight
{
/* 定数 */
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;
}定義済み定数
Italic Font Settingsはじめに
クラス概要UI\Draw\Text\Font\Italic
final
class UI\Draw\Text\Font\Italic
{
/* 定数 */
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;
}定義済み定数
Font Stretch Settingsはじめに
クラス概要UI\Draw\Text\Font\Stretch
final
class UI\Draw\Text\Font\Stretch
{
/* 定数 */
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;
}定義済み定数
Line Cap Settingsはじめに
クラス概要UI\Draw\Line\Cap
final
class UI\Draw\Line\Cap
{
/* 定数 */
const
int
UI\Draw\Line\Cap::Flat;
const
int
UI\Draw\Line\Cap::Round;
const
int
UI\Draw\Line\Cap::Square;
}定義済み定数
Line Join Settingsはじめに
クラス概要UI\Draw\Line\Join
final
class UI\Draw\Line\Join
{
/* 定数 */
const
int
UI\Draw\Line\Join::Miter;
const
int
UI\Draw\Line\Join::Round;
const
int
UI\Draw\Line\Join::Bevel;
}定義済み定数
Key Identifiersはじめに
クラス概要UI\Key
final
class UI\Key
{
/* 定数 */
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;
}定義済み定数
InvalidArgumentExceptionはじめに
クラス概要UI\Exception\InvalidArgumentException
class UI\Exception\InvalidArgumentException
extends
InvalidArgumentException
implements
Throwable {
/* 継承したプロパティ */
protected
string
$message = "";
private
string
$string = "";
protected
int
$code;
protected
string
$file = "";
protected
int
$line;
private
array
$trace = [];
private
Throwablenull
$previous = null;
/* 継承したメソッド */
final public string Exception::getMessage()
final public Throwablenull Exception::getPrevious()
final public int Exception::getCode()
final public string Exception::getFile()
final public int Exception::getLine()
final public array Exception::getTrace()
final public string Exception::getTraceAsString()
public string Exception::__toString()
private void Exception::__clone()
}RuntimeExceptionはじめに
クラス概要UI\Exception\RuntimeException
class UI\Exception\RuntimeException
extends
RuntimeException
implements
Throwable {
/* 継承したプロパティ */
protected
string
$message = "";
private
string
$string = "";
protected
int
$code;
protected
string
$file = "";
protected
int
$line;
private
array
$trace = [];
private
Throwablenull
$previous = null;
/* 継承したメソッド */
final public string Exception::getMessage()
final public Throwablenull Exception::getPrevious()
final public int Exception::getCode()
final public string Exception::getFile()
final public int Exception::getLine()
final public array Exception::getTrace()
final public string Exception::getTraceAsString()
public string Exception::__toString()
private void Exception::__clone()
} |