This commit is contained in:
Nathan Sobo 2023-10-31 11:03:01 -06:00
parent fed391fe6b
commit 0a2fde8707
7 changed files with 69 additions and 12 deletions

View file

@ -28,6 +28,7 @@ use std::{
str::FromStr,
sync::Arc,
};
use uuid::Uuid;
pub use keystroke::*;
#[cfg(target_os = "macos")]
@ -106,6 +107,9 @@ pub(crate) trait Platform: 'static {
pub trait PlatformDisplay: Send + Sync + Debug {
fn id(&self) -> DisplayId;
/// Returns a stable identifier for this display that can be persisted and used
/// across system restarts.
fn uuid(&self) -> Result<Uuid>;
fn as_any(&self) -> &dyn Any;
fn bounds(&self) -> Bounds<GlobalPixels>;
}