[][src]Struct qt_widgets::q_message_box::StandardButton

#[repr(transparent)]pub struct StandardButton(_);

These enums describe flags for standard buttons. Each button has a defined ButtonRole.

C++ enum: QMessageBox::StandardButton.

C++ documentation:

These enums describe flags for standard buttons. Each button has a defined ButtonRole.

The following values are obsolete:

This enum was introduced or modified in Qt 4.2.

The StandardButtons type is a typedef for QFlags<StandardButton>. It stores an OR combination of StandardButton values.

See also ButtonRole and standardButtons.

Methods

impl StandardButton[src]

pub fn to_int(&self) -> c_int[src]

impl StandardButton[src]

pub const NoButton: StandardButton[src]

An invalid button. (C++ enum variant: NoButton = 0)

pub const Ok: StandardButton[src]

An "OK" button defined with the AcceptRole. (C++ enum variant: Ok = 1024)

pub const Save: StandardButton[src]

A "Save" button defined with the AcceptRole. (C++ enum variant: Save = 2048)

pub const SaveAll: StandardButton[src]

A "Save All" button defined with the AcceptRole. (C++ enum variant: SaveAll = 4096)

pub const Open: StandardButton[src]

An "Open" button defined with the AcceptRole. (C++ enum variant: Open = 8192)

pub const Yes: StandardButton[src]

A "Yes" button defined with the YesRole. (C++ enum variant: Yes = 16384)

pub const YesToAll: StandardButton[src]

A "Yes to All" button defined with the YesRole. (C++ enum variant: YesToAll = 32768)

pub const No: StandardButton[src]

A "No" button defined with the NoRole. (C++ enum variant: No = 65536)

pub const NoToAll: StandardButton[src]

A "No to All" button defined with the NoRole. (C++ enum variant: NoToAll = 131072)

pub const Abort: StandardButton[src]

An "Abort" button defined with the RejectRole. (C++ enum variant: Abort = 262144)

pub const Retry: StandardButton[src]

A "Retry" button defined with the AcceptRole. (C++ enum variant: Retry = 524288)

pub const Ignore: StandardButton[src]

An "Ignore" button defined with the AcceptRole. (C++ enum variant: Ignore = 1048576)

pub const Close: StandardButton[src]

A "Close" button defined with the RejectRole. (C++ enum variant: Close = 2097152)

pub const Cancel: StandardButton[src]

A "Cancel" button defined with the RejectRole. (C++ enum variant: Cancel = 4194304)

pub const Discard: StandardButton[src]

A "Discard" or "Don't Save" button, depending on the platform, defined with the DestructiveRole. (C++ enum variant: Discard = 8388608)

pub const Help: StandardButton[src]

A "Help" button defined with the HelpRole. (C++ enum variant: Help = 16777216)

pub const Apply: StandardButton[src]

An "Apply" button defined with the ApplyRole. (C++ enum variant: Apply = 33554432)

pub const Reset: StandardButton[src]

A "Reset" button defined with the ResetRole. (C++ enum variant: Reset = 67108864)

pub const RestoreDefaults: StandardButton[src]

A "Restore Defaults" button defined with the ResetRole. (C++ enum variant: RestoreDefaults = 134217728)

pub const FirstButton: StandardButton[src]

C++ enum variant: FirstButton = 1024

pub const LastButton: StandardButton[src]

C++ enum variant: LastButton = 134217728

pub const YesAll: StandardButton[src]

Use YesToAll instead. (C++ enum variant: YesAll = 32768)

pub const NoAll: StandardButton[src]

Use NoToAll instead. (C++ enum variant: NoAll = 131072)

pub const Default: StandardButton[src]

Use the defaultButton argument of information(), warning(), etc. instead, or call setDefaultButton(). (C++ enum variant: Default = 256)

pub const Escape: StandardButton[src]

Call setEscapeButton() instead. (C++ enum variant: Escape = 512)

pub const FlagMask: StandardButton[src]

  (C++ enum variant: FlagMask = 768)

pub const ButtonMask: StandardButton[src]

  (C++ enum variant: ButtonMask = -769)

Trait Implementations

impl<T: Into<QFlags<StandardButton>>> BitOr<T> for StandardButton[src]

type Output = QFlags<StandardButton>

The resulting type after applying the | operator.

impl Clone for StandardButton[src]

impl Copy for StandardButton[src]

impl Debug for StandardButton[src]

impl Eq for StandardButton[src]

impl From<StandardButton> for c_int[src]

impl From<StandardButton> for QFlags<StandardButton>[src]

impl From<i32> for StandardButton[src]

impl PartialEq<StandardButton> for StandardButton[src]

impl StructuralEq for StandardButton[src]

impl StructuralPartialEq for StandardButton[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.