updateScene calls UpdateTree on the Scene, which calls UpdateWidget on all widgets in the Scene. This will set NeedsLayout to drive subsequent layout and render. This is a top-level call, typically only done when the window is first drawn or resized, or during rebuild, once the full sizing informat
()
| 231 | // is first drawn or resized, or during rebuild, |
| 232 | // once the full sizing information is available. |
| 233 | func (sc *Scene) updateScene() { |
| 234 | sc.updating = true // prevent rendering |
| 235 | defer func() { sc.updating = false }() |
| 236 | |
| 237 | sc.UpdateTree() |
| 238 | } |
| 239 | |
| 240 | // applyStyleScene calls ApplyStyle on all widgets in the Scene, |
| 241 | // This is needed whenever the window geometry, DPI, |
no test coverage detected