Skip to main content

frame

Function frame 

Source
pub fn frame(
    frame: &mut Frame,
    visuals: FrameVisuals,
    ui: &mut Ui,
    add_contents: impl FnOnce(&mut Ui),
) -> Response
Expand description

Paint frame with hover/click fills from visuals.

The closure runs inside the frame. Returns the inner content response.