Skip to main content

euv_core/window/control/
enum.rs

1use super::*;
2
3/// Cross-platform imperative window command queued for execution by the platform backend.
4#[derive(Clone, Debug, PartialEq)]
5pub enum WindowCommand {
6    /// Update window or document title.
7    SetTitle(WindowId, String),
8    /// Resize window to logical `(width, height)`.
9    SetSize(WindowId, u32, u32),
10    /// Move window to screen `(x, y)`.
11    SetPosition(WindowId, i32, i32),
12    /// Toggle window resizability.
13    SetResizable(WindowId, bool),
14    /// Toggle window OS decorations.
15    SetDecorations(WindowId, bool),
16    /// Toggle always-on-top z-order.
17    SetAlwaysOnTop(WindowId, bool),
18    /// Change fullscreen presentation mode.
19    SetFullscreen(WindowId, FullscreenMode),
20    /// Toggle window visibility.
21    SetVisible(WindowId, bool),
22    /// Update active pointer cursor icon.
23    SetCursor(WindowId, CursorIcon),
24    /// Toggle IME / mobile soft keyboard visibility and target rect.
25    SetIme(WindowId, bool, Rect),
26    /// Update mobile/iPadOS status bar style.
27    SetStatusBarStyle(WindowId, StatusBarStyle),
28    /// Request an immediate redraw frame.
29    RequestRedraw(WindowId),
30    /// Switch active render mode dynamically (`Auto`, `Software`, `Hardware`, `Hybrid`).
31    SetRenderMode(WindowId, RenderMode),
32    /// Close the target window.
33    Close(WindowId),
34}