[−][src]Struct qt_widgets::q_message_box::ButtonRole
This enum describes the roles that can be used to describe buttons in the button box. Combinations of these roles are as flags used to describe different aspects of their behavior.
C++ enum: QMessageBox::ButtonRole
.
This enum describes the roles that can be used to describe buttons in the button box. Combinations of these roles are as flags used to describe different aspects of their behavior.
See also StandardButton.
Methods
impl ButtonRole
[src]
impl ButtonRole
[src]
pub const InvalidRole: ButtonRole
[src]
The button is invalid. (C++ enum variant: InvalidRole = -1
)
pub const AcceptRole: ButtonRole
[src]
Clicking the button causes the dialog to be accepted (e.g. OK). (C++ enum variant: AcceptRole = 0
)
pub const RejectRole: ButtonRole
[src]
Clicking the button causes the dialog to be rejected (e.g. Cancel). (C++ enum variant: RejectRole = 1
)
pub const DestructiveRole: ButtonRole
[src]
Clicking the button causes a destructive change (e.g. for Discarding Changes) and closes the dialog. (C++ enum variant: DestructiveRole = 2
)
pub const ActionRole: ButtonRole
[src]
Clicking the button causes changes to the elements within the dialog. (C++ enum variant: ActionRole = 3
)
pub const HelpRole: ButtonRole
[src]
The button can be clicked to request help. (C++ enum variant: HelpRole = 4
)
pub const YesRole: ButtonRole
[src]
The button is a "Yes"-like button. (C++ enum variant: YesRole = 5
)
pub const NoRole: ButtonRole
[src]
The button is a "No"-like button. (C++ enum variant: NoRole = 6
)
pub const ResetRole: ButtonRole
[src]
The button resets the dialog's fields to default values. (C++ enum variant: ResetRole = 7
)
pub const ApplyRole: ButtonRole
[src]
The button applies current changes. (C++ enum variant: ApplyRole = 8
)
pub const NRoles: ButtonRole
[src]
C++ enum variant: NRoles = 9
Trait Implementations
impl Clone for ButtonRole
[src]
fn clone(&self) -> ButtonRole
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for ButtonRole
[src]
impl Debug for ButtonRole
[src]
impl Eq for ButtonRole
[src]
impl From<ButtonRole> for c_int
[src]
fn from(value: ButtonRole) -> Self
[src]
impl From<i32> for ButtonRole
[src]
impl PartialEq<ButtonRole> for ButtonRole
[src]
fn eq(&self, other: &ButtonRole) -> bool
[src]
fn ne(&self, other: &ButtonRole) -> bool
[src]
impl StructuralEq for ButtonRole
[src]
impl StructuralPartialEq for ButtonRole
[src]
Auto Trait Implementations
impl RefUnwindSafe for ButtonRole
impl Send for ButtonRole
impl Sync for ButtonRole
impl Unpin for ButtonRole
impl UnwindSafe for ButtonRole
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> CastInto<U> for T where
U: CastFrom<T>,
[src]
U: CastFrom<T>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> StaticUpcast<T> for T
[src]
unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,