MCPcopy
hub / github.com/lxn/walk / InitWindow

Function InitWindow

window.go:537–545  ·  view source on GitHub ↗

InitWindow initializes a window. Widgets should be initialized using InitWidget instead.

(window, parent Window, className string, style, exStyle uint32)

Source from the content-addressed store, hash-verified

535//
536// Widgets should be initialized using InitWidget instead.
537func 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
547func initWindowWithCfg(cfg *windowCfg) error {
548 // We can't use sync.Once, because tooltip.go's init also calls InitWindow, so we deadlock.

Callers 6

newSplitterHandleFunction · 0.85
InitWidgetFunction · 0.85
newLineEditFunction · 0.85
newToolTipFunction · 0.85
newDialogWithStyleFunction · 0.85
NewTabPageFunction · 0.85

Calls 1

initWindowWithCfgFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…