pub fn apply_to_handle(&self, win_handle: &mut WindowHandle) {
        if let Some(resizable) = self.resizable {
            win_handle.resizable(resizable);
        }

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

        if let Some(size) = self.size {
            win_handle.set_size(size);
        }

        // Can't apply min size currently as window handle
        // does not support it.

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

        if self.level.is_some() {
            warn!("Applying a level can only be done on window builders");
        }

        if let Some(state) = self.state {
            win_handle.set_window_state(state);
        }
    }
/// Apply this window configuration to the passed in WindowHandle
Apply this window configuration to the passed in WindowHandle
Apply this window configuration to the passed in WindowHandle
pub fn apply_to_handle(&self, win_handle: &mut WindowHandle) {
        if let Some(resizable) = self.resizable {
            win_handle.resizable(resizable);
        }
        if let Some(show_titlebar) = self.show_titlebar {
            win_handle.show_titlebar(show_titlebar);
        }
        if let Some(size) = self.size {
            win_handle.set_size(size);
        }
        // Can't apply min size currently as window handle
        // does not support it.
        if let Some(position) = self.position {
            win_handle.set_position(position);
        }
        if self.level.is_some() {
            warn!("Applying a level can only be done on window builders");
        }
        if let Some(state) = self.state {
            win_handle.set_window_state(state);
        }
    }
pub fn apply_to_handle ( & self , win_handle : & mut WindowHandle ) { if let Some ( resizable ) = self . resizable { win_handle . resizable ( resizable ) ; } if let Some ( show_titlebar ) = self . show_titlebar { win_handle . show_titlebar ( show_titlebar ) ; } if let Some ( size ) = self . size { win_handle . set_size ( size ) ; } // Can't apply min size currently as window handle // does not support it. if let Some ( position ) = self . position { win_handle . set_position ( position ) ; } if self . level . is_some ( ) { warn ! ( " " ) ; } if let Some ( state ) = self . state { win_handle . set_window_state ( state ) ; } }
Apply this window configuration to the passed in WindowHandle
Apply this window configuration to the passed in WindowHandle
&self
win_handle
&mut WindowHandle
&self
win_handle
&mut WindowHandle