Use raw-window-handle instead of HWND
This commit is contained in:
parent
09a2a06130
commit
d6027d7da6
2 changed files with 4 additions and 1 deletions
|
|
@ -26,6 +26,7 @@ wayland-csd-adwaita = ["winit/wayland-csd-adwaita"]
|
||||||
window_clipboard = { git = "https://github.com/TobTobXX/window_clipboard", rev = "1392da8339c8aebb9849d00eb7383a73ed076f1d" }
|
window_clipboard = { git = "https://github.com/TobTobXX/window_clipboard", rev = "1392da8339c8aebb9849d00eb7383a73ed076f1d" }
|
||||||
log = "0.4"
|
log = "0.4"
|
||||||
thiserror = "1.0"
|
thiserror = "1.0"
|
||||||
|
raw-window-handle = "0.5"
|
||||||
|
|
||||||
[dependencies.winit]
|
[dependencies.winit]
|
||||||
version = "0.28"
|
version = "0.28"
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,12 @@
|
||||||
//! Platform specific settings for Windows.
|
//! Platform specific settings for Windows.
|
||||||
|
|
||||||
|
use raw_window_handle::RawWindowHandle;
|
||||||
|
|
||||||
/// The platform specific window settings of an application.
|
/// The platform specific window settings of an application.
|
||||||
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
||||||
pub struct PlatformSpecific {
|
pub struct PlatformSpecific {
|
||||||
/// Parent window
|
/// Parent window
|
||||||
pub parent: Option<winit::platform::windows::HWND>,
|
pub parent: Option<RawWindowHandle>,
|
||||||
|
|
||||||
/// Drag and drop support
|
/// Drag and drop support
|
||||||
pub drag_and_drop: bool,
|
pub drag_and_drop: bool,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue