(f func(window Window) bool)
| 380 | } |
| 381 | |
| 382 | func (wb *WidgetBase) ForEachAncestor(f func(window Window) bool) { |
| 383 | hwnd := win.GetParent(wb.hWnd) |
| 384 | |
| 385 | for hwnd != 0 { |
| 386 | if window := windowFromHandle(hwnd); window != nil { |
| 387 | if !f(window) { |
| 388 | return |
| 389 | } |
| 390 | } |
| 391 | |
| 392 | hwnd = win.GetParent(hwnd) |
| 393 | } |
| 394 | } |
| 395 | |
| 396 | // ToolTipText returns the tool tip text of the WidgetBase. |
| 397 | func (wb *WidgetBase) ToolTipText() string { |
no test coverage detected