ui

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrBadEmail = errors.New("not a valid email")
	ErrNoUser   = errors.New("given email does not registered")
	ErrRtpMin   = errors.New("RTP is too small")
	ErrRtpMax   = errors.New("RTP is too big")
)
View Source
var (
	Cfg = cfg.Cfg // shortcut
)
View Source
var Foreground bool

Foreground state of main window. Helps to suspend refreshes if window is on background.

Functions

func AnyUnderlay

func AnyUnderlay() *fyne.StaticResource

func EmailValidator

func EmailValidator(str string) error

func FormatAL

func FormatAL(al api.AL) string

func GetProp

func GetProp(cid uint64, user *api.User) (p api.Props, err error)

func HostValidator

func HostValidator(str string) error

func Lifecycle

func Lifecycle(a fyne.App)

func MakeHostValidator

func MakeHostValidator() fyne.StringValidator

func MrtpValidator

func MrtpValidator(s string) (err error)

func NewImageFit

func NewImageFit(objects ...fyne.CanvasObject) *fyne.Container

func WaitToken

func WaitToken() (err error)

Types

type Frame

type Frame struct {
	fyne.Window
	SigninPage
	MainPage
}

func (*Frame) CreateWindow

func (f *Frame) CreateWindow(a fyne.App)

func (*Frame) MakeClubList

func (f *Frame) MakeClubList() (err error)

func (*Frame) MakeUserList

func (f *Frame) MakeUserList() (err error)

func (*Frame) RefreshLoop

func (f *Frame) RefreshLoop()

func (*Frame) StartupChain

func (f *Frame) StartupChain()

type ImageFitLayout

type ImageFitLayout struct {
}

Layout that fits the images to whole space and cuts edges if it needs.

func (ImageFitLayout) Layout

func (l ImageFitLayout) Layout(objects []fyne.CanvasObject, size fyne.Size)

func (ImageFitLayout) MinSize

func (l ImageFitLayout) MinSize(objects []fyne.CanvasObject) fyne.Size

type MainPage

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

func (*MainPage) Create

func (p *MainPage) Create(w fyne.Window)

func (*MainPage) OnCellSelected

func (p *MainPage) OnCellSelected(id widget.TableCellID)

func (*MainPage) OnCellUnselect

func (p *MainPage) OnCellUnselect()

func (*MainPage) OnClubBank

func (p *MainPage) OnClubBank(w fyne.Window)

func (*MainPage) OnUserAccess

func (p *MainPage) OnUserAccess(w fyne.Window)

func (*MainPage) OnUserAdd

func (p *MainPage) OnUserAdd(w fyne.Window)

func (*MainPage) OnUserMrtp

func (p *MainPage) OnUserMrtp(w fyne.Window)

func (*MainPage) OnUserRemove

func (p *MainPage) OnUserRemove(w fyne.Window)

func (*MainPage) OnUserWallet

func (p *MainPage) OnUserWallet(w fyne.Window)

func (*MainPage) RefreshContent

func (p *MainPage) RefreshContent()

Refreshes visible content of users list. Fetches data from server if cached data has timeout is over.

type SigninPage

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

func (*SigninPage) Create

func (p *SigninPage) Create(w fyne.Window)

type ToolbarLabel

type ToolbarLabel struct {
	widget.Label
}

Label compatible with ToolbarItem interface to insert into Toolbar.

func NewToolbarLabel

func NewToolbarLabel(text string) *ToolbarLabel

func (*ToolbarLabel) ToolbarObject

func (tl *ToolbarLabel) ToolbarObject() fyne.CanvasObject

Jump to

Keyboard shortcuts

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