pub fn draw_modal_overlay(full: Rect, style: OverlayStyle) -> Vec<DrawCmd>Expand description
Returns exactly one solid rectangle command covering full.
Geometry is passed through unchanged in logical pixels.
ยงExamples
use ailloli_ui_core::{Color, Rect};
use ailloli_ui_widgets::overlay::popup::{draw_modal_overlay, OverlayStyle};
let commands = draw_modal_overlay(Rect::new(0.0, 0.0, 100.0, 80.0), OverlayStyle { bg: Color::BLACK });
assert_eq!(commands.len(), 1);