overview

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2020 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 SpawnDialog

func SpawnDialog(c *Container)

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.Label
}

func NewChannelInfo

func NewChannelInfo(ch discord.Channel) *ChannelInfo

type Container

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

	Guild   *GuildInfo
	Channel *ChannelInfo
	Members *Members
}

func NewContainer

func NewContainer(state *ningen.State, gID, chID discord.Snowflake) (*Container, error)

type GuildInfo

type GuildInfo struct {
	*gtk.Box

	// rounded
	Image *gtk.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.Guild) *Members

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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