summaryrefslogtreecommitdiffstats
path: root/src/window/settings.rs
blob: a31d2af21b5d0f85b8b76adfa172de1cab412e17 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/// The window settings of an application.
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub struct Settings {
    /// The size of the window.
    pub size: (u32, u32),

    /// Whether the window should be resizable or not.
    pub resizable: bool,

    /// Whether the window should have a border, a title bar, etc. or not.
    pub decorations: bool,
}

impl Default for Settings {
    fn default() -> Settings {
        Settings {
            size: (1024, 768),
            resizable: true,
            decorations: true,
        }
    }
}