summaryrefslogtreecommitdiff
path: root/src/window_builder.rs
blob: 21787e6ee80c50128bfb65998552ec2542599b10 (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
use crate::*;


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 cursor: Option<CursorIcon>,
    pub icon: Option<Icon>,
    pub fullscreen: bool,
}

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