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§
unsafe fn toolbar_itemForItemIdentifier_willBeInsertedIntoToolbar( &self, toolbar: &NSToolbar, item_identifier: &NSToolbarItemIdentifier, flag: bool ) -> Option<Retained<NSToolbarItem>>
Available on crate feature
NSToolbarItem
only.unsafe fn toolbarDefaultItemIdentifiers( &self, toolbar: &NSToolbar ) -> Retained<NSArray<NSToolbarItemIdentifier>>
unsafe fn toolbarAllowedItemIdentifiers( &self, toolbar: &NSToolbar ) -> Retained<NSArray<NSToolbarItemIdentifier>>
unsafe fn toolbarSelectableItemIdentifiers( &self, toolbar: &NSToolbar ) -> Retained<NSArray<NSToolbarItemIdentifier>>
unsafe fn toolbarImmovableItemIdentifiers( &self, toolbar: &NSToolbar ) -> Retained<NSSet<NSToolbarItemIdentifier>>
unsafe fn toolbar_itemIdentifier_canBeInsertedAtIndex( &self, toolbar: &NSToolbar, item_identifier: &NSToolbarItemIdentifier, index: NSInteger ) -> bool
unsafe fn toolbarWillAddItem(&self, notification: &NSNotification)
unsafe fn toolbarDidRemoveItem(&self, notification: &NSNotification)
Trait Implementations§
source§impl ProtocolType for dyn NSToolbarDelegate
impl ProtocolType for dyn NSToolbarDelegate
impl<T> ImplementedBy<T> for dyn NSToolbarDelegate
Implementations on Foreign Types§
impl<T> NSToolbarDelegate for ProtocolObject<T>where
T: ?Sized + NSToolbarDelegate,
Implementors§
impl NSToolbarDelegate for NSTabViewController
Available on crate features
NSResponder
and NSViewController
and NSTabViewController
only.