Documentation ¶
Index ¶
Constants ¶
View Source
const ( ChannelsWidth = 240 BannerHeight = 135 LabelHeight = 48 )
View Source
const ( DMAvatarSize = 38 IconPadding = 8 )
Variables ¶
This section is empty.
Functions ¶
func FilterChannels ¶ added in v0.1.0
Types ¶
type Channel ¶
type Channel struct { gtk.Widgetter Row *gtk.ListBoxRow Style *gtk.StyleContext Label *gtk.Label ID discord.ChannelID Guild discord.GuildID Name string Topic string Category bool // contains filtered or unexported fields }
func (*Channel) ChannelInfo ¶
type Channels ¶
type Channels struct { *loadstatus.Page Scroll *gtk.ScrolledWindow Main *gtk.Box // Headers BannerImage *gtk.Image // Channel list ChList *gtk.ListBox Channels []*Channel Selected *Channel OnSelect func(ch *Channel) GuildID discord.GuildID // contains filtered or unexported fields }
func NewChannels ¶
func (*Channels) TraverseReadState ¶
func (chs *Channels) TraverseReadState(rs *read.UpdateEvent)
func (*Channels) UpdateBanner ¶
type PrivateChannel ¶
type PrivateChannel struct { *gtk.ListBoxRow Style *gtk.StyleContext Body *user.Container Name string ID discord.ChannelID Group bool // contains filtered or unexported fields }
func (*PrivateChannel) ChannelID ¶
func (pc *PrivateChannel) ChannelID() discord.ChannelID
func (*PrivateChannel) ChannelInfo ¶
func (pc *PrivateChannel) ChannelInfo() (name, topic string)
func (*PrivateChannel) GuildID ¶
func (pc *PrivateChannel) GuildID() discord.GuildID
type PrivateChannels ¶
type PrivateChannels struct { *loadstatus.Page Main *gtk.Box List *gtk.ListBox Scroll *gtk.ScrolledWindow Search *gtk.Entry Channels map[discord.ChannelID]*PrivateChannel OnSelect func(pm *PrivateChannel) // contains filtered or unexported fields }
func NewPrivateChannels ¶
func NewPrivateChannels(s *ningen.State, onSelect func(pm *PrivateChannel)) (pcs *PrivateChannels)
func (*PrivateChannels) Cleanup ¶
func (pcs *PrivateChannels) Cleanup()
func (*PrivateChannels) FindByID ¶
func (pcs *PrivateChannels) FindByID(id discord.ChannelID) *PrivateChannel
func (*PrivateChannels) Load ¶ added in v0.1.0
func (pcs *PrivateChannels) Load()
func (*PrivateChannels) Selected ¶
func (pcs *PrivateChannels) Selected() *PrivateChannel
func (*PrivateChannels) TraverseReadState ¶
func (pcs *PrivateChannels) TraverseReadState(rs *read.UpdateEvent)
Click to show internal directories.
Click to hide internal directories.