popups

package
v1.42.0 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: GPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewErrorPopup

func NewErrorPopup(err error, onClose func(), isPanic bool) *errorPopup

func NewGuiAuth

func NewGuiAuth(cancel func(), uri, code string) *guiAuth

Types

type C

type C = layout.Context

type ConnectPopup

type ConnectPopup struct {
	ListenIP   string
	ListenPort int
	// contains filtered or unexported fields
}

func (*ConnectPopup) HandleMessage

func (p *ConnectPopup) HandleMessage(msg *messages.Message) *messages.Message

func (*ConnectPopup) ID

func (p *ConnectPopup) ID() string

func (*ConnectPopup) Layout

func (p *ConnectPopup) Layout(gtx C, th *material.Theme) D

type D

type D = layout.Dimensions

func LayoutPopupBackground

func LayoutPopupBackground(gtx C, th *material.Theme, tag string, widget layout.Widget) D

type Gatherings added in v1.39.1

type Gatherings struct {
	// contains filtered or unexported fields
}

func (*Gatherings) HandleMessage added in v1.39.1

func (g *Gatherings) HandleMessage(msg *messages.Message) *messages.Message

func (*Gatherings) ID added in v1.39.1

func (*Gatherings) ID() string

func (*Gatherings) Layout added in v1.39.1

func (g *Gatherings) Layout(gtx C, th *material.Theme) D

func (*Gatherings) Load added in v1.39.1

func (g *Gatherings) Load() error
type Popup interface {
	ID() string
	Layout(gtx C, th *material.Theme) D
	messages.Handler
}

func NewConnect

func NewConnect(ui ui.UI, ListenIP string, ListenPort int) Popup

func NewGatherings added in v1.39.1

func NewGatherings(setGathering func(*gatherings.Gathering)) Popup

func NewRealmsList

func NewRealmsList(setRealm func(*realms.Realm)) Popup

func NewUpdatePopup

func NewUpdatePopup(ui ui.UI) Popup

type RealmsList

type RealmsList struct {
	Show widget.Bool
	// contains filtered or unexported fields
}

func (*RealmsList) HandleMessage

func (*RealmsList) HandleMessage(msg *messages.Message) *messages.Message

func (*RealmsList) ID

func (*RealmsList) ID() string

func (*RealmsList) Layout

func (r *RealmsList) Layout(gtx C, th *material.Theme) D

func (*RealmsList) Load

func (r *RealmsList) Load() error

type UpdatePopup

type UpdatePopup struct {
	// contains filtered or unexported fields
}

func (*UpdatePopup) HandleMessage

func (p *UpdatePopup) HandleMessage(msg *messages.Message) *messages.Message

func (*UpdatePopup) ID

func (p *UpdatePopup) ID() string

func (*UpdatePopup) Layout

func (p *UpdatePopup) Layout(gtx C, th *material.Theme) D

Jump to

Keyboard shortcuts

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