pub enum DialogButtonOrder {
PrimaryRight,
PrimaryLeft,
}Expand description
Specifies the order of primary/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 (KDE: leading/left, Windows/GNOME/macOS: trailing/right). 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§
PrimaryRight
Primary button at the trailing (right) end – Windows, GNOME, macOS, iOS style.
PrimaryLeft
Primary button at the leading (left) end – 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<DialogButtonOrder, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<DialogButtonOrder, <__D as Deserializer<'de>>::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
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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