pub struct QNativeGestureEvent { /* private fields */ }Expand description
C++ class: QNativeGestureEvent.
Implementations§
Source§impl QNativeGestureEvent
impl QNativeGestureEvent
Sourcepub unsafe fn copy_from(
&self,
other: impl CastInto<Ref<QNativeGestureEvent>>,
) -> Ref<QNativeGestureEvent>
pub unsafe fn copy_from( &self, other: impl CastInto<Ref<QNativeGestureEvent>>, ) -> Ref<QNativeGestureEvent>
Calls C++ function: QNativeGestureEvent& QNativeGestureEvent::operator=(const QNativeGestureEvent& other).
Sourcepub unsafe fn device(&self) -> Ptr<QTouchDevice>
pub unsafe fn device(&self) -> Ptr<QTouchDevice>
Calls C++ function: const QTouchDevice* QNativeGestureEvent::device() const.
Sourcepub unsafe fn gesture_type(&self) -> NativeGestureType
pub unsafe fn gesture_type(&self) -> NativeGestureType
Calls C++ function: Qt::NativeGestureType QNativeGestureEvent::gestureType() const.
Sourcepub unsafe fn global_pos(&self) -> CppBox<QPoint>
pub unsafe fn global_pos(&self) -> CppBox<QPoint>
Calls C++ function: QPoint QNativeGestureEvent::globalPos() const.
Sourcepub unsafe fn local_pos(&self) -> Ref<QPointF>
pub unsafe fn local_pos(&self) -> Ref<QPointF>
Calls C++ function: const QPointF& QNativeGestureEvent::localPos() const.
Sourcepub unsafe fn new_7a(
type_: NativeGestureType,
local_pos: impl CastInto<Ref<QPointF>>,
window_pos: impl CastInto<Ref<QPointF>>,
screen_pos: impl CastInto<Ref<QPointF>>,
value: c_double,
sequence_id: c_ulong,
int_argument: c_ulonglong,
) -> CppBox<QNativeGestureEvent>
pub unsafe fn new_7a( type_: NativeGestureType, local_pos: impl CastInto<Ref<QPointF>>, window_pos: impl CastInto<Ref<QPointF>>, screen_pos: impl CastInto<Ref<QPointF>>, value: c_double, sequence_id: c_ulong, int_argument: c_ulonglong, ) -> CppBox<QNativeGestureEvent>
Calls C++ function: [constructor] void QNativeGestureEvent::QNativeGestureEvent(Qt::NativeGestureType type, const QPointF& localPos, const QPointF& windowPos, const QPointF& screenPos, double value, unsigned long sequenceId, unsigned long long intArgument).
Sourcepub unsafe fn new_8a(
type_: NativeGestureType,
dev: impl CastInto<Ptr<QTouchDevice>>,
local_pos: impl CastInto<Ref<QPointF>>,
window_pos: impl CastInto<Ref<QPointF>>,
screen_pos: impl CastInto<Ref<QPointF>>,
value: c_double,
sequence_id: c_ulong,
int_argument: c_ulonglong,
) -> CppBox<QNativeGestureEvent>
pub unsafe fn new_8a( type_: NativeGestureType, dev: impl CastInto<Ptr<QTouchDevice>>, local_pos: impl CastInto<Ref<QPointF>>, window_pos: impl CastInto<Ref<QPointF>>, screen_pos: impl CastInto<Ref<QPointF>>, value: c_double, sequence_id: c_ulong, int_argument: c_ulonglong, ) -> CppBox<QNativeGestureEvent>
Calls C++ function: [constructor] void QNativeGestureEvent::QNativeGestureEvent(Qt::NativeGestureType type, const QTouchDevice* dev, const QPointF& localPos, const QPointF& windowPos, const QPointF& screenPos, double value, unsigned long sequenceId, unsigned long long intArgument).
Sourcepub unsafe fn new_copy(
other: impl CastInto<Ref<QNativeGestureEvent>>,
) -> CppBox<QNativeGestureEvent>
pub unsafe fn new_copy( other: impl CastInto<Ref<QNativeGestureEvent>>, ) -> CppBox<QNativeGestureEvent>
Calls C++ function: [constructor] void QNativeGestureEvent::QNativeGestureEvent(const QNativeGestureEvent& other).
Sourcepub unsafe fn pos(&self) -> CppBox<QPoint>
pub unsafe fn pos(&self) -> CppBox<QPoint>
Calls C++ function: QPoint QNativeGestureEvent::pos() const.
Sourcepub unsafe fn screen_pos(&self) -> Ref<QPointF>
pub unsafe fn screen_pos(&self) -> Ref<QPointF>
Calls C++ function: const QPointF& QNativeGestureEvent::screenPos() const.
Sourcepub unsafe fn value(&self) -> c_double
pub unsafe fn value(&self) -> c_double
Calls C++ function: double QNativeGestureEvent::value() const.
Sourcepub unsafe fn window_pos(&self) -> Ref<QPointF>
pub unsafe fn window_pos(&self) -> Ref<QPointF>
Calls C++ function: const QPointF& QNativeGestureEvent::windowPos() const.
Methods from Deref<Target = QInputEvent>§
Sourcepub unsafe fn copy_from(
&self,
other: impl CastInto<Ref<QInputEvent>>,
) -> Ref<QInputEvent>
pub unsafe fn copy_from( &self, other: impl CastInto<Ref<QInputEvent>>, ) -> Ref<QInputEvent>
Calls C++ function: QInputEvent& QInputEvent::operator=(const QInputEvent& other).
Sourcepub unsafe fn modifiers(&self) -> QFlags<KeyboardModifier>
pub unsafe fn modifiers(&self) -> QFlags<KeyboardModifier>
Calls C++ function: QFlags<Qt::KeyboardModifier> QInputEvent::modifiers() const.
Sourcepub unsafe fn set_modifiers(&self, amodifiers: QFlags<KeyboardModifier>)
pub unsafe fn set_modifiers(&self, amodifiers: QFlags<KeyboardModifier>)
Calls C++ function: void QInputEvent::setModifiers(QFlags<Qt::KeyboardModifier> amodifiers).
Sourcepub unsafe fn set_timestamp(&self, atimestamp: c_ulong)
pub unsafe fn set_timestamp(&self, atimestamp: c_ulong)
Calls C++ function: void QInputEvent::setTimestamp(unsigned long atimestamp).
Methods from Deref<Target = QEvent>§
Sourcepub unsafe fn copy_from(&self, other: impl CastInto<Ref<QEvent>>) -> Ref<QEvent>
pub unsafe fn copy_from(&self, other: impl CastInto<Ref<QEvent>>) -> Ref<QEvent>
Calls C++ function: QEvent& QEvent::operator=(const QEvent& other).
Sourcepub unsafe fn is_accepted(&self) -> bool
pub unsafe fn is_accepted(&self) -> bool
Calls C++ function: bool QEvent::isAccepted() const.
Sourcepub unsafe fn set_accepted(&self, accepted: bool)
pub unsafe fn set_accepted(&self, accepted: bool)
Calls C++ function: void QEvent::setAccepted(bool accepted).
Sourcepub unsafe fn spontaneous(&self) -> bool
pub unsafe fn spontaneous(&self) -> bool
Calls C++ function: bool QEvent::spontaneous() const.
Trait Implementations§
Source§impl CppDeletable for QNativeGestureEvent
impl CppDeletable for QNativeGestureEvent
Source§impl Deref for QNativeGestureEvent
impl Deref for QNativeGestureEvent
Source§fn deref(&self) -> &QInputEvent
fn deref(&self) -> &QInputEvent
Calls C++ function: QInputEvent* static_cast<QInputEvent*>(QNativeGestureEvent* ptr).
Source§type Target = QInputEvent
type Target = QInputEvent
Source§impl DynamicCast<QNativeGestureEvent> for QEvent
impl DynamicCast<QNativeGestureEvent> for QEvent
Source§unsafe fn dynamic_cast(ptr: Ptr<QEvent>) -> Ptr<QNativeGestureEvent>
unsafe fn dynamic_cast(ptr: Ptr<QEvent>) -> Ptr<QNativeGestureEvent>
Calls C++ function: QNativeGestureEvent* dynamic_cast<QNativeGestureEvent*>(QEvent* ptr).
Source§impl DynamicCast<QNativeGestureEvent> for QInputEvent
impl DynamicCast<QNativeGestureEvent> for QInputEvent
Source§unsafe fn dynamic_cast(ptr: Ptr<QInputEvent>) -> Ptr<QNativeGestureEvent>
unsafe fn dynamic_cast(ptr: Ptr<QInputEvent>) -> Ptr<QNativeGestureEvent>
Calls C++ function: QNativeGestureEvent* dynamic_cast<QNativeGestureEvent*>(QInputEvent* ptr).
Source§impl StaticDowncast<QNativeGestureEvent> for QEvent
impl StaticDowncast<QNativeGestureEvent> for QEvent
Source§unsafe fn static_downcast(ptr: Ptr<QEvent>) -> Ptr<QNativeGestureEvent>
unsafe fn static_downcast(ptr: Ptr<QEvent>) -> Ptr<QNativeGestureEvent>
Calls C++ function: QNativeGestureEvent* static_cast<QNativeGestureEvent*>(QEvent* ptr).
Source§impl StaticDowncast<QNativeGestureEvent> for QInputEvent
impl StaticDowncast<QNativeGestureEvent> for QInputEvent
Source§unsafe fn static_downcast(ptr: Ptr<QInputEvent>) -> Ptr<QNativeGestureEvent>
unsafe fn static_downcast(ptr: Ptr<QInputEvent>) -> Ptr<QNativeGestureEvent>
Calls C++ function: QNativeGestureEvent* static_cast<QNativeGestureEvent*>(QInputEvent* ptr).
Source§impl StaticUpcast<QEvent> for QNativeGestureEvent
impl StaticUpcast<QEvent> for QNativeGestureEvent
Source§unsafe fn static_upcast(ptr: Ptr<QNativeGestureEvent>) -> Ptr<QEvent>
unsafe fn static_upcast(ptr: Ptr<QNativeGestureEvent>) -> Ptr<QEvent>
Calls C++ function: QEvent* static_cast<QEvent*>(QNativeGestureEvent* ptr).
Source§impl StaticUpcast<QInputEvent> for QNativeGestureEvent
impl StaticUpcast<QInputEvent> for QNativeGestureEvent
Source§unsafe fn static_upcast(ptr: Ptr<QNativeGestureEvent>) -> Ptr<QInputEvent>
unsafe fn static_upcast(ptr: Ptr<QNativeGestureEvent>) -> Ptr<QInputEvent>
Calls C++ function: QInputEvent* static_cast<QInputEvent*>(QNativeGestureEvent* ptr).