process_list::View done
This commit is contained in:
@@ -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(())
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user