[−][src]Struct qt_widgets::q_message_box::StandardButton
These enums describe flags for standard buttons. Each button has a defined ButtonRole.
C++ enum: QMessageBox::StandardButton
.
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]
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.
fn bitor(self, rhs: T) -> QFlags<StandardButton>
[src]
impl Clone for StandardButton
[src]
fn clone(&self) -> StandardButton
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for StandardButton
[src]
impl Debug for StandardButton
[src]
impl Eq for StandardButton
[src]
impl From<StandardButton> for c_int
[src]
fn from(value: StandardButton) -> Self
[src]
impl From<StandardButton> for QFlags<StandardButton>
[src]
fn from(value: StandardButton) -> Self
[src]
impl From<i32> for StandardButton
[src]
impl PartialEq<StandardButton> for StandardButton
[src]
fn eq(&self, other: &StandardButton) -> bool
[src]
fn ne(&self, other: &StandardButton) -> bool
[src]
impl StructuralEq for StandardButton
[src]
impl StructuralPartialEq for StandardButton
[src]
Auto Trait Implementations
impl RefUnwindSafe for StandardButton
impl Send for StandardButton
impl Sync for StandardButton
impl Unpin for StandardButton
impl UnwindSafe for StandardButton
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>,