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

Method ForEachAncestor

widget.go:382–394  ·  view source on GitHub ↗
(f func(window Window) bool)

Source from the content-addressed store, hash-verified

380}
381
382func (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.
397func (wb *WidgetBase) ToolTipText() string {

Callers 1

hasComplexBackgroundMethod · 0.95

Calls 1

windowFromHandleFunction · 0.85

Tested by

no test coverage detected