sadface

package
v0.0.0-...-6513b37 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2021 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package sadface provides different views for the message container.

Index

Constants

View Source
const FaceSize = 56

Variables

This section is empty.

Functions

This section is empty.

Types

type Container

type Container struct {
	gtk.Box
	Face  *gtk.Image
	Error *gtk.Label
}

func NewContainer

func NewContainer() *Container

func (*Container) SetError

func (v *Container) SetError(err error)

SetError sets the view to display the error. Error must not be nil.

type FaceView

type FaceView struct {
	gtk.Stack
	// contains filtered or unexported fields
}

func New

func New(parent gtk.IWidget, placeholder gtk.IWidget) *FaceView

func (*FaceView) Reset

func (v *FaceView) Reset()

Reset brings the view to an empty box.

func (*FaceView) SetError

func (v *FaceView) SetError(err error)

func (*FaceView) SetLoading

func (v *FaceView) SetLoading()

func (*FaceView) SetMain

func (v *FaceView) SetMain()

type Spinner

type Spinner struct {
	gtk.Box
	Spinner *gtk.Spinner
}

func NewSpinner

func NewSpinner() *Spinner

Jump to

Keyboard shortcuts

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