MCPcopy Create free account
hub / github.com/lxn/walk / SetClearsBackground

Method SetClearsBackground

customwidget.go:87–95  ·  view source on GitHub ↗

deprecated, use SetPaintMode

(value bool)

Source from the content-addressed store, hash-verified

85
86// deprecated, use SetPaintMode
87func (cw *CustomWidget) SetClearsBackground(value bool) {
88 if value != cw.ClearsBackground() {
89 if value {
90 cw.paintMode = PaintNormal
91 } else {
92 cw.paintMode = PaintNoErase
93 }
94 }
95}
96
97func (cw *CustomWidget) InvalidatesOnResize() bool {
98 return cw.invalidatesOnResize

Callers 2

CreateMethod · 0.95
SetImageMethod · 0.80

Calls 1

ClearsBackgroundMethod · 0.95

Tested by

no test coverage detected