diff options
| author | Jeff Carr <[email protected]> | 2025-03-02 13:34:09 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-03-02 13:34:09 -0600 |
| commit | 063818335663e7aa626434d5dc035f8b5455e5ae (patch) | |
| tree | 85a8543f77124fb919352a564775b3f77b567be0 /structs.go | |
| parent | f24c5098597922913f68d22960033318fb56ad1d (diff) | |
start moving to standard internal TK functions
Diffstat (limited to 'structs.go')
| -rw-r--r-- | structs.go | 32 |
1 files changed, 21 insertions, 11 deletions
@@ -77,13 +77,14 @@ type config struct { stdout stdout // information for the STDOUT window dropdown dropdown // the dropdown menu textbox dropdown // the textbox popup window - clock dropdown // the textbox popup window - allwin []*guiWidget // for tracking which window is next - dark bool // use a 'dark' color palette - mouse mouse // mouse settings - showDebug bool // todo: move this into config struct - debug bool // todo: move this into config struct - starttime time.Time // checks how long it takes on startup + // clock dropdown // the textbox popup window + notify libnotify // emulates the desktop libnotify menu + allwin []*guiWidget // for tracking which window is next + dark bool // use a 'dark' color palette + mouse mouse // mouse settings + showDebug bool // todo: move this into config struct + debug bool // todo: move this into config struct + starttime time.Time // checks how long it takes on startup } // stuff controlling how the mouse works @@ -127,14 +128,23 @@ type dropdown struct { h int // the height active bool // is the dropdown menu currently in use? init bool // moves the window offscreen on startup - Id int `default:"-78"` // the widget id to use - wId int `default:"-78"` // the widget id to use + // Id int `default:"-78"` // the widget id to use + wId int `default:"-78"` // the widget id to use +} + +// settings for the dropdown window +type internalTK struct { + tk *guiWidget // where to show STDOUT + callerTK *guiWidget // which widget called the dropdown menu + wId int // the widget id to use + active bool // is the internal widget currently in use? } // the desktop libnotify menu type libnotify struct { - clock *guiWidget // where to show the clock - menu *guiWidget // where to show the clock + clock internalTK // widget for the clock + menu internalTK // libnotify menu icon + window internalTK // the libnotify menu } // this is the gocui way |
