Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Field ¶
type Field struct {
Source piecetree.Snapshot
LastScrollValue piecetree.Snapshot
// Buffer optionally binds native input to a document-owned piece tree.
Buffer *input.TextBuffer
Composition string
Placeholder string
Value string
CommittedValue string
LastScrollComposition string
LastScrollCaret int
Caret int
MaxRunes int
FontSize float64
DPI float64
Anchor int
// ScrollX is the signed horizontal text offset. Positive values move the
// text right; negative values reveal the caret in overflowing values.
ScrollX float32
LastScrollViewport float32
Submitted bool
Password bool
LastScrollFocused bool
Selecting bool
ScrollInitialized bool
Focused bool
// contains filtered or unexported fields
}
func (Field) HistoryPosition ¶
HistoryPosition and RestoreHistoryPosition support canceling a tentative undo or redo.
func (*Field) RecordEdit ¶
RecordEdit records a committed native edit. Document-backed editors own their history; ordinary controls retain immutable strings without copying.