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

Method StretchFactor

flowlayout.go:31–37  ·  view source on GitHub ↗
(widget Widget)

Source from the content-addressed store, hash-verified

29}
30
31func (l *FlowLayout) StretchFactor(widget Widget) int {
32 if factor, ok := l.hwnd2StretchFactor[widget.Handle()]; ok {
33 return factor
34 }
35
36 return 1
37}
38
39func (l *FlowLayout) SetStretchFactor(widget Widget, factor int) error {
40 if factor != l.StretchFactor(widget) {

Callers 1

SetStretchFactorMethod · 0.95

Calls 1

HandleMethod · 0.65

Tested by

no test coverage detected