summaryrefslogtreecommitdiff
path: root/structs.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-02-09 03:00:10 -0600
committerJeff Carr <[email protected]>2025-02-09 03:00:10 -0600
commit8d8fc22745e8e5497e3db0a3389c17c3030a230f (patch)
tree15c30353e6651217f37ab8e890099c6890d76d7a /structs.go
parenteba5ea8cc072e950df19ad5b97e3c99794ab790e (diff)
detect an attempt to close a window
Diffstat (limited to 'structs.go')
-rw-r--r--structs.go8
1 files changed, 6 insertions, 2 deletions
diff --git a/structs.go b/structs.go
index e33b7dc..4a424b6 100644
--- a/structs.go
+++ b/structs.go
@@ -10,6 +10,7 @@ package main
import (
"fmt"
+ "os"
"reflect"
"strconv"
"sync"
@@ -53,6 +54,7 @@ type config struct {
RawW int `default:"1"` // the raw beginning of each window (or tab)
RawH int `default:"5"` // the raw beginning of each window (or tab)
FakeW int `default:"20"` // offset for the hidden widgets
+ DropdownId int `default:"-78"` // the widget id to use
padded bool // add space between things like buttons
bookshelf bool // do you want things arranged in the box like a bookshelf or a stack?
canvas bool // if set to true, the windows are a raw canvas
@@ -72,6 +74,8 @@ type config struct {
dark bool // use a 'dark' color palette
mouse mouse // mouse settings
showDebug bool // todo: move this into config struct
+ outf *os.File // hacks for capturing stdout
+
}
// stuff controlling how the mouse works
@@ -115,8 +119,8 @@ type dropdown struct {
h int // the height
active bool // is the dropdown menu currently in use?
init bool // moves the window offscreen on startup
- wId int // the widget id to use
- // dtoggle bool // is a dropdown or combobox currently active?
+ Id int `default:"-78"` // the widget id to use
+ wId int `default:"-78"` // the widget id to use
}
// this is the gocui way