[−][src]Struct qt_core::ApplicationState
This enum type is used to specify the current state of the application.
C++ enum: Qt::ApplicationState
.
This enum type is used to specify the current state of the application.
The states are
This enum was introduced or modified in Qt 5.1.
The ApplicationStates type is a typedef for QFlags<ApplicationState>. It stores an OR combination of ApplicationState values.
Methods
impl ApplicationState
[src]
impl ApplicationState
[src]
pub const ApplicationSuspended: ApplicationState
[src]
The application is about to suspend. When entering this state, the application should save its state, cease all activities, and be prepared for code execution to stop. While suspended, the application can be killed at any time without further warnings (e.g. when low memory forces the OS to purge suspended applications). (C++ enum variant: ApplicationSuspended = 0
)
pub const ApplicationHidden: ApplicationState
[src]
The application is hidden and runs in the background. This is the normal state for applications that need to do background processing, like playing music, while the user interacts with other applications. The application should free up all graphical resources when entering this state. (C++ enum variant: ApplicationHidden = 1
)
pub const ApplicationInactive: ApplicationState
[src]
The application is visible, but not selected to be in front. On desktop platforms, this typically means that the user activated another application. On mobile platforms, it is more common to enter this state when the OS is interrupting the user with e.g. incoming calls or SMS-messages. While in this state, consider reducing CPU-intensive tasks. (C++ enum variant: ApplicationInactive = 2
)
pub const ApplicationActive: ApplicationState
[src]
The application is visible and selected to be in front. (C++ enum variant: ApplicationActive = 4
)
Trait Implementations
impl Clone for ApplicationState
[src]
fn clone(&self) -> ApplicationState
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for ApplicationState
[src]
impl Debug for ApplicationState
[src]
impl Eq for ApplicationState
[src]
impl From<ApplicationState> for c_int
[src]
fn from(value: ApplicationState) -> Self
[src]
impl From<i32> for ApplicationState
[src]
impl PartialEq<ApplicationState> for ApplicationState
[src]
fn eq(&self, other: &ApplicationState) -> bool
[src]
fn ne(&self, other: &ApplicationState) -> bool
[src]
impl StructuralEq for ApplicationState
[src]
impl StructuralPartialEq for ApplicationState
[src]
Auto Trait Implementations
impl RefUnwindSafe for ApplicationState
impl Send for ApplicationState
impl Sync for ApplicationState
impl Unpin for ApplicationState
impl UnwindSafe for ApplicationState
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>,