[−][src]Struct qt_3d_input::QAbstractPhysicalDevice
QAbstractPhysicalDevice is the base class used by Qt3d to interact with arbitrary input devices.
C++ class: Qt3DInput::QAbstractPhysicalDevice
.
QAbstractPhysicalDevice is the base class used by Qt3d to interact with arbitrary input devices.
Methods
impl QAbstractPhysicalDevice
[src]
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 new_1a(
parent: impl CastInto<Ptr<QNode>>
) -> QBox<QAbstractPhysicalDevice>
[src]
parent: impl CastInto<Ptr<QNode>>
) -> QBox<QAbstractPhysicalDevice>
Constructs a new QAbstractPhysicalDevice instance with parent.
Calls C++ function: [constructor] void Qt3DInput::QAbstractPhysicalDevice::QAbstractPhysicalDevice(Qt3DCore::QNode* parent = …)
.
Constructs a new QAbstractPhysicalDevice instance with parent.
pub unsafe fn new_0a() -> QBox<QAbstractPhysicalDevice>
[src]
QAbstractPhysicalDevice is the base class used by Qt3d to interact with arbitrary input devices.
Calls C++ function: [constructor] void Qt3DInput::QAbstractPhysicalDevice::QAbstractPhysicalDevice()
.
QAbstractPhysicalDevice is the base class used by Qt3d to interact with arbitrary input devices.
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.
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::QAbstractPhysicalDevice::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::QAbstractPhysicalDevice::trUtf8(const char* s, const char* c, int n)
.
Trait Implementations
impl CppDeletable for QAbstractPhysicalDevice
[src]
unsafe fn delete(&self)
[src]
Calls C++ function: virtual [destructor] void Qt3DInput::QAbstractPhysicalDevice::~QAbstractPhysicalDevice()
.
impl Deref for QAbstractPhysicalDevice
[src]
type Target = QNode
The resulting type after dereferencing.
fn deref(&self) -> &QNode
[src]
Calls C++ function: Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DInput::QAbstractPhysicalDevice* ptr)
.
impl DynamicCast<QAbstractPhysicalDevice> for QNode
[src]
unsafe fn dynamic_cast(ptr: Ptr<QNode>) -> Ptr<QAbstractPhysicalDevice>
[src]
Calls C++ function: Qt3DInput::QAbstractPhysicalDevice* dynamic_cast<Qt3DInput::QAbstractPhysicalDevice*>(Qt3DCore::QNode* ptr)
.
impl DynamicCast<QAbstractPhysicalDevice> for QObject
[src]
unsafe fn dynamic_cast(ptr: Ptr<QObject>) -> Ptr<QAbstractPhysicalDevice>
[src]
Calls C++ function: Qt3DInput::QAbstractPhysicalDevice* dynamic_cast<Qt3DInput::QAbstractPhysicalDevice*>(QObject* ptr)
.
impl DynamicCast<QKeyboardDevice> for QAbstractPhysicalDevice
[src]
unsafe fn dynamic_cast(
ptr: Ptr<QAbstractPhysicalDevice>
) -> Ptr<QKeyboardDevice>
[src]
ptr: Ptr<QAbstractPhysicalDevice>
) -> Ptr<QKeyboardDevice>
Calls C++ function: Qt3DInput::QKeyboardDevice* dynamic_cast<Qt3DInput::QKeyboardDevice*>(Qt3DInput::QAbstractPhysicalDevice* 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 StaticDowncast<QAbstractPhysicalDevice> for QNode
[src]
unsafe fn static_downcast(ptr: Ptr<QNode>) -> Ptr<QAbstractPhysicalDevice>
[src]
Calls C++ function: Qt3DInput::QAbstractPhysicalDevice* static_cast<Qt3DInput::QAbstractPhysicalDevice*>(Qt3DCore::QNode* ptr)
.
impl StaticDowncast<QAbstractPhysicalDevice> for QObject
[src]
unsafe fn static_downcast(ptr: Ptr<QObject>) -> Ptr<QAbstractPhysicalDevice>
[src]
Calls C++ function: Qt3DInput::QAbstractPhysicalDevice* static_cast<Qt3DInput::QAbstractPhysicalDevice*>(QObject* ptr)
.
impl StaticDowncast<QKeyboardDevice> for QAbstractPhysicalDevice
[src]
unsafe fn static_downcast(
ptr: Ptr<QAbstractPhysicalDevice>
) -> Ptr<QKeyboardDevice>
[src]
ptr: Ptr<QAbstractPhysicalDevice>
) -> Ptr<QKeyboardDevice>
Calls C++ function: Qt3DInput::QKeyboardDevice* static_cast<Qt3DInput::QKeyboardDevice*>(Qt3DInput::QAbstractPhysicalDevice* 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 StaticUpcast<QAbstractPhysicalDevice> for QKeyboardDevice
[src]
unsafe fn static_upcast(
ptr: Ptr<QKeyboardDevice>
) -> Ptr<QAbstractPhysicalDevice>
[src]
ptr: Ptr<QKeyboardDevice>
) -> Ptr<QAbstractPhysicalDevice>
Calls C++ function: Qt3DInput::QAbstractPhysicalDevice* static_cast<Qt3DInput::QAbstractPhysicalDevice*>(Qt3DInput::QKeyboardDevice* 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 QAbstractPhysicalDevice
[src]
unsafe fn static_upcast(ptr: Ptr<QAbstractPhysicalDevice>) -> Ptr<QNode>
[src]
Calls C++ function: Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DInput::QAbstractPhysicalDevice* ptr)
.
impl StaticUpcast<QObject> for QAbstractPhysicalDevice
[src]
unsafe fn static_upcast(ptr: Ptr<QAbstractPhysicalDevice>) -> Ptr<QObject>
[src]
Calls C++ function: QObject* static_cast<QObject*>(Qt3DInput::QAbstractPhysicalDevice* ptr)
.
Auto Trait Implementations
impl RefUnwindSafe for QAbstractPhysicalDevice
impl Send for QAbstractPhysicalDevice
impl Sync for QAbstractPhysicalDevice
impl Unpin for QAbstractPhysicalDevice
impl UnwindSafe for QAbstractPhysicalDevice
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>,