euv_core/window/control/trait.rs
1use super::*;
2
3/// Unified window control interface implemented by all platform backends.
4pub trait WindowController {
5 /// Applies a single `WindowCommand` to the underlying native or web window.
6 ///
7 /// # Arguments
8 ///
9 /// - `&Self` - Mutable window controller.
10 /// - `WindowCommand` - Command to apply.
11 ///
12 /// # Returns
13 ///
14 /// - `Result<(), PlatformError>` - Success or platform error.
15 fn apply_command(&mut self, command: WindowCommand) -> Result<(), PlatformError>;
16}