overview

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: 15 Imported by: 0

Documentation

Index

Constants

View Source
const CommonMargin = 15
View Source
const GuildIconSize = 96

Variables

This section is empty.

Functions

func NewContainer

func NewContainer(state *ningen.State, gID discord.GuildID, chID discord.ChannelID) gtk.Widgetter

func SpawnDialog

func SpawnDialog(w gtk.Widgetter)

Types

type ChannelInfo

type ChannelInfo struct {
	*gtk.Box

	// Box for the hash and name
	Header *gtk.Box
	Hash   *gtk.Label
	Name   *gtk.Label

	Description *gtk.TextView
}

func NewChannelInfo

func NewChannelInfo(ch *discord.Channel) *ChannelInfo

type Container

type Container struct {
	*gtk.ScrolledWindow
	Column *handy.Clamp

	Guild   *GuildInfo
	Channel *ChannelInfo
	Members *Members
}

type GuildInfo

type GuildInfo struct {
	*gtk.Box

	// rounded
	Image *roundimage.Image

	// top guild name, bottom nitro info
	Info  *gtk.Box
	Name  *gtk.Label
	Extra *gtk.Label // nillable
}

func NewGuildInfo

func NewGuildInfo(guild *discord.Guild) *GuildInfo

type Members

type Members struct {
	*gtk.Box

	Header  *gtk.Label
	Members *members.Container
}

func NewMembers

func NewMembers(s *ningen.State, g discord.GuildID, ch discord.ChannelID) *Members

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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