diff options
| author | Jeff Carr <[email protected]> | 2024-02-05 15:01:28 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-02-05 15:01:28 -0600 |
| commit | 01c8dd6cf462ea3d33ea6c7eb5b91a6852a33964 (patch) | |
| tree | 4ac60f2d5d3131cba70594cd7694c880b4d69d39 | |
| parent | ec4fb6aecb83df430a378d604a52c562084b2265 (diff) | |
Signed-off-by: Jeff Carr <[email protected]>
| -rw-r--r-- | action.go | 10 | ||||
| -rw-r--r-- | state.go | 9 |
2 files changed, 9 insertions, 10 deletions
@@ -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: @@ -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 |
