Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ShowDialog ¶
ShowDialog shows a new Quick Switcher dialog.
Types ¶
type Dialog ¶
type Dialog struct { *adw.ApplicationWindow QuickSwitcher *QuickSwitcher }
Dialog is a Quick Switcher dialog.
type QuickSwitcher ¶
type QuickSwitcher struct { *gtk.Box // contains filtered or unexported fields }
QuickSwitcher is a search box capable of looking up guilds and channels for quickly jumping to them. It replicates the Ctrl+K dialog of the desktop client.
func NewQuickSwitcher ¶
func NewQuickSwitcher(ctx context.Context) *QuickSwitcher
NewQuickSwitcher creates a new Quick Switcher instance.
func (*QuickSwitcher) Clear ¶ added in v0.0.25
func (qs *QuickSwitcher) Clear()
func (*QuickSwitcher) ConnectChosen ¶
func (qs *QuickSwitcher) ConnectChosen(f func())
ConnectChosen connects a function to be called when an entry is chosen.
Click to show internal directories.
Click to hide internal directories.