Trait NSSplitViewDelegate

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

Provided Methods§

Source

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

Available on crate features NSResponder and NSView only.
Source

unsafe 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

unsafe 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

unsafe 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

unsafe 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

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

Available on crate features NSResponder and NSView only.
Source

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

Available on crate features NSResponder and NSView only.
Source

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

Available on crate features NSResponder and NSView only.
Source

unsafe 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

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

Available on crate features NSResponder and NSView only.
Source

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

Source

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

Trait Implementations§

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

impl<T> ImplementedBy<T> for dyn NSSplitViewDelegate

Implementations on Foreign Types§

Source§

impl<T> NSSplitViewDelegate for ProtocolObject<T>

Implementors§

Source§

impl NSSplitViewDelegate for NSSplitViewController

Available on crate feature NSSplitViewController only.