Documentation
¶
Index ¶
- Variables
- func AnyUnderlay() *fyne.StaticResource
- func EmailValidator(str string) error
- func FormatAL(al api.AL) string
- func GetProp(cid uint64, user *api.User) (p api.Props, err error)
- func HostValidator(str string) error
- func Lifecycle(a fyne.App)
- func MakeHostValidator() fyne.StringValidator
- func MrtpValidator(s string) (err error)
- func NewImageFit(objects ...fyne.CanvasObject) *fyne.Container
- func WaitToken() (err error)
- type Frame
- type ImageFitLayout
- type MainPage
- func (p *MainPage) Create(w fyne.Window)
- func (p *MainPage) OnCellSelected(id widget.TableCellID)
- func (p *MainPage) OnCellUnselect()
- func (p *MainPage) OnClubBank(w fyne.Window)
- func (p *MainPage) OnUserAccess(w fyne.Window)
- func (p *MainPage) OnUserAdd(w fyne.Window)
- func (p *MainPage) OnUserMrtp(w fyne.Window)
- func (p *MainPage) OnUserRemove(w fyne.Window)
- func (p *MainPage) OnUserWallet(w fyne.Window)
- func (p *MainPage) RefreshContent()
- type SigninPage
- type ToolbarLabel
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 HostValidator ¶
func MakeHostValidator ¶
func MakeHostValidator() fyne.StringValidator
func MrtpValidator ¶
func NewImageFit ¶
func NewImageFit(objects ...fyne.CanvasObject) *fyne.Container
Types ¶
type Frame ¶
type Frame struct { fyne.Window SigninPage MainPage }
func (*Frame) CreateWindow ¶
func (f *Frame) CreateWindow(a fyne.App)
func (*Frame) MakeClubList ¶
func (*Frame) MakeUserList ¶
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) 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) 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 ¶
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
Click to show internal directories.
Click to hide internal directories.