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§
unsafe fn splitView_canCollapseSubview( &self, split_view: &NSSplitView, subview: &NSView ) -> bool
Available on crate features
NSResponder
and NSView
only.unsafe fn splitView_shouldCollapseSubview_forDoubleClickOnDividerAtIndex( &self, split_view: &NSSplitView, subview: &NSView, divider_index: NSInteger ) -> bool
👎Deprecated: NSSplitView no longer supports collapsing sections via double-click. This delegate method is never called.
Available on crate features
NSResponder
and NSView
only.unsafe fn splitView_constrainMinCoordinate_ofSubviewAt( &self, split_view: &NSSplitView, proposed_minimum_position: CGFloat, divider_index: NSInteger ) -> CGFloat
Available on crate features
NSResponder
and NSView
only.unsafe fn splitView_constrainMaxCoordinate_ofSubviewAt( &self, split_view: &NSSplitView, proposed_maximum_position: CGFloat, divider_index: NSInteger ) -> CGFloat
Available on crate features
NSResponder
and NSView
only.unsafe fn splitView_constrainSplitPosition_ofSubviewAt( &self, split_view: &NSSplitView, proposed_position: CGFloat, divider_index: NSInteger ) -> CGFloat
Available on crate features
NSResponder
and NSView
only.unsafe fn splitView_resizeSubviewsWithOldSize( &self, split_view: &NSSplitView, old_size: NSSize )
Available on crate features
NSResponder
and NSView
only.unsafe fn splitView_shouldAdjustSizeOfSubview( &self, split_view: &NSSplitView, view: &NSView ) -> bool
Available on crate features
NSResponder
and NSView
only.unsafe fn splitView_shouldHideDividerAtIndex( &self, split_view: &NSSplitView, divider_index: NSInteger ) -> bool
Available on crate features
NSResponder
and NSView
only.unsafe fn splitView_effectiveRect_forDrawnRect_ofDividerAtIndex( &self, split_view: &NSSplitView, proposed_effective_rect: NSRect, drawn_rect: NSRect, divider_index: NSInteger ) -> NSRect
Available on crate features
NSResponder
and NSView
only.unsafe fn splitView_additionalEffectiveRectOfDividerAtIndex( &self, split_view: &NSSplitView, divider_index: NSInteger ) -> NSRect
Available on crate features
NSResponder
and NSView
only.unsafe fn splitViewWillResizeSubviews(&self, notification: &NSNotification)
unsafe fn splitViewDidResizeSubviews(&self, notification: &NSNotification)
Trait Implementations§
source§impl ProtocolType for dyn NSSplitViewDelegate
impl ProtocolType for dyn NSSplitViewDelegate
impl<T> ImplementedBy<T> for dyn NSSplitViewDelegate
Implementations on Foreign Types§
impl<T> NSSplitViewDelegate for ProtocolObject<T>where
T: ?Sized + NSSplitViewDelegate,
Implementors§
impl NSSplitViewDelegate for NSSplitViewController
Available on crate features
NSResponder
and NSViewController
and NSSplitViewController
only.