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

Method StretchFactor

boxlayout.go:74–80  ·  view source on GitHub ↗
(widget Widget)

Source from the content-addressed store, hash-verified

72}
73
74func (l *BoxLayout) StretchFactor(widget Widget) int {
75 if factor, ok := l.hwnd2StretchFactor[widget.Handle()]; ok {
76 return factor
77 }
78
79 return 1
80}
81
82func (l *BoxLayout) SetStretchFactor(widget Widget, factor int) error {
83 if factor != l.StretchFactor(widget) {

Callers 1

SetStretchFactorMethod · 0.95

Calls 1

HandleMethod · 0.65

Tested by

no test coverage detected