Struct raw_window_handle::appkit::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§
source§impl Clone for AppKitWindowHandle
impl Clone for AppKitWindowHandle
source§fn clone(&self) -> AppKitWindowHandle
fn clone(&self) -> AppKitWindowHandle
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 AppKitWindowHandle
impl Debug for AppKitWindowHandle
source§impl From<AppKitWindowHandle> for RawWindowHandle
impl From<AppKitWindowHandle> for RawWindowHandle
source§fn from(value: AppKitWindowHandle) -> Self
fn from(value: AppKitWindowHandle) -> Self
Converts to this type from the input type.
source§impl Hash for AppKitWindowHandle
impl Hash for AppKitWindowHandle
source§impl PartialEq<AppKitWindowHandle> for AppKitWindowHandle
impl PartialEq<AppKitWindowHandle> for AppKitWindowHandle
source§fn 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 ==
.