MCPcopy Index your code
hub / github.com/lxn/walk / hasComplexBackground

Method hasComplexBackground

widget.go:483–499  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

481}
482
483func (wb *WidgetBase) hasComplexBackground() bool {
484 if bg := wb.window.Background(); bg != nil && bg != nullBrushSingleton {
485 return !bg.simple()
486 }
487
488 var complex bool
489 wb.ForEachAncestor(func(window Window) bool {
490 if bg := window.Background(); bg != nil && !bg.simple() {
491 complex = true
492 return false
493 }
494
495 return true
496 })
497
498 return complex
499}
500
501func ancestor(w Widget) Form {
502 if w == nil {

Callers 2

WndProcMethod · 0.80
applyLayoutResultsFunction · 0.80

Calls 3

ForEachAncestorMethod · 0.95
BackgroundMethod · 0.65
simpleMethod · 0.65

Tested by

no test coverage detected