php8.5
Home/ Manual/ draw / path/ UI\Draw\Path::addRectangle

UI\Draw\Path::addRectangle

PHP function Edit on GitHub ✎

(UI 0.9.9)

Draw a Rectangle

Description

UI\Draw\Path::addRectangle(UI\Point $point, UI\Size $size)

Shall map the path of a rectangle of the given size, at the given point

Parameters

point

The point to begin the shape

size

The size of the rectangle

Source: reference/ui/ui/draw/path/addrectangle.xml · from the official PHP manual (php/doc-en)