[][src]Struct qt_gui::QInputEvent

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

The QInputEvent class is the base class for events that describe user input.

C++ class: QInputEvent.

C++ documentation:

The QInputEvent class is the base class for events that describe user input.

Methods

impl QInputEvent[src]

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

The QInputEvent class is the base class for events that describe user input.

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

C++ documentation:

The QInputEvent class is the base class for events that describe user input.

pub unsafe fn modifiers(&self) -> QFlags<KeyboardModifier>[src]

Returns the keyboard modifier flags that existed immediately before the event occurred.

Calls C++ function: QFlags<Qt::KeyboardModifier> QInputEvent::modifiers() const.

C++ documentation:

Returns the keyboard modifier flags that existed immediately before the event occurred.

See also QGuiApplication::keyboardModifiers().

pub unsafe fn new_2a(
    type_: Type,
    modifiers: QFlags<KeyboardModifier>
) -> CppBox<QInputEvent>
[src]

Calls C++ function: [constructor] void QInputEvent::QInputEvent(QEvent::Type type, QFlags<Qt::KeyboardModifier> modifiers = …).

pub unsafe fn new_1a(type_: Type) -> CppBox<QInputEvent>[src]

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

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

The QInputEvent class is the base class for events that describe user input.

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

C++ documentation:

The QInputEvent class is the base class for events that describe user input.

pub unsafe fn set_modifiers(&self, amodifiers: QFlags<KeyboardModifier>)[src]

Calls C++ function: void QInputEvent::setModifiers(QFlags<Qt::KeyboardModifier> amodifiers).

pub unsafe fn set_timestamp(&self, atimestamp: c_ulong)[src]

Calls C++ function: void QInputEvent::setTimestamp(unsigned long atimestamp).

pub unsafe fn timestamp(&self) -> c_ulong[src]

Returns the window system's timestamp for this event. It will normally be in milliseconds since some arbitrary point in time, such as the time when the system was started.

Calls C++ function: unsigned long QInputEvent::timestamp() const.

C++ documentation:

Returns the window system's timestamp for this event. It will normally be in milliseconds since some arbitrary point in time, such as the time when the system was started.

Trait Implementations

impl CppDeletable for QInputEvent[src]

unsafe fn delete(&self)[src]

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

impl Deref for QInputEvent[src]

type Target = QEvent

The resulting type after dereferencing.

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

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

impl DynamicCast<QContextMenuEvent> for QInputEvent[src]

unsafe fn dynamic_cast(ptr: Ptr<QInputEvent>) -> Ptr<QContextMenuEvent>[src]

Calls C++ function: QContextMenuEvent* dynamic_cast<QContextMenuEvent*>(QInputEvent* ptr).

impl DynamicCast<QHoverEvent> for QInputEvent[src]

unsafe fn dynamic_cast(ptr: Ptr<QInputEvent>) -> Ptr<QHoverEvent>[src]

Calls C++ function: QHoverEvent* dynamic_cast<QHoverEvent*>(QInputEvent* ptr).

impl DynamicCast<QInputEvent> for QEvent[src]

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

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

impl DynamicCast<QKeyEvent> for QInputEvent[src]

unsafe fn dynamic_cast(ptr: Ptr<QInputEvent>) -> Ptr<QKeyEvent>[src]

Calls C++ function: QKeyEvent* dynamic_cast<QKeyEvent*>(QInputEvent* ptr).

impl DynamicCast<QMouseEvent> for QInputEvent[src]

unsafe fn dynamic_cast(ptr: Ptr<QInputEvent>) -> Ptr<QMouseEvent>[src]

Calls C++ function: QMouseEvent* dynamic_cast<QMouseEvent*>(QInputEvent* ptr).

impl DynamicCast<QNativeGestureEvent> for QInputEvent[src]

unsafe fn dynamic_cast(ptr: Ptr<QInputEvent>) -> Ptr<QNativeGestureEvent>[src]

Calls C++ function: QNativeGestureEvent* dynamic_cast<QNativeGestureEvent*>(QInputEvent* ptr).

impl DynamicCast<QTabletEvent> for QInputEvent[src]

unsafe fn dynamic_cast(ptr: Ptr<QInputEvent>) -> Ptr<QTabletEvent>[src]

Calls C++ function: QTabletEvent* dynamic_cast<QTabletEvent*>(QInputEvent* ptr).

impl DynamicCast<QTouchEvent> for QInputEvent[src]

unsafe fn dynamic_cast(ptr: Ptr<QInputEvent>) -> Ptr<QTouchEvent>[src]

Calls C++ function: QTouchEvent* dynamic_cast<QTouchEvent*>(QInputEvent* ptr).

impl DynamicCast<QWheelEvent> for QInputEvent[src]

unsafe fn dynamic_cast(ptr: Ptr<QInputEvent>) -> Ptr<QWheelEvent>[src]

Calls C++ function: QWheelEvent* dynamic_cast<QWheelEvent*>(QInputEvent* ptr).

impl StaticDowncast<QContextMenuEvent> for QInputEvent[src]

unsafe fn static_downcast(ptr: Ptr<QInputEvent>) -> Ptr<QContextMenuEvent>[src]

Calls C++ function: QContextMenuEvent* static_cast<QContextMenuEvent*>(QInputEvent* ptr).

impl StaticDowncast<QHoverEvent> for QInputEvent[src]

unsafe fn static_downcast(ptr: Ptr<QInputEvent>) -> Ptr<QHoverEvent>[src]

Calls C++ function: QHoverEvent* static_cast<QHoverEvent*>(QInputEvent* ptr).

impl StaticDowncast<QInputEvent> for QEvent[src]

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

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

impl StaticDowncast<QKeyEvent> for QInputEvent[src]

unsafe fn static_downcast(ptr: Ptr<QInputEvent>) -> Ptr<QKeyEvent>[src]

Calls C++ function: QKeyEvent* static_cast<QKeyEvent*>(QInputEvent* ptr).

impl StaticDowncast<QMouseEvent> for QInputEvent[src]

unsafe fn static_downcast(ptr: Ptr<QInputEvent>) -> Ptr<QMouseEvent>[src]

Calls C++ function: QMouseEvent* static_cast<QMouseEvent*>(QInputEvent* ptr).

impl StaticDowncast<QNativeGestureEvent> for QInputEvent[src]

unsafe fn static_downcast(ptr: Ptr<QInputEvent>) -> Ptr<QNativeGestureEvent>[src]

Calls C++ function: QNativeGestureEvent* static_cast<QNativeGestureEvent*>(QInputEvent* ptr).

impl StaticDowncast<QTabletEvent> for QInputEvent[src]

unsafe fn static_downcast(ptr: Ptr<QInputEvent>) -> Ptr<QTabletEvent>[src]

Calls C++ function: QTabletEvent* static_cast<QTabletEvent*>(QInputEvent* ptr).

impl StaticDowncast<QTouchEvent> for QInputEvent[src]

unsafe fn static_downcast(ptr: Ptr<QInputEvent>) -> Ptr<QTouchEvent>[src]

Calls C++ function: QTouchEvent* static_cast<QTouchEvent*>(QInputEvent* ptr).

impl StaticDowncast<QWheelEvent> for QInputEvent[src]

unsafe fn static_downcast(ptr: Ptr<QInputEvent>) -> Ptr<QWheelEvent>[src]

Calls C++ function: QWheelEvent* static_cast<QWheelEvent*>(QInputEvent* ptr).

impl StaticUpcast<QEvent> for QInputEvent[src]

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

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

impl StaticUpcast<QInputEvent> for QMouseEvent[src]

unsafe fn static_upcast(ptr: Ptr<QMouseEvent>) -> Ptr<QInputEvent>[src]

Calls C++ function: QInputEvent* static_cast<QInputEvent*>(QMouseEvent* ptr).

impl StaticUpcast<QInputEvent> for QHoverEvent[src]

unsafe fn static_upcast(ptr: Ptr<QHoverEvent>) -> Ptr<QInputEvent>[src]

Calls C++ function: QInputEvent* static_cast<QInputEvent*>(QHoverEvent* ptr).

impl StaticUpcast<QInputEvent> for QWheelEvent[src]

unsafe fn static_upcast(ptr: Ptr<QWheelEvent>) -> Ptr<QInputEvent>[src]

Calls C++ function: QInputEvent* static_cast<QInputEvent*>(QWheelEvent* ptr).

impl StaticUpcast<QInputEvent> for QTabletEvent[src]

unsafe fn static_upcast(ptr: Ptr<QTabletEvent>) -> Ptr<QInputEvent>[src]

Calls C++ function: QInputEvent* static_cast<QInputEvent*>(QTabletEvent* ptr).

impl StaticUpcast<QInputEvent> for QNativeGestureEvent[src]

unsafe fn static_upcast(ptr: Ptr<QNativeGestureEvent>) -> Ptr<QInputEvent>[src]

Calls C++ function: QInputEvent* static_cast<QInputEvent*>(QNativeGestureEvent* ptr).

impl StaticUpcast<QInputEvent> for QKeyEvent[src]

unsafe fn static_upcast(ptr: Ptr<QKeyEvent>) -> Ptr<QInputEvent>[src]

Calls C++ function: QInputEvent* static_cast<QInputEvent*>(QKeyEvent* ptr).

impl StaticUpcast<QInputEvent> for QContextMenuEvent[src]

unsafe fn static_upcast(ptr: Ptr<QContextMenuEvent>) -> Ptr<QInputEvent>[src]

Calls C++ function: QInputEvent* static_cast<QInputEvent*>(QContextMenuEvent* ptr).

impl StaticUpcast<QInputEvent> for QTouchEvent[src]

unsafe fn static_upcast(ptr: Ptr<QTouchEvent>) -> Ptr<QInputEvent>[src]

Calls C++ function: QInputEvent* static_cast<QInputEvent*>(QTouchEvent* 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.