#[repr(u32)]pub enum DialogButtonRole {
None = 0,
Accept = 1,
Reject = 2,
Apply = 3,
Reset = 4,
Help = 5,
Action = 6,
}
Expand description
This enum represents the value of the dialog-button-role
property which can be added to
any element within a Dialog
to put that item in the button row, and its exact position
depends on the role and the platform.
Variants§
None = 0
This isn’t a button meant to go into the bottom row
Accept = 1
This is the role of the main button to click to accept the dialog. e.g. “Ok” or “Yes”
Reject = 2
This is the role of the main button to click to reject the dialog. e.g. “Cancel” or “No”
Apply = 3
This is the role of the “Apply” button
Reset = 4
This is the role of the “Reset” button
Help = 5
This is the role of the “Help” button
Action = 6
This is the role of any other button that performs another action.
Trait Implementations§
Source§impl Clone for DialogButtonRole
impl Clone for DialogButtonRole
Source§fn clone(&self) -> DialogButtonRole
fn clone(&self) -> DialogButtonRole
Returns a copy 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 DialogButtonRole
impl Debug for DialogButtonRole
Source§impl Default for DialogButtonRole
impl Default for DialogButtonRole
Source§impl Display for DialogButtonRole
impl Display for DialogButtonRole
Source§impl FromStr for DialogButtonRole
impl FromStr for DialogButtonRole
Source§impl Hash for DialogButtonRole
impl Hash for DialogButtonRole
Source§impl PartialEq for DialogButtonRole
impl PartialEq for DialogButtonRole
Source§impl TryFrom<&str> for DialogButtonRole
impl TryFrom<&str> for DialogButtonRole
impl Copy for DialogButtonRole
impl Eq for DialogButtonRole
impl StructuralPartialEq for DialogButtonRole
Auto Trait Implementations§
impl Freeze for DialogButtonRole
impl RefUnwindSafe for DialogButtonRole
impl Send for DialogButtonRole
impl Sync for DialogButtonRole
impl Unpin for DialogButtonRole
impl UnwindSafe for DialogButtonRole
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Converts the given value to a
SharedString
.