2024-01-07 05:46:59 -06:00
|
|
|
// This creates a 'smart window'
|
|
|
|
// it should work even when it is hidden
|
|
|
|
// from the gui toolkit plugins
|
|
|
|
package smartwindow
|
|
|
|
|
|
|
|
import (
|
|
|
|
"go.wit.com/log"
|
|
|
|
)
|
|
|
|
|
|
|
|
func (sw *SmartWindow) Ready() bool {
|
2024-01-07 10:38:17 -06:00
|
|
|
log.Log(INFO, "Ready() START")
|
2024-01-07 05:46:59 -06:00
|
|
|
if sw == nil {return false}
|
|
|
|
if sw.window == nil {return false}
|
2024-01-07 10:38:17 -06:00
|
|
|
log.Log(INFO, "Ready() END sw.ready =", sw.ready)
|
2024-01-07 05:46:59 -06:00
|
|
|
return sw.ready
|
|
|
|
}
|
|
|
|
|
|
|
|
func (sw *SmartWindow) Initialized() bool {
|
2024-01-07 10:38:17 -06:00
|
|
|
log.Log(INFO, "checking Initialized()")
|
2024-01-07 05:46:59 -06:00
|
|
|
if sw == nil {return false}
|
|
|
|
return true
|
|
|
|
}
|