Documentation ¶
Index ¶
- Constants
- func BindName(container gtkutils.Container, w wrapper, name *string) *gtk.EventBox
- func BindNameDirect(conn binder, hoverer Hoverable, name *string)
- type DMButton
- type Guild
- type GuildFolder
- type GuildFolderIcon
- type Guilds
- type Hoverable
- type RevealerRow
- type UnreadStrip
- func (r *UnreadStrip) FromRow(row *gtk.ListBoxRow)
- func (r *UnreadStrip) SetActive(active bool)
- func (r *UnreadStrip) SetHovered(hovered bool)
- func (r *UnreadStrip) SetPinged()
- func (r *UnreadStrip) SetRead()
- func (r *UnreadStrip) SetSuppress(suppressed bool)
- func (r *UnreadStrip) SetUnread()
- func (r *UnreadStrip) State() (unread, pinged bool)
Constants ¶
View Source
const ( FolderSize = 32 IconSize = 52 IconPadding = 8 TotalWidth = IconSize + IconPadding*3 )
Variables ¶
This section is empty.
Functions ¶
func BindNameDirect ¶
Types ¶
type DMButton ¶
type DMButton struct { *gtk.ListBoxRow Unread *UnreadStrip OnClick func() // contains filtered or unexported fields }
type Guild ¶
type Guild struct { *gtk.ListBoxRow Parent *GuildFolder Unread *UnreadStrip Event *gtk.EventBox Image *gtk.Image IURL string BannerURL string ID discord.GuildID Name string // contains filtered or unexported fields }
func (*Guild) SetUnavailable ¶
func (*Guild) UpdateImage ¶
func (g *Guild) UpdateImage()
type GuildFolder ¶
type GuildFolder struct { // Row that belongs to the parent list. *RevealerRow Icon *GuildFolderIcon Name string // Child list. List *gtk.ListBox Guilds []*Guild Revealed bool }
type GuildFolderIcon ¶
type Guilds ¶
type Guilds struct { gtkutils.ExtendedWidget ListBox *gtk.ListBox DMButton *DMButton Current *Guild OnSelect func(g *Guild) // contains filtered or unexported fields }
func (*Guilds) FindByID ¶
func (guilds *Guilds) FindByID(guildID discord.GuildID) (*Guild, *GuildFolder)
func (*Guilds) Select ¶
func (g *Guilds) Select(r *gtk.ListBoxRow)
func (*Guilds) TraverseReadState ¶
func (guilds *Guilds) TraverseReadState(e *read.UpdateEvent)
type RevealerRow ¶
type RevealerRow struct { *gtk.ListBoxRow Strip *UnreadStrip Button *gtk.Button Revealer *gtk.Revealer }
type UnreadStrip ¶
type UnreadStrip struct { *gtk.Overlay // contains child Revealer *gtk.Revealer Strip *gtk.Box // width IconPadding Style *gtk.StyleContext // contains filtered or unexported fields }
func NewUnreadStrip ¶
func NewUnreadStrip(child gtk.IWidget) *UnreadStrip
func (*UnreadStrip) FromRow ¶
func (r *UnreadStrip) FromRow(row *gtk.ListBoxRow)
func (*UnreadStrip) SetActive ¶
func (r *UnreadStrip) SetActive(active bool)
func (*UnreadStrip) SetHovered ¶
func (r *UnreadStrip) SetHovered(hovered bool)
func (*UnreadStrip) SetPinged ¶
func (r *UnreadStrip) SetPinged()
func (*UnreadStrip) SetRead ¶
func (r *UnreadStrip) SetRead()
func (*UnreadStrip) SetSuppress ¶
func (r *UnreadStrip) SetSuppress(suppressed bool)
func (*UnreadStrip) SetUnread ¶
func (r *UnreadStrip) SetUnread()
func (*UnreadStrip) State ¶
func (r *UnreadStrip) State() (unread, pinged bool)
Click to show internal directories.
Click to hide internal directories.