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\Controls\Box::setPaddedUI\Draw\Pen::clip>
^UILast updated: Mon, 26 Oct 2026

Draw Pen

(UI 0.9.9)

Introduction

The Pen is passed to the Area Draw event handler, it is used for clipping, filling, stroking, and writing to Draw Paths.

Class synopsis

final class UI\Draw\Pen {
/* Methods */
public function clip(UI\Draw\Path $path)
public function fill(UI\Draw\Path $path, UI\Draw\Brush $with)
public function fill(UI\Draw\Path $path, UI\Draw\Color $with)
public function fill(UI\Draw\Path $path, int $with)
public function restore()
public function save()
public function stroke(UI\Draw\Path $path, UI\Draw\Brush $with, UI\Draw\Stroke $stroke)
public function stroke(UI\Draw\Path $path, UI\Draw\Color $with, UI\Draw\Stroke $stroke)
public function stroke(UI\Draw\Path $path, int $with, UI\Draw\Stroke $stroke)
public function transform(UI\Draw\Matrix $matrix)
public function write(UI\Point $point, UI\Draw\Text\Layout $layout)
}

Table of Contents


<UI\Controls\Box::setPaddedUI\Draw\Pen::clip>
^UILast updated: Mon, 26 Oct 2026