Documentation
¶
Index ¶
- type TextField
- func (tf *TextField) CursorTo(i uint) vxfw.Command
- func (tf *TextField) DeleteCharLeftOfCursor() vxfw.Command
- func (tf *TextField) DeleteCharRightOfCursor() vxfw.Command
- func (tf *TextField) DeleteCursorToEndOfLine() vxfw.Command
- func (tf *TextField) Draw(ctx vxfw.DrawContext) (vxfw.Surface, error)
- func (tf *TextField) HandleEvent(ev vaxis.Event, ph vxfw.EventPhase) (vxfw.Command, error)
- func (tf *TextField) InsertStringAtCursor(s string) vxfw.Command
- func (tf *TextField) Reset()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TextField ¶
type TextField struct {
Value string
Style vaxis.Style
OnSubmit func(line string) (vxfw.Command, error)
OnChange func(line string) (vxfw.Command, error)
// contains filtered or unexported fields
}
func (*TextField) DeleteCharLeftOfCursor ¶
func (*TextField) DeleteCharRightOfCursor ¶
func (*TextField) DeleteCursorToEndOfLine ¶
func (*TextField) HandleEvent ¶
func (*TextField) InsertStringAtCursor ¶
Click to show internal directories.
Click to hide internal directories.