#[repr(u32)]pub enum StandardButtonKind {
Ok = 0,
Cancel = 1,
Apply = 2,
Close = 3,
Reset = 4,
Help = 5,
Yes = 6,
No = 7,
Abort = 8,
Retry = 9,
Ignore = 10,
}
Expand description
Use this enum to add standard buttons to a Dialog
. The look and positioning
of these StandardButton
s depends on the environment
(OS, UI environment, etc.) the application runs in.
Variants§
Ok = 0
A “OK” button that accepts a Dialog
, closing it when clicked.
Cancel = 1
A “Cancel” button that rejects a Dialog
, closing it when clicked.
Apply = 2
A “Apply” button that should accept values from a
Dialog
without closing it.
Close = 3
A “Close” button, which should close a Dialog
without looking at values.
Reset = 4
A “Reset” button, which should reset the Dialog
to its initial state.
Help = 5
A “Help” button, which should bring up context related documentation when clicked.
Yes = 6
A “Yes” button, used to confirm an action.
No = 7
A “No” button, used to deny an action.
Abort = 8
A “Abort” button, used to abort an action.
Retry = 9
A “Retry” button, used to retry a failed action.
Ignore = 10
A “Ignore” button, used to ignore a failed action.
Trait Implementations§
Source§impl Clone for StandardButtonKind
impl Clone for StandardButtonKind
Source§fn clone(&self) -> StandardButtonKind
fn clone(&self) -> StandardButtonKind
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for StandardButtonKind
impl Debug for StandardButtonKind
Source§impl Default for StandardButtonKind
impl Default for StandardButtonKind
Source§impl Display for StandardButtonKind
impl Display for StandardButtonKind
Source§impl FromStr for StandardButtonKind
impl FromStr for StandardButtonKind
Source§impl Hash for StandardButtonKind
impl Hash for StandardButtonKind
Source§impl PartialEq for StandardButtonKind
impl PartialEq for StandardButtonKind
Source§impl TryFrom<&str> for StandardButtonKind
impl TryFrom<&str> for StandardButtonKind
impl Copy for StandardButtonKind
impl Eq for StandardButtonKind
impl StructuralPartialEq for StandardButtonKind
Auto Trait Implementations§
impl Freeze for StandardButtonKind
impl RefUnwindSafe for StandardButtonKind
impl Send for StandardButtonKind
impl Sync for StandardButtonKind
impl Unpin for StandardButtonKind
impl UnwindSafe for StandardButtonKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
SharedString
.