Documentation ¶
Index ¶
- Variables
- func AppBarSwitch(toggle *widget.Bool, label string, th **material.Theme) component.AppBarAction
- func Register(name string, fun func(*Router) Page)
- type HandlerFunc
- type Page
- type Router
- func (r *Router) Execute(cmd commands.Command, ctxKey, ctxVal any)
- func (r *Router) ExitCommand()
- func (r *Router) GetPopup(id string) (p popups.Popup)
- func (r *Router) HandleMessage(msg *messages.Message) *messages.Message
- 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(invalidate func()) 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 AppBarSwitch ¶ added in v1.34.3
Types ¶
type HandlerFunc ¶
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.Handler }
type Router ¶
type Router struct { Wg sync.WaitGroup Invalidate func() 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) ExitCommand ¶ added in v1.33.1
func (r *Router) ExitCommand()
func (*Router) HandleMessage ¶ added in v1.33.1
func (*Router) RemovePopup ¶ added in v1.31.1
Click to show internal directories.
Click to hide internal directories.