Skip to main content

QWheelEvent

Struct QWheelEvent 

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

C++ class: QWheelEvent.

Implementations§

Source§

impl QWheelEvent

Source

pub unsafe fn angle_delta(&self) -> CppBox<QPoint>

Calls C++ function: QPoint QWheelEvent::angleDelta() const.

Source

pub unsafe fn buttons(&self) -> QFlags<MouseButton>

Calls C++ function: QFlags<Qt::MouseButton> QWheelEvent::buttons() const.

Source

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

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

Source

pub unsafe fn delta(&self) -> c_int

Calls C++ function: int QWheelEvent::delta() const.

Source

pub unsafe fn global_pos(&self) -> CppBox<QPoint>

Calls C++ function: QPoint QWheelEvent::globalPos() const.

Source

pub unsafe fn global_pos_f(&self) -> Ref<QPointF>

Calls C++ function: const QPointF& QWheelEvent::globalPosF() const.

Source

pub unsafe fn global_position(&self) -> CppBox<QPointF>

Calls C++ function: QPointF QWheelEvent::globalPosition() const.

Source

pub unsafe fn global_x(&self) -> c_int

Calls C++ function: int QWheelEvent::globalX() const.

Source

pub unsafe fn global_y(&self) -> c_int

Calls C++ function: int QWheelEvent::globalY() const.

Source

pub unsafe fn inverted(&self) -> bool

Calls C++ function: bool QWheelEvent::inverted() const.

Source

pub unsafe fn from_q_point_f_int_q_flags_mouse_button_q_flags_keyboard_modifier_orientation( pos: impl CastInto<Ref<QPointF>>, delta: c_int, buttons: QFlags<MouseButton>, modifiers: QFlags<KeyboardModifier>, orient: Orientation, ) -> CppBox<QWheelEvent>

Calls C++ function: [constructor] void QWheelEvent::QWheelEvent(const QPointF& pos, int delta, QFlags<Qt::MouseButton> buttons, QFlags<Qt::KeyboardModifier> modifiers, Qt::Orientation orient = …).

Source

pub unsafe fn from_2_q_point_f_int_q_flags_mouse_button_q_flags_keyboard_modifier_orientation( pos: impl CastInto<Ref<QPointF>>, global_pos: impl CastInto<Ref<QPointF>>, delta: c_int, buttons: QFlags<MouseButton>, modifiers: QFlags<KeyboardModifier>, orient: Orientation, ) -> CppBox<QWheelEvent>

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 = …).

Source

pub unsafe fn from_2_q_point_f2_q_point_int_orientation_q_flags_mouse_button_q_flags_keyboard_modifier( pos: impl CastInto<Ref<QPointF>>, global_pos: impl CastInto<Ref<QPointF>>, pixel_delta: impl CastInto<Ref<QPoint>>, angle_delta: impl CastInto<Ref<QPoint>>, qt4_delta: c_int, qt4_orientation: Orientation, buttons: QFlags<MouseButton>, modifiers: QFlags<KeyboardModifier>, ) -> CppBox<QWheelEvent>

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).

Source

pub unsafe fn from_2_q_point_f2_q_point_int_orientation_q_flags_mouse_button_q_flags_keyboard_modifier_scroll_phase( pos: impl CastInto<Ref<QPointF>>, global_pos: impl CastInto<Ref<QPointF>>, pixel_delta: impl CastInto<Ref<QPoint>>, angle_delta: impl CastInto<Ref<QPoint>>, qt4_delta: c_int, qt4_orientation: Orientation, buttons: QFlags<MouseButton>, modifiers: QFlags<KeyboardModifier>, phase: ScrollPhase, ) -> CppBox<QWheelEvent>

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).

Source

pub unsafe fn from_2_q_point_f2_q_point_int_orientation_q_flags_mouse_button_q_flags_keyboard_modifier_scroll_phase_mouse_event_source( pos: impl CastInto<Ref<QPointF>>, global_pos: impl CastInto<Ref<QPointF>>, pixel_delta: impl CastInto<Ref<QPoint>>, angle_delta: impl CastInto<Ref<QPoint>>, qt4_delta: c_int, qt4_orientation: Orientation, buttons: QFlags<MouseButton>, modifiers: QFlags<KeyboardModifier>, phase: ScrollPhase, source: MouseEventSource, ) -> CppBox<QWheelEvent>

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).

Source

pub unsafe fn from_2_q_point_f2_q_point_int_orientation_q_flags_mouse_button_q_flags_keyboard_modifier_scroll_phase_mouse_event_source_bool( pos: impl CastInto<Ref<QPointF>>, global_pos: impl CastInto<Ref<QPointF>>, pixel_delta: impl CastInto<Ref<QPoint>>, angle_delta: impl CastInto<Ref<QPoint>>, qt4_delta: c_int, qt4_orientation: Orientation, buttons: QFlags<MouseButton>, modifiers: QFlags<KeyboardModifier>, phase: ScrollPhase, source: MouseEventSource, inverted: bool, ) -> CppBox<QWheelEvent>

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).

Source

pub unsafe fn from_2_q_point_f2_q_point_q_flags_mouse_button_q_flags_keyboard_modifier_scroll_phase_bool_mouse_event_source( pos: impl CastInto<Ref<QPointF>>, global_pos: impl CastInto<Ref<QPointF>>, pixel_delta: impl CastInto<Ref<QPoint>>, angle_delta: impl CastInto<Ref<QPoint>>, buttons: QFlags<MouseButton>, modifiers: QFlags<KeyboardModifier>, phase: ScrollPhase, inverted: bool, source: MouseEventSource, ) -> CppBox<QWheelEvent>

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 = …).

Source

pub unsafe fn from_q_point_f_int_q_flags_mouse_button_q_flags_keyboard_modifier( pos: impl CastInto<Ref<QPointF>>, delta: c_int, buttons: QFlags<MouseButton>, modifiers: QFlags<KeyboardModifier>, ) -> CppBox<QWheelEvent>

Calls C++ function: [constructor] void QWheelEvent::QWheelEvent(const QPointF& pos, int delta, QFlags<Qt::MouseButton> buttons, QFlags<Qt::KeyboardModifier> modifiers).

Source

pub unsafe fn from_2_q_point_f_int_q_flags_mouse_button_q_flags_keyboard_modifier( pos: impl CastInto<Ref<QPointF>>, global_pos: impl CastInto<Ref<QPointF>>, delta: c_int, buttons: QFlags<MouseButton>, modifiers: QFlags<KeyboardModifier>, ) -> CppBox<QWheelEvent>

Calls C++ function: [constructor] void QWheelEvent::QWheelEvent(const QPointF& pos, const QPointF& globalPos, int delta, QFlags<Qt::MouseButton> buttons, QFlags<Qt::KeyboardModifier> modifiers).

Source

pub unsafe fn from_2_q_point_f2_q_point_q_flags_mouse_button_q_flags_keyboard_modifier_scroll_phase_bool( pos: impl CastInto<Ref<QPointF>>, global_pos: impl CastInto<Ref<QPointF>>, pixel_delta: impl CastInto<Ref<QPoint>>, angle_delta: impl CastInto<Ref<QPoint>>, buttons: QFlags<MouseButton>, modifiers: QFlags<KeyboardModifier>, phase: ScrollPhase, inverted: bool, ) -> CppBox<QWheelEvent>

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).

Source

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

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

Source

pub unsafe fn orientation(&self) -> Orientation

Calls C++ function: Qt::Orientation QWheelEvent::orientation() const.

Source

pub unsafe fn phase(&self) -> ScrollPhase

Calls C++ function: Qt::ScrollPhase QWheelEvent::phase() const.

Source

pub unsafe fn pixel_delta(&self) -> CppBox<QPoint>

Calls C++ function: QPoint QWheelEvent::pixelDelta() const.

Source

pub unsafe fn pos(&self) -> CppBox<QPoint>

Calls C++ function: QPoint QWheelEvent::pos() const.

Source

pub unsafe fn pos_f(&self) -> Ref<QPointF>

Calls C++ function: const QPointF& QWheelEvent::posF() const.

Source

pub unsafe fn position(&self) -> CppBox<QPointF>

Calls C++ function: QPointF QWheelEvent::position() const.

Source

pub unsafe fn source(&self) -> MouseEventSource

Calls C++ function: Qt::MouseEventSource QWheelEvent::source() const.

Source

pub unsafe fn x(&self) -> c_int

Calls C++ function: int QWheelEvent::x() const.

Source

pub unsafe fn y(&self) -> c_int

Calls C++ function: int QWheelEvent::y() const.

Methods from Deref<Target = QInputEvent>§

Source

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

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

Source

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

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

Source

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

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

Source

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

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

Source

pub unsafe fn timestamp(&self) -> c_ulong

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

Methods from Deref<Target = 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 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 type_(&self) -> Type

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

Trait Implementations§

Source§

impl CppDeletable for QWheelEvent

Source§

unsafe fn delete(&self)

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

Source§

impl Deref for QWheelEvent

Source§

fn deref(&self) -> &QInputEvent

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

Source§

type Target = QInputEvent

The resulting type after dereferencing.
Source§

impl DynamicCast<QWheelEvent> for QEvent

Source§

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

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

Source§

impl DynamicCast<QWheelEvent> for QInputEvent

Source§

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

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

Source§

impl StaticDowncast<QWheelEvent> for QEvent

Source§

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

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

Source§

impl StaticDowncast<QWheelEvent> for QInputEvent

Source§

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

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

Source§

impl StaticUpcast<QEvent> for QWheelEvent

Source§

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

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

Source§

impl StaticUpcast<QInputEvent> for QWheelEvent

Source§

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

Calls C++ function: QInputEvent* static_cast<QInputEvent*>(QWheelEvent* 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<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
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.