Struct raw_window_handle::AppKitWindowHandle
source · [−]#[non_exhaustive]pub struct AppKitWindowHandle {
pub ns_window: *mut c_void,
pub ns_view: *mut c_void,
}
Expand description
Raw window handle for AppKit.
Construction
let mut window_handle = AppKitWindowHandle::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.ns_window: *mut c_void
A pointer to an NSWindow
object.
ns_view: *mut c_void
A pointer to an NSView
object.
Implementations
Trait Implementations
sourceimpl Clone for AppKitWindowHandle
impl Clone for AppKitWindowHandle
sourcefn clone(&self) -> AppKitWindowHandle
fn clone(&self) -> AppKitWindowHandle
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for AppKitWindowHandle
impl Debug for AppKitWindowHandle
sourceimpl Hash for AppKitWindowHandle
impl Hash for AppKitWindowHandle
sourceimpl PartialEq<AppKitWindowHandle> for AppKitWindowHandle
impl PartialEq<AppKitWindowHandle> for AppKitWindowHandle
sourcefn eq(&self, other: &AppKitWindowHandle) -> bool
fn eq(&self, other: &AppKitWindowHandle) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &AppKitWindowHandle) -> bool
fn ne(&self, other: &AppKitWindowHandle) -> bool
This method tests for !=
.
impl Copy for AppKitWindowHandle
impl Eq for AppKitWindowHandle
impl StructuralEq for AppKitWindowHandle
impl StructuralPartialEq for AppKitWindowHandle
Auto Trait Implementations
impl RefUnwindSafe for AppKitWindowHandle
impl !Send for AppKitWindowHandle
impl !Sync for AppKitWindowHandle
impl Unpin for AppKitWindowHandle
impl UnwindSafe for AppKitWindowHandle
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more