popups

package
v1.37.0 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LayoutPopupBackground

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

func NewErrorPopup

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

Types

type C

type C = layout.Context

type ConnectPopup

type ConnectPopup struct {
	// 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
type Popup interface {
	ID() string
	Layout(gtx layout.Context, th *material.Theme) layout.Dimensions
	messages.Handler
}

func NewConnect

func NewConnect(ui ui.UI) Popup

func NewGuiAuth

func NewGuiAuth(ui ui.UI, uri, code string) Popup

func NewRealmsList

func NewRealmsList(ui ui.UI, 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 layout.Context, th *material.Theme) layout.Dimensions

func (*RealmsList) Load

func (r *RealmsList) Load()

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