类型 Text
API 文档由 Go 源码生成,内容为英文。
type Text struct {
Value string
Bounds Rect
Style TextStyle
CellWidth float32
RunFirst int32
RunCount int32
Layer uint16
ClipOf Rect
HasClip bool
}Text is one immutable single-line label clipped like rectangles. A text with RunCount > 0 is a fixed-pitch grid line (see LabelRuns); read its runs with Canvas.TextRuns.