pub struct QTabletEvent { /* private fields */ }Expand description
C++ class: QTabletEvent.
Implementations§
Source§impl QTabletEvent
impl QTabletEvent
Calls C++ function: Qt::MouseButton QTabletEvent::button() const.
Calls C++ function: QFlags<Qt::MouseButton> QTabletEvent::buttons() const.
Sourcepub unsafe fn copy_from(
&self,
other: impl CastInto<Ref<QTabletEvent>>,
) -> Ref<QTabletEvent>
pub unsafe fn copy_from( &self, other: impl CastInto<Ref<QTabletEvent>>, ) -> Ref<QTabletEvent>
Calls C++ function: QTabletEvent& QTabletEvent::operator=(const QTabletEvent& other).
Sourcepub unsafe fn device(&self) -> TabletDevice
pub unsafe fn device(&self) -> TabletDevice
Calls C++ function: QTabletEvent::TabletDevice QTabletEvent::device() const.
Sourcepub unsafe fn device_type(&self) -> TabletDevice
pub unsafe fn device_type(&self) -> TabletDevice
Calls C++ function: QTabletEvent::TabletDevice QTabletEvent::deviceType() const.
Sourcepub unsafe fn global_pos(&self) -> CppBox<QPoint>
pub unsafe fn global_pos(&self) -> CppBox<QPoint>
Calls C++ function: QPoint QTabletEvent::globalPos() const.
Sourcepub unsafe fn global_pos_f(&self) -> Ref<QPointF>
pub unsafe fn global_pos_f(&self) -> Ref<QPointF>
Calls C++ function: const QPointF& QTabletEvent::globalPosF() const.
Sourcepub unsafe fn hi_res_global_x(&self) -> c_double
pub unsafe fn hi_res_global_x(&self) -> c_double
Calls C++ function: double QTabletEvent::hiResGlobalX() const.
Sourcepub unsafe fn hi_res_global_y(&self) -> c_double
pub unsafe fn hi_res_global_y(&self) -> c_double
Calls C++ function: double QTabletEvent::hiResGlobalY() const.
Sourcepub unsafe fn new_13a(
t: Type,
pos: impl CastInto<Ref<QPointF>>,
global_pos: impl CastInto<Ref<QPointF>>,
device: c_int,
pointer_type: c_int,
pressure: c_double,
x_tilt: c_int,
y_tilt: c_int,
tangential_pressure: c_double,
rotation: c_double,
z: c_int,
key_state: QFlags<KeyboardModifier>,
unique_i_d: c_longlong,
) -> CppBox<QTabletEvent>
pub unsafe fn new_13a( t: Type, pos: impl CastInto<Ref<QPointF>>, global_pos: impl CastInto<Ref<QPointF>>, device: c_int, pointer_type: c_int, pressure: c_double, x_tilt: c_int, y_tilt: c_int, tangential_pressure: c_double, rotation: c_double, z: c_int, key_state: QFlags<KeyboardModifier>, unique_i_d: c_longlong, ) -> CppBox<QTabletEvent>
Calls C++ function: [constructor] void QTabletEvent::QTabletEvent(QEvent::Type t, const QPointF& pos, const QPointF& globalPos, int device, int pointerType, double pressure, int xTilt, int yTilt, double tangentialPressure, double rotation, int z, QFlags<Qt::KeyboardModifier> keyState, long long uniqueID).
Sourcepub unsafe fn new_15a(
t: Type,
pos: impl CastInto<Ref<QPointF>>,
global_pos: impl CastInto<Ref<QPointF>>,
device: c_int,
pointer_type: c_int,
pressure: c_double,
x_tilt: c_int,
y_tilt: c_int,
tangential_pressure: c_double,
rotation: c_double,
z: c_int,
key_state: QFlags<KeyboardModifier>,
unique_i_d: c_longlong,
button: MouseButton,
buttons: QFlags<MouseButton>,
) -> CppBox<QTabletEvent>
pub unsafe fn new_15a( t: Type, pos: impl CastInto<Ref<QPointF>>, global_pos: impl CastInto<Ref<QPointF>>, device: c_int, pointer_type: c_int, pressure: c_double, x_tilt: c_int, y_tilt: c_int, tangential_pressure: c_double, rotation: c_double, z: c_int, key_state: QFlags<KeyboardModifier>, unique_i_d: c_longlong, button: MouseButton, buttons: QFlags<MouseButton>, ) -> CppBox<QTabletEvent>
Calls C++ function: [constructor] void QTabletEvent::QTabletEvent(QEvent::Type t, const QPointF& pos, const QPointF& globalPos, int device, int pointerType, double pressure, int xTilt, int yTilt, double tangentialPressure, double rotation, int z, QFlags<Qt::KeyboardModifier> keyState, long long uniqueID, Qt::MouseButton button, QFlags<Qt::MouseButton> buttons).
Sourcepub unsafe fn new_copy(
other: impl CastInto<Ref<QTabletEvent>>,
) -> CppBox<QTabletEvent>
pub unsafe fn new_copy( other: impl CastInto<Ref<QTabletEvent>>, ) -> CppBox<QTabletEvent>
Calls C++ function: [constructor] void QTabletEvent::QTabletEvent(const QTabletEvent& other).
Sourcepub unsafe fn pointer_type(&self) -> PointerType
pub unsafe fn pointer_type(&self) -> PointerType
Calls C++ function: QTabletEvent::PointerType QTabletEvent::pointerType() const.
Sourcepub unsafe fn pos(&self) -> CppBox<QPoint>
pub unsafe fn pos(&self) -> CppBox<QPoint>
Calls C++ function: QPoint QTabletEvent::pos() const.
Sourcepub unsafe fn pos_f(&self) -> Ref<QPointF>
pub unsafe fn pos_f(&self) -> Ref<QPointF>
Calls C++ function: const QPointF& QTabletEvent::posF() const.
Sourcepub unsafe fn pressure(&self) -> c_double
pub unsafe fn pressure(&self) -> c_double
Calls C++ function: double QTabletEvent::pressure() const.
Sourcepub unsafe fn rotation(&self) -> c_double
pub unsafe fn rotation(&self) -> c_double
Calls C++ function: double QTabletEvent::rotation() const.
Sourcepub unsafe fn static_meta_object() -> Ref<QMetaObject>
pub unsafe fn static_meta_object() -> Ref<QMetaObject>
Returns a reference to the staticMetaObject field.
Sourcepub unsafe fn tangential_pressure(&self) -> c_double
pub unsafe fn tangential_pressure(&self) -> c_double
Calls C++ function: double QTabletEvent::tangentialPressure() const.
Sourcepub unsafe fn unique_id(&self) -> c_longlong
pub unsafe fn unique_id(&self) -> c_longlong
Calls C++ function: long long QTabletEvent::uniqueId() 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 QTabletEvent
impl CppDeletable for QTabletEvent
Source§impl Deref for QTabletEvent
impl Deref for QTabletEvent
Source§fn deref(&self) -> &QInputEvent
fn deref(&self) -> &QInputEvent
Calls C++ function: QInputEvent* static_cast<QInputEvent*>(QTabletEvent* ptr).
Source§type Target = QInputEvent
type Target = QInputEvent
Source§impl DynamicCast<QTabletEvent> for QEvent
impl DynamicCast<QTabletEvent> for QEvent
Source§unsafe fn dynamic_cast(ptr: Ptr<QEvent>) -> Ptr<QTabletEvent>
unsafe fn dynamic_cast(ptr: Ptr<QEvent>) -> Ptr<QTabletEvent>
Calls C++ function: QTabletEvent* dynamic_cast<QTabletEvent*>(QEvent* ptr).
Source§impl DynamicCast<QTabletEvent> for QInputEvent
impl DynamicCast<QTabletEvent> for QInputEvent
Source§unsafe fn dynamic_cast(ptr: Ptr<QInputEvent>) -> Ptr<QTabletEvent>
unsafe fn dynamic_cast(ptr: Ptr<QInputEvent>) -> Ptr<QTabletEvent>
Calls C++ function: QTabletEvent* dynamic_cast<QTabletEvent*>(QInputEvent* ptr).
Source§impl StaticDowncast<QTabletEvent> for QEvent
impl StaticDowncast<QTabletEvent> for QEvent
Source§unsafe fn static_downcast(ptr: Ptr<QEvent>) -> Ptr<QTabletEvent>
unsafe fn static_downcast(ptr: Ptr<QEvent>) -> Ptr<QTabletEvent>
Calls C++ function: QTabletEvent* static_cast<QTabletEvent*>(QEvent* ptr).
Source§impl StaticDowncast<QTabletEvent> for QInputEvent
impl StaticDowncast<QTabletEvent> for QInputEvent
Source§unsafe fn static_downcast(ptr: Ptr<QInputEvent>) -> Ptr<QTabletEvent>
unsafe fn static_downcast(ptr: Ptr<QInputEvent>) -> Ptr<QTabletEvent>
Calls C++ function: QTabletEvent* static_cast<QTabletEvent*>(QInputEvent* ptr).
Source§impl StaticUpcast<QEvent> for QTabletEvent
impl StaticUpcast<QEvent> for QTabletEvent
Source§unsafe fn static_upcast(ptr: Ptr<QTabletEvent>) -> Ptr<QEvent>
unsafe fn static_upcast(ptr: Ptr<QTabletEvent>) -> Ptr<QEvent>
Calls C++ function: QEvent* static_cast<QEvent*>(QTabletEvent* ptr).
Source§impl StaticUpcast<QInputEvent> for QTabletEvent
impl StaticUpcast<QInputEvent> for QTabletEvent
Source§unsafe fn static_upcast(ptr: Ptr<QTabletEvent>) -> Ptr<QInputEvent>
unsafe fn static_upcast(ptr: Ptr<QTabletEvent>) -> Ptr<QInputEvent>
Calls C++ function: QInputEvent* static_cast<QInputEvent*>(QTabletEvent* ptr).