2024 年 PHP 日本研討會

繪圖路徑

(UI 0.9.9)

簡介

繪圖路徑會引導繪圖筆,告知筆在區域上的繪製位置。

類別概要

類別 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)
公開 arcTo(
    UI\Point $point,
    浮點數 $radius,
    浮點數 $angle,
    浮點數 $sweep,
    浮點數 $negative
)
公開 bezierTo(
    UI\Point $point,
    浮點數 $radius,
    浮點數 $angle,
    浮點數 $sweep,
    浮點數 $negative
)
公開 closeFigure()
公開 end()
公開 lineTo(
    UI\Point $point,
    浮點數 $radius,
    浮點數 $angle,
    浮點數 $sweep,
    浮點數 $negative
)
公開 newFigure(UI\Point $point)
公開 newFigureWithArc(
    UI\Point $point,
    浮點數 $radius,
    浮點數 $angle,
    浮點數 $sweep,
    浮點數 $negative
)
}

預定義常數

UI\Draw\Path::Winding

這是預設的繪圖路徑模式

UI\Draw\Path::Alternate

這是替代的繪圖路徑模式

目錄

新增註解

使用者貢獻的註解

此頁面沒有使用者貢獻的註解。
To Top