pub enum WindowHandle {
NSView(*mut c_void),
HWND(*mut c_void),
X11(u64),
}Expand description
Native parent window the plugin’s editor view attaches to.
The host opens its own window, picks the appropriate variant
for the platform, and hands it to PluginEditor::open. The
plugin embeds its view inside that parent — the host stays in
charge of the outer window’s lifecycle.
Variants§
NSView(*mut c_void)
macOS / iOS / visionOS — pointer to a parent NSView*.
HWND(*mut c_void)
Windows — parent HWND (cast through *mut c_void to
avoid pulling in the windows-sys dep at this layer).
X11(u64)
X11 — the X11 Window id (unsigned long on most
platforms, here widened to u64).
Trait Implementations§
Source§impl Clone for WindowHandle
impl Clone for WindowHandle
Source§fn clone(&self) -> WindowHandle
fn clone(&self) -> WindowHandle
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 moreimpl Copy for WindowHandle
Auto Trait Implementations§
impl !Send for WindowHandle
impl !Sync for WindowHandle
impl Freeze for WindowHandle
impl RefUnwindSafe for WindowHandle
impl Unpin for WindowHandle
impl UnsafeUnpin for WindowHandle
impl UnwindSafe for WindowHandle
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