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

Method hasActiveGraphicsEffects

widget.go:465–481  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

463}
464
465func (wb *WidgetBase) hasActiveGraphicsEffects() bool {
466 if wb.graphicsEffects == nil {
467 return false
468 }
469
470 count := wb.graphicsEffects.Len()
471
472 for _, gfx := range [...]WidgetGraphicsEffect{FocusEffect, InteractionEffect, ValidationErrorEffect} {
473 if wb.graphicsEffects.Contains(gfx) {
474 if gfx == nil {
475 count--
476 }
477 }
478 }
479
480 return count > 0
481}
482
483func (wb *WidgetBase) hasComplexBackground() bool {
484 if bg := wb.window.Background(); bg != nil && bg != nullBrushSingleton {

Callers 1

Calls 2

LenMethod · 0.45
ContainsMethod · 0.45

Tested by

no test coverage detected