summaryrefslogblamecommitdiffstats
path: root/winit/src/settings/windows.rs
blob: ce18da75aa122272159dda6946dbb1ee7b3f4df6 (plain) (tree)
1
2
3
4
5
6
7
8
9

                                           

                                       
                                                            
                                            
                             
                     
                                        

                             









                                   
 
//! Platform specific settings for Windows.

use raw_window_handle::RawWindowHandle;

/// The platform specific window settings of an application.
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub struct PlatformSpecific {
    /// Parent window
    pub parent: Option<RawWindowHandle>,

    /// Drag and drop support
    pub drag_and_drop: bool,
}

impl Default for PlatformSpecific {
    fn default() -> Self {
        Self {
            parent: None,
            drag_and_drop: true,
        }
    }
}