Skip to main content

drawer

Function drawer 

Source
pub fn drawer<'a>(
    id: impl Into<WidgetId>,
    area: Rect,
    open: &'a mut bool,
) -> DrawerBuilder<'a>
Expand description

A drawer over area, shown while *open. A click on the scrim ("{id}:scrim") clears open and reports changed. Paint the body in DrawerBuilder::body_rect after build.