Documentation ¶
Index ¶
- Constants
- func CursorRect(i *gtk.TextView) gdk.Rectangle
- func GetWordIters(buf *gtk.TextBuffer, offset int64) (start, end *gtk.TextIter)
- func NewPopover(relto gtk.IWidget) *gtk.Popover
- func State(buf *gtk.TextBuffer) (text string, offset int64, blank bool)
- func SwapWord(b *gtk.TextBuffer, word string, offset int64)
- func WrapCompleter(input *gtk.TextView)
- type Completer
- type KeyDownHandlerFn
Constants ¶
View Source
const ( ImageSmall = 25 ImageLarge = 40 ImagePadding = 6 )
View Source
const (
MinPopoverWidth = 300
)
Variables ¶
This section is empty.
Functions ¶
func GetWordIters ¶
func GetWordIters(buf *gtk.TextBuffer, offset int64) (start, end *gtk.TextIter)
func WrapCompleter ¶
Types ¶
type Completer ¶
type Completer struct { Input *gtk.TextView Buffer *gtk.TextBuffer List *gtk.ListBox Popover *gtk.Popover Splitter split.SplitFunc // contains filtered or unexported fields }
func NewCompleter ¶
func (*Completer) SetCompleter ¶
SetCompleter sets the current completer. If completer is nil, then the completer is disabled.
type KeyDownHandlerFn ¶
func KeyDownHandler ¶
func KeyDownHandler(l *gtk.ListBox, focus func()) KeyDownHandlerFn
Click to show internal directories.
Click to hide internal directories.