UI\Size::of
PHP function
Edit on GitHub ✎
(UI 1.0.2)
Point Coercion
Description
UI\Size::of(float $size): UI\Size
UI\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
Parameters
sizeThe value for width and height
pointThe Point to convert
Return Values
The resulting Size