Skip to main content

NSWindowRestoration

Trait NSWindowRestoration 

Source
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§

Source

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 features block2 and NSResponder and NSUserInterfaceItemIdentification and NSWindow only.
§Safety

state possibly has further requirements.

Trait Implementations§

Source§

impl<T> ImplementedBy<T> for dyn NSWindowRestoration

Source§

impl ProtocolType for dyn NSWindowRestoration

Source§

const NAME: &'static str = "NSWindowRestoration"

The name of the Objective-C protocol that this type represents. Read more
Source§

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

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

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T> NSWindowRestoration for ProtocolObject<T>

Implementors§