#[repr(transparent)]pub struct NSSegmentDistribution(pub NSInteger);
Available on crate feature
NSSegmentedControl
only.Expand description
Tuple Fields§
§0: NSInteger
Implementations§
Source§impl NSSegmentDistribution
impl NSSegmentDistribution
Sourcepub const Fit: Self
pub const Fit: Self
Dynamically sized segments will be sized to fit their contents, any remaining space will be left blank. This style is equivalent to the way segments were distributed on older systems.
Sourcepub const Fill: Self
pub const Fill: Self
Dynamically sized segments will be sized to fill the available space, with extra space being distributed equally among them. Default value.
Sourcepub const FillEqually: Self
pub const FillEqually: Self
Dynamically sized segments will be sized to fill the available space, and kept the same size as each other.
Sourcepub const FillProportionally: Self
pub const FillProportionally: Self
Dynamically sized segments will be sized to fill the available space, and kept proportional to their fitting size.
Trait Implementations§
Source§impl Clone for NSSegmentDistribution
impl Clone for NSSegmentDistribution
Source§fn clone(&self) -> NSSegmentDistribution
fn clone(&self) -> NSSegmentDistribution
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for NSSegmentDistribution
impl Debug for NSSegmentDistribution
Source§impl Encode for NSSegmentDistribution
impl Encode for NSSegmentDistribution
Source§impl Hash for NSSegmentDistribution
impl Hash for NSSegmentDistribution
Source§impl Ord for NSSegmentDistribution
impl Ord for NSSegmentDistribution
Source§fn cmp(&self, other: &NSSegmentDistribution) -> Ordering
fn cmp(&self, other: &NSSegmentDistribution) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for NSSegmentDistribution
impl PartialEq for NSSegmentDistribution
Source§impl PartialOrd for NSSegmentDistribution
impl PartialOrd for NSSegmentDistribution
Source§impl RefEncode for NSSegmentDistribution
impl RefEncode for NSSegmentDistribution
Source§const ENCODING_REF: Encoding
const ENCODING_REF: Encoding
The Objective-C type-encoding for a reference of this type. Read more
impl Copy for NSSegmentDistribution
impl Eq for NSSegmentDistribution
impl StructuralPartialEq for NSSegmentDistribution
Auto Trait Implementations§
impl Freeze for NSSegmentDistribution
impl RefUnwindSafe for NSSegmentDistribution
impl Send for NSSegmentDistribution
impl Sync for NSSegmentDistribution
impl Unpin for NSSegmentDistribution
impl UnwindSafe for NSSegmentDistribution
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> EncodeArgument for Twhere
T: Encode,
impl<T> EncodeArgument for Twhere
T: Encode,
Source§const ENCODING_ARGUMENT: Encoding = T::ENCODING
const ENCODING_ARGUMENT: Encoding = T::ENCODING
The Objective-C type-encoding for this type.
Source§impl<T> EncodeReturn for Twhere
T: Encode,
impl<T> EncodeReturn for Twhere
T: Encode,
Source§const ENCODING_RETURN: Encoding = T::ENCODING
const ENCODING_RETURN: Encoding = T::ENCODING
The Objective-C type-encoding for this type.