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§
unsafe fn windowShouldClose(&self, sender: &NSWindow) -> bool
Available on crate feature
NSResponder
only.unsafe fn windowWillReturnFieldEditor_toObject( &self, sender: &NSWindow, client: Option<&AnyObject> ) -> Option<Retained<AnyObject>>
Available on crate feature
NSResponder
only.unsafe fn windowWillResize_toSize( &self, sender: &NSWindow, frame_size: NSSize ) -> NSSize
Available on crate feature
NSResponder
only.unsafe fn windowWillUseStandardFrame_defaultFrame( &self, window: &NSWindow, new_frame: NSRect ) -> NSRect
Available on crate feature
NSResponder
only.unsafe fn windowShouldZoom_toFrame( &self, window: &NSWindow, new_frame: NSRect ) -> bool
Available on crate feature
NSResponder
only.unsafe fn windowWillReturnUndoManager( &self, window: &NSWindow ) -> Option<Retained<NSUndoManager>>
Available on crate feature
NSResponder
only.unsafe fn window_willPositionSheet_usingRect( &self, window: &NSWindow, sheet: &NSWindow, rect: NSRect ) -> NSRect
Available on crate feature
NSResponder
only.unsafe fn window_shouldPopUpDocumentPathMenu( &self, window: &NSWindow, menu: &NSMenu ) -> bool
Available on crate features
NSMenu
and NSResponder
only.unsafe fn window_shouldDragDocumentWithEvent_from_withPasteboard( &self, window: &NSWindow, event: &NSEvent, drag_image_location: NSPoint, pasteboard: &NSPasteboard ) -> bool
Available on crate features
NSEvent
and NSPasteboard
and NSResponder
only.unsafe fn window_willUseFullScreenContentSize( &self, window: &NSWindow, proposed_size: NSSize ) -> NSSize
Available on crate feature
NSResponder
only.unsafe fn window_willUseFullScreenPresentationOptions( &self, window: &NSWindow, proposed_options: NSApplicationPresentationOptions ) -> NSApplicationPresentationOptions
Available on crate features
NSApplication
and NSResponder
only.unsafe fn customWindowsToEnterFullScreenForWindow( &self, window: &NSWindow ) -> Option<Retained<NSArray<NSWindow>>>
Available on crate feature
NSResponder
only.unsafe fn window_startCustomAnimationToEnterFullScreenWithDuration( &self, window: &NSWindow, duration: NSTimeInterval )
Available on crate feature
NSResponder
only.unsafe fn windowDidFailToEnterFullScreen(&self, window: &NSWindow)
Available on crate feature
NSResponder
only.unsafe fn customWindowsToExitFullScreenForWindow( &self, window: &NSWindow ) -> Option<Retained<NSArray<NSWindow>>>
Available on crate feature
NSResponder
only.unsafe fn window_startCustomAnimationToExitFullScreenWithDuration( &self, window: &NSWindow, duration: NSTimeInterval )
Available on crate feature
NSResponder
only.unsafe fn customWindowsToEnterFullScreenForWindow_onScreen( &self, window: &NSWindow, screen: &NSScreen ) -> Option<Retained<NSArray<NSWindow>>>
Available on crate features
NSResponder
and NSScreen
only.unsafe fn window_startCustomAnimationToEnterFullScreenOnScreen_withDuration( &self, window: &NSWindow, screen: &NSScreen, duration: NSTimeInterval )
Available on crate features
NSResponder
and NSScreen
only.unsafe fn windowDidFailToExitFullScreen(&self, window: &NSWindow)
Available on crate feature
NSResponder
only.unsafe fn window_willResizeForVersionBrowserWithMaxPreferredSize_maxAllowedSize( &self, window: &NSWindow, max_preferred_frame_size: NSSize, max_allowed_frame_size: NSSize ) -> NSSize
Available on crate feature
NSResponder
only.unsafe fn window_willEncodeRestorableState( &self, window: &NSWindow, state: &NSCoder )
Available on crate feature
NSResponder
only.unsafe fn window_didDecodeRestorableState( &self, window: &NSWindow, state: &NSCoder )
Available on crate feature
NSResponder
only.unsafe fn previewRepresentableActivityItemsForWindow( &self, window: &NSWindow ) -> Option<Retained<NSArray<ProtocolObject<dyn NSPreviewRepresentableActivityItem>>>>
Available on crate features
NSPreviewRepresentingActivityItem
and NSResponder
only.