Documentation ¶
Index ¶
- func Float(r rune) (insert bool)
- func Integer(r rune) (insert bool)
- func UnsignedInteger(r rune) (insert bool)
- type Buffer
- type Format
- type TextField
- func (t *TextField) CursorMoveDown()
- func (t *TextField) CursorMoveLeft()
- func (t *TextField) CursorMoveRight()
- func (t *TextField) CursorMoveUp()
- func (t *TextField) CursorPosition(row, col uint)
- func (t *TextField) GetRenderHeight() (h uint)
- func (t *TextField) GetRenderWidth() uint
- func (t TextField) GetText() []rune
- func (t *TextField) Insert(r rune)
- func (t *TextField) KeyBackspace()
- func (t *TextField) KeyDel()
- func (t *TextField) Render(drawer func(row, col uint, r rune), cursor func(row, col uint)) (height uint)
- func (t *TextField) SetText(text []rune)
- func (t *TextField) SetWidth(width uint)
- type TextFieldLimit
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UnsignedInteger ¶
Types ¶
type TextField ¶
type TextField struct { Filter func(r rune) (insert bool) // contains filtered or unexported fields }
func (*TextField) CursorMoveDown ¶
func (t *TextField) CursorMoveDown()
func (*TextField) CursorMoveLeft ¶
func (t *TextField) CursorMoveLeft()
func (*TextField) CursorMoveRight ¶
func (t *TextField) CursorMoveRight()
func (*TextField) CursorMoveUp ¶
func (t *TextField) CursorMoveUp()
func (*TextField) CursorPosition ¶
func (*TextField) GetRenderHeight ¶
func (*TextField) GetRenderWidth ¶
func (*TextField) Insert ¶
Insert rune, key Enter `\n` in text without update buffer. After that function run `SetWidth` for update buffer.
func (*TextField) KeyBackspace ¶
func (t *TextField) KeyBackspace()
type TextFieldLimit ¶
type TextFieldLimit struct { TextField // contains filtered or unexported fields }
func (*TextFieldLimit) GetRenderHeight ¶
func (t *TextFieldLimit) GetRenderHeight() (h uint)
func (*TextFieldLimit) Render ¶
func (t *TextFieldLimit) Render( drawer func(row, col uint, r rune), cursor func(row, col uint), ) (height uint)
func (*TextFieldLimit) SetLinesLimit ¶
func (t *TextFieldLimit) SetLinesLimit(lines uint)
Click to show internal directories.
Click to hide internal directories.