Documentation ¶
Index ¶
- Constants
- type TextEditor
- func (t *TextEditor) Backspace()
- func (t *TextEditor) CurParagraph() paragraph
- func (t *TextEditor) CurParagraphLength() int
- func (t *TextEditor) CursorColumn() int
- func (t *TextEditor) CursorIndex() int
- func (t *TextEditor) CursorIsAtEndOfParagraph() bool
- func (t *TextEditor) CursorIsAtStartOfParagraph() bool
- func (t *TextEditor) CursorIsOnFirstParagraph() bool
- func (t *TextEditor) CursorIsOnLastParagraph() bool
- func (t *TextEditor) CursorRow() int
- func (t *TextEditor) Down()
- func (t *TextEditor) DownNum(n int)
- func (t *TextEditor) Empty() bool
- func (t *TextEditor) End()
- func (t *TextEditor) Home()
- func (t *TextEditor) IsEmpty() bool
- func (t *TextEditor) Left()
- func (t *TextEditor) LeftNum(n int)
- func (t *TextEditor) Newline()
- func (t *TextEditor) NumGraphemes() int
- func (t *TextEditor) NumParagraphs() int
- func (t *TextEditor) Paragraphs() []string
- func (t *TextEditor) Right()
- func (t *TextEditor) RightNum(n int)
- func (t *TextEditor) SetFirstLineIndent(newFirstLineIndent int)
- func (t *TextEditor) SetWidth(newWidth int)
- func (t *TextEditor) String() string
- func (t *TextEditor) Up()
- func (t *TextEditor) UpNum(n int)
- func (t *TextEditor) Write(text string)
Constants ¶
View Source
const (
DefaultWidth = 80
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TextEditor ¶
type TextEditor struct {
// contains filtered or unexported fields
}
func (*TextEditor) Backspace ¶
func (t *TextEditor) Backspace()
func (*TextEditor) CurParagraph ¶
func (t *TextEditor) CurParagraph() paragraph
func (*TextEditor) CurParagraphLength ¶
func (t *TextEditor) CurParagraphLength() int
func (*TextEditor) CursorColumn ¶
func (t *TextEditor) CursorColumn() int
func (*TextEditor) CursorIndex ¶
func (t *TextEditor) CursorIndex() int
func (*TextEditor) CursorIsAtEndOfParagraph ¶
func (t *TextEditor) CursorIsAtEndOfParagraph() bool
func (*TextEditor) CursorIsAtStartOfParagraph ¶
func (t *TextEditor) CursorIsAtStartOfParagraph() bool
func (*TextEditor) CursorIsOnFirstParagraph ¶
func (t *TextEditor) CursorIsOnFirstParagraph() bool
func (*TextEditor) CursorIsOnLastParagraph ¶
func (t *TextEditor) CursorIsOnLastParagraph() bool
func (*TextEditor) CursorRow ¶
func (t *TextEditor) CursorRow() int
func (*TextEditor) Down ¶
func (t *TextEditor) Down()
func (*TextEditor) DownNum ¶
func (t *TextEditor) DownNum(n int)
func (*TextEditor) Empty ¶
func (t *TextEditor) Empty() bool
func (*TextEditor) End ¶
func (t *TextEditor) End()
func (*TextEditor) Home ¶
func (t *TextEditor) Home()
func (*TextEditor) IsEmpty ¶
func (t *TextEditor) IsEmpty() bool
func (*TextEditor) Left ¶
func (t *TextEditor) Left()
func (*TextEditor) LeftNum ¶
func (t *TextEditor) LeftNum(n int)
func (*TextEditor) Newline ¶
func (t *TextEditor) Newline()
func (*TextEditor) NumGraphemes ¶
func (t *TextEditor) NumGraphemes() int
func (*TextEditor) NumParagraphs ¶
func (t *TextEditor) NumParagraphs() int
func (*TextEditor) Paragraphs ¶
func (t *TextEditor) Paragraphs() []string
func (*TextEditor) Right ¶
func (t *TextEditor) Right()
func (*TextEditor) RightNum ¶
func (t *TextEditor) RightNum(n int)
func (*TextEditor) SetFirstLineIndent ¶
func (t *TextEditor) SetFirstLineIndent(newFirstLineIndent int)
func (*TextEditor) SetWidth ¶
func (t *TextEditor) SetWidth(newWidth int)
func (*TextEditor) String ¶
func (t *TextEditor) String() string
func (*TextEditor) Up ¶
func (t *TextEditor) Up()
func (*TextEditor) UpNum ¶
func (t *TextEditor) UpNum(n int)
func (*TextEditor) Write ¶
func (t *TextEditor) Write(text string)
Click to show internal directories.
Click to hide internal directories.