summaryrefslogblamecommitdiff
path: root/src/window_builder.rs
blob: 21787e6ee80c50128bfb65998552ec2542599b10 (plain) (tree)
1
2
3
4
5
6
7
8
9
             





                                        
                                   
                           









                                                         
                         
                       


                              
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,
        }
    }
}