Trait objc2_app_kit::NSWindowDelegate

source ·
pub unsafe trait NSWindowDelegate: NSObjectProtocol + IsMainThreadOnly {
Show 52 methods // Provided methods unsafe fn windowShouldClose(&self, sender: &NSWindow) -> bool where Self: Sized + Message { ... } unsafe fn windowWillReturnFieldEditor_toObject( &self, sender: &NSWindow, client: Option<&AnyObject> ) -> Option<Retained<AnyObject>> where Self: Sized + Message { ... } unsafe fn windowWillResize_toSize( &self, sender: &NSWindow, frame_size: NSSize ) -> NSSize where Self: Sized + Message { ... } unsafe fn windowWillUseStandardFrame_defaultFrame( &self, window: &NSWindow, new_frame: NSRect ) -> NSRect where Self: Sized + Message { ... } unsafe fn windowShouldZoom_toFrame( &self, window: &NSWindow, new_frame: NSRect ) -> bool where Self: Sized + Message { ... } unsafe fn windowWillReturnUndoManager( &self, window: &NSWindow ) -> Option<Retained<NSUndoManager>> where Self: Sized + Message { ... } unsafe fn window_willPositionSheet_usingRect( &self, window: &NSWindow, sheet: &NSWindow, rect: NSRect ) -> NSRect where Self: Sized + Message { ... } unsafe fn window_shouldPopUpDocumentPathMenu( &self, window: &NSWindow, menu: &NSMenu ) -> bool where Self: Sized + Message { ... } unsafe fn window_shouldDragDocumentWithEvent_from_withPasteboard( &self, window: &NSWindow, event: &NSEvent, drag_image_location: NSPoint, pasteboard: &NSPasteboard ) -> bool where Self: Sized + Message { ... } unsafe fn window_willUseFullScreenContentSize( &self, window: &NSWindow, proposed_size: NSSize ) -> NSSize where Self: Sized + Message { ... } unsafe fn window_willUseFullScreenPresentationOptions( &self, window: &NSWindow, proposed_options: NSApplicationPresentationOptions ) -> NSApplicationPresentationOptions where Self: Sized + Message { ... } unsafe fn customWindowsToEnterFullScreenForWindow( &self, window: &NSWindow ) -> Option<Retained<NSArray<NSWindow>>> where Self: Sized + Message { ... } unsafe fn window_startCustomAnimationToEnterFullScreenWithDuration( &self, window: &NSWindow, duration: NSTimeInterval ) where Self: Sized + Message { ... } unsafe fn windowDidFailToEnterFullScreen(&self, window: &NSWindow) where Self: Sized + Message { ... } unsafe fn customWindowsToExitFullScreenForWindow( &self, window: &NSWindow ) -> Option<Retained<NSArray<NSWindow>>> where Self: Sized + Message { ... } unsafe fn window_startCustomAnimationToExitFullScreenWithDuration( &self, window: &NSWindow, duration: NSTimeInterval ) where Self: Sized + Message { ... } unsafe fn customWindowsToEnterFullScreenForWindow_onScreen( &self, window: &NSWindow, screen: &NSScreen ) -> Option<Retained<NSArray<NSWindow>>> where Self: Sized + Message { ... } unsafe fn window_startCustomAnimationToEnterFullScreenOnScreen_withDuration( &self, window: &NSWindow, screen: &NSScreen, duration: NSTimeInterval ) where Self: Sized + Message { ... } unsafe fn windowDidFailToExitFullScreen(&self, window: &NSWindow) where Self: Sized + Message { ... } unsafe fn window_willResizeForVersionBrowserWithMaxPreferredSize_maxAllowedSize( &self, window: &NSWindow, max_preferred_frame_size: NSSize, max_allowed_frame_size: NSSize ) -> NSSize where Self: Sized + Message { ... } unsafe fn window_willEncodeRestorableState( &self, window: &NSWindow, state: &NSCoder ) where Self: Sized + Message { ... } unsafe fn window_didDecodeRestorableState( &self, window: &NSWindow, state: &NSCoder ) where Self: Sized + Message { ... } unsafe fn previewRepresentableActivityItemsForWindow( &self, window: &NSWindow ) -> Option<Retained<NSArray<ProtocolObject<dyn NSPreviewRepresentableActivityItem>>>> where Self: Sized + Message { ... } unsafe fn windowDidResize(&self, notification: &NSNotification) where Self: Sized + Message { ... } unsafe fn windowDidExpose(&self, notification: &NSNotification) where Self: Sized + Message { ... } unsafe fn windowWillMove(&self, notification: &NSNotification) where Self: Sized + Message { ... } unsafe fn windowDidMove(&self, notification: &NSNotification) where Self: Sized + Message { ... } unsafe fn windowDidBecomeKey(&self, notification: &NSNotification) where Self: Sized + Message { ... } unsafe fn windowDidResignKey(&self, notification: &NSNotification) where Self: Sized + Message { ... } unsafe fn windowDidBecomeMain(&self, notification: &NSNotification) where Self: Sized + Message { ... } unsafe fn windowDidResignMain(&self, notification: &NSNotification) where Self: Sized + Message { ... } unsafe fn windowWillClose(&self, notification: &NSNotification) where Self: Sized + Message { ... } unsafe fn windowWillMiniaturize(&self, notification: &NSNotification) where Self: Sized + Message { ... } unsafe fn windowDidMiniaturize(&self, notification: &NSNotification) where Self: Sized + Message { ... } unsafe fn windowDidDeminiaturize(&self, notification: &NSNotification) where Self: Sized + Message { ... } unsafe fn windowDidUpdate(&self, notification: &NSNotification) where Self: Sized + Message { ... } unsafe fn windowDidChangeScreen(&self, notification: &NSNotification) where Self: Sized + Message { ... } unsafe fn windowDidChangeScreenProfile(&self, notification: &NSNotification) where Self: Sized + Message { ... } unsafe fn windowDidChangeBackingProperties( &self, notification: &NSNotification ) where Self: Sized + Message { ... } unsafe fn windowWillBeginSheet(&self, notification: &NSNotification) where Self: Sized + Message { ... } unsafe fn windowDidEndSheet(&self, notification: &NSNotification) where Self: Sized + Message { ... } unsafe fn windowWillStartLiveResize(&self, notification: &NSNotification) where Self: Sized + Message { ... } unsafe fn windowDidEndLiveResize(&self, notification: &NSNotification) where Self: Sized + Message { ... } unsafe fn windowWillEnterFullScreen(&self, notification: &NSNotification) where Self: Sized + Message { ... } unsafe fn windowDidEnterFullScreen(&self, notification: &NSNotification) where Self: Sized + Message { ... } unsafe fn windowWillExitFullScreen(&self, notification: &NSNotification) where Self: Sized + Message { ... } unsafe fn windowDidExitFullScreen(&self, notification: &NSNotification) where Self: Sized + Message { ... } unsafe fn windowWillEnterVersionBrowser( &self, notification: &NSNotification ) where Self: Sized + Message { ... } unsafe fn windowDidEnterVersionBrowser(&self, notification: &NSNotification) where Self: Sized + Message { ... } unsafe fn windowWillExitVersionBrowser(&self, notification: &NSNotification) where Self: Sized + Message { ... } unsafe fn windowDidExitVersionBrowser(&self, notification: &NSNotification) where Self: Sized + Message { ... } unsafe fn windowDidChangeOcclusionState( &self, notification: &NSNotification ) where Self: Sized + Message { ... }
}
Available on crate feature NSWindow only.

Provided Methods§

source

unsafe fn windowShouldClose(&self, sender: &NSWindow) -> bool
where Self: Sized + Message,

Available on crate feature NSResponder only.
source

unsafe fn windowWillReturnFieldEditor_toObject( &self, sender: &NSWindow, client: Option<&AnyObject> ) -> Option<Retained<AnyObject>>
where Self: Sized + Message,

Available on crate feature NSResponder only.
source

unsafe fn windowWillResize_toSize( &self, sender: &NSWindow, frame_size: NSSize ) -> NSSize
where Self: Sized + Message,

Available on crate feature NSResponder only.
source

unsafe fn windowWillUseStandardFrame_defaultFrame( &self, window: &NSWindow, new_frame: NSRect ) -> NSRect
where Self: Sized + Message,

Available on crate feature NSResponder only.
source

unsafe fn windowShouldZoom_toFrame( &self, window: &NSWindow, new_frame: NSRect ) -> bool
where Self: Sized + Message,

Available on crate feature NSResponder only.
source

unsafe fn windowWillReturnUndoManager( &self, window: &NSWindow ) -> Option<Retained<NSUndoManager>>
where Self: Sized + Message,

Available on crate feature NSResponder only.
source

unsafe fn window_willPositionSheet_usingRect( &self, window: &NSWindow, sheet: &NSWindow, rect: NSRect ) -> NSRect
where Self: Sized + Message,

Available on crate feature NSResponder only.
source

unsafe fn window_shouldPopUpDocumentPathMenu( &self, window: &NSWindow, menu: &NSMenu ) -> bool
where Self: Sized + Message,

Available on crate features NSMenu and NSResponder only.
source

unsafe fn window_shouldDragDocumentWithEvent_from_withPasteboard( &self, window: &NSWindow, event: &NSEvent, drag_image_location: NSPoint, pasteboard: &NSPasteboard ) -> bool
where Self: Sized + Message,

Available on crate features NSEvent and NSPasteboard and NSResponder only.
source

unsafe fn window_willUseFullScreenContentSize( &self, window: &NSWindow, proposed_size: NSSize ) -> NSSize
where Self: Sized + Message,

Available on crate feature NSResponder only.
source

unsafe fn window_willUseFullScreenPresentationOptions( &self, window: &NSWindow, proposed_options: NSApplicationPresentationOptions ) -> NSApplicationPresentationOptions
where Self: Sized + Message,

Available on crate features NSApplication and NSResponder only.
source

unsafe fn customWindowsToEnterFullScreenForWindow( &self, window: &NSWindow ) -> Option<Retained<NSArray<NSWindow>>>
where Self: Sized + Message,

Available on crate feature NSResponder only.
source

unsafe fn window_startCustomAnimationToEnterFullScreenWithDuration( &self, window: &NSWindow, duration: NSTimeInterval )
where Self: Sized + Message,

Available on crate feature NSResponder only.
source

unsafe fn windowDidFailToEnterFullScreen(&self, window: &NSWindow)
where Self: Sized + Message,

Available on crate feature NSResponder only.
source

unsafe fn customWindowsToExitFullScreenForWindow( &self, window: &NSWindow ) -> Option<Retained<NSArray<NSWindow>>>
where Self: Sized + Message,

Available on crate feature NSResponder only.
source

unsafe fn window_startCustomAnimationToExitFullScreenWithDuration( &self, window: &NSWindow, duration: NSTimeInterval )
where Self: Sized + Message,

Available on crate feature NSResponder only.
source

unsafe fn customWindowsToEnterFullScreenForWindow_onScreen( &self, window: &NSWindow, screen: &NSScreen ) -> Option<Retained<NSArray<NSWindow>>>
where Self: Sized + Message,

Available on crate features NSResponder and NSScreen only.
source

unsafe fn window_startCustomAnimationToEnterFullScreenOnScreen_withDuration( &self, window: &NSWindow, screen: &NSScreen, duration: NSTimeInterval )
where Self: Sized + Message,

Available on crate features NSResponder and NSScreen only.
source

unsafe fn windowDidFailToExitFullScreen(&self, window: &NSWindow)
where Self: Sized + Message,

Available on crate feature NSResponder only.
source

unsafe fn window_willResizeForVersionBrowserWithMaxPreferredSize_maxAllowedSize( &self, window: &NSWindow, max_preferred_frame_size: NSSize, max_allowed_frame_size: NSSize ) -> NSSize
where Self: Sized + Message,

Available on crate feature NSResponder only.
source

unsafe fn window_willEncodeRestorableState( &self, window: &NSWindow, state: &NSCoder )
where Self: Sized + Message,

Available on crate feature NSResponder only.
source

unsafe fn window_didDecodeRestorableState( &self, window: &NSWindow, state: &NSCoder )
where Self: Sized + Message,

Available on crate feature NSResponder only.
source

unsafe fn previewRepresentableActivityItemsForWindow( &self, window: &NSWindow ) -> Option<Retained<NSArray<ProtocolObject<dyn NSPreviewRepresentableActivityItem>>>>
where Self: Sized + Message,

Available on crate features NSPreviewRepresentingActivityItem and NSResponder only.
source

unsafe fn windowDidResize(&self, notification: &NSNotification)
where Self: Sized + Message,

source

unsafe fn windowDidExpose(&self, notification: &NSNotification)
where Self: Sized + Message,

source

unsafe fn windowWillMove(&self, notification: &NSNotification)
where Self: Sized + Message,

source

unsafe fn windowDidMove(&self, notification: &NSNotification)
where Self: Sized + Message,

source

unsafe fn windowDidBecomeKey(&self, notification: &NSNotification)
where Self: Sized + Message,

source

unsafe fn windowDidResignKey(&self, notification: &NSNotification)
where Self: Sized + Message,

source

unsafe fn windowDidBecomeMain(&self, notification: &NSNotification)
where Self: Sized + Message,

source

unsafe fn windowDidResignMain(&self, notification: &NSNotification)
where Self: Sized + Message,

source

unsafe fn windowWillClose(&self, notification: &NSNotification)
where Self: Sized + Message,

source

unsafe fn windowWillMiniaturize(&self, notification: &NSNotification)
where Self: Sized + Message,

source

unsafe fn windowDidMiniaturize(&self, notification: &NSNotification)
where Self: Sized + Message,

source

unsafe fn windowDidDeminiaturize(&self, notification: &NSNotification)
where Self: Sized + Message,

source

unsafe fn windowDidUpdate(&self, notification: &NSNotification)
where Self: Sized + Message,

source

unsafe fn windowDidChangeScreen(&self, notification: &NSNotification)
where Self: Sized + Message,

source

unsafe fn windowDidChangeScreenProfile(&self, notification: &NSNotification)
where Self: Sized + Message,

source

unsafe fn windowDidChangeBackingProperties(&self, notification: &NSNotification)
where Self: Sized + Message,

source

unsafe fn windowWillBeginSheet(&self, notification: &NSNotification)
where Self: Sized + Message,

source

unsafe fn windowDidEndSheet(&self, notification: &NSNotification)
where Self: Sized + Message,

source

unsafe fn windowWillStartLiveResize(&self, notification: &NSNotification)
where Self: Sized + Message,

source

unsafe fn windowDidEndLiveResize(&self, notification: &NSNotification)
where Self: Sized + Message,

source

unsafe fn windowWillEnterFullScreen(&self, notification: &NSNotification)
where Self: Sized + Message,

source

unsafe fn windowDidEnterFullScreen(&self, notification: &NSNotification)
where Self: Sized + Message,

source

unsafe fn windowWillExitFullScreen(&self, notification: &NSNotification)
where Self: Sized + Message,

source

unsafe fn windowDidExitFullScreen(&self, notification: &NSNotification)
where Self: Sized + Message,

source

unsafe fn windowWillEnterVersionBrowser(&self, notification: &NSNotification)
where Self: Sized + Message,

source

unsafe fn windowDidEnterVersionBrowser(&self, notification: &NSNotification)
where Self: Sized + Message,

source

unsafe fn windowWillExitVersionBrowser(&self, notification: &NSNotification)
where Self: Sized + Message,

source

unsafe fn windowDidExitVersionBrowser(&self, notification: &NSNotification)
where Self: Sized + Message,

source

unsafe fn windowDidChangeOcclusionState(&self, notification: &NSNotification)
where Self: Sized + Message,

Trait Implementations§

source§

impl ProtocolType for dyn NSWindowDelegate

source§

const NAME: &'static str = "NSWindowDelegate"

The name of the Objective-C protocol that this type represents.
source§

fn protocol() -> Option<&'static AnyProtocol>

Get a reference to the Objective-C protocol object that this type represents. Read more
source§

impl<T> ImplementedBy<T> for dyn NSWindowDelegate

Implementations on Foreign Types§

source§

impl<T> NSWindowDelegate for ProtocolObject<T>
where T: ?Sized + NSWindowDelegate,

Implementors§