pub enum DialogButtonOrder {
TrailingAffirmative,
LeadingAffirmative,
}Expand description
Specifies the order of affirmative/cancel buttons in dialogs.
This is a platform convention, not visual styling. Different desktop environments place the confirmation button at different ends of the button row (macOS/KDE: leading, Windows/GNOME: trailing). It is part of the theme model because “native feel” includes layout conventions that vary by platform, and it is overridable in theme presets.
Variants§
TrailingAffirmative
Affirmative button at the trailing (right) end — Windows, GNOME style.
LeadingAffirmative
Affirmative button at the leading (left) end — macOS, KDE style.
Trait Implementations§
Source§impl Clone for DialogButtonOrder
impl Clone for DialogButtonOrder
Source§fn clone(&self) -> DialogButtonOrder
fn clone(&self) -> DialogButtonOrder
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 DialogButtonOrder
impl Debug for DialogButtonOrder
Source§impl Default for DialogButtonOrder
impl Default for DialogButtonOrder
Source§fn default() -> DialogButtonOrder
fn default() -> DialogButtonOrder
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DialogButtonOrder
impl<'de> Deserialize<'de> for DialogButtonOrder
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for DialogButtonOrder
impl Hash for DialogButtonOrder
Source§impl PartialEq for DialogButtonOrder
impl PartialEq for DialogButtonOrder
Source§impl Serialize for DialogButtonOrder
impl Serialize for DialogButtonOrder
impl Copy for DialogButtonOrder
impl Eq for DialogButtonOrder
impl StructuralPartialEq for DialogButtonOrder
Auto Trait Implementations§
impl Freeze for DialogButtonOrder
impl RefUnwindSafe for DialogButtonOrder
impl Send for DialogButtonOrder
impl Sync for DialogButtonOrder
impl Unpin for DialogButtonOrder
impl UnsafeUnpin for DialogButtonOrder
impl UnwindSafe for DialogButtonOrder
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