[−][src]Struct qt_3d_input::QWheelEvent
The QWheelEvent class contains parameters that describe a mouse wheel event.
C++ class: Qt3DInput::QWheelEvent
.
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
.
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
.
pub unsafe fn is_accepted(&self) -> bool
[src]
Returns whether the event was accepted.
Calls C++ function: bool Qt3DInput::QWheelEvent::isAccepted() const
.
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
.
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)
.
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]
&self,
arg1: Call,
arg2: c_int,
arg3: *mut *mut c_void
) -> c_int
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)
.
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]
s: *const c_char,
c: *const c_char,
n: c_int
) -> CppBox<QString>
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]
s: *const c_char,
c: *const c_char,
n: c_int
) -> CppBox<QString>
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
.
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
.
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
.
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()
.
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
impl RefUnwindSafe for QWheelEvent
impl Send for QWheelEvent
impl Sync for QWheelEvent
impl Unpin for QWheelEvent
impl UnwindSafe for QWheelEvent
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> CastInto<U> for T where
U: CastFrom<T>,
[src]
U: CastFrom<T>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> StaticUpcast<T> for T
[src]
unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,