user

package
v0.0.5-0...-0379fef Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const AvatarSize = 32
View Source
const AvatarSizeGtk = gtk.ICON_SIZE_DND

Variables

This section is empty.

Functions

func PresenceColor

func PresenceColor(guild discord.Guild, member discord.Presence) discord.Color

Types

type Container

type Container struct {
	*gtk.Box

	Avatar *gtk.Image
	AStyle *gtk.StyleContext

	// Right side Box is not here
	LabelBox *gtk.Box
	Name     *gtk.Label
	Activity *gtk.Label

	NameValue string
	// contains filtered or unexported fields
}

func New

func New() *Container

NOT thread-safe

func (*Container) UpdateActivity

func (c *Container) UpdateActivity(ac *discord.Activity)

func (*Container) UpdateAvatar

func (c *Container) UpdateAvatar(url string)

func (*Container) UpdateMember

func (c *Container) UpdateMember(m discord.Member, guild discord.Guild)

func (*Container) UpdatePresence

func (c *Container) UpdatePresence(m discord.Presence, guild discord.Guild)

func (*Container) UpdateStatus

func (c *Container) UpdateStatus(status discord.Status)

func (*Container) UpdateUser

func (c *Container) UpdateUser(u discord.User)

Jump to

Keyboard shortcuts

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