diff options
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 ) |
