pub struct Window {Show 15 fields
window_id: WindowId,
display: Display,
surface: WlSurface,
scale_factor: Arc<Mutex<f64>>,
size: Arc<Mutex<LogicalSize<u32>>>,
output_manager_handle: OutputManagerHandle,
event_loop_awakener: Ping,
fullscreen: Arc<AtomicBool>,
maximized: Arc<AtomicBool>,
windowing_features: WindowingFeatures,
window_requests: Arc<Mutex<Vec<WindowRequest>>>,
resizeable: AtomicBool,
decorated: AtomicBool,
cursor_grab_mode: Mutex<CursorGrabMode>,
has_focus: Arc<AtomicBool>,
}
Fields§
§window_id: WindowId
Window id.
display: Display
The Wayland display.
surface: WlSurface
The underlying wl_surface.
scale_factor: Arc<Mutex<f64>>
The scale factor.
size: Arc<Mutex<LogicalSize<u32>>>
The current window size.
output_manager_handle: OutputManagerHandle
A handle to output manager.
event_loop_awakener: Ping
Event loop proxy to wake it up.
fullscreen: Arc<AtomicBool>
Fullscreen state.
maximized: Arc<AtomicBool>
Maximized state.
windowing_features: WindowingFeatures
Available windowing features.
window_requests: Arc<Mutex<Vec<WindowRequest>>>
Requests that SCTK window should perform.
resizeable: AtomicBool
Whether the window is resizeable.
decorated: AtomicBool
Whether the window is decorated.
cursor_grab_mode: Mutex<CursorGrabMode>
Grabbing mode.
has_focus: Arc<AtomicBool>
Whether the window has keyboard focus.