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

Method SetMode

imageview.go:86–96  ·  view source on GitHub ↗
(mode ImageViewMode)

Source from the content-addressed store, hash-verified

84}
85
86func (iv *ImageView) SetMode(mode ImageViewMode) {
87 if mode == iv.mode {
88 return
89 }
90
91 iv.mode = mode
92
93 iv.Invalidate()
94
95 iv.RequestLayout()
96}
97
98func (iv *ImageView) applyDPI(dpi int) {
99 iv.CustomWidget.ApplyDPI(dpi)

Callers 2

CreateMethod · 0.95
openImageMethod · 0.95

Calls 2

InvalidateMethod · 0.65
RequestLayoutMethod · 0.65

Tested by

no test coverage detected