Documentation ¶
Index ¶
- Variables
- func NewErrorPopup(r *Router, err error, onClose func(), isPanic bool) *errorPopup
- func Register(name string, fun func(*Router) Page)
- type C
- type ConnectPopup
- type D
- type HandlerFunc
- type Page
- type Popup
- type Router
- func (r *Router) Execute(cmd commands.Command)
- func (r *Router) Handler(data interface{}) messages.Response
- func (r *Router) Layout(gtx layout.Context, th *material.Theme) layout.Dimensions
- func (r *Router) PushPopup(p Popup)
- func (r *Router) Register(p func(*Router) Page, id string)
- func (r *Router) RemovePopup(id string)
- func (r *Router) SwitchTo(tag string)
Constants ¶
This section is empty.
Variables ¶
View Source
var Pages = map[string]func(*Router) Page{}
Functions ¶
func NewErrorPopup ¶ added in v1.31.1
Types ¶
type ConnectPopup ¶ added in v1.31.1
type ConnectPopup struct {
// contains filtered or unexported fields
}
func (*ConnectPopup) Handler ¶ added in v1.31.1
func (u *ConnectPopup) Handler(data any) messages.Response
func (*ConnectPopup) ID ¶ added in v1.31.1
func (p *ConnectPopup) ID() string
type D ¶ added in v1.31.1
type D = layout.Dimensions
type HandlerFunc ¶
type Page ¶
type Page interface { ID() string Actions() []component.AppBarAction Overflow() []component.OverflowAction Layout(gtx layout.Context, th *material.Theme) layout.Dimensions // handle events from program Handler(data any) messages.Response }
type Popup ¶ added in v1.31.1
type Popup interface { ID() string Layout(gtx layout.Context, th *material.Theme) layout.Dimensions Handler(data any) messages.Response }
func NewConnect ¶ added in v1.31.1
type Router ¶
type Router struct { UI ui.UI Wg sync.WaitGroup MSAuth *guiAuth Invalidate func() LogWidget func(C, *material.Theme) D Theme *material.Theme AppBar *component.AppBar ModalLayer *component.ModalLayer NonModalDrawer bool BottomBar bool // contains filtered or unexported fields }
func (*Router) RemovePopup ¶ added in v1.31.1
Source Files ¶
Click to show internal directories.
Click to hide internal directories.