CakeFest 2024: The Official CakePHP Conference

Путь рисования

(UI 0.9.9)

Введение

Путь рисования направляет перо, где рисовать по области

Обзор классов

class UI\Draw\Path {
/* Константы */
const int Winding;
const int Alternate;
/* Конструктор */
public __construct(int $mode = UI\Draw\Path::Winding)
/* Методы */
public addRectangle(UI\Point $point, UI\Size $size)
public arcTo(
    UI\Point $point,
    float $radius,
    float $angle,
    float $sweep,
    float $negative
)
public bezierTo(
    UI\Point $point,
    float $radius,
    float $angle,
    float $sweep,
    float $negative
)
public closeFigure()
public end()
public lineTo(
    UI\Point $point,
    float $radius,
    float $angle,
    float $sweep,
    float $negative
)
public newFigure(UI\Point $point)
public newFigureWithArc(
    UI\Point $point,
    float $radius,
    float $angle,
    float $sweep,
    float $negative
)
}

Предопределённые константы

UI\Draw\Path::Winding

Это режим рисования по умолчанию

UI\Draw\Path::Alternate

Это альтернативный режим рисования

Содержание

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top