MCPcopy Create free account
hub / github.com/lxn/walk / Range

Method Range

gridlayout.go:198–212  ·  view source on GitHub ↗
(widget Widget)

Source from the content-addressed store, hash-verified

196}
197
198func (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
214func (l *GridLayout) SetRange(widget Widget, r Rectangle) error {
215 if widget == nil {

Callers

nothing calls this directly

Calls 5

AsWidgetBaseMethod · 0.65
containsHandleMethod · 0.65
ChildrenMethod · 0.65
HandleMethod · 0.65

Tested by

no test coverage detected