Trait objc2_app_kit::NSToolbarDelegate

source ·
pub unsafe trait NSToolbarDelegate: NSObjectProtocol + IsMainThreadOnly {
    // Provided methods
    unsafe fn toolbar_itemForItemIdentifier_willBeInsertedIntoToolbar(
        &self,
        toolbar: &NSToolbar,
        item_identifier: &NSToolbarItemIdentifier,
        flag: bool
    ) -> Option<Retained<NSToolbarItem>>
       where Self: Sized + Message { ... }
    unsafe fn toolbarDefaultItemIdentifiers(
        &self,
        toolbar: &NSToolbar
    ) -> Retained<NSArray<NSToolbarItemIdentifier>>
       where Self: Sized + Message { ... }
    unsafe fn toolbarAllowedItemIdentifiers(
        &self,
        toolbar: &NSToolbar
    ) -> Retained<NSArray<NSToolbarItemIdentifier>>
       where Self: Sized + Message { ... }
    unsafe fn toolbarSelectableItemIdentifiers(
        &self,
        toolbar: &NSToolbar
    ) -> Retained<NSArray<NSToolbarItemIdentifier>>
       where Self: Sized + Message { ... }
    unsafe fn toolbarImmovableItemIdentifiers(
        &self,
        toolbar: &NSToolbar
    ) -> Retained<NSSet<NSToolbarItemIdentifier>>
       where Self: Sized + Message { ... }
    unsafe fn toolbar_itemIdentifier_canBeInsertedAtIndex(
        &self,
        toolbar: &NSToolbar,
        item_identifier: &NSToolbarItemIdentifier,
        index: NSInteger
    ) -> bool
       where Self: Sized + Message { ... }
    unsafe fn toolbarWillAddItem(&self, notification: &NSNotification)
       where Self: Sized + Message { ... }
    unsafe fn toolbarDidRemoveItem(&self, notification: &NSNotification)
       where Self: Sized + Message { ... }
}
Available on crate feature NSToolbar only.

Provided Methods§

source

unsafe fn toolbar_itemForItemIdentifier_willBeInsertedIntoToolbar( &self, toolbar: &NSToolbar, item_identifier: &NSToolbarItemIdentifier, flag: bool ) -> Option<Retained<NSToolbarItem>>
where Self: Sized + Message,

Available on crate feature NSToolbarItem only.
source

unsafe fn toolbarDefaultItemIdentifiers( &self, toolbar: &NSToolbar ) -> Retained<NSArray<NSToolbarItemIdentifier>>
where Self: Sized + Message,

source

unsafe fn toolbarAllowedItemIdentifiers( &self, toolbar: &NSToolbar ) -> Retained<NSArray<NSToolbarItemIdentifier>>
where Self: Sized + Message,

source

unsafe fn toolbarSelectableItemIdentifiers( &self, toolbar: &NSToolbar ) -> Retained<NSArray<NSToolbarItemIdentifier>>
where Self: Sized + Message,

source

unsafe fn toolbarImmovableItemIdentifiers( &self, toolbar: &NSToolbar ) -> Retained<NSSet<NSToolbarItemIdentifier>>
where Self: Sized + Message,

source

unsafe fn toolbar_itemIdentifier_canBeInsertedAtIndex( &self, toolbar: &NSToolbar, item_identifier: &NSToolbarItemIdentifier, index: NSInteger ) -> bool
where Self: Sized + Message,

source

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

source

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

Trait Implementations§

source§

impl ProtocolType for dyn NSToolbarDelegate

source§

const NAME: &'static str = "NSToolbarDelegate"

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 NSToolbarDelegate

Implementations on Foreign Types§

source§

impl<T> NSToolbarDelegate for ProtocolObject<T>

Implementors§

source§

impl NSToolbarDelegate for NSTabViewController

Available on crate features NSResponder and NSViewController and NSTabViewController only.