diff --git a/Cargo.toml b/Cargo.toml index 8d71d32..f4d0bea 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -24,7 +24,7 @@ png = "0.17" cc = "1.0" [dependencies] -raw-window-handle = "0.4" +raw-window-handle = "0.5" [target.'cfg(windows)'.dependencies.winapi] version = "0.3" diff --git a/src/os/macos/mod.rs b/src/os/macos/mod.rs index 333b81c..89d7c4d 100644 --- a/src/os/macos/mod.rs +++ b/src/os/macos/mod.rs @@ -263,7 +263,7 @@ unsafe extern "C" fn char_callback(window: *mut c_void, code_point: u32) { unsafe impl raw_window_handle::HasRawWindowHandle for Window { fn raw_window_handle(&self) -> raw_window_handle::RawWindowHandle { - let mut handle = raw_window_handle::AppKitHandle::empty(); + let mut handle = raw_window_handle::AppKitWindowHandle::empty(); handle.ns_window = self.window_handle as *mut _; handle.ns_view = self.view_handle as *mut _; raw_window_handle::RawWindowHandle::AppKit(handle) diff --git a/src/os/posix/wayland.rs b/src/os/posix/wayland.rs index 20786dc..6845881 100644 --- a/src/os/posix/wayland.rs +++ b/src/os/posix/wayland.rs @@ -1265,7 +1265,7 @@ impl Window { unsafe impl raw_window_handle::HasRawWindowHandle for Window { fn raw_window_handle(&self) -> raw_window_handle::RawWindowHandle { - let mut handle = raw_window_handle::WaylandHandle::empty(); + let mut handle = raw_window_handle::WaylandWindowHandle::empty(); handle.surface = self.display.surface.as_ref().c_ptr() as *mut _ as *mut c_void; handle.display = self .display diff --git a/src/os/posix/x11.rs b/src/os/posix/x11.rs index 6a302e8..9bf3dce 100644 --- a/src/os/posix/x11.rs +++ b/src/os/posix/x11.rs @@ -332,7 +332,7 @@ pub struct Window { unsafe impl raw_window_handle::HasRawWindowHandle for Window { fn raw_window_handle(&self) -> raw_window_handle::RawWindowHandle { - let mut handle = raw_window_handle::XlibHandle::empty(); + let mut handle = raw_window_handle::XlibWindowHandle::empty(); handle.window = self.handle; handle.display = self.d.display as *mut core::ffi::c_void; raw_window_handle::RawWindowHandle::Xlib(handle) diff --git a/src/os/wasm/mod.rs b/src/os/wasm/mod.rs index d7c8013..822936c 100644 --- a/src/os/wasm/mod.rs +++ b/src/os/wasm/mod.rs @@ -428,7 +428,7 @@ impl Menu { unsafe impl raw_window_handle::HasRawWindowHandle for Window { fn raw_window_handle(&self) -> raw_window_handle::RawWindowHandle { //TODO: assign a different ID to each window - let handle = raw_window_handle::WebHandle::empty(); + let handle = raw_window_handle::WebWindowHandle::empty(); raw_window_handle::RawWindowHandle::Web(handle) } } diff --git a/src/os/windows/mod.rs b/src/os/windows/mod.rs index 1aec629..8c9cc64 100644 --- a/src/os/windows/mod.rs +++ b/src/os/windows/mod.rs @@ -509,7 +509,7 @@ pub struct Window { unsafe impl raw_window_handle::HasRawWindowHandle for Window { fn raw_window_handle(&self) -> raw_window_handle::RawWindowHandle { - let mut handle = raw_window_handle::Win32Handle::empty(); + let mut handle = raw_window_handle::Win32WindowHandle::empty(); handle.hwnd = self.window.unwrap() as *mut raw::c_void; handle.hinstance = unsafe { libloaderapi::GetModuleHandleA(ptr::null()) } as *mut raw::c_void;