[−][src]Struct qt_3d_input::QKeyboardDevice
QKeyboardDevice is in charge of dispatching keyboard events to attached QQKeyboardHandler objects.
C++ class: Qt3DInput::QKeyboardDevice
.
QKeyboardDevice is in charge of dispatching keyboard events to attached QQKeyboardHandler objects.
Methods
impl QKeyboardDevice
[src]
pub fn active_input_changed(&self) -> Signal<(*mut QKeyboardHandler,)>
[src]
Holds the active QKeyboardHandler of the device.
Returns a built-in Qt signal Qt3DInput::QKeyboardDevice::activeInputChanged
that can be passed to qt_core::Signal::connect
.
Holds the active QKeyboardHandler of the device.
Access functions:
QKeyboardHandler * | activeInput() const |
Notifier signal:
void | activeInputChanged(QKeyboardHandler *activeInput) |
pub unsafe fn active_input(&self) -> QPtr<QKeyboardHandler>
[src]
Holds the active QKeyboardHandler of the device.
Calls C++ function: Qt3DInput::QKeyboardHandler* Qt3DInput::QKeyboardDevice::activeInput() const
.
Holds the active QKeyboardHandler of the device.
Access functions:
QKeyboardHandler * | activeInput() const |
Notifier signal:
void | activeInputChanged(QKeyboardHandler *activeInput) |
pub unsafe fn axis_count(&self) -> c_int
[src]
Reimplemented from QAbstractPhysicalDevice::axisCount().
Calls C++ function: virtual int Qt3DInput::QKeyboardDevice::axisCount() const
.
Reimplemented from QAbstractPhysicalDevice::axisCount().
Returns the axis count.
Note: Currently always returns zero.
pub unsafe fn axis_identifier(&self, name: impl CastInto<Ref<QString>>) -> c_int
[src]
Reimplemented from QAbstractPhysicalDevice::axisIdentifier().
Calls C++ function: virtual int Qt3DInput::QKeyboardDevice::axisIdentifier(const QString& name) const
.
Reimplemented from QAbstractPhysicalDevice::axisIdentifier().
Returns the axisIdentifier matching the name.
pub unsafe fn axis_names(&self) -> CppBox<QStringList>
[src]
Reimplemented from QAbstractPhysicalDevice::axisNames().
Calls C++ function: virtual QStringList Qt3DInput::QKeyboardDevice::axisNames() const
.
Reimplemented from QAbstractPhysicalDevice::axisNames().
Returns the axis names.
Note: Currently always returns empty QStringList.
pub unsafe fn button_count(&self) -> c_int
[src]
Reimplemented from QAbstractPhysicalDevice::buttonCount().
Calls C++ function: virtual int Qt3DInput::QKeyboardDevice::buttonCount() const
.
Reimplemented from QAbstractPhysicalDevice::buttonCount().
Returns the button count.
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::QKeyboardDevice::buttonIdentifier(const QString& name) const
.
Reimplemented from QAbstractPhysicalDevice::buttonIdentifier().
Returns the buttonIdentifier matching the name.
pub unsafe fn button_names(&self) -> CppBox<QStringList>
[src]
Reimplemented from QAbstractPhysicalDevice::buttonNames().
Calls C++ function: virtual QStringList Qt3DInput::QKeyboardDevice::buttonNames() const
.
Reimplemented from QAbstractPhysicalDevice::buttonNames().
Returns the button names.
pub unsafe fn meta_object(&self) -> Ptr<QMetaObject>
[src]
Calls C++ function: virtual const QMetaObject* Qt3DInput::QKeyboardDevice::metaObject() const
.
pub unsafe fn new_1a(parent: impl CastInto<Ptr<QNode>>) -> QBox<QKeyboardDevice>
[src]
Constructs a new QKeyboardDevice instance with parent.
Calls C++ function: [constructor] void Qt3DInput::QKeyboardDevice::QKeyboardDevice(Qt3DCore::QNode* parent = …)
.
Constructs a new QKeyboardDevice instance with parent.
pub unsafe fn new_0a() -> QBox<QKeyboardDevice>
[src]
QKeyboardDevice is in charge of dispatching keyboard events to attached QQKeyboardHandler objects.
Calls C++ function: [constructor] void Qt3DInput::QKeyboardDevice::QKeyboardDevice()
.
QKeyboardDevice is in charge of dispatching keyboard events to attached QQKeyboardHandler objects.
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::QKeyboardDevice::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::QKeyboardDevice::qt_metacast(const char* arg1)
.
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::QKeyboardDevice::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::QKeyboardDevice::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 QKeyboardDevice
[src]
unsafe fn delete(&self)
[src]
Calls C++ function: virtual [destructor] void Qt3DInput::QKeyboardDevice::~QKeyboardDevice()
.
impl Deref for QKeyboardDevice
[src]
type Target = QAbstractPhysicalDevice
The resulting type after dereferencing.
fn deref(&self) -> &QAbstractPhysicalDevice
[src]
Calls C++ function: Qt3DInput::QAbstractPhysicalDevice* static_cast<Qt3DInput::QAbstractPhysicalDevice*>(Qt3DInput::QKeyboardDevice* 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<QKeyboardDevice> for QNode
[src]
unsafe fn dynamic_cast(ptr: Ptr<QNode>) -> Ptr<QKeyboardDevice>
[src]
Calls C++ function: Qt3DInput::QKeyboardDevice* dynamic_cast<Qt3DInput::QKeyboardDevice*>(Qt3DCore::QNode* ptr)
.
impl DynamicCast<QKeyboardDevice> for QObject
[src]
unsafe fn dynamic_cast(ptr: Ptr<QObject>) -> Ptr<QKeyboardDevice>
[src]
Calls C++ function: Qt3DInput::QKeyboardDevice* dynamic_cast<Qt3DInput::QKeyboardDevice*>(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<QKeyboardDevice> for QNode
[src]
unsafe fn static_downcast(ptr: Ptr<QNode>) -> Ptr<QKeyboardDevice>
[src]
Calls C++ function: Qt3DInput::QKeyboardDevice* static_cast<Qt3DInput::QKeyboardDevice*>(Qt3DCore::QNode* ptr)
.
impl StaticDowncast<QKeyboardDevice> for QObject
[src]
unsafe fn static_downcast(ptr: Ptr<QObject>) -> Ptr<QKeyboardDevice>
[src]
Calls C++ function: Qt3DInput::QKeyboardDevice* static_cast<Qt3DInput::QKeyboardDevice*>(QObject* 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<QNode> for QKeyboardDevice
[src]
unsafe fn static_upcast(ptr: Ptr<QKeyboardDevice>) -> Ptr<QNode>
[src]
Calls C++ function: Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DInput::QKeyboardDevice* ptr)
.
impl StaticUpcast<QObject> for QKeyboardDevice
[src]
unsafe fn static_upcast(ptr: Ptr<QKeyboardDevice>) -> Ptr<QObject>
[src]
Calls C++ function: QObject* static_cast<QObject*>(Qt3DInput::QKeyboardDevice* ptr)
.
Auto Trait Implementations
impl RefUnwindSafe for QKeyboardDevice
impl Send for QKeyboardDevice
impl Sync for QKeyboardDevice
impl Unpin for QKeyboardDevice
impl UnwindSafe for QKeyboardDevice
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>,