Documentation
¶
Index ¶
- Variables
- func AppBarSwitch(toggle *widget.Bool, label string, th **material.Theme) component.AppBarAction
- func Register(name string, fun func(*Router) Page)
- type Page
- type Router
- func (r *Router) CloseLogs()
- func (r *Router) Execute(cmd commands.Command, settings any)
- func (r *Router) ExitSubcommand()
- func (r *Router) GetPopup(id string) (p popups.Popup)
- func (r *Router) HandleEvent(event any) error
- func (r *Router) Layout(gtx layout.Context, th *material.Theme) layout.Dimensions
- func (r *Router) PushPopup(p popups.Popup) bool
- func (r *Router) Register(p func(g guim.Guim) Page, id string)
- func (r *Router) RemovePopup(id string)
- func (r *Router) SwitchTo(tag string)
- func (r *Router) Tick(now time.Time)
- func (r *Router) Toast(t string)
- func (r *Router) Wait()
- type Toast
Constants ¶
This section is empty.
Variables ¶
View Source
var Pages = map[string]func(*Router) Page{}
Functions ¶
func AppBarSwitch ¶ added in v1.34.3
Types ¶
type Page ¶
type Page interface {
ID() string
Actions(th *material.Theme) []component.AppBarAction
Overflow() []component.OverflowAction
Layout(gtx layout.Context, th *material.Theme) layout.Dimensions
messages.EventHandler
}
type Router ¶
type Router struct {
LogWidget func(layout.Context, *material.Theme) layout.Dimensions
AppBar *component.AppBar
ModalLayer *component.ModalLayer
NonModalDrawer bool
ShuttingDown bool
// contains filtered or unexported fields
}
func (*Router) ExitSubcommand ¶ added in v1.45.1
func (r *Router) ExitSubcommand()
func (*Router) HandleEvent ¶ added in v1.45.1
func (*Router) RemovePopup ¶ added in v1.31.1
Click to show internal directories.
Click to hide internal directories.