Skip to main content

Module default_post_root

Module default_post_root 

Source
Expand description

App-wide default post-root wrapper.

Stored in app_state by extensions (notably the debug inspector) that want to splice a wrapper widget around every window’s root without per-window opt-in. WindowManager::create_window looks this up after invoking the user’s root_builder, before computing modal focus targets.

Per-window WindowConfig::post_root overrides this default for that window only — useful when a particular window opts out of the wrapper or wants a different one.

Structs§

DefaultPostRoot
Closure that runs after each window’s root_builder returns, wrapping the user’s root widget. Stored in app_state so it is shared across every window the app opens at runtime.