InitWindow initializes a window. Widgets should be initialized using InitWidget instead.
(window, parent Window, className string, style, exStyle uint32)
| 535 | // |
| 536 | // Widgets should be initialized using InitWidget instead. |
| 537 | func InitWindow(window, parent Window, className string, style, exStyle uint32) error { |
| 538 | return initWindowWithCfg(&windowCfg{ |
| 539 | Window: window, |
| 540 | Parent: parent, |
| 541 | ClassName: className, |
| 542 | Style: style, |
| 543 | ExStyle: exStyle, |
| 544 | }) |
| 545 | } |
| 546 | |
| 547 | func initWindowWithCfg(cfg *windowCfg) error { |
| 548 | // We can't use sync.Once, because tooltip.go's init also calls InitWindow, so we deadlock. |
no test coverage detected
searching dependent graphs…