Skip to main content

Module root_widget

Module root_widget 

Source
Expand description

§RootWidget

The top-level Widget (ID 0) that the Engine creates for every window. It fills the window with its color (white by default) and is the parent of every other Widget.

It lives in the core so the engine doesn’t depend on any widget library. Change the window background with ui.get_mut::<RootWidget>(ROOT_WIDGET_ID).unwrap().set_color(..), or Engine::set_background.

Structs§

RootWidget
The window’s root Widget: a flat fill of its color.