(widget Widget)
| 29 | } |
| 30 | |
| 31 | func (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 | |
| 39 | func (l *FlowLayout) SetStretchFactor(widget Widget, factor int) error { |
| 40 | if factor != l.StretchFactor(widget) { |
no test coverage detected