base documentation of konstructor

This commit is contained in:
2023-07-08 16:34:53 +02:00
parent e5c2294f6c
commit 638fb415ec
17 changed files with 80 additions and 1 deletions

View File

@@ -1,5 +1,6 @@
package konstructor
// Framework context (state)
type KContext struct {
ScreenType ScreenType
ActiveMenu MenuMapKey
@@ -10,6 +11,7 @@ type KContext struct {
LiveCount int
}
// Check the current screen type
func (c *KContext) ScreenTypeIs(name ScreenType) bool {
return c.ScreenType == name
}