Skip to main content

QEvent

Struct QEvent 

Source
pub struct QEvent { /* private fields */ }
Expand description

C++ class: QEvent.

Implementations§

Source§

impl QEvent

Source

pub unsafe fn accept(&self)

Calls C++ function: void QEvent::accept().

Source

pub unsafe fn copy_from(&self, other: impl CastInto<Ref<QEvent>>) -> Ref<QEvent>

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

Source

pub unsafe fn ignore(&self)

Calls C++ function: void QEvent::ignore().

Source

pub unsafe fn is_accepted(&self) -> bool

Calls C++ function: bool QEvent::isAccepted() const.

Source

pub unsafe fn new(type_: Type) -> CppBox<QEvent>

Calls C++ function: [constructor] void QEvent::QEvent(QEvent::Type type).

Source

pub unsafe fn new_copy(other: impl CastInto<Ref<QEvent>>) -> CppBox<QEvent>

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

Source

pub unsafe fn register_event_type_1a(hint: c_int) -> c_int

Calls C++ function: static int QEvent::registerEventType(int hint = …).

Source

pub unsafe fn register_event_type_0a() -> c_int

Calls C++ function: static int QEvent::registerEventType().

Source

pub unsafe fn set_accepted(&self, accepted: bool)

Calls C++ function: void QEvent::setAccepted(bool accepted).

Source

pub unsafe fn spontaneous(&self) -> bool

Calls C++ function: bool QEvent::spontaneous() const.

Source

pub unsafe fn static_meta_object() -> Ref<QMetaObject>

Returns a reference to the staticMetaObject field.

Source

pub unsafe fn type_(&self) -> Type

Calls C++ function: QEvent::Type QEvent::type() const.

Trait Implementations§

Source§

impl CppDeletable for QEvent

Source§

unsafe fn delete(&self)

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

Source§

impl DynamicCast<QChildEvent> for QEvent

Source§

unsafe fn dynamic_cast(ptr: Ptr<QEvent>) -> Ptr<QChildEvent>

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

Source§

impl DynamicCast<QDeferredDeleteEvent> for QEvent

Source§

unsafe fn dynamic_cast(ptr: Ptr<QEvent>) -> Ptr<QDeferredDeleteEvent>

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

Source§

impl DynamicCast<QDynamicPropertyChangeEvent> for QEvent

Source§

unsafe fn dynamic_cast(ptr: Ptr<QEvent>) -> Ptr<QDynamicPropertyChangeEvent>

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

Source§

impl DynamicCast<QTimerEvent> for QEvent

Source§

unsafe fn dynamic_cast(ptr: Ptr<QEvent>) -> Ptr<QTimerEvent>

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

Source§

impl DynamicCast<SignalEvent> for QEvent

Source§

unsafe fn dynamic_cast(ptr: Ptr<QEvent>) -> Ptr<SignalEvent>

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

Source§

impl DynamicCast<WrappedEvent> for QEvent

Source§

unsafe fn dynamic_cast(ptr: Ptr<QEvent>) -> Ptr<WrappedEvent>

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

Source§

impl StaticDowncast<QChildEvent> for QEvent

Source§

unsafe fn static_downcast(ptr: Ptr<QEvent>) -> Ptr<QChildEvent>

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

Source§

impl StaticDowncast<QDeferredDeleteEvent> for QEvent

Source§

unsafe fn static_downcast(ptr: Ptr<QEvent>) -> Ptr<QDeferredDeleteEvent>

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

Source§

impl StaticDowncast<QDynamicPropertyChangeEvent> for QEvent

Source§

unsafe fn static_downcast(ptr: Ptr<QEvent>) -> Ptr<QDynamicPropertyChangeEvent>

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

Source§

impl StaticDowncast<QTimerEvent> for QEvent

Source§

unsafe fn static_downcast(ptr: Ptr<QEvent>) -> Ptr<QTimerEvent>

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

Source§

impl StaticDowncast<SignalEvent> for QEvent

Source§

unsafe fn static_downcast(ptr: Ptr<QEvent>) -> Ptr<SignalEvent>

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

Source§

impl StaticDowncast<WrappedEvent> for QEvent

Source§

unsafe fn static_downcast(ptr: Ptr<QEvent>) -> Ptr<WrappedEvent>

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

Source§

impl StaticUpcast<QEvent> for QChildEvent

Source§

unsafe fn static_upcast(ptr: Ptr<QChildEvent>) -> Ptr<QEvent>

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

Source§

impl StaticUpcast<QEvent> for QDeferredDeleteEvent

Source§

unsafe fn static_upcast(ptr: Ptr<QDeferredDeleteEvent>) -> Ptr<QEvent>

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

Source§

impl StaticUpcast<QEvent> for QDynamicPropertyChangeEvent

Source§

unsafe fn static_upcast(ptr: Ptr<QDynamicPropertyChangeEvent>) -> Ptr<QEvent>

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

Source§

impl StaticUpcast<QEvent> for QTimerEvent

Source§

unsafe fn static_upcast(ptr: Ptr<QTimerEvent>) -> Ptr<QEvent>

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

Source§

impl StaticUpcast<QEvent> for SignalEvent

Source§

unsafe fn static_upcast(ptr: Ptr<SignalEvent>) -> Ptr<QEvent>

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

Source§

impl StaticUpcast<QEvent> for WrappedEvent

Source§

unsafe fn static_upcast(ptr: Ptr<WrappedEvent>) -> Ptr<QEvent>

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

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T, U> CastInto<U> for T
where U: CastFrom<T>,

Source§

unsafe fn cast_into(self) -> U

Performs the conversion. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> StaticUpcast<T> for T

Source§

unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>

Convert type of a const pointer. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.