[][src]Struct qt_3d_input::QAbstractPhysicalDevice

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

QAbstractPhysicalDevice is the base class used by Qt3d to interact with arbitrary input devices.

C++ class: Qt3DInput::QAbstractPhysicalDevice.

C++ documentation:

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]

Add the axisSetting axisSetting to this device.

Calls C++ function: void Qt3DInput::QAbstractPhysicalDevice::addAxisSetting(Qt3DInput::QAxisSetting* axisSetting).

C++ documentation:

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.

C++ documentation:

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.

C++ documentation:

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.

C++ documentation:

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.

C++ documentation:

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.

C++ documentation:

Returns the number of buttons this device has.

pub unsafe fn button_identifier(
    &self,
    name: impl CastInto<Ref<QString>>
) -> c_int
[src]

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.

C++ documentation:

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.

C++ documentation:

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]

Constructs a new QAbstractPhysicalDevice instance with parent.

Calls C++ function: [constructor] void Qt3DInput::QAbstractPhysicalDevice::QAbstractPhysicalDevice(Qt3DCore::QNode* parent = …).

C++ documentation:

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

C++ documentation:

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]

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]

Remove the axisSetting axisSetting to this device.

Calls C++ function: void Qt3DInput::QAbstractPhysicalDevice::removeAxisSetting(Qt3DInput::QAxisSetting* axisSetting).

C++ documentation:

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]

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]

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]

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]

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]

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]

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

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.