[−][src]Struct qt_3d_input::QMouseDevice
Delegates mouse events to the attached MouseHandler objects.
C++ class: Qt3DInput::QMouseDevice
.
Delegates mouse events to the attached MouseHandler objects.
A QMouseDevice delegates mouse events from physical mouse device to QMouseHandler objects. The sensitivity of the mouse can be controlled with the QMouseDevice::sensitivity property, which specifies the rate in which the logical mouse coordinates change in response to physical movement of the mouse.
Methods
impl QMouseDevice
[src]
pub fn slot_set_sensitivity(&self) -> Receiver<(c_float,)>
[src]
Holds the sensitivity of the mouse device. The default is 0.1.
Returns a built-in Qt slot Qt3DInput::QMouseDevice::setSensitivity
that can be passed to qt_core::Signal::connect
.
Holds the sensitivity of the mouse device. The default is 0.1.
Access functions:
float | sensitivity() const |
void | setSensitivity(float value) |
Notifier signal:
void | sensitivityChanged(float value) |
pub fn sensitivity_changed(&self) -> Signal<(c_float,)>
[src]
Holds the sensitivity of the mouse device. The default is 0.1.
Returns a built-in Qt signal Qt3DInput::QMouseDevice::sensitivityChanged
that can be passed to qt_core::Signal::connect
.
Holds the sensitivity of the mouse device. The default is 0.1.
Access functions:
float | sensitivity() const |
void | setSensitivity(float value) |
Notifier signal:
void | sensitivityChanged(float value) |
pub unsafe fn axis_count(&self) -> c_int
[src]
Reimplemented from QAbstractPhysicalDevice::axisCount().
Calls C++ function: virtual int Qt3DInput::QMouseDevice::axisCount() const
.
Reimplemented from QAbstractPhysicalDevice::axisCount().
Returns the axis count.
Note: Currently always returns 4.
pub unsafe fn axis_identifier(&self, name: impl CastInto<Ref<QString>>) -> c_int
[src]
Reimplemented from QAbstractPhysicalDevice::axisIdentifier().
Calls C++ function: virtual int Qt3DInput::QMouseDevice::axisIdentifier(const QString& name) const
.
Reimplemented from QAbstractPhysicalDevice::axisIdentifier().
Convert axis name to axis identifier.
pub unsafe fn axis_names(&self) -> CppBox<QStringList>
[src]
Reimplemented from QAbstractPhysicalDevice::axisNames().
Calls C++ function: virtual QStringList Qt3DInput::QMouseDevice::axisNames() const
.
Reimplemented from QAbstractPhysicalDevice::axisNames().
Returns the names of the axis.
Note: Currently always returns StringList["X", "Y"]
pub unsafe fn button_count(&self) -> c_int
[src]
Reimplemented from QAbstractPhysicalDevice::buttonCount().
Calls C++ function: virtual int Qt3DInput::QMouseDevice::buttonCount() const
.
Reimplemented from QAbstractPhysicalDevice::buttonCount().
Returns the button count.
Note: Currently always returns 3.
pub unsafe fn button_identifier(
&self,
name: impl CastInto<Ref<QString>>
) -> c_int
[src]
&self,
name: impl CastInto<Ref<QString>>
) -> c_int
Reimplemented from QAbstractPhysicalDevice::buttonIdentifier().
Calls C++ function: virtual int Qt3DInput::QMouseDevice::buttonIdentifier(const QString& name) const
.
Reimplemented from QAbstractPhysicalDevice::buttonIdentifier().
Returns the button identifier that corresponds with the specified name. The possible return values are documented in QMouseEvent::Buttons.
pub unsafe fn button_names(&self) -> CppBox<QStringList>
[src]
Reimplemented from QAbstractPhysicalDevice::buttonNames().
Calls C++ function: virtual QStringList Qt3DInput::QMouseDevice::buttonNames() const
.
Reimplemented from QAbstractPhysicalDevice::buttonNames().
Returns the names of the buttons.
Note: Currently always returns StringList["Left", "Right", "Center"]
pub unsafe fn meta_object(&self) -> Ptr<QMetaObject>
[src]
Calls C++ function: virtual const QMetaObject* Qt3DInput::QMouseDevice::metaObject() const
.
pub unsafe fn new_1a(parent: impl CastInto<Ptr<QNode>>) -> QBox<QMouseDevice>
[src]
Default constructs an instance of QMouseDevice.
Calls C++ function: [constructor] void Qt3DInput::QMouseDevice::QMouseDevice(Qt3DCore::QNode* parent = …)
.
Default constructs an instance of QMouseDevice.
pub unsafe fn new_0a() -> QBox<QMouseDevice>
[src]
Delegates mouse events to the attached MouseHandler objects.
Calls C++ function: [constructor] void Qt3DInput::QMouseDevice::QMouseDevice()
.
Delegates mouse events to the attached MouseHandler objects.
A QMouseDevice delegates mouse events from physical mouse device to QMouseHandler objects. The sensitivity of the mouse can be controlled with the QMouseDevice::sensitivity property, which specifies the rate in which the logical mouse coordinates change in response to physical movement of the mouse.
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::QMouseDevice::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::QMouseDevice::qt_metacast(const char* arg1)
.
pub unsafe fn sensitivity(&self) -> c_float
[src]
Holds the sensitivity of the mouse device. The default is 0.1.
Calls C++ function: float Qt3DInput::QMouseDevice::sensitivity() const
.
Holds the sensitivity of the mouse device. The default is 0.1.
Access functions:
float | sensitivity() const |
void | setSensitivity(float value) |
Notifier signal:
void | sensitivityChanged(float value) |
pub unsafe fn set_sensitivity(&self, value: c_float)
[src]
Holds the sensitivity of the mouse device. The default is 0.1.
Calls C++ function: [slot] void Qt3DInput::QMouseDevice::setSensitivity(float value)
.
Holds the sensitivity of the mouse device. The default is 0.1.
Access functions:
float | sensitivity() const |
void | setSensitivity(float value) |
Notifier signal:
void | sensitivityChanged(float value) |
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::QMouseDevice::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::QMouseDevice::trUtf8(const char* s, const char* c, int n)
.
Methods from Deref<Target = QAbstractPhysicalDevice>
pub unsafe fn add_axis_setting(
&self,
axis_setting: impl CastInto<Ptr<QAxisSetting>>
)
[src]
&self,
axis_setting: impl CastInto<Ptr<QAxisSetting>>
)
Add the axisSetting axisSetting to this device.
Calls C++ function: void Qt3DInput::QAbstractPhysicalDevice::addAxisSetting(Qt3DInput::QAxisSetting* axisSetting)
.
Add the axisSetting axisSetting to this device.
pub unsafe fn axis_count(&self) -> c_int
[src]
Returns the number of axis this device has.
Calls C++ function: virtual int Qt3DInput::QAbstractPhysicalDevice::axisCount() const
.
Returns the number of axis this device has.
pub unsafe fn axis_identifier(&self, name: impl CastInto<Ref<QString>>) -> c_int
[src]
Returns the integer identifer of the axis name or -1 if it does not exist on this device.
Calls C++ function: virtual int Qt3DInput::QAbstractPhysicalDevice::axisIdentifier(const QString& name) const
.
Returns the integer identifer of the axis name or -1 if it does not exist on this device.
pub unsafe fn axis_names(&self) -> CppBox<QStringList>
[src]
Returns a list of the names of device's axis.
Calls C++ function: virtual QStringList Qt3DInput::QAbstractPhysicalDevice::axisNames() const
.
Returns a list of the names of device's axis.
pub unsafe fn axis_settings(&self) -> CppBox<QVectorOfQAxisSetting>
[src]
Returns the axisSettings associated with this device.
Calls C++ function: QVector<Qt3DInput::QAxisSetting*> Qt3DInput::QAbstractPhysicalDevice::axisSettings() const
.
Returns the axisSettings associated with this device.
pub unsafe fn button_count(&self) -> c_int
[src]
Returns the number of buttons this device has.
Calls C++ function: virtual int Qt3DInput::QAbstractPhysicalDevice::buttonCount() const
.
Returns the number of buttons this device has.
pub unsafe fn button_identifier(
&self,
name: impl CastInto<Ref<QString>>
) -> c_int
[src]
&self,
name: impl CastInto<Ref<QString>>
) -> c_int
Returns the integer identifer of the button name or -1 if it does not exist on this device.
Calls C++ function: virtual int Qt3DInput::QAbstractPhysicalDevice::buttonIdentifier(const QString& name) const
.
Returns the integer identifer of the button name or -1 if it does not exist on this device.
pub unsafe fn button_names(&self) -> CppBox<QStringList>
[src]
Returns a list of the names of device's buttons.
Calls C++ function: virtual QStringList Qt3DInput::QAbstractPhysicalDevice::buttonNames() const
.
Returns a list of the names of device's buttons.
pub unsafe fn meta_object(&self) -> Ptr<QMetaObject>
[src]
Calls C++ function: virtual const QMetaObject* Qt3DInput::QAbstractPhysicalDevice::metaObject() const
.
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::QAbstractPhysicalDevice::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::QAbstractPhysicalDevice::qt_metacast(const char* arg1)
.
pub unsafe fn remove_axis_setting(
&self,
axis_setting: impl CastInto<Ptr<QAxisSetting>>
)
[src]
&self,
axis_setting: impl CastInto<Ptr<QAxisSetting>>
)
Remove the axisSetting axisSetting to this device.
Calls C++ function: void Qt3DInput::QAbstractPhysicalDevice::removeAxisSetting(Qt3DInput::QAxisSetting* axisSetting)
.
Remove the axisSetting axisSetting to this device.
Trait Implementations
impl CppDeletable for QMouseDevice
[src]
unsafe fn delete(&self)
[src]
Calls C++ function: virtual [destructor] void Qt3DInput::QMouseDevice::~QMouseDevice()
.
impl Deref for QMouseDevice
[src]
type Target = QAbstractPhysicalDevice
The resulting type after dereferencing.
fn deref(&self) -> &QAbstractPhysicalDevice
[src]
Calls C++ function: Qt3DInput::QAbstractPhysicalDevice* static_cast<Qt3DInput::QAbstractPhysicalDevice*>(Qt3DInput::QMouseDevice* ptr)
.
impl DynamicCast<QMouseDevice> for QAbstractPhysicalDevice
[src]
unsafe fn dynamic_cast(ptr: Ptr<QAbstractPhysicalDevice>) -> Ptr<QMouseDevice>
[src]
Calls C++ function: Qt3DInput::QMouseDevice* dynamic_cast<Qt3DInput::QMouseDevice*>(Qt3DInput::QAbstractPhysicalDevice* ptr)
.
impl DynamicCast<QMouseDevice> for QNode
[src]
unsafe fn dynamic_cast(ptr: Ptr<QNode>) -> Ptr<QMouseDevice>
[src]
Calls C++ function: Qt3DInput::QMouseDevice* dynamic_cast<Qt3DInput::QMouseDevice*>(Qt3DCore::QNode* ptr)
.
impl DynamicCast<QMouseDevice> for QObject
[src]
unsafe fn dynamic_cast(ptr: Ptr<QObject>) -> Ptr<QMouseDevice>
[src]
Calls C++ function: Qt3DInput::QMouseDevice* dynamic_cast<Qt3DInput::QMouseDevice*>(QObject* ptr)
.
impl StaticDowncast<QMouseDevice> for QAbstractPhysicalDevice
[src]
unsafe fn static_downcast(
ptr: Ptr<QAbstractPhysicalDevice>
) -> Ptr<QMouseDevice>
[src]
ptr: Ptr<QAbstractPhysicalDevice>
) -> Ptr<QMouseDevice>
Calls C++ function: Qt3DInput::QMouseDevice* static_cast<Qt3DInput::QMouseDevice*>(Qt3DInput::QAbstractPhysicalDevice* ptr)
.
impl StaticDowncast<QMouseDevice> for QNode
[src]
unsafe fn static_downcast(ptr: Ptr<QNode>) -> Ptr<QMouseDevice>
[src]
Calls C++ function: Qt3DInput::QMouseDevice* static_cast<Qt3DInput::QMouseDevice*>(Qt3DCore::QNode* ptr)
.
impl StaticDowncast<QMouseDevice> for QObject
[src]
unsafe fn static_downcast(ptr: Ptr<QObject>) -> Ptr<QMouseDevice>
[src]
Calls C++ function: Qt3DInput::QMouseDevice* static_cast<Qt3DInput::QMouseDevice*>(QObject* ptr)
.
impl StaticUpcast<QAbstractPhysicalDevice> for QMouseDevice
[src]
unsafe fn static_upcast(ptr: Ptr<QMouseDevice>) -> Ptr<QAbstractPhysicalDevice>
[src]
Calls C++ function: Qt3DInput::QAbstractPhysicalDevice* static_cast<Qt3DInput::QAbstractPhysicalDevice*>(Qt3DInput::QMouseDevice* ptr)
.
impl StaticUpcast<QNode> for QMouseDevice
[src]
unsafe fn static_upcast(ptr: Ptr<QMouseDevice>) -> Ptr<QNode>
[src]
Calls C++ function: Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DInput::QMouseDevice* ptr)
.
impl StaticUpcast<QObject> for QMouseDevice
[src]
unsafe fn static_upcast(ptr: Ptr<QMouseDevice>) -> Ptr<QObject>
[src]
Calls C++ function: QObject* static_cast<QObject*>(Qt3DInput::QMouseDevice* ptr)
.
Auto Trait Implementations
impl RefUnwindSafe for QMouseDevice
impl Send for QMouseDevice
impl Sync for QMouseDevice
impl Unpin for QMouseDevice
impl UnwindSafe for QMouseDevice
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>,