Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<UI\Size::getWidthUI\Size::setHeight>
^UI\SizeLast updated: Mon, 26 Oct 2026

UI\Size::of

(UI 1.0.2)

UI\Size::of — Point Coercion

Description

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

size

The value for width and height

point

The Point to convert

Return Values

The resulting Size


<UI\Size::getWidthUI\Size::setHeight>
^UI\SizeLast updated: Mon, 26 Oct 2026