completer

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 2, 2021 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const MaxCompletionEntries = 10

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry struct {
	*gtk.ListBoxRow

	Child gtk.Widgetter
	Text  string
}

type MessageContainer

type MessageContainer interface {
	ChannelID() discord.ChannelID
	GuildID() discord.GuildID
	RecentAuthors(limit int) []discord.UserID
}

type State

type State struct {
	*gtk.Revealer

	Scroll  *gtk.ScrolledWindow
	ListBox *gtk.ListBox
	Entries []*Entry

	// RequestGuildMember func(prefix string)
	GetRecentAuthors func(limit int) []discord.Snowflake
	InputBuf         *gtk.TextBuffer
	// contains filtered or unexported fields
}

func New

func New(state *ningen.State, textbuf *gtk.TextBuffer, msgC MessageContainer) *State

func (*State) ClearCompletion

func (c *State) ClearCompletion()

func (*State) Down

func (c *State) Down()

func (*State) Index added in v0.1.0

func (c *State) Index() int

func (*State) IsEmpty

func (c *State) IsEmpty() bool

func (*State) KeyDown

func (c *State) KeyDown(state gdk.ModifierType, key uint) bool

func (*State) Select

func (c *State) Select(index int)

func (*State) Up

func (c *State) Up()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL