pub trait PlatformDisplay:
Send
+ Sync
+ Debug {
// Required methods
fn id(&self) -> DisplayId;
fn uuid(&self) -> Result<Uuid, Error>;
fn bounds(&self) -> Bounds<Pixels>;
// Provided method
fn default_bounds(&self) -> Bounds<Pixels> { ... }
}Expand description
A handle to a platform’s display, e.g. a monitor or laptop screen.
Required Methods§
Provided Methods§
Sourcefn default_bounds(&self) -> Bounds<Pixels>
fn default_bounds(&self) -> Bounds<Pixels>
Get the default bounds for this display to place a window
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".