DashInterface, DashInterfaceEmulated

This commit is contained in:
Aleksander
2025-12-10 22:11:57 +01:00
parent 171021d6c5
commit 7118cea810
11 changed files with 392 additions and 3 deletions

View File

@@ -4,6 +4,7 @@ use dash_frontend::{
settings::{self, SettingsIO},
};
use wgui::layout::RcLayout;
use wlx_common::dash_interface_emulated::DashInterfaceEmulated;
struct SimpleSettingsIO {
settings: settings::Settings,
@@ -59,9 +60,11 @@ pub struct TestbedDashboard {
impl TestbedDashboard {
pub fn new() -> anyhow::Result<Self> {
let settings = SimpleSettingsIO::new();
let interface = DashInterfaceEmulated::new();
let (frontend, layout) = frontend::Frontend::new(frontend::InitParams {
settings: Box::new(settings),
interface: Box::new(interface),
})?;
Ok(Self { frontend, layout })
}