display.rs

 1use std::fmt::Debug;
 2
 3use uuid::Uuid;
 4
 5use crate::{Bounds, DevicePixels, DisplayId, PlatformDisplay, Size};
 6
 7#[derive(Debug)]
 8pub(crate) struct WaylandDisplay {}
 9
10impl PlatformDisplay for WaylandDisplay {
11    // todo(linux)
12    fn id(&self) -> DisplayId {
13        DisplayId(123) // return some fake data so it doesn't panic
14    }
15
16    // todo(linux)
17    fn uuid(&self) -> anyhow::Result<Uuid> {
18        Ok(Uuid::from_bytes([0; 16])) // return some fake data so it doesn't panic
19    }
20
21    // todo(linux)
22    fn bounds(&self) -> Bounds<DevicePixels> {
23        Bounds {
24            origin: Default::default(),
25            size: Size {
26                width: DevicePixels(1000),
27                height: DevicePixels(500),
28            },
29        } // return some fake data so it doesn't panic
30    }
31}