(widget Widget)
| 72 | } |
| 73 | |
| 74 | func (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 | |
| 82 | func (l *BoxLayout) SetStretchFactor(widget Widget, factor int) error { |
| 83 | if factor != l.StretchFactor(widget) { |
no test coverage detected