pub struct QWheelEvent { /* private fields */ }Expand description
C++ class: QWheelEvent.
Implementations§
Source§impl QWheelEvent
impl QWheelEvent
Sourcepub unsafe fn angle_delta(&self) -> CppBox<QPoint>
pub unsafe fn angle_delta(&self) -> CppBox<QPoint>
Calls C++ function: QPoint QWheelEvent::angleDelta() const.
Calls C++ function: QFlags<Qt::MouseButton> QWheelEvent::buttons() const.
Sourcepub unsafe fn copy_from(
&self,
other: impl CastInto<Ref<QWheelEvent>>,
) -> Ref<QWheelEvent>
pub unsafe fn copy_from( &self, other: impl CastInto<Ref<QWheelEvent>>, ) -> Ref<QWheelEvent>
Calls C++ function: QWheelEvent& QWheelEvent::operator=(const QWheelEvent& other).
Sourcepub unsafe fn global_pos(&self) -> CppBox<QPoint>
pub unsafe fn global_pos(&self) -> CppBox<QPoint>
Calls C++ function: QPoint QWheelEvent::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& QWheelEvent::globalPosF() const.
Sourcepub unsafe fn global_position(&self) -> CppBox<QPointF>
pub unsafe fn global_position(&self) -> CppBox<QPointF>
Calls C++ function: QPointF QWheelEvent::globalPosition() const.
Calls C++ function: [constructor] void QWheelEvent::QWheelEvent(const QPointF& pos, int delta, QFlags<Qt::MouseButton> buttons, QFlags<Qt::KeyboardModifier> modifiers, Qt::Orientation orient = …).
Calls C++ function: [constructor] void QWheelEvent::QWheelEvent(const QPointF& pos, const QPointF& globalPos, int delta, QFlags<Qt::MouseButton> buttons, QFlags<Qt::KeyboardModifier> modifiers, Qt::Orientation orient = …).
Calls C++ function: [constructor] void QWheelEvent::QWheelEvent(const QPointF& pos, const QPointF& globalPos, QPoint pixelDelta, QPoint angleDelta, int qt4Delta, Qt::Orientation qt4Orientation, QFlags<Qt::MouseButton> buttons, QFlags<Qt::KeyboardModifier> modifiers).
Calls C++ function: [constructor] void QWheelEvent::QWheelEvent(const QPointF& pos, const QPointF& globalPos, QPoint pixelDelta, QPoint angleDelta, int qt4Delta, Qt::Orientation qt4Orientation, QFlags<Qt::MouseButton> buttons, QFlags<Qt::KeyboardModifier> modifiers, Qt::ScrollPhase phase).
Calls C++ function: [constructor] void QWheelEvent::QWheelEvent(const QPointF& pos, const QPointF& globalPos, QPoint pixelDelta, QPoint angleDelta, int qt4Delta, Qt::Orientation qt4Orientation, QFlags<Qt::MouseButton> buttons, QFlags<Qt::KeyboardModifier> modifiers, Qt::ScrollPhase phase, Qt::MouseEventSource source).
Calls C++ function: [constructor] void QWheelEvent::QWheelEvent(const QPointF& pos, const QPointF& globalPos, QPoint pixelDelta, QPoint angleDelta, int qt4Delta, Qt::Orientation qt4Orientation, QFlags<Qt::MouseButton> buttons, QFlags<Qt::KeyboardModifier> modifiers, Qt::ScrollPhase phase, Qt::MouseEventSource source, bool inverted).
Calls C++ function: [constructor] void QWheelEvent::QWheelEvent(QPointF pos, QPointF globalPos, QPoint pixelDelta, QPoint angleDelta, QFlags<Qt::MouseButton> buttons, QFlags<Qt::KeyboardModifier> modifiers, Qt::ScrollPhase phase, bool inverted, Qt::MouseEventSource source = …).
Calls C++ function: [constructor] void QWheelEvent::QWheelEvent(const QPointF& pos, int delta, QFlags<Qt::MouseButton> buttons, QFlags<Qt::KeyboardModifier> modifiers).
Calls C++ function: [constructor] void QWheelEvent::QWheelEvent(const QPointF& pos, const QPointF& globalPos, int delta, QFlags<Qt::MouseButton> buttons, QFlags<Qt::KeyboardModifier> modifiers).
Calls C++ function: [constructor] void QWheelEvent::QWheelEvent(QPointF pos, QPointF globalPos, QPoint pixelDelta, QPoint angleDelta, QFlags<Qt::MouseButton> buttons, QFlags<Qt::KeyboardModifier> modifiers, Qt::ScrollPhase phase, bool inverted).
Sourcepub unsafe fn new_copy(
other: impl CastInto<Ref<QWheelEvent>>,
) -> CppBox<QWheelEvent>
pub unsafe fn new_copy( other: impl CastInto<Ref<QWheelEvent>>, ) -> CppBox<QWheelEvent>
Calls C++ function: [constructor] void QWheelEvent::QWheelEvent(const QWheelEvent& other).
Sourcepub unsafe fn orientation(&self) -> Orientation
pub unsafe fn orientation(&self) -> Orientation
Calls C++ function: Qt::Orientation QWheelEvent::orientation() const.
Sourcepub unsafe fn phase(&self) -> ScrollPhase
pub unsafe fn phase(&self) -> ScrollPhase
Calls C++ function: Qt::ScrollPhase QWheelEvent::phase() const.
Sourcepub unsafe fn pixel_delta(&self) -> CppBox<QPoint>
pub unsafe fn pixel_delta(&self) -> CppBox<QPoint>
Calls C++ function: QPoint QWheelEvent::pixelDelta() const.
Sourcepub unsafe fn pos(&self) -> CppBox<QPoint>
pub unsafe fn pos(&self) -> CppBox<QPoint>
Calls C++ function: QPoint QWheelEvent::pos() const.
Sourcepub unsafe fn pos_f(&self) -> Ref<QPointF>
pub unsafe fn pos_f(&self) -> Ref<QPointF>
Calls C++ function: const QPointF& QWheelEvent::posF() const.
Sourcepub unsafe fn position(&self) -> CppBox<QPointF>
pub unsafe fn position(&self) -> CppBox<QPointF>
Calls C++ function: QPointF QWheelEvent::position() const.
Sourcepub unsafe fn source(&self) -> MouseEventSource
pub unsafe fn source(&self) -> MouseEventSource
Calls C++ function: Qt::MouseEventSource QWheelEvent::source() 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 QWheelEvent
impl CppDeletable for QWheelEvent
Source§impl Deref for QWheelEvent
impl Deref for QWheelEvent
Source§fn deref(&self) -> &QInputEvent
fn deref(&self) -> &QInputEvent
Calls C++ function: QInputEvent* static_cast<QInputEvent*>(QWheelEvent* ptr).
Source§type Target = QInputEvent
type Target = QInputEvent
Source§impl DynamicCast<QWheelEvent> for QEvent
impl DynamicCast<QWheelEvent> for QEvent
Source§unsafe fn dynamic_cast(ptr: Ptr<QEvent>) -> Ptr<QWheelEvent>
unsafe fn dynamic_cast(ptr: Ptr<QEvent>) -> Ptr<QWheelEvent>
Calls C++ function: QWheelEvent* dynamic_cast<QWheelEvent*>(QEvent* ptr).
Source§impl DynamicCast<QWheelEvent> for QInputEvent
impl DynamicCast<QWheelEvent> for QInputEvent
Source§unsafe fn dynamic_cast(ptr: Ptr<QInputEvent>) -> Ptr<QWheelEvent>
unsafe fn dynamic_cast(ptr: Ptr<QInputEvent>) -> Ptr<QWheelEvent>
Calls C++ function: QWheelEvent* dynamic_cast<QWheelEvent*>(QInputEvent* ptr).
Source§impl StaticDowncast<QWheelEvent> for QEvent
impl StaticDowncast<QWheelEvent> for QEvent
Source§unsafe fn static_downcast(ptr: Ptr<QEvent>) -> Ptr<QWheelEvent>
unsafe fn static_downcast(ptr: Ptr<QEvent>) -> Ptr<QWheelEvent>
Calls C++ function: QWheelEvent* static_cast<QWheelEvent*>(QEvent* ptr).
Source§impl StaticDowncast<QWheelEvent> for QInputEvent
impl StaticDowncast<QWheelEvent> for QInputEvent
Source§unsafe fn static_downcast(ptr: Ptr<QInputEvent>) -> Ptr<QWheelEvent>
unsafe fn static_downcast(ptr: Ptr<QInputEvent>) -> Ptr<QWheelEvent>
Calls C++ function: QWheelEvent* static_cast<QWheelEvent*>(QInputEvent* ptr).
Source§impl StaticUpcast<QEvent> for QWheelEvent
impl StaticUpcast<QEvent> for QWheelEvent
Source§unsafe fn static_upcast(ptr: Ptr<QWheelEvent>) -> Ptr<QEvent>
unsafe fn static_upcast(ptr: Ptr<QWheelEvent>) -> Ptr<QEvent>
Calls C++ function: QEvent* static_cast<QEvent*>(QWheelEvent* ptr).
Source§impl StaticUpcast<QInputEvent> for QWheelEvent
impl StaticUpcast<QInputEvent> for QWheelEvent
Source§unsafe fn static_upcast(ptr: Ptr<QWheelEvent>) -> Ptr<QInputEvent>
unsafe fn static_upcast(ptr: Ptr<QWheelEvent>) -> Ptr<QInputEvent>
Calls C++ function: QInputEvent* static_cast<QInputEvent*>(QWheelEvent* ptr).