类型 TextareaSemantics

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

type TextareaSemantics struct {
	ID               ui.ID
	Label            string
	Value            string
	Hint             string
	Focused          bool
	Disabled         bool
	ReadOnly         bool
	Invalid          bool
	SelectionStart   int
	SelectionEnd     int
	CompositionStart int
	CompositionEnd   int
}

TextareaSemantics is the typed semantic projection of a textarea snapshot. Selection and composition remain UTF-8 byte ranges matching the paint API.