pub struct MacOSTopLevelHandle { /* private fields */ }Expand description
The platform handle of a top-level of this backend.
A handle obtained from ITopLevelImpl::handle of this backend can be
downcast (through as_any) to this type, which implements
IMacOSTopLevelPlatformHandle.
Trait Implementations§
Source§impl IMacOSTopLevelPlatformHandle for MacOSTopLevelHandle
impl IMacOSTopLevelPlatformHandle for MacOSTopLevelHandle
Source§fn get_ns_view_retained(&self) -> isize
fn get_ns_view_retained(&self) -> isize
The
NSView of the top level, retained: the caller releases it.Source§fn get_ns_window_retained(&self) -> isize
fn get_ns_window_retained(&self) -> isize
The
NSWindow of the top level, retained: the caller releases it.Source§impl IPlatformHandle for MacOSTopLevelHandle
impl IPlatformHandle for MacOSTopLevelHandle
Source§fn handle_descriptor(&self) -> Option<&str>
fn handle_descriptor(&self) -> Option<&str>
Gets an optional string that describes what
handle represents.Source§fn equals(&self, other: &dyn IPlatformHandle) -> bool
fn equals(&self, other: &dyn IPlatformHandle) -> bool
Whether this handle is equal to
other. Read moreSource§fn as_native_control_host_destroyable_control_handle(
&self,
) -> Option<&dyn INativeControlHostDestroyableControlHandle>
fn as_native_control_host_destroyable_control_handle( &self, ) -> Option<&dyn INativeControlHostDestroyableControlHandle>
The handle as the handle of a native control that can be destroyed,
if it is one (C#
handle as INativeControlHostDestroyableControlHandle).
An implementation of that contract returns itself.Auto Trait Implementations§
impl !Send for MacOSTopLevelHandle
impl !Sync for MacOSTopLevelHandle
impl Freeze for MacOSTopLevelHandle
impl RefUnwindSafe for MacOSTopLevelHandle
impl Unpin for MacOSTopLevelHandle
impl UnsafeUnpin for MacOSTopLevelHandle
impl UnwindSafe for MacOSTopLevelHandle
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
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more