类型 Editor
API 文档由 Go 源码生成,内容为英文。
type Editor struct {
Bounds ui.Rect
FontSize float32
Layer uint16
MonoFace ui.MonoFace
Color ui.Color
Value string
Selection [2]int
Composition [2]int
Composing bool
Multiline bool
Secure bool
}Editor is the native text editor's overlay, drawn above everything else while a text field has keyboard focus. Selection and Composition are rune ranges into Value.