pub enum IconAlignment {
Start,
End,
}Expand description
Determines the alignment of the icon within the widgets such as:
ElevatedButton::icon,FilledButton::icon,FilledButton::tonal_icon.OutlinedButton::icon,TextButton::icon,
The effect of icon_alignment depends on TextDirection. If text direction is
TextDirection::Ltr then IconAlignment::Start and IconAlignment::End align the
icon on the left or right respectively. If text direction is TextDirection::Rtl the
the alignments are reversed.
Defaults to IconAlignment::Start.
Variants§
Start
The icon is placed at the start of the button.
End
The icon is placed at the end of the button.
Trait Implementations§
Source§impl Clone for IconAlignment
impl Clone for IconAlignment
impl Copy for IconAlignment
Source§impl Debug for IconAlignment
impl Debug for IconAlignment
impl Eq for IconAlignment
Source§impl Hash for IconAlignment
impl Hash for IconAlignment
Source§impl PartialEq for IconAlignment
impl PartialEq for IconAlignment
impl StructuralPartialEq for IconAlignment
Auto Trait Implementations§
impl Forget for IconAlignment
impl Freeze for IconAlignment
impl Move for IconAlignment
impl RefUnwindSafe for IconAlignment
impl Send for IconAlignment
impl Sync for IconAlignment
impl Unpin for IconAlignment
impl UnsafeUnpin for IconAlignment
impl UnwindSafe for IconAlignment
Blanket Implementations§
Source§impl<T> AnyEq for T
impl<T> AnyEq for T
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.