[][src]Struct qt_gui::QApplicationStateChangeEvent

#[repr(C)]pub struct QApplicationStateChangeEvent { /* fields omitted */ }

C++ class: QApplicationStateChangeEvent.

Methods

impl QApplicationStateChangeEvent[src]

pub unsafe fn application_state(&self) -> ApplicationState[src]

Returns the state of the application.

Calls C++ function: Qt::ApplicationState QApplicationStateChangeEvent::applicationState() const.

C++ documentation:

Returns the state of the application.

pub unsafe fn copy_from(
    &self,
    other: impl CastInto<Ref<QApplicationStateChangeEvent>>
) -> Ref<QApplicationStateChangeEvent>
[src]

Calls C++ function: QApplicationStateChangeEvent& QApplicationStateChangeEvent::operator=(const QApplicationStateChangeEvent& other).

pub unsafe fn new(
    state: ApplicationState
) -> CppBox<QApplicationStateChangeEvent>
[src]

Creates a new QApplicationStateChangeEvent. applicationState is the new state.

Calls C++ function: [constructor] void QApplicationStateChangeEvent::QApplicationStateChangeEvent(Qt::ApplicationState state).

C++ documentation:

Creates a new QApplicationStateChangeEvent. applicationState is the new state.

pub unsafe fn new_copy(
    other: impl CastInto<Ref<QApplicationStateChangeEvent>>
) -> CppBox<QApplicationStateChangeEvent>
[src]

Calls C++ function: [constructor] void QApplicationStateChangeEvent::QApplicationStateChangeEvent(const QApplicationStateChangeEvent& other).

Trait Implementations

impl CppDeletable for QApplicationStateChangeEvent[src]

unsafe fn delete(&self)[src]

Calls C++ function: [destructor] void QApplicationStateChangeEvent::~QApplicationStateChangeEvent().

impl Deref for QApplicationStateChangeEvent[src]

type Target = QEvent

The resulting type after dereferencing.

fn deref(&self) -> &QEvent[src]

Calls C++ function: QEvent* static_cast<QEvent*>(QApplicationStateChangeEvent* ptr).

impl DynamicCast<QApplicationStateChangeEvent> for QEvent[src]

unsafe fn dynamic_cast(ptr: Ptr<QEvent>) -> Ptr<QApplicationStateChangeEvent>[src]

Calls C++ function: QApplicationStateChangeEvent* dynamic_cast<QApplicationStateChangeEvent*>(QEvent* ptr).

impl StaticDowncast<QApplicationStateChangeEvent> for QEvent[src]

unsafe fn static_downcast(ptr: Ptr<QEvent>) -> Ptr<QApplicationStateChangeEvent>[src]

Calls C++ function: QApplicationStateChangeEvent* static_cast<QApplicationStateChangeEvent*>(QEvent* ptr).

impl StaticUpcast<QEvent> for QApplicationStateChangeEvent[src]

unsafe fn static_upcast(ptr: Ptr<QApplicationStateChangeEvent>) -> Ptr<QEvent>[src]

Calls C++ function: QEvent* static_cast<QEvent*>(QApplicationStateChangeEvent* ptr).

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, 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.