Skip to main content

NSStackViewDelegate

Trait NSStackViewDelegate 

Source
pub unsafe trait NSStackViewDelegate: NSObjectProtocol + MainThreadOnly {
    // Provided methods
    fn stackView_willDetachViews(
        &self,
        stack_view: &NSStackView,
        views: &NSArray<NSView>,
    )
       where Self: Sized + Message { ... }
    fn stackView_didReattachViews(
        &self,
        stack_view: &NSStackView,
        views: &NSArray<NSView>,
    )
       where Self: Sized + Message { ... }
}
Available on crate feature NSStackView only.
Expand description

Provided Methods§

Source

fn stackView_willDetachViews( &self, stack_view: &NSStackView, views: &NSArray<NSView>, )
where Self: Sized + Message,

Available on crate features NSResponder and NSView only.
Source

fn stackView_didReattachViews( &self, stack_view: &NSStackView, views: &NSArray<NSView>, )
where Self: Sized + Message,

Available on crate features NSResponder and NSView only.

Trait Implementations§

Source§

impl<T> ImplementedBy<T> for dyn NSStackViewDelegate

Source§

impl ProtocolType for dyn NSStackViewDelegate

Source§

const NAME: &'static str = "NSStackViewDelegate"

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

Implementors§