Struct raw_window_handle::windows::Win32WindowHandle
source · #[non_exhaustive]pub struct Win32WindowHandle {
pub hwnd: *mut c_void,
pub hinstance: *mut c_void,
}
Expand description
Raw window handle for Win32.
Construction
let mut window_handle = Win32WindowHandle::empty();
/* set fields */
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.hwnd: *mut c_void
A Win32 HWND
handle.
hinstance: *mut c_void
The HINSTANCE
associated with this type’s HWND
.
Implementations§
Trait Implementations§
source§impl Clone for Win32WindowHandle
impl Clone for Win32WindowHandle
source§fn clone(&self) -> Win32WindowHandle
fn clone(&self) -> Win32WindowHandle
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for Win32WindowHandle
impl Debug for Win32WindowHandle
source§impl From<Win32WindowHandle> for RawWindowHandle
impl From<Win32WindowHandle> for RawWindowHandle
source§fn from(value: Win32WindowHandle) -> Self
fn from(value: Win32WindowHandle) -> Self
Converts to this type from the input type.
source§impl Hash for Win32WindowHandle
impl Hash for Win32WindowHandle
source§impl PartialEq<Win32WindowHandle> for Win32WindowHandle
impl PartialEq<Win32WindowHandle> for Win32WindowHandle
source§fn eq(&self, other: &Win32WindowHandle) -> bool
fn eq(&self, other: &Win32WindowHandle) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.