[][src]Struct qt_3d_input::QWheelEvent

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

The QWheelEvent class contains parameters that describe a mouse wheel event.

C++ class: Qt3DInput::QWheelEvent.

C++ documentation:

The QWheelEvent class contains parameters that describe a mouse wheel event.

Mouse wheel events occur when the mouse is rotated.

Methods

impl QWheelEvent[src]

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

Specifies The change wheel angle of the mouse wheel event

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

C++ documentation:

Specifies The change wheel angle of the mouse wheel event

Access functions:

QPoint angleDelta() const

pub unsafe fn buttons(&self) -> c_int[src]

Specifies the button if present in the mouse wheel event

Calls C++ function: int Qt3DInput::QWheelEvent::buttons() const.

C++ documentation:

Specifies the button if present in the mouse wheel event

Access functions:

int buttons() const

pub unsafe fn is_accepted(&self) -> bool[src]

Returns whether the event was accepted.

Calls C++ function: bool Qt3DInput::QWheelEvent::isAccepted() const.

C++ documentation:

Returns whether the event was accepted.

Note: Getter function for property accepted.

pub unsafe fn meta_object(&self) -> Ptr<QMetaObject>[src]

Calls C++ function: virtual const QMetaObject* Qt3DInput::QWheelEvent::metaObject() const.

pub unsafe fn modifiers(&self) -> Modifiers[src]

Specifies if any modifiers were applied to the mouse wheel event

Calls C++ function: Qt3DInput::QWheelEvent::Modifiers Qt3DInput::QWheelEvent::modifiers() const.

C++ documentation:

Specifies if any modifiers were applied to the mouse wheel event

Access functions:

Modifiers modifiers() const

pub unsafe fn new(e: impl CastInto<Ref<QWheelEvent>>) -> QBox<QWheelEvent>[src]

Constructs a new QWheelEvent instance from the QWheelEvent e.

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

C++ documentation:

Constructs a new QWheelEvent instance from the QWheelEvent e.

pub unsafe fn qt_metacall(
    &self,
    arg1: Call,
    arg2: c_int,
    arg3: *mut *mut c_void
) -> c_int
[src]

Calls C++ function: virtual int Qt3DInput::QWheelEvent::qt_metacall(QMetaObject::Call arg1, int arg2, void** arg3).

pub unsafe fn qt_metacast(&self, arg1: *const c_char) -> *mut c_void[src]

Calls C++ function: virtual void* Qt3DInput::QWheelEvent::qt_metacast(const char* arg1).

pub unsafe fn set_accepted(&self, accepted: bool)[src]

Sets the event as accepted if accepted is true.

Calls C++ function: void Qt3DInput::QWheelEvent::setAccepted(bool accepted).

C++ documentation:

Sets the event as accepted if accepted is true.

Note: When an event is accepted, it will prevent further propagation to other listeners.

Note: Setter function for property accepted.

See also isAccepted().

pub unsafe fn static_meta_object() -> Ref<QMetaObject>[src]

Returns a reference to the staticMetaObject field.

pub unsafe fn tr(
    s: *const c_char,
    c: *const c_char,
    n: c_int
) -> CppBox<QString>
[src]

Calls C++ function: static QString Qt3DInput::QWheelEvent::tr(const char* s, const char* c, int n).

pub unsafe fn tr_utf8(
    s: *const c_char,
    c: *const c_char,
    n: c_int
) -> CppBox<QString>
[src]

Calls C++ function: static QString Qt3DInput::QWheelEvent::trUtf8(const char* s, const char* c, int n).

pub unsafe fn type_(&self) -> Type[src]

Returns the QEvent::Type of the event.

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

C++ documentation:

Returns the QEvent::Type of the event.

pub unsafe fn x(&self) -> c_int[src]

Specifies The X coordinate of the mouse wheel event

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

C++ documentation:

Specifies The X coordinate of the mouse wheel event

Access functions:

int x() const

pub unsafe fn y(&self) -> c_int[src]

Specifies The Y coordinate of the mouse wheel event

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

C++ documentation:

Specifies The Y coordinate of the mouse wheel event

Access functions:

int y() const

Trait Implementations

impl CppDeletable for QWheelEvent[src]

unsafe fn delete(&self)[src]

Destroys the instance of QWheelEvent.

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

C++ documentation:

Destroys the instance of QWheelEvent.

impl Deref for QWheelEvent[src]

type Target = QObject

The resulting type after dereferencing.

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

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

impl DynamicCast<QWheelEvent> for QObject[src]

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

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

impl StaticDowncast<QWheelEvent> for QObject[src]

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

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

impl StaticUpcast<QObject> for QWheelEvent[src]

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

Calls C++ function: QObject* static_cast<QObject*>(Qt3DInput::QWheelEvent* 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.