Represents a position (x,y)

Represents a position (x,y)

(UI 0.9.9)

簡介

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

類摘要

final class UI\Point {
/* 屬性 */
public $x;
public $y;
/* Constructor */
public __construct(float $x, float $y)
/* 方法 */
public static at(float $point): UI\Point
public static at(UI\Size $size): UI\Point
public getX(): float
public getY(): float
public setX(float $point)
public setY(float $point)
}

屬性

x

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

y

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

目錄

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *