smarthome

package
v0.0.0-...-1c0f6f5 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2022 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DeskModeActive = DeskMode(1)
	DeskModeManage = DeskMode(2)
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DashboardWidget

type DashboardWidget struct {
	widgets.IWidget
	// contains filtered or unexported fields
}

func NewMainWidget

func NewMainWidget() *DashboardWidget

func (*DashboardWidget) ProcessEvent

func (self *DashboardWidget) ProcessEvent(e *evt.Event)

func (*DashboardWidget) Render

func (self *DashboardWidget) Render()

type DashboardWidgetFactory

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

func NewDashboardWidgetFactory

func NewDashboardWidgetFactory() *DashboardWidgetFactory

func (*DashboardWidgetFactory) CreateWidgetByName

func (self *DashboardWidgetFactory) CreateWidgetByName(widgetName string) (widgets.IWidget, error)

func (*DashboardWidgetFactory) RegisterWidget

func (self *DashboardWidgetFactory) RegisterWidget(widgetName string, create func() widgets.IWidget)

type DeskMode

type DeskMode int

Jump to

Keyboard shortcuts

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