Skip to main content

NSTabViewDelegate

Trait NSTabViewDelegate 

Source
pub unsafe trait NSTabViewDelegate: NSObjectProtocol + MainThreadOnly {
    // Provided methods
    fn tabView_shouldSelectTabViewItem(
        &self,
        tab_view: &NSTabView,
        tab_view_item: Option<&NSTabViewItem>,
    ) -> bool
       where Self: Sized + Message { ... }
    fn tabView_willSelectTabViewItem(
        &self,
        tab_view: &NSTabView,
        tab_view_item: Option<&NSTabViewItem>,
    )
       where Self: Sized + Message { ... }
    fn tabView_didSelectTabViewItem(
        &self,
        tab_view: &NSTabView,
        tab_view_item: Option<&NSTabViewItem>,
    )
       where Self: Sized + Message { ... }
    fn tabViewDidChangeNumberOfTabViewItems(&self, tab_view: &NSTabView)
       where Self: Sized + Message { ... }
}
Available on crate feature NSTabView only.
Expand description

Provided Methods§

Source

fn tabView_shouldSelectTabViewItem( &self, tab_view: &NSTabView, tab_view_item: Option<&NSTabViewItem>, ) -> bool
where Self: Sized + Message,

Available on crate features NSResponder and NSTabViewItem and NSView only.
Source

fn tabView_willSelectTabViewItem( &self, tab_view: &NSTabView, tab_view_item: Option<&NSTabViewItem>, )
where Self: Sized + Message,

Available on crate features NSResponder and NSTabViewItem and NSView only.
Source

fn tabView_didSelectTabViewItem( &self, tab_view: &NSTabView, tab_view_item: Option<&NSTabViewItem>, )
where Self: Sized + Message,

Available on crate features NSResponder and NSTabViewItem and NSView only.
Source

fn tabViewDidChangeNumberOfTabViewItems(&self, tab_view: &NSTabView)
where Self: Sized + Message,

Available on crate features NSResponder and NSView only.

Trait Implementations§

Source§

impl<T> ImplementedBy<T> for dyn NSTabViewDelegate

Source§

impl ProtocolType for dyn NSTabViewDelegate

Source§

const NAME: &'static str = "NSTabViewDelegate"

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> NSTabViewDelegate for ProtocolObject<T>

Implementors§

Source§

impl NSTabViewDelegate for NSTabViewController

Available on crate feature NSTabViewController only.