Documentation ¶
Index ¶
- func ByteWidth(str string, tabSize int) int
- func Count(b []byte) int
- func GetCursorVisualX(x int, line string) int
- type Editor
- type InputHandler
- func (ih *InputHandler) DeleteBackward()
- func (ih *InputHandler) DeleteForward()
- func (ih *InputHandler) Insert(char string)
- func (ih *InputHandler) MoveDown()
- func (ih *InputHandler) MoveLeft()
- func (ih *InputHandler) MoveRight()
- func (ih *InputHandler) MoveUp()
- func (ih *InputHandler) MoveWordLeft()
- func (ih *InputHandler) MoveWordRight()
- func (ih *InputHandler) Newline()
- func (ih *InputHandler) Redo()
- func (ih *InputHandler) Save()
- func (ih *InputHandler) Tab()
- func (ih *InputHandler) Undo()
- type Line
- type LineCache
- type Painter
- type View
- type Viewport
- func (v *Viewport) FillParent()
- func (v *Viewport) SetContent(x int, y int, ch rune, comb []rune, style tcell.Style)
- func (v *Viewport) SetHeight(h int)
- func (v *Viewport) SetOffsetX(x int)
- func (v *Viewport) SetOffsetY(y int)
- func (v *Viewport) SetWidth(w int)
- func (v *Viewport) ShowCursor(x int, y int)
- func (v *Viewport) Size() (int, int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCursorVisualX ¶
Types ¶
type InputHandler ¶
type InputHandler struct { ViewID string // TODO: Maybe just keep this stuff on View struct FilePath string // contains filtered or unexported fields }
func (*InputHandler) DeleteBackward ¶
func (ih *InputHandler) DeleteBackward()
func (*InputHandler) DeleteForward ¶
func (ih *InputHandler) DeleteForward()
func (*InputHandler) Insert ¶
func (ih *InputHandler) Insert(char string)
func (*InputHandler) MoveDown ¶
func (ih *InputHandler) MoveDown()
func (*InputHandler) MoveLeft ¶
func (ih *InputHandler) MoveLeft()
func (*InputHandler) MoveRight ¶
func (ih *InputHandler) MoveRight()
func (*InputHandler) MoveUp ¶
func (ih *InputHandler) MoveUp()
func (*InputHandler) MoveWordLeft ¶
func (ih *InputHandler) MoveWordLeft()
func (*InputHandler) MoveWordRight ¶
func (ih *InputHandler) MoveWordRight()
func (*InputHandler) Newline ¶
func (ih *InputHandler) Newline()
func (*InputHandler) Redo ¶
func (ih *InputHandler) Redo()
func (*InputHandler) Save ¶
func (ih *InputHandler) Save()
func (*InputHandler) Tab ¶
func (ih *InputHandler) Tab()
func (*InputHandler) Undo ¶
func (ih *InputHandler) Undo()
type LineCache ¶
type LineCache struct {
// contains filtered or unexported fields
}
func NewLineCache ¶
func NewLineCache() *LineCache
func (*LineCache) ApplyUpdate ¶
type View ¶
type View struct { *LineCache *InputHandler ID string ViewID string // contains filtered or unexported fields }
func (*View) HandleEvent ¶
type Viewport ¶
type Viewport struct {
// contains filtered or unexported fields
}
func NewViewport ¶
func (*Viewport) FillParent ¶
func (v *Viewport) FillParent()
func (*Viewport) SetContent ¶
func (*Viewport) SetOffsetX ¶
func (*Viewport) SetOffsetY ¶
func (*Viewport) ShowCursor ¶
Click to show internal directories.
Click to hide internal directories.