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

Method Dispose

widget.go:156–170  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

154}
155
156func (wb *WidgetBase) Dispose() {
157 if wb.hWnd == 0 {
158 return
159 }
160
161 if wb.parent != nil && win.GetParent(wb.hWnd) == wb.parent.Handle() {
162 wb.SetParent(nil)
163 }
164
165 if tt := wb.group.ToolTip(); tt != nil {
166 tt.RemoveTool(wb.window.(Widget))
167 }
168
169 wb.WindowBase.Dispose()
170}
171
172// AsWidgetBase just returns the receiver.
173func (wb *WidgetBase) AsWidgetBase() *WidgetBase {

Callers

nothing calls this directly

Calls 5

SetParentMethod · 0.95
RemoveToolMethod · 0.80
HandleMethod · 0.65
DisposeMethod · 0.65
ToolTipMethod · 0.45

Tested by

no test coverage detected