Documentation ¶
Index ¶
- Variables
- type AddRulePage
- func (p *AddRulePage) EditRule(rule *riddle.Rule)
- func (p *AddRulePage) GetName() string
- func (p *AddRulePage) HandleSetup(setup riddle.Setup)
- func (p *AddRulePage) Layout(gtx C) D
- func (p *AddRulePage) Reset()
- func (p *AddRulePage) Save()
- func (p *AddRulePage) Select()
- func (p *AddRulePage) SetSaveFunc(saveFunc func(*riddle.Rule))
- type App
- type C
- type D
- type DebugPage
- type LoadPage
- type ResultsPage
- type RulesPage
- func (p *RulesPage) GetName() string
- func (p *RulesPage) GetRules() []riddle.Rule
- func (p *RulesPage) HandleSetup(setup riddle.Setup)
- func (p *RulesPage) Layout(gtx C) D
- func (p *RulesPage) Reset()
- func (p *RulesPage) Save()
- func (p *RulesPage) SaveRule(rule *riddle.Rule)
- func (p *RulesPage) Select()
- func (p *RulesPage) SetEditFunc(editFunc func(*riddle.Rule))
- func (p *RulesPage) SetRules(rules []riddle.Rule)
- func (p *RulesPage) SetSaveFunc(saveFunc func([]riddle.Rule))
- type SavePage
- type SetupPage
- func (p *SetupPage) Add()
- func (p *SetupPage) GetName() string
- func (p *SetupPage) GetSetup() (riddle.Setup, error)
- func (p *SetupPage) Layout(gtx C) D
- func (p *SetupPage) Reset()
- func (p *SetupPage) Save()
- func (p *SetupPage) Select()
- func (p *SetupPage) SetSaveFunc(saveFunc func(riddle.Setup))
- func (p *SetupPage) SetSetup(setup riddle.Setup)
Constants ¶
This section is empty.
Variables ¶
View Source
var LightTheme = material.NewTheme(gofont.Collection())
View Source
var Themes = map[string]*material.Theme{ "light": LightTheme, }
Functions ¶
This section is empty.
Types ¶
type AddRulePage ¶
type AddRulePage struct {
// contains filtered or unexported fields
}
func NewAddRulePage ¶
func NewAddRulePage(th *material.Theme, modal razgio.ModalHandler) *AddRulePage
func (*AddRulePage) EditRule ¶
func (p *AddRulePage) EditRule(rule *riddle.Rule)
func (*AddRulePage) GetName ¶
func (p *AddRulePage) GetName() string
func (*AddRulePage) HandleSetup ¶
func (p *AddRulePage) HandleSetup(setup riddle.Setup)
func (*AddRulePage) Layout ¶
func (p *AddRulePage) Layout(gtx C) D
func (*AddRulePage) Reset ¶
func (p *AddRulePage) Reset()
func (*AddRulePage) Save ¶
func (p *AddRulePage) Save()
func (*AddRulePage) Select ¶
func (p *AddRulePage) Select()
func (*AddRulePage) SetSaveFunc ¶
func (p *AddRulePage) SetSaveFunc(saveFunc func(*riddle.Rule))
type D ¶
type D = layout.Dimensions
type DebugPage ¶
type DebugPage struct {
// contains filtered or unexported fields
}
func NewDebugPage ¶
func NewDebugPage(th *material.Theme, modal razgio.ModalHandler) *DebugPage
func (*DebugPage) HandleRules ¶
func (*DebugPage) HandleSetup ¶
type LoadPage ¶
type LoadPage struct {
// contains filtered or unexported fields
}
func NewLoadPage ¶
func NewLoadPage(th *material.Theme, modal razgio.ModalHandler) *LoadPage
type ResultsPage ¶
type ResultsPage struct {
// contains filtered or unexported fields
}
func NewResultsPage ¶
func NewResultsPage(th *material.Theme, modal razgio.ModalHandler) *ResultsPage
func (*ResultsPage) GetName ¶
func (p *ResultsPage) GetName() string
func (*ResultsPage) HandleRules ¶
func (p *ResultsPage) HandleRules(rules []riddle.Rule)
func (*ResultsPage) HandleSetup ¶
func (p *ResultsPage) HandleSetup(setup riddle.Setup)
func (*ResultsPage) Layout ¶
func (p *ResultsPage) Layout(gtx C) D
func (*ResultsPage) Select ¶
func (p *ResultsPage) Select()
type RulesPage ¶
type RulesPage struct {
// contains filtered or unexported fields
}
func NewRulesPage ¶
func NewRulesPage(th *material.Theme, modal razgio.ModalHandler) *RulesPage
func (*RulesPage) HandleSetup ¶
func (*RulesPage) SetEditFunc ¶
func (*RulesPage) SetSaveFunc ¶
type SavePage ¶
type SavePage struct {
// contains filtered or unexported fields
}
func NewSavePage ¶
func NewSavePage(th *material.Theme, modal razgio.ModalHandler) *SavePage
type SetupPage ¶
type SetupPage struct {
// contains filtered or unexported fields
}
func NewSetupPage ¶
func NewSetupPage(th *material.Theme, modal razgio.ModalHandler) *SetupPage
func (*SetupPage) SetSaveFunc ¶
Click to show internal directories.
Click to hide internal directories.