()
| 154 | } |
| 155 | |
| 156 | func (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. |
| 173 | func (wb *WidgetBase) AsWidgetBase() *WidgetBase { |
nothing calls this directly
no test coverage detected