pub enum ParentWindowHandle {
X11Window(u32),
AppKitNsView(*mut c_void),
Win32Hwnd(*mut c_void),
}Expand description
A raw window handle for platform and GUI framework agnostic editors. This implements
HasRawWindowHandle so it can be used directly with GUI libraries that use the same
raw_window_handle version. If the library links against a different version of
raw_window_handle, then you’ll need to wrap around this type and implement the trait yourself.
Variants§
X11Window(u32)
The ID of the host’s parent window. Used with X11.
AppKitNsView(*mut c_void)
A handle to the host’s parent window. Used only on macOS.
Win32Hwnd(*mut c_void)
A handle to the host’s parent window. Used only on Windows.
Trait Implementations§
Source§impl Clone for ParentWindowHandle
impl Clone for ParentWindowHandle
Source§fn clone(&self) -> ParentWindowHandle
fn clone(&self) -> ParentWindowHandle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ParentWindowHandle
impl Debug for ParentWindowHandle
Source§impl HasRawWindowHandle for ParentWindowHandle
impl HasRawWindowHandle for ParentWindowHandle
fn raw_window_handle(&self) -> RawWindowHandle
impl Copy for ParentWindowHandle
Auto Trait Implementations§
impl Freeze for ParentWindowHandle
impl RefUnwindSafe for ParentWindowHandle
impl !Send for ParentWindowHandle
impl !Sync for ParentWindowHandle
impl Unpin for ParentWindowHandle
impl UnsafeUnpin for ParentWindowHandle
impl UnwindSafe for ParentWindowHandle
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