UI\Size::of

(PHP 7, UI 1.0.2)

UI\Size::ofPoint Coercion

说锟斤拷

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

锟斤拷锟斤拷

size

The value for width and height

point

The Point to convert

锟斤拷锟斤拷值

The resulting Size