类型 Path

API 文档由 Go 源码生成,内容为英文。

type Path struct {
	// contains filtered or unexported fields
}

Path is immutable vector geometry in a fixed view box. NewPath copies the commands once; painting the path does not mutate or allocate it.

构造函数

NewPath#

func NewPath(width, height float32, commands ...PathCommand) Path

NewPath creates immutable geometry. Width and height define its view box.

方法

Size#

func (path Path) Size() Size

Size returns the path view box.