diff options
| author | Jeff Carr <[email protected]> | 2025-02-02 13:05:42 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-02-02 15:04:07 -0600 |
| commit | d4b7cd32d47ab0307c650f711f784575ad0d8e2d (patch) | |
| tree | 18f8d174d27623dc55f80984786c8e4c7de0450a /action.go | |
| parent | ad6bb0f1c1eab46d76d369bfb3453cecff254a96 (diff) | |
goimport lintv1.1.28
Diffstat (limited to 'action.go')
| -rw-r--r-- | action.go | 30 |
1 files changed, 15 insertions, 15 deletions
@@ -7,13 +7,13 @@ type Action struct { WidgetId int ParentId int - State State + State State // Text string // what is visable to the user - ProgName string // a name useful for programming + ProgName string // a name useful for programming // most primitive widgets just store a single thing - Value any + Value any // how to arrange widgets Direction Orientation @@ -23,25 +23,25 @@ type Action struct { // These must be unique Strings []string - Range RangeType + Range RangeType // RETHINK / REDO EVERYTHING BELOW HERE // This is used for things like a slider(0,100) - X int - Y int + X int + Y int // This is for the grid size & widget position - W int - H int - AtW int - AtH int + W int + H int + AtW int + AtH int // Put space around elements to improve look & feel // Margin bool avoided due to use of action types // Pad bool // Make widgets fill up the space available - Expand bool + Expand bool } type ActionType int // Add, SetText, Click, Hide, Append, Delete, etc @@ -66,14 +66,14 @@ const ( Append Move Dump - User // the user did something (mouse, keyboard, etc) - ToolkitLoad // attempts to load a new toolkit - ToolkitInit // initializes the toolkit + User // the user did something (mouse, keyboard, etc) + ToolkitLoad // attempts to load a new toolkit + ToolkitInit // initializes the toolkit ToolkitClose // closes the toolkit ToolkitPanic Heartbeat CloseWindow - UserQuit // the user closed the GUI + UserQuit // the user closed the GUI EnableDebug // open the debugging window ) |
