summaryrefslogtreecommitdiffstats
path: root/winit/src/settings/windows.rs
blob: 68dadefd19e9000cc01009bc1c6f71233637a319 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#![cfg(target_os = "windows")]
//! Platform specific settings for Windows.

/// The platform specific window settings of an application.
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub struct PlatformSpecific {
    /// Parent Window
    pub parent: Option<winapi::shared::windef::HWND>,
    /// Drap and Drop support
    pub drag_and_drop: bool,
}

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