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\Pen::writeUI\Draw\Path::addRectangle>
^UILast updated: Mon, 26 Oct 2026

Draw Path

(UI 0.9.9)

Introduction

A Draw Path guides a Draw Pen, telling the Pen where to draw on an Area.

Class synopsis

class UI\Draw\Path {
/* Constants */
const int Winding;
const int Alternate;
/* Constructor */
public function __construct(int $mode = UI\Draw\Path::Winding)
/* Methods */
public function addRectangle(UI\Point $point, UI\Size $size)
public function arcTo(
    UI\Point $point,
    float $radius,
    float $angle,
    float $sweep,
    float $negative
)
public function bezierTo(
    UI\Point $point,
    float $radius,
    float $angle,
    float $sweep,
    float $negative
)
public function closeFigure()
public function end()
public function lineTo(
    UI\Point $point,
    float $radius,
    float $angle,
    float $sweep,
    float $negative
)
public function newFigure(UI\Point $point)
public function newFigureWithArc(
    UI\Point $point,
    float $radius,
    float $angle,
    float $sweep,
    float $negative
)
}

Predefined Constants

UI\Draw\Path::Winding

This is the default draw path mode

UI\Draw\Path::Alternate

This is the alternate draw path mode

Table of Contents


<UI\Draw\Pen::writeUI\Draw\Path::addRectangle>
^UILast updated: Mon, 26 Oct 2026