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

@ -26,6 +26,7 @@ wayland-csd-adwaita = ["winit/wayland-csd-adwaita"]
window_clipboard = { git = "https://github.com/TobTobXX/window_clipboard", rev = "1392da8339c8aebb9849d00eb7383a73ed076f1d" }
log = "0.4"
thiserror = "1.0"
raw-window-handle = "0.5"
[dependencies.winit]
version = "0.28"

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,