Trait objc2_app_kit::NSTouchBarDelegate

source ·
pub unsafe trait NSTouchBarDelegate: NSObjectProtocol + IsMainThreadOnly {
    // Provided method
    unsafe fn touchBar_makeItemForIdentifier(
        &self,
        touch_bar: &NSTouchBar,
        identifier: &NSTouchBarItemIdentifier
    ) -> Option<Id<NSTouchBarItem>>
       where Self: Sized + Message { ... }
}
Available on crate feature NSTouchBar only.

Provided Methods§

source

unsafe fn touchBar_makeItemForIdentifier( &self, touch_bar: &NSTouchBar, identifier: &NSTouchBarItemIdentifier ) -> Option<Id<NSTouchBarItem>>
where Self: Sized + Message,

Available on crate feature NSTouchBarItem only.

Trait Implementations§

source§

impl ProtocolType for dyn NSTouchBarDelegate

source§

const NAME: &'static str = "NSTouchBarDelegate"

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 NSTouchBarDelegate

Implementations on Foreign Types§

source§

impl<T> NSTouchBarDelegate for ProtocolObject<T>

Implementors§

source§

impl NSTouchBarDelegate for NSTextView

Available on crate features NSResponder and NSText and NSView and NSTextView only.