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§
fn splitView_canCollapseSubview( &self, split_view: &NSSplitView, subview: &NSView, ) -> bool
Available on crate features
NSResponder
and NSView
only.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.fn splitView_constrainMinCoordinate_ofSubviewAt( &self, split_view: &NSSplitView, proposed_minimum_position: CGFloat, divider_index: NSInteger, ) -> CGFloat
Available on crate features
NSResponder
and NSView
and objc2-core-foundation
only.fn splitView_constrainMaxCoordinate_ofSubviewAt( &self, split_view: &NSSplitView, proposed_maximum_position: CGFloat, divider_index: NSInteger, ) -> CGFloat
Available on crate features
NSResponder
and NSView
and objc2-core-foundation
only.fn splitView_constrainSplitPosition_ofSubviewAt( &self, split_view: &NSSplitView, proposed_position: CGFloat, divider_index: NSInteger, ) -> CGFloat
Available on crate features
NSResponder
and NSView
and objc2-core-foundation
only.fn splitView_resizeSubviewsWithOldSize( &self, split_view: &NSSplitView, old_size: NSSize, )
Available on crate features
NSResponder
and NSView
only.fn splitView_shouldAdjustSizeOfSubview( &self, split_view: &NSSplitView, view: &NSView, ) -> bool
Available on crate features
NSResponder
and NSView
only.fn splitView_shouldHideDividerAtIndex( &self, split_view: &NSSplitView, divider_index: NSInteger, ) -> bool
Available on crate features
NSResponder
and NSView
only.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.fn splitView_additionalEffectiveRectOfDividerAtIndex( &self, split_view: &NSSplitView, divider_index: NSInteger, ) -> NSRect
Available on crate features
NSResponder
and NSView
only.fn splitViewWillResizeSubviews(&self, notification: &NSNotification)
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 feature
NSSplitViewController
only.