user

package
v0.1.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

This section is empty.

Types

type Container

type Container struct {
	*gtk.Box

	Avatar *avatar.WithStatus
	AStyle *gtk.StyleContext

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

	NameValue string
}

func New

func New() *Container

func (*Container) UpdateActivity

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

func (*Container) UpdateAvatar

func (c *Container) UpdateAvatar(url discord.URL)

func (*Container) UpdateMember

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

func (*Container) UpdateStatus

func (c *Container) UpdateStatus(status gateway.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