(widget Widget)
| 196 | } |
| 197 | |
| 198 | func (l *GridLayout) Range(widget Widget) (r Rectangle, ok bool) { |
| 199 | if widget == nil { |
| 200 | return Rectangle{}, false |
| 201 | } |
| 202 | |
| 203 | info := l.widgetBase2Info[widget.AsWidgetBase()] |
| 204 | |
| 205 | if info == nil || |
| 206 | l.container == nil || |
| 207 | !l.container.Children().containsHandle(widget.Handle()) { |
| 208 | return Rectangle{}, false |
| 209 | } |
| 210 | |
| 211 | return rangeFromGridLayoutWidgetInfo(info), true |
| 212 | } |
| 213 | |
| 214 | func (l *GridLayout) SetRange(widget Widget, r Rectangle) error { |
| 215 | if widget == nil { |
nothing calls this directly
no test coverage detected