add Heartbeat

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2024-02-05 15:01:28 -06:00
parent ec4fb6aecb
commit 01c8dd6cf4
2 changed files with 9 additions and 10 deletions

View File

@ -49,9 +49,6 @@ type ActionType int // Add, SetText, Click, Hide, Append, Delete, etc
const (
Add ActionType = iota
Delete
Get
Set
GetText
SetText
AddText
Checked
@ -74,6 +71,7 @@ const (
ToolkitInit // initializes the toolkit
ToolkitClose // closes the toolkit
ToolkitPanic
Heartbeat
CloseWindow
UserQuit // the user closed the GUI
EnableDebug // open the debugging window
@ -85,12 +83,6 @@ func (s ActionType) String() string {
return "Add"
case Delete:
return "Delete"
case Get:
return "Get"
case Set:
return "Set"
case GetText:
return "GetText"
case SetText:
return "SetText"
case AddText:

View File

@ -15,7 +15,14 @@ type State struct {
// most primitive widgets just store a single thing
// it is the default value
Value any
DefaultS string
CurrentS string
CurrentI int
NewString string
// most primitive widgets just store a single thing
// it is the default value
// Value any
// how to arrange widgets
Direction Orientation