summaryrefslogtreecommitdiff
path: root/src/window_builder.rs
blob: 55c99f20e3ab5ee568a13ac7f4b1e2c0bab8ceb3 (plain) (blame)
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
28
29
30
use crate::*;

use winit::window::{Cursor, Icon};


pub struct WindowBuilder {
    pub program: Box<dyn WindowProgram>,
    pub size_bounds: Option<SizeBounds>,
    pub dimensions: Option<Dimensions>,
    pub scale: u32,
    pub title: Option<String>,
    pub icon: Option<Icon>,
    pub cursor: Option<Cursor>,
    pub fullscreen: bool,
}

impl WindowBuilder {
    pub fn new(program: Box<dyn WindowProgram>) -> Self {
        Self {
            program,
            size_bounds: None,
            dimensions: None,
            scale: 1,
            title: None,
            icon: None,
            cursor: None,
            fullscreen: false,
        }
    }
}