UI\Size::of

Point Coercion

説明

public static UI\Size UI\Size::of(float $size)
public static UI\Size UI\Size::of(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