Skip to main content

NSDrawerDelegate

Trait NSDrawerDelegate 

Source
pub unsafe trait NSDrawerDelegate: NSObjectProtocol {
    // Provided methods
    fn drawerShouldOpen(&self, sender: &NSDrawer) -> bool
       where Self: Sized + Message { ... }
    fn drawerShouldClose(&self, sender: &NSDrawer) -> bool
       where Self: Sized + Message { ... }
    fn drawerWillResizeContents_toSize(
        &self,
        sender: &NSDrawer,
        content_size: NSSize,
    ) -> NSSize
       where Self: Sized + Message { ... }
    fn drawerWillOpen(&self, notification: &NSNotification)
       where Self: Sized + Message { ... }
    fn drawerDidOpen(&self, notification: &NSNotification)
       where Self: Sized + Message { ... }
    fn drawerWillClose(&self, notification: &NSNotification)
       where Self: Sized + Message { ... }
    fn drawerDidClose(&self, notification: &NSNotification)
       where Self: Sized + Message { ... }
}
Available on crate feature NSDrawer only.
Expand description

Provided Methods§

Source

fn drawerShouldOpen(&self, sender: &NSDrawer) -> bool
where Self: Sized + Message,

👎Deprecated:

Drawers are deprecated; consider using NSSplitViewController

Available on crate feature NSResponder only.
Source

fn drawerShouldClose(&self, sender: &NSDrawer) -> bool
where Self: Sized + Message,

👎Deprecated:

Drawers are deprecated; consider using NSSplitViewController

Available on crate feature NSResponder only.
Source

fn drawerWillResizeContents_toSize( &self, sender: &NSDrawer, content_size: NSSize, ) -> NSSize
where Self: Sized + Message,

👎Deprecated:

Drawers are deprecated; consider using NSSplitViewController

Available on crate feature NSResponder only.
Source

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

👎Deprecated:

Drawers are deprecated; consider using NSSplitViewController

Source

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

👎Deprecated:

Drawers are deprecated; consider using NSSplitViewController

Source

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

👎Deprecated:

Drawers are deprecated; consider using NSSplitViewController

Source

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

👎Deprecated:

Drawers are deprecated; consider using NSSplitViewController

Trait Implementations§

Source§

impl<T> ImplementedBy<T> for dyn NSDrawerDelegate

Source§

impl ProtocolType for dyn NSDrawerDelegate

Source§

const NAME: &'static str = "NSDrawerDelegate"

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> NSDrawerDelegate for ProtocolObject<T>
where T: ?Sized + NSDrawerDelegate,

Implementors§