NeedsLayout specifies that the widget's scene needs to do a layout. This needs to be called after any changes that affect the structure and/or size of elements.
()
| 68 | // This needs to be called after any changes that affect the structure |
| 69 | // and/or size of elements. |
| 70 | func (wb *WidgetBase) NeedsLayout() { |
| 71 | if DebugSettings.UpdateTrace { |
| 72 | fmt.Println("\tDebugSettings.UpdateTrace: NeedsLayout:", wb) |
| 73 | } |
| 74 | if wb.Scene != nil { |
| 75 | wb.Scene.needsLayout = true |
| 76 | } |
| 77 | } |
| 78 | |
| 79 | // NeedsRebuild returns whether the [renderContext] indicates |
| 80 | // a full rebuild is needed. This is typically used to detect |
no test coverage detected