Documentation ¶
Overview ¶
Package sidebar contains the sidebar showing guilds and channels.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Sidebar ¶
type Sidebar struct { *gtk.Box // horizontal Left *gtk.Box DMView *directbutton.View Guilds *guilds.View Right *gtk.Stack // contains filtered or unexported fields }
Sidebar is the bar on the left side of the application once it's logged in.
func (*Sidebar) GuildID ¶
GuildID returns the guild ID that the channel list is showing for, if any. If not, 0 is returned.
func (*Sidebar) OpenDMs ¶
func (s *Sidebar) OpenDMs() *direct.ChannelView
func (*Sidebar) SelectChannel ¶
SelectChannel selects and activates the channel with the given ID. It ensures that the sidebar is at the right place then activates the controller. This function acts the same as if the user clicked on the channel, meaning it funnels down to a single widget that then floats up to the controller.
func (*Sidebar) SetSelectedGuild ¶
SetSelectedGuild marks the guild with the given ID as selected.
Directories ¶
Path | Synopsis |
---|---|
Package unread contains state structures to synchronize the guild and channel views.
|
Package unread contains state structures to synchronize the guild and channel views. |
Click to show internal directories.
Click to hide internal directories.