Screen
Screen
is a OSUI structure that allows the program to use osui elements and it's extensions.

Screen::new() -> Arc<Screen>
Creates a new Screen
structure with empty widgets and extensions.
draw(self: &Arc<Self>, element: FnMut() -> WidgetLoad) -> Arc<Widget>
Adds a element to the widgets array and returns the widget for extra parameters.
extension(&mut self, ext: Extension)
Implements a extension to the screen.
run(&mut self) -> std::io::Result<()>
Runs the app.
render(&self) -> std::io::Result<()>
warningDo not call this function if you don't know what you're doing, this function may cause a mutex deadlock.
pub fn draw_box(self: &Arc<Self>, element: Box<dyn FnMut() -> WidgetLoad + Send + Sync>) -> Arc<Widget>
Adds a element to the widgets array and returns the widget for extra parameters.
infoThis function is useful in special scenarios.