[][src]Struct qt_widgets::q_message_box::ButtonRole

#[repr(transparent)]pub struct 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.

C++ documentation:

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]

pub fn to_int(&self) -> c_int[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]

impl Copy for ButtonRole[src]

impl Debug for ButtonRole[src]

impl Eq for ButtonRole[src]

impl From<ButtonRole> for c_int[src]

impl From<i32> for ButtonRole[src]

impl PartialEq<ButtonRole> for ButtonRole[src]

impl StructuralEq for ButtonRole[src]

impl StructuralPartialEq for ButtonRole[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T, U> CastInto<U> for T where
    U: CastFrom<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> StaticUpcast<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.