pub fn frame(child: impl IntoElement, window: &mut Window, cx: &App) -> DivExpand description
Wrap a window’s root in the frame it owes.
Under Decorations::Server the child is handed back in a full-size div and
nothing else is painted. Under Decorations::Client it takes a border,
Theme::surface_radius corners and theme::surface_shadows, inside a
Theme::CLIENT_INSET band that resizes the window.
Must be the window’s root element: the resize bands are hit-tested against
Window::window_bounds, so an origin of anything but the window’s own is a
band in the wrong place.
An edge tiling reports flush — against a screen edge, or another window
in a tile — keeps its square corner and gives up its band.