overview

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: 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.TextView
}

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 discord.GuildID, chID discord.ChannelID) (*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, guildID discord.GuildID, channelID discord.ChannelID) *Members

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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