pub fn apply_to_builder(&self, builder: &mut WindowBuilder) {
        if let Some(resizable) = self.resizable {
            builder.resizable(resizable);
        }

        if let Some(show_titlebar) = self.show_titlebar {
            builder.show_titlebar(show_titlebar);
        }

        if let Some(size) = self.size {
            builder.set_size(size);
        } else if let WindowSizePolicy::Content = self.size_policy {
            builder.set_size(Size::new(0., 0.));
        }

        if let Some(position) = self.position {
            builder.set_position(position);
        }

        if let Some(transparent) = self.transparent {
            builder.set_transparent(transparent);
        }

        if let Some(level) = self.level.clone() {
            builder.set_level(level)
        }

        if let Some(state) = self.state {
            builder.set_window_state(state);
        }

        if let Some(min_size) = self.min_size {
            builder.set_min_size(min_size);
        }
    }
/// Apply this window configuration to the passed in WindowBuilder
Apply this window configuration to the passed in WindowBuilder
Apply this window configuration to the passed in WindowBuilder
pub fn apply_to_builder(&self, builder: &mut WindowBuilder) {
        if let Some(resizable) = self.resizable {
            builder.resizable(resizable);
        }
        if let Some(show_titlebar) = self.show_titlebar {
            builder.show_titlebar(show_titlebar);
        }
        if let Some(size) = self.size {
            builder.set_size(size);
        } else if let WindowSizePolicy::Content = self.size_policy {
            builder.set_size(Size::new(0., 0.));
        }
        if let Some(position) = self.position {
            builder.set_position(position);
        }
        if let Some(transparent) = self.transparent {
            builder.set_transparent(transparent);
        }
        if let Some(level) = self.level.clone() {
            builder.set_level(level)
        }
        if let Some(state) = self.state {
            builder.set_window_state(state);
        }
        if let Some(min_size) = self.min_size {
            builder.set_min_size(min_size);
        }
    }
pub fn apply_to_builder ( & self , builder : & mut WindowBuilder ) { if let Some ( resizable ) = self . resizable { builder . resizable ( resizable ) ; } if let Some ( show_titlebar ) = self . show_titlebar { builder . show_titlebar ( show_titlebar ) ; } if let Some ( size ) = self . size { builder . set_size ( size ) ; } else if let WindowSizePolicy :: Content = self . size_policy { builder . set_size ( Size :: new ( 0. , 0. ) ) ; } if let Some ( position ) = self . position { builder . set_position ( position ) ; } if let Some ( transparent ) = self . transparent { builder . set_transparent ( transparent ) ; } if let Some ( level ) = self . level . clone ( ) { builder . set_level ( level ) } if let Some ( state ) = self . state { builder . set_window_state ( state ) ; } if let Some ( min_size ) = self . min_size { builder . set_min_size ( min_size ) ; } }
Apply this window configuration to the passed in WindowBuilder
Apply this window configuration to the passed in WindowBuilder
&self
builder
&mut WindowBuilder
&self
builder
&mut WindowBuilder