#[non_exhaustive]pub struct AppKitWindowHandler {
pub view_ptr: NonNull<c_void>,
}
Expand description
Window hanlder implementation for AppKit.
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.view_ptr: NonNull<c_void>
A pointer to an NSView
instance.
Implementations§
Source§impl AppKitWindowHandler
impl AppKitWindowHandler
Sourcepub fn new(view_ptr: NonNull<c_void>) -> AppKitWindowHandler
pub fn new(view_ptr: NonNull<c_void>) -> AppKitWindowHandler
Creates a new instance of AppKitWindowHandler.
§Parameters:
view_ptr
- A pointer to anNSView
instance.
Trait Implementations§
Source§impl Clone for AppKitWindowHandler
impl Clone for AppKitWindowHandler
Source§fn clone(&self) -> AppKitWindowHandler
fn clone(&self) -> AppKitWindowHandler
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 AppKitWindowHandler
impl Debug for AppKitWindowHandler
Source§impl Hash for AppKitWindowHandler
impl Hash for AppKitWindowHandler
Source§impl PartialEq for AppKitWindowHandler
impl PartialEq for AppKitWindowHandler
impl Copy for AppKitWindowHandler
impl Eq for AppKitWindowHandler
impl StructuralPartialEq for AppKitWindowHandler
Auto Trait Implementations§
impl Freeze for AppKitWindowHandler
impl RefUnwindSafe for AppKitWindowHandler
impl !Send for AppKitWindowHandler
impl !Sync for AppKitWindowHandler
impl Unpin for AppKitWindowHandler
impl UnwindSafe for AppKitWindowHandler
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