winBBox returns the RenderWindow based bounding box for the widget by adding the Scene position to the ScBBox
()
| 427 | // winBBox returns the RenderWindow based bounding box for the widget |
| 428 | // by adding the Scene position to the ScBBox |
| 429 | func (wb *WidgetBase) winBBox() image.Rectangle { |
| 430 | bb := wb.Geom.TotalBBox |
| 431 | if wb.Scene != nil { |
| 432 | return bb.Add(wb.Scene.sceneGeom.Pos) |
| 433 | } |
| 434 | return bb |
| 435 | } |
| 436 | |
| 437 | // winPos returns the RenderWindow based position within the |
| 438 | // bounding box of the widget, where the x, y coordinates |
no test coverage detected