[][src]Struct qt_core::ApplicationState

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

This enum type is used to specify the current state of the application.

C++ enum: Qt::ApplicationState.

C++ documentation:

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]

pub fn to_int(&self) -> c_int[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 From<i32> for ApplicationState[src]

impl From<ApplicationState> for c_int[src]

impl Clone for ApplicationState[src]

impl Copy for ApplicationState[src]

impl Eq for ApplicationState[src]

impl PartialEq<ApplicationState> for ApplicationState[src]

impl Debug for ApplicationState[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> From<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.

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

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

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

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

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