allow disabling drag and drop on windows

This commit is contained in:
Quentin Boyer 2021-05-27 14:22:11 +02:00
parent e292821c37
commit f04bc94b80
2 changed files with 14 additions and 1 deletions

View file

@ -2,8 +2,19 @@
//! Platform specific settings for Windows.
/// The platform specific window settings of an application.
#[derive(Debug, Clone, Copy, PartialEq, Eq, Default)]
#[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,
}
}
}