Documentation ¶
Index ¶
- func ByteSliceGrow(b []byte, newCap int) []byte
- func ByteSliceInsert(text []byte, offset int, what []byte) []byte
- func ByteSliceRemove(text []byte, from, to int) []byte
- func Close() error
- func Fill(x, y, w, h int, cell termbox.Cell)
- func KeyArrowDownHandler(ui *UI, ch rune) error
- func KeyArrowUpHandler(ui *UI, ch rune) error
- func KeyBackspace2Handler(ui *UI, ch rune) error
- func KeyBackspaceHandler(ui *UI, ch rune) error
- func KeyCtrlQHandler(ui *UI, ch rune) error
- func KeyDefaultHandler(ui *UI, ch rune) error
- func KeyEnterHandler(ui *UI, ch rune) error
- func KeyEscHandler(ui *UI, ch rune) error
- func KeySpaceHandler(ui *UI, ch rune) error
- func Open(sk []byte) error
- func TBPrint(x, y int, fg, bg termbox.Attribute, msg string)
- type EditBox
- type EditBoxConfig
- type KeyHandler
- type ListBox
- type ListBoxConfig
- type Notify
- type UI
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ByteSliceGrow ¶
func ByteSliceRemove ¶
func KeyArrowDownHandler ¶
func KeyArrowUpHandler ¶
func KeyBackspace2Handler ¶
func KeyBackspaceHandler ¶
func KeyCtrlQHandler ¶
func KeyDefaultHandler ¶
func KeyEnterHandler ¶
func KeyEscHandler ¶
func KeySpaceHandler ¶
Types ¶
type EditBox ¶
type EditBox struct { // 如果conf为nil, 将使用默认配置 Conf *EditBoxConfig // contains filtered or unexported fields }
func NewEditBox ¶
func NewEditBox() *EditBox
func (*EditBox) DeleteRune ¶
func (eb *EditBox) DeleteRune()
func (*EditBox) InsertRune ¶
type EditBoxConfig ¶
type EditBoxConfig struct {
// contains filtered or unexported fields
}
func DefaultEditBoxConfig ¶
func DefaultEditBoxConfig() *EditBoxConfig
type KeyHandler ¶
type ListBox ¶
type ListBox struct { // 如果conf为nil, 将使用默认配置 Conf *ListBoxConfig // contains filtered or unexported fields }
func NewListBox ¶
func NewListBox() *ListBox
type ListBoxConfig ¶
type ListBoxConfig struct {
// contains filtered or unexported fields
}
func DefaultListBoxConfig ¶
func DefaultListBoxConfig() *ListBoxConfig
Click to show internal directories.
Click to hide internal directories.