Struct qt_core::ApplicationState
source · pub struct ApplicationState(/* private fields */);
Expand description
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.
Implementations§
source§impl ApplicationState
impl ApplicationState
sourcepub const ApplicationSuspended: ApplicationState = _
pub const ApplicationSuspended: ApplicationState = _
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
)
sourcepub const ApplicationHidden: ApplicationState = _
pub const ApplicationHidden: ApplicationState = _
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
)
sourcepub const ApplicationInactive: ApplicationState = _
pub const ApplicationInactive: ApplicationState = _
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
)
sourcepub const ApplicationActive: ApplicationState = _
pub const ApplicationActive: ApplicationState = _
The application is visible and selected to be in front. (C++ enum variant: ApplicationActive = 4
)
Trait Implementations§
source§impl Clone for ApplicationState
impl Clone for ApplicationState
source§fn clone(&self) -> ApplicationState
fn clone(&self) -> ApplicationState
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ApplicationState
impl Debug for ApplicationState
source§impl From<ApplicationState> for c_int
impl From<ApplicationState> for c_int
source§fn from(value: ApplicationState) -> Self
fn from(value: ApplicationState) -> Self
source§impl From<i32> for ApplicationState
impl From<i32> for ApplicationState
source§impl PartialEq for ApplicationState
impl PartialEq for ApplicationState
source§fn eq(&self, other: &ApplicationState) -> bool
fn eq(&self, other: &ApplicationState) -> bool
self
and other
values to be equal, and is used
by ==
.