NeedsRender specifies that the widget needs to be rendered.
()
| 55 | |
| 56 | // NeedsRender specifies that the widget needs to be rendered. |
| 57 | func (wb *WidgetBase) NeedsRender() { |
| 58 | if DebugSettings.UpdateTrace { |
| 59 | fmt.Println("\tDebugSettings.UpdateTrace: NeedsRender:", wb) |
| 60 | } |
| 61 | wb.needsRender = true |
| 62 | if wb.Scene != nil { |
| 63 | wb.Scene.sceneNeedsRender = true |
| 64 | } |
| 65 | } |
| 66 | |
| 67 | // NeedsLayout specifies that the widget's scene needs to do a layout. |
| 68 | // This needs to be called after any changes that affect the structure |