Trait objc2_app_kit::NSSplitViewDelegate

source ·
pub unsafe trait NSSplitViewDelegate: NSObjectProtocol + IsMainThreadOnly {
    // 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.

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 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 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 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.
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 features NSResponder and NSViewController and NSSplitViewController only.