Trait objc2_app_kit::NSWindowRestoration

source ·
pub unsafe trait NSWindowRestoration: NSObjectProtocol + IsMainThreadOnly {
    // Provided method
    unsafe fn restoreWindowWithIdentifier_state_completionHandler(
        identifier: &NSUserInterfaceItemIdentifier,
        state: &NSCoder,
        completion_handler: &Block<dyn Fn(*mut NSWindow, *mut NSError)>,
        mtm: MainThreadMarker
    )
       where Self: Sized + ClassType { ... }
}
Available on crate feature NSWindowRestoration only.

Provided Methods§

source

unsafe fn restoreWindowWithIdentifier_state_completionHandler( identifier: &NSUserInterfaceItemIdentifier, state: &NSCoder, completion_handler: &Block<dyn Fn(*mut NSWindow, *mut NSError)>, mtm: MainThreadMarker )
where Self: Sized + ClassType,

Available on crate features NSResponder and NSUserInterfaceItemIdentification and NSWindow and block2 only.

Trait Implementations§

source§

impl ProtocolType for dyn NSWindowRestoration

source§

const NAME: &'static str = "NSWindowRestoration"

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 NSWindowRestoration

Implementations on Foreign Types§

source§

impl<T> NSWindowRestoration for ProtocolObject<T>

Implementors§

source§

impl NSWindowRestoration for NSDocumentController

Available on crate feature NSDocumentController only.