NSScrubberDataSource

Trait NSScrubberDataSource 

Source
pub unsafe trait NSScrubberDataSource: NSObjectProtocol + MainThreadOnly {
    // Provided methods
    fn numberOfItemsForScrubber(&self, scrubber: &NSScrubber) -> NSInteger
       where Self: Sized + Message { ... }
    fn scrubber_viewForItemAtIndex(
        &self,
        scrubber: &NSScrubber,
        index: NSInteger,
    ) -> Retained<NSScrubberItemView>
       where Self: Sized + Message { ... }
}
Available on crate feature NSScrubber only.
Expand description

Provided Methods§

Source

fn numberOfItemsForScrubber(&self, scrubber: &NSScrubber) -> NSInteger
where Self: Sized + Message,

Available on crate features NSResponder and NSView only.
Source

fn scrubber_viewForItemAtIndex( &self, scrubber: &NSScrubber, index: NSInteger, ) -> Retained<NSScrubberItemView>
where Self: Sized + Message,

Available on crate features NSResponder and NSScrubberItemView and NSView only.

Trait Implementations§

Source§

impl ProtocolType for dyn NSScrubberDataSource

Source§

const NAME: &'static str = "NSScrubberDataSource"

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
Source§

impl<T> ImplementedBy<T> for dyn NSScrubberDataSource

Implementations on Foreign Types§

Source§

impl<T> NSScrubberDataSource for ProtocolObject<T>

Implementors§