UpdateWidget updates the widget by running [WidgetBase.Updaters] in sequential descending (reverse) order after calling [WidgetBase.ValueUpdate]. This includes applying the result of [WidgetBase.Make]. UpdateWidget differs from [WidgetBase.Update] in that it only updates the widget itself and not a
()
| 19 | // a new layout pass, while [WidgetBase.Update] does. End-user code should typically |
| 20 | // call [WidgetBase.Update], not UpdateWidget. |
| 21 | func (wb *WidgetBase) UpdateWidget() *WidgetBase { |
| 22 | if wb.ValueUpdate != nil { |
| 23 | wb.ValueUpdate() |
| 24 | } |
| 25 | wb.RunUpdaters() |
| 26 | return wb |
| 27 | } |
| 28 | |
| 29 | // UpdateTree calls [WidgetBase.UpdateWidget] on every widget in the tree |
| 30 | // starting with this one and going down. |
no test coverage detected