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\Draw\Text\LayoutUI\Draw\Text\Layout::setColor>
^UI\Draw\Text\LayoutLast updated: Mon, 26 Oct 2026

UI\Draw\Text\Layout::__construct

(UI 0.9.9)

UI\Draw\Text\Layout::__construct — Construct a new Text Layout

Description

public function UI\Draw\Text\Layout::__construct(string $text, UI\Draw\Text\Font $font, float $width)

Shall construct a new Text Layout

Parameters

text

The text for the layout

font

The font to use for writing

width

The width of the layout


<UI\Draw\Text\LayoutUI\Draw\Text\Layout::setColor>
^UI\Draw\Text\LayoutLast updated: Mon, 26 Oct 2026