#[repr(transparent)]pub struct NSSplitViewItemCollapseBehavior(pub NSInteger);
NSSplitViewItem
only.Expand description
Tuple Fields§
§0: NSInteger
Implementations§
Source§impl NSSplitViewItemCollapseBehavior
impl NSSplitViewItemCollapseBehavior
Sourcepub const Default: Self
pub const Default: Self
The item uses the default collapsing behavior for its set behavior
. The default may change over time.
Sourcepub const PreferResizingSplitViewWithFixedSiblings: Self
pub const PreferResizingSplitViewWithFixedSiblings: Self
The item prefers to keep the other panes at their current size and position on screen, potentially growing or shrinking the window in the direction to best preserve that. But it will break that preference in order to keep the window fully on screen or when in full screen.
Sourcepub const PreferResizingSiblingsWithFixedSplitView: Self
pub const PreferResizingSiblingsWithFixedSplitView: Self
The item prefers to resize the other split panes. This will be broken when uncollapsing if the item can’t fully uncollapse before hitting the minimum size of the other panes or the window.
Sourcepub const UseConstraints: Self
pub const UseConstraints: Self
The item will collapse/uncollapse purely from a constraint animation, with a constraint priority of the item’s holdingPriority
. This could result in a partial internal content resize and window resize, and has no implications for keeping the window on screen. External constraints can be used to tweak exactly how the animation affects item, sibling, and window size and positions.
Trait Implementations§
Source§impl Clone for NSSplitViewItemCollapseBehavior
impl Clone for NSSplitViewItemCollapseBehavior
Source§fn clone(&self) -> NSSplitViewItemCollapseBehavior
fn clone(&self) -> NSSplitViewItemCollapseBehavior
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Ord for NSSplitViewItemCollapseBehavior
impl Ord for NSSplitViewItemCollapseBehavior
Source§fn cmp(&self, other: &NSSplitViewItemCollapseBehavior) -> Ordering
fn cmp(&self, other: &NSSplitViewItemCollapseBehavior) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for NSSplitViewItemCollapseBehavior
impl PartialEq for NSSplitViewItemCollapseBehavior
Source§fn eq(&self, other: &NSSplitViewItemCollapseBehavior) -> bool
fn eq(&self, other: &NSSplitViewItemCollapseBehavior) -> bool
self
and other
values to be equal, and is used by ==
.