process_list::View done

This commit is contained in:
Aleksander
2025-12-21 16:00:54 +01:00
parent 5462e84995
commit 848674c143
29 changed files with 519 additions and 50 deletions

View File

@@ -61,10 +61,25 @@ pub struct DashInterfaceEmulated {
impl DashInterfaceEmulated {
pub fn new() -> Self {
Self {
displays: EmuDisplayVec::new(),
processes: EmuProcessVec::new(),
}
let mut displays = EmuDisplayVec::new();
let disp_handle = displays.add(EmuDisplay {
width: 1280,
height: 720,
layout: WvrDisplayWindowLayout::Tiling,
name: String::from("Emulated display"),
visible: true,
});
let mut processes = EmuProcessVec::new();
processes.add(EmuProcess {
display_handle: WvrDisplayHandle {
idx: disp_handle.idx,
generation: disp_handle.generation,
},
name: String::from("Emulated process"),
});
Self { displays, processes }
}
}
@@ -170,4 +185,9 @@ impl DashInterface for DashInterfaceEmulated {
// stub!
Ok(())
}
fn recenter_playspace(&mut self) -> anyhow::Result<()> {
// stub!
Ok(())
}
}