pub unsafe trait NSWindowRestoration: NSObjectProtocol + MainThreadOnly {
// Provided method
unsafe fn restoreWindowWithIdentifier_state_completionHandler(
identifier: &NSUserInterfaceItemIdentifier,
state: &NSCoder,
completion_handler: &DynBlock<dyn Fn(*mut NSWindow, *mut NSError)>,
mtm: MainThreadMarker,
)
where Self: Sized + ClassType { ... }
}
Available on crate feature
NSWindowRestoration
only.Expand description
Provided Methods§
unsafe fn restoreWindowWithIdentifier_state_completionHandler( identifier: &NSUserInterfaceItemIdentifier, state: &NSCoder, completion_handler: &DynBlock<dyn Fn(*mut NSWindow, *mut NSError)>, mtm: MainThreadMarker, )
Available on crate features
NSResponder
and NSUserInterfaceItemIdentification
and NSWindow
and block2
only.