RenderWidget renders the widget and any parts and children that it has. It does not render if the widget is invisible. It calls Widget.Render] for widget-specific rendering.
()
| 378 | // It does not render if the widget is invisible. It calls Widget.Render] |
| 379 | // for widget-specific rendering. |
| 380 | func (wb *WidgetBase) RenderWidget() { |
| 381 | if wb.PushBounds() { |
| 382 | wb.This.(Widget).Render() |
| 383 | wb.renderParts() |
| 384 | wb.renderChildren() |
| 385 | wb.PopBounds() |
| 386 | } |
| 387 | } |
| 388 | |
| 389 | func (wb *WidgetBase) renderParts() { |
| 390 | if wb.Parts != nil { |
nothing calls this directly
no test coverage detected