Function with_ui

Source
pub unsafe fn with_ui<R>(body: impl FnOnce(&Ui<'static>) -> R) -> R
Expand description

Retrieves the [imgui::Ui] for rendering a frame.

ยงSafety

The [imgui::Ui] should only be accessed in render thread.