Skip to main content

scope

Function scope 

Source
pub fn scope<R>(
    ui: &mut Ui,
    panel: &str,
    inert: bool,
    add: impl FnOnce(&mut Ui) -> R,
) -> R
Expand description

Draws add as the content of panel: the areas it registers name the panel, and its edit areas are inert when inert (the panel’s state is not current).