pub enum ContentAlignmentState {
Right,
RightWrapped,
RightWrappedNoIcon,
Left,
Vertical,
}Expand description
The ContentAlignmentStates group, picked from ContentAlignment and the card’s width.
Variants§
Right
RightWrapped
The card is narrower than SettingsCardWrapThreshold: the content is under the header, at the left.
RightWrappedNoIcon
The card is narrower than SettingsCardWrapNoIconThreshold: wrapped, and the header icon is not shown.
Left
Vertical
Implementations§
Source§impl ContentAlignmentState
impl ContentAlignmentState
Sourcepub fn of(
content_alignment: ContentAlignment,
width: f64,
) -> ContentAlignmentState
pub fn of( content_alignment: ContentAlignment, width: f64, ) -> ContentAlignmentState
The state for a card width wide. Its triggers are all custom ones, so where two are active the one the XAML declares first wins: a narrow card wraps whatever its ContentAlignment.
Trait Implementations§
Source§impl Clone for ContentAlignmentState
impl Clone for ContentAlignmentState
impl Copy for ContentAlignmentState
Source§impl Debug for ContentAlignmentState
impl Debug for ContentAlignmentState
impl Eq for ContentAlignmentState
Source§impl PartialEq for ContentAlignmentState
impl PartialEq for ContentAlignmentState
impl StructuralPartialEq for ContentAlignmentState
Auto Trait Implementations§
impl Forget for ContentAlignmentState
impl Freeze for ContentAlignmentState
impl Move for ContentAlignmentState
impl RefUnwindSafe for ContentAlignmentState
impl Send for ContentAlignmentState
impl Sync for ContentAlignmentState
impl Unpin for ContentAlignmentState
impl UnsafeUnpin for ContentAlignmentState
impl UnwindSafe for ContentAlignmentState
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.