1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
mod handler;
pub(crate) mod run;
mod sketch;

pub use self::handler::Handler;
pub use self::sketch::Sketch;
use crate::types::{Key, Size};

pub struct Settings<'a> {
    pub title: Option<&'a str>,
    pub size: Size,
    pub decorations: bool,
    pub framerate: Option<u32>,
    pub exit_key: Option<Key>,
}

impl<'a> Default for Settings<'a> {
    fn default() -> Self {
        Self {
            title: None,
            size: Size::new(800.0, 600.0),
            decorations: true,
            framerate: None,
            exit_key: None,
        }
    }
}