Use raw-window-handle instead of HWND

This commit is contained in:
Nico Burns 2023-05-11 17:40:09 +01:00
parent 09a2a06130
commit d6027d7da6
2 changed files with 4 additions and 1 deletions

View file

@ -1,10 +1,12 @@
//! 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<winit::platform::windows::HWND>,
pub parent: Option<RawWindowHandle>,
/// Drag and drop support
pub drag_and_drop: bool,