2024-01-07 05:46:59 -06:00
|
|
|
package smartwindow
|
|
|
|
|
|
|
|
import (
|
|
|
|
"go.wit.com/gui/gui"
|
|
|
|
)
|
|
|
|
|
|
|
|
type SmartWindow struct {
|
|
|
|
ready bool // track if the window is ready
|
|
|
|
hidden bool // track if the window is hidden from the toolkits
|
|
|
|
changed bool // track if something changed in the window
|
2024-01-07 10:38:17 -06:00
|
|
|
vertical bool
|
2024-01-07 05:46:59 -06:00
|
|
|
|
|
|
|
title string // what the user sees as the name
|
|
|
|
name string // the programatic name aka: "CALANDAR"
|
|
|
|
|
|
|
|
parent *gui.Node // where to place the window if you try to draw it
|
2024-01-07 10:38:17 -06:00
|
|
|
window *gui.Node // the underlying window
|
2024-01-07 05:46:59 -06:00
|
|
|
box *gui.Node // the box inside the window // get this from BasicWindow() ?
|
|
|
|
|
|
|
|
populate func(*SmartWindow) // the function to generate the widgets
|
|
|
|
}
|