pages

package
v0.0.0-...-d1f57cd Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2023 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Page

type Page interface {
	Actions() []component.AppBarAction
	Overflow() []component.OverflowAction
	Layout(gtx layout.Context, th *themes.Theme) layout.Dimensions
	NavItem() component.NavItem
}

type Router

type Router struct {
	*component.ModalNavDrawer
	NavAnim component.VisibilityAnimation
	*component.AppBar
	*component.ModalLayer
	SDRManager *sdr.Manager
	State      *State
	// contains filtered or unexported fields
}

func NewRouter

func NewRouter(th *themes.Theme, sdrManager *sdr.Manager) Router

func (*Router) Layout

func (r *Router) Layout(gtx layout.Context, th *themes.Theme) layout.Dimensions

func (*Router) Register

func (r *Router) Register(tag interface{}, p Page)

func (*Router) SwitchTo

func (r *Router) SwitchTo(tag interface{})

type State

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

func NewState

func NewState(th *themes.Theme, manager *sdr.Manager) *State

func (*State) AddDevice

func (s *State) AddDevice(id devices.Id)

func (*State) DeviceCards

func (s *State) DeviceCards() (cards []layout.FlexChild)

func (*State) RemoveDevice

func (s *State) RemoveDevice(id devices.Id)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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