diff options
author | 2021-05-27 14:22:11 +0200 | |
---|---|---|
committer | 2021-05-27 14:22:11 +0200 | |
commit | f04bc94b80942857f8cc1e0d39658bd1eb633a06 (patch) | |
tree | 674c491df7191d1afaa4f94aa2f3e82d7cc4bbcd /winit/src/settings | |
parent | e292821c3780fc5a57c835815efc7a232ce4dc32 (diff) | |
download | iced-f04bc94b80942857f8cc1e0d39658bd1eb633a06.tar.gz iced-f04bc94b80942857f8cc1e0d39658bd1eb633a06.tar.bz2 iced-f04bc94b80942857f8cc1e0d39658bd1eb633a06.zip |
allow disabling drag and drop on windows
Diffstat (limited to 'winit/src/settings')
-rw-r--r-- | winit/src/settings/windows.rs | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/winit/src/settings/windows.rs b/winit/src/settings/windows.rs index 76b8d067..68dadefd 100644 --- a/winit/src/settings/windows.rs +++ b/winit/src/settings/windows.rs @@ -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, + } + } } |