Skip to main content

NSSplitViewDelegate

Trait NSSplitViewDelegate 

Source
pub unsafe trait NSSplitViewDelegate: NSObjectProtocol + MainThreadOnly {
    // Provided methods
    fn splitView_canCollapseSubview(
        &self,
        split_view: &NSSplitView,
        subview: &NSView,
    ) -> bool
       where Self: Sized + Message { ... }
    fn splitView_shouldCollapseSubview_forDoubleClickOnDividerAtIndex(
        &self,
        split_view: &NSSplitView,
        subview: &NSView,
        divider_index: NSInteger,
    ) -> bool
       where Self: Sized + Message { ... }
    fn splitView_constrainMinCoordinate_ofSubviewAt(
        &self,
        split_view: &NSSplitView,
        proposed_minimum_position: CGFloat,
        divider_index: NSInteger,
    ) -> CGFloat
       where Self: Sized + Message { ... }
    fn splitView_constrainMaxCoordinate_ofSubviewAt(
        &self,
        split_view: &NSSplitView,
        proposed_maximum_position: CGFloat,
        divider_index: NSInteger,
    ) -> CGFloat
       where Self: Sized + Message { ... }
    fn splitView_constrainSplitPosition_ofSubviewAt(
        &self,
        split_view: &NSSplitView,
        proposed_position: CGFloat,
        divider_index: NSInteger,
    ) -> CGFloat
       where Self: Sized + Message { ... }
    fn splitView_resizeSubviewsWithOldSize(
        &self,
        split_view: &NSSplitView,
        old_size: NSSize,
    )
       where Self: Sized + Message { ... }
    fn splitView_shouldAdjustSizeOfSubview(
        &self,
        split_view: &NSSplitView,
        view: &NSView,
    ) -> bool
       where Self: Sized + Message { ... }
    fn splitView_shouldHideDividerAtIndex(
        &self,
        split_view: &NSSplitView,
        divider_index: NSInteger,
    ) -> bool
       where Self: Sized + Message { ... }
    fn splitView_effectiveRect_forDrawnRect_ofDividerAtIndex(
        &self,
        split_view: &NSSplitView,
        proposed_effective_rect: NSRect,
        drawn_rect: NSRect,
        divider_index: NSInteger,
    ) -> NSRect
       where Self: Sized + Message { ... }
    fn splitView_additionalEffectiveRectOfDividerAtIndex(
        &self,
        split_view: &NSSplitView,
        divider_index: NSInteger,
    ) -> NSRect
       where Self: Sized + Message { ... }
    fn splitViewWillResizeSubviews(&self, notification: &NSNotification)
       where Self: Sized + Message { ... }
    fn splitViewDidResizeSubviews(&self, notification: &NSNotification)
       where Self: Sized + Message { ... }
}
Available on crate feature NSSplitView only.
Expand description

Provided Methods§

Source

fn splitView_canCollapseSubview( &self, split_view: &NSSplitView, subview: &NSView, ) -> bool
where Self: Sized + Message,

Available on crate features NSResponder and NSView only.
Source

fn splitView_shouldCollapseSubview_forDoubleClickOnDividerAtIndex( &self, split_view: &NSSplitView, subview: &NSView, divider_index: NSInteger, ) -> bool
where Self: Sized + Message,

👎Deprecated:

NSSplitView no longer supports collapsing sections via double-click. This delegate method is never called.

Available on crate features NSResponder and NSView only.
Source

fn splitView_constrainMinCoordinate_ofSubviewAt( &self, split_view: &NSSplitView, proposed_minimum_position: CGFloat, divider_index: NSInteger, ) -> CGFloat
where Self: Sized + Message,

Available on crate features NSResponder and NSView and objc2-core-foundation only.
Source

fn splitView_constrainMaxCoordinate_ofSubviewAt( &self, split_view: &NSSplitView, proposed_maximum_position: CGFloat, divider_index: NSInteger, ) -> CGFloat
where Self: Sized + Message,

Available on crate features NSResponder and NSView and objc2-core-foundation only.
Source

fn splitView_constrainSplitPosition_ofSubviewAt( &self, split_view: &NSSplitView, proposed_position: CGFloat, divider_index: NSInteger, ) -> CGFloat
where Self: Sized + Message,

Available on crate features NSResponder and NSView and objc2-core-foundation only.
Source

fn splitView_resizeSubviewsWithOldSize( &self, split_view: &NSSplitView, old_size: NSSize, )
where Self: Sized + Message,

Available on crate features NSResponder and NSView only.
Source

fn splitView_shouldAdjustSizeOfSubview( &self, split_view: &NSSplitView, view: &NSView, ) -> bool
where Self: Sized + Message,

Available on crate features NSResponder and NSView only.
Source

fn splitView_shouldHideDividerAtIndex( &self, split_view: &NSSplitView, divider_index: NSInteger, ) -> bool
where Self: Sized + Message,

Available on crate features NSResponder and NSView only.
Source

fn splitView_effectiveRect_forDrawnRect_ofDividerAtIndex( &self, split_view: &NSSplitView, proposed_effective_rect: NSRect, drawn_rect: NSRect, divider_index: NSInteger, ) -> NSRect
where Self: Sized + Message,

Available on crate features NSResponder and NSView only.
Source

fn splitView_additionalEffectiveRectOfDividerAtIndex( &self, split_view: &NSSplitView, divider_index: NSInteger, ) -> NSRect
where Self: Sized + Message,

Available on crate features NSResponder and NSView only.
Source

fn splitViewWillResizeSubviews(&self, notification: &NSNotification)
where Self: Sized + Message,

Source

fn splitViewDidResizeSubviews(&self, notification: &NSNotification)
where Self: Sized + Message,

Trait Implementations§

Source§

impl<T> ImplementedBy<T> for dyn NSSplitViewDelegate

Source§

impl ProtocolType for dyn NSSplitViewDelegate

Source§

const NAME: &'static str = "NSSplitViewDelegate"

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

Implementors§

Source§

impl NSSplitViewDelegate for NSSplitViewController

Available on crate feature NSSplitViewController only.