bones_framework/input/
window.rs

1//! Window information.
2
3use crate::prelude::*;
4
5/// Information about the window the game is running in.
6#[derive(Clone, Copy, Debug, Default, HasSchema)]
7#[repr(C)]
8pub struct Window {
9    /// The logical size of the window's client area.
10    ///
11    /// This is considered read-only and is updated from the window size by the rendering
12    /// integration.
13    pub size: glam::Vec2,
14    /// May be set to change whether or not the game is displayed full-screen.
15    pub fullscreen: bool,
16    /// Whether or not the window is focused.
17    ///
18    /// This is considered read-only and is updated from the window focus by the
19    /// rendering integration.
20    pub focused: bool,
21}