Enum i_slint_core::items::DialogButtonRole
source · [−]#[repr(C)]
pub enum DialogButtonRole {
none,
accept,
reject,
apply,
reset,
help,
action,
}
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
This is not a button means to go in the row of button of the dialog
accept
This is the role of the main button to click to accept the dialog. e.g. “Ok” or “Yes”
reject
This is the role of the main button to click to reject the dialog. e.g. “Cancel” or “No”
apply
This is the role of the “Apply” button
reset
This is the role of the “Reset” button
help
This is the role of the “Help” button
action
This is the role of any other button that performs another action.
Trait Implementations
sourceimpl Clone for DialogButtonRole
impl Clone for DialogButtonRole
sourcefn clone(&self) -> DialogButtonRole
fn clone(&self) -> DialogButtonRole
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for DialogButtonRole
impl Debug for DialogButtonRole
sourceimpl Default for DialogButtonRole
impl Default for DialogButtonRole
sourceimpl Display for DialogButtonRole
impl Display for DialogButtonRole
sourceimpl FromStr for DialogButtonRole
impl FromStr for DialogButtonRole
type Err = ParseError
type Err = ParseError
The associated error which can be returned from parsing.
sourceimpl Hash for DialogButtonRole
impl Hash for DialogButtonRole
sourceimpl PartialEq<DialogButtonRole> for DialogButtonRole
impl PartialEq<DialogButtonRole> for DialogButtonRole
sourceimpl TryFrom<&str> for DialogButtonRole
impl TryFrom<&str> for DialogButtonRole
type Error = ParseError
type Error = ParseError
The type returned in the event of a conversion error.
impl Copy for DialogButtonRole
impl Eq for DialogButtonRole
impl StructuralEq for DialogButtonRole
impl StructuralPartialEq for DialogButtonRole
Auto Trait Implementations
impl RefUnwindSafe for DialogButtonRole
impl Send for DialogButtonRole
impl Sync for DialogButtonRole
impl Unpin for DialogButtonRole
impl UnwindSafe for DialogButtonRole
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more