Trait objc2_app_kit::NSPopoverDelegate

source ·
pub unsafe trait NSPopoverDelegate: NSObjectProtocol + IsMainThreadOnly {
    // Provided methods
    unsafe fn popoverShouldClose(&self, popover: &NSPopover) -> bool
       where Self: Sized + Message { ... }
    unsafe fn popoverShouldDetach(&self, popover: &NSPopover) -> bool
       where Self: Sized + Message { ... }
    unsafe fn popoverDidDetach(&self, popover: &NSPopover)
       where Self: Sized + Message { ... }
    unsafe fn detachableWindowForPopover(
        &self,
        popover: &NSPopover
    ) -> Option<Id<NSWindow>>
       where Self: Sized + Message { ... }
    unsafe fn popoverWillShow(&self, notification: &NSNotification)
       where Self: Sized + Message { ... }
    unsafe fn popoverDidShow(&self, notification: &NSNotification)
       where Self: Sized + Message { ... }
    unsafe fn popoverWillClose(&self, notification: &NSNotification)
       where Self: Sized + Message { ... }
    unsafe fn popoverDidClose(&self, notification: &NSNotification)
       where Self: Sized + Message { ... }
}
Available on crate feature NSPopover only.

Provided Methods§

source

unsafe fn popoverShouldClose(&self, popover: &NSPopover) -> bool
where Self: Sized + Message,

Available on crate feature NSResponder only.
source

unsafe fn popoverShouldDetach(&self, popover: &NSPopover) -> bool
where Self: Sized + Message,

Available on crate feature NSResponder only.
source

unsafe fn popoverDidDetach(&self, popover: &NSPopover)
where Self: Sized + Message,

Available on crate feature NSResponder only.
source

unsafe fn detachableWindowForPopover( &self, popover: &NSPopover ) -> Option<Id<NSWindow>>
where Self: Sized + Message,

Available on crate features NSResponder and NSWindow only.
source

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

source

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

source

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

source

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

Trait Implementations§

source§

impl ProtocolType for dyn NSPopoverDelegate

source§

const NAME: &'static str = "NSPopoverDelegate"

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 NSPopoverDelegate

Implementations on Foreign Types§

source§

impl<T> NSPopoverDelegate for ProtocolObject<T>

Implementors§