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 (Windows/KDE: leading/left, GNOME/macOS/iOS: 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.
Windows uses primary-leftmost per the Microsoft Common Buttons guideline
(Win7) and modern WinUI 3 ContentDialog (“PrimaryButton … Appears as
the leftmost button”). See docs/platform-facts.md:1481, 1500-1507, 1807-1808 for the authoritative citations.
Variants§
PrimaryRight
Primary button at the trailing (right) end – GNOME, macOS, iOS style.
PrimaryLeft
Primary button at the leading (left) end – Windows, KDE style.
Trait Implementations§
Source§impl Clone for DialogButtonOrder
impl Clone for DialogButtonOrder
Source§fn clone(&self) -> DialogButtonOrder
fn clone(&self) -> DialogButtonOrder
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for DialogButtonOrder
Source§impl Debug for DialogButtonOrder
impl Debug for DialogButtonOrder
Source§impl Default for DialogButtonOrder
impl Default for DialogButtonOrder
Source§fn default() -> DialogButtonOrder
fn default() -> DialogButtonOrder
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>,
impl Eq for DialogButtonOrder
Source§impl Hash for DialogButtonOrder
impl Hash for DialogButtonOrder
Source§impl PartialEq for DialogButtonOrder
impl PartialEq for DialogButtonOrder
Source§fn eq(&self, other: &DialogButtonOrder) -> bool
fn eq(&self, other: &DialogButtonOrder) -> bool
self and other values to be equal, and is used by ==.