类型 Rectangle
API 文档由 Go 源码生成,内容为英文。
type Rectangle struct {
Bounds Rect
Color Color
Radius float32
Layer uint16
ClipOf Rect
HasClip bool
}Rectangle is one solid paint primitive. ClipOf/HasClip capture the active clip intersection at paint time; renderers intersect Bounds with it.