Represents dimensions (width, height)

(UI 0.9.9)

简介

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

类摘要

final class UI\Size {
/* 属性 */
public $width;
public $height;
/* Constructor */
public function __construct(float $width, float $height)
/* 方法 */
public function getHeight(): float
public function getWidth(): float
public static function of(float $size): UI\Size
public static function of(UI\Point $point): UI\Size
public function setHeight(float $size)
public function setWidth(float $size)
}

属性

width

Holds the width, can be read/written directly

height

Holds the height, can be read/written directly

目录

添加备注

用户贡献的备注

此页面尚无用户贡献的备注。
To Top