UI\Size::of

(UI 1.0.2)

UI\Size::ofPoint Coercion

説明

publicstaticUI\Size::of(float$size): UI\Size
publicstaticUI\Size::of(UI\Point$point): UI\Size

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

To Top