pub fn scene_base_overlay(
base_clip: Option<Rect>,
base_cmds: Vec<DrawCmd>,
overlay_cmds: Vec<DrawCmd>,
) -> SceneExpand description
Builds a scene with a base layer then an overlay layer on top.
base_clip is an optional logical-pixel rectangular clip applied only to
base commands. Overlay commands are unclipped and paint after the base;
command order inside each input vector is preserved and vectors are moved.
ยงExamples
use ailloli_ui_core::Rect;
use ailloli_ui_runtime::Scene;
use ailloli_ui_widgets::overlay::scene_base_overlay;
let scene: Scene = scene_base_overlay(Some(Rect::new(0.0, 0.0, 80.0, 40.0)), vec![], vec![]);
let _ = scene;