#[non_exhaustive]pub enum NativeWindowHandle {
Win32 {
hwnd: usize,
hinstance: usize,
},
Wayland {
surface: usize,
display: usize,
},
X11 {
window: u64,
display: usize,
},
AppKit {
ns_view: usize,
},
}Expand description
Platform handles of a realized top-level window.
The integers are raw pointers / ids owned by the toolkit. They are only meaningful while the window exists and is realized (shown at least once).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Win32
Win32 HWND and the module HINSTANCE.
Wayland
Wayland wl_surface* and wl_display*.
X11
X11 window XID and Xlib Display* (screen 0 is reported).
AppKit
AppKit content NSView* of the window.
Trait Implementations§
Source§impl Clone for NativeWindowHandle
impl Clone for NativeWindowHandle
impl Copy for NativeWindowHandle
Source§impl Debug for NativeWindowHandle
impl Debug for NativeWindowHandle
impl Eq for NativeWindowHandle
Source§impl Hash for NativeWindowHandle
impl Hash for NativeWindowHandle
Source§impl PartialEq for NativeWindowHandle
impl PartialEq for NativeWindowHandle
impl StructuralPartialEq for NativeWindowHandle
Auto Trait Implementations§
impl Forget for NativeWindowHandle
impl Freeze for NativeWindowHandle
impl Move for NativeWindowHandle
impl RefUnwindSafe for NativeWindowHandle
impl Send for NativeWindowHandle
impl Sync for NativeWindowHandle
impl Unpin for NativeWindowHandle
impl UnsafeUnpin for NativeWindowHandle
impl UnwindSafe for NativeWindowHandle
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more