pub trait WindowController {
// Required method
fn apply_command(
&mut self,
command: WindowCommand,
) -> Result<(), PlatformError>;
}Expand description
Unified window control interface implemented by all platform backends.
Required Methods§
Sourcefn apply_command(&mut self, command: WindowCommand) -> Result<(), PlatformError>
fn apply_command(&mut self, command: WindowCommand) -> Result<(), PlatformError>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
impl WindowController for HeadlessPlatform
WindowController implementation for HeadlessPlatform.
impl WindowController for LinuxPlatform
WindowController implementation for Linux X11 / Wayland.