[−][src]Struct qt_3d_input::QActionInput
QActionInput stores Device and Buttons used to trigger an input event.
C++ class: Qt3DInput::QActionInput
.
QActionInput stores Device and Buttons used to trigger an input event.
Methods
impl QActionInput
[src]
pub fn slot_set_source_device(
&self
) -> Receiver<(*mut QAbstractPhysicalDevice,)>
[src]
&self
) -> Receiver<(*mut QAbstractPhysicalDevice,)>
The current source device of the QActionInput.
Returns a built-in Qt slot Qt3DInput::QActionInput::setSourceDevice
that can be passed to qt_core::Signal::connect
.
The current source device of the QActionInput.
Access functions:
QAbstractPhysicalDevice * | sourceDevice() const |
void | setSourceDevice(QAbstractPhysicalDevice *sourceDevice) |
Notifier signal:
void | sourceDeviceChanged(QAbstractPhysicalDevice *sourceDevice) |
pub fn slot_set_buttons(&self) -> Receiver<(*const QVectorOfInt,)>
[src]
Set the buttons to trigger the QActionInput instance to buttons.
Returns a built-in Qt slot Qt3DInput::QActionInput::setButtons
that can be passed to qt_core::Signal::connect
.
Set the buttons to trigger the QActionInput instance to buttons.
Note: Setter function for property buttons.
See also buttons().
pub fn source_device_changed(&self) -> Signal<(*mut QAbstractPhysicalDevice,)>
[src]
This signal is emitted when the source device associated with the action input is changed to sourceDevice.
Returns a built-in Qt signal Qt3DInput::QActionInput::sourceDeviceChanged
that can be passed to qt_core::Signal::connect
.
This signal is emitted when the source device associated with the action input is changed to sourceDevice.
Note: Notifier signal for property sourceDevice.
pub fn buttons_changed(&self) -> Signal<(*const QVectorOfInt,)>
[src]
This signal is emitted when the buttons associated with the action input is changed. The buttons changed are buttons
Returns a built-in Qt signal Qt3DInput::QActionInput::buttonsChanged
that can be passed to qt_core::Signal::connect
.
This signal is emitted when the buttons associated with the action input is changed. The buttons changed are buttons
Note: Notifier signal for property buttons.
pub unsafe fn buttons(&self) -> CppBox<QVectorOfInt>
[src]
Holds the buttons that can trigger this Action.
Calls C++ function: QVector<int> Qt3DInput::QActionInput::buttons() const
.
Holds the buttons that can trigger this Action.
Access functions:
QVector<int> | buttons() const |
void | setButtons(const QVector<int> &buttons) |
Notifier signal:
void | buttonsChanged(const QVector<int> &buttons) |
pub unsafe fn meta_object(&self) -> Ptr<QMetaObject>
[src]
Calls C++ function: virtual const QMetaObject* Qt3DInput::QActionInput::metaObject() const
.
pub unsafe fn new_1a(parent: impl CastInto<Ptr<QNode>>) -> QBox<QActionInput>
[src]
Constructs a new QActionInput instance with parent.
Calls C++ function: [constructor] void Qt3DInput::QActionInput::QActionInput(Qt3DCore::QNode* parent = …)
.
Constructs a new QActionInput instance with parent.
pub unsafe fn new_0a() -> QBox<QActionInput>
[src]
QActionInput stores Device and Buttons used to trigger an input event.
Calls C++ function: [constructor] void Qt3DInput::QActionInput::QActionInput()
.
QActionInput stores Device and Buttons used to trigger an input event.
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::QActionInput::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::QActionInput::qt_metacast(const char* arg1)
.
pub unsafe fn set_buttons(&self, buttons: impl CastInto<Ref<QVectorOfInt>>)
[src]
Set the buttons to trigger the QActionInput instance to buttons.
Calls C++ function: [slot] void Qt3DInput::QActionInput::setButtons(const QVector<int>& buttons)
.
Set the buttons to trigger the QActionInput instance to buttons.
Note: Setter function for property buttons.
See also buttons().
pub unsafe fn set_source_device(
&self,
source_device: impl CastInto<Ptr<QAbstractPhysicalDevice>>
)
[src]
&self,
source_device: impl CastInto<Ptr<QAbstractPhysicalDevice>>
)
The current source device of the QActionInput.
Calls C++ function: [slot] void Qt3DInput::QActionInput::setSourceDevice(Qt3DInput::QAbstractPhysicalDevice* sourceDevice)
.
The current source device of the QActionInput.
Access functions:
QAbstractPhysicalDevice * | sourceDevice() const |
void | setSourceDevice(QAbstractPhysicalDevice *sourceDevice) |
Notifier signal:
void | sourceDeviceChanged(QAbstractPhysicalDevice *sourceDevice) |
pub unsafe fn source_device(&self) -> QPtr<QAbstractPhysicalDevice>
[src]
The current source device of the QActionInput.
Calls C++ function: Qt3DInput::QAbstractPhysicalDevice* Qt3DInput::QActionInput::sourceDevice() const
.
The current source device of the QActionInput.
Access functions:
QAbstractPhysicalDevice * | sourceDevice() const |
void | setSourceDevice(QAbstractPhysicalDevice *sourceDevice) |
Notifier signal:
void | sourceDeviceChanged(QAbstractPhysicalDevice *sourceDevice) |
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::QActionInput::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::QActionInput::trUtf8(const char* s, const char* c, int n)
.
Methods from Deref<Target = QAbstractActionInput>
pub unsafe fn meta_object(&self) -> Ptr<QMetaObject>
[src]
Calls C++ function: virtual const QMetaObject* Qt3DInput::QAbstractActionInput::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::QAbstractActionInput::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::QAbstractActionInput::qt_metacast(const char* arg1)
.
Trait Implementations
impl CppDeletable for QActionInput
[src]
unsafe fn delete(&self)
[src]
Calls C++ function: virtual [destructor] void Qt3DInput::QActionInput::~QActionInput()
.
impl Deref for QActionInput
[src]
type Target = QAbstractActionInput
The resulting type after dereferencing.
fn deref(&self) -> &QAbstractActionInput
[src]
Calls C++ function: Qt3DInput::QAbstractActionInput* static_cast<Qt3DInput::QAbstractActionInput*>(Qt3DInput::QActionInput* ptr)
.
impl DynamicCast<QActionInput> for QAbstractActionInput
[src]
unsafe fn dynamic_cast(ptr: Ptr<QAbstractActionInput>) -> Ptr<QActionInput>
[src]
Calls C++ function: Qt3DInput::QActionInput* dynamic_cast<Qt3DInput::QActionInput*>(Qt3DInput::QAbstractActionInput* ptr)
.
impl DynamicCast<QActionInput> for QNode
[src]
unsafe fn dynamic_cast(ptr: Ptr<QNode>) -> Ptr<QActionInput>
[src]
Calls C++ function: Qt3DInput::QActionInput* dynamic_cast<Qt3DInput::QActionInput*>(Qt3DCore::QNode* ptr)
.
impl DynamicCast<QActionInput> for QObject
[src]
unsafe fn dynamic_cast(ptr: Ptr<QObject>) -> Ptr<QActionInput>
[src]
Calls C++ function: Qt3DInput::QActionInput* dynamic_cast<Qt3DInput::QActionInput*>(QObject* ptr)
.
impl StaticDowncast<QActionInput> for QAbstractActionInput
[src]
unsafe fn static_downcast(ptr: Ptr<QAbstractActionInput>) -> Ptr<QActionInput>
[src]
Calls C++ function: Qt3DInput::QActionInput* static_cast<Qt3DInput::QActionInput*>(Qt3DInput::QAbstractActionInput* ptr)
.
impl StaticDowncast<QActionInput> for QNode
[src]
unsafe fn static_downcast(ptr: Ptr<QNode>) -> Ptr<QActionInput>
[src]
Calls C++ function: Qt3DInput::QActionInput* static_cast<Qt3DInput::QActionInput*>(Qt3DCore::QNode* ptr)
.
impl StaticDowncast<QActionInput> for QObject
[src]
unsafe fn static_downcast(ptr: Ptr<QObject>) -> Ptr<QActionInput>
[src]
Calls C++ function: Qt3DInput::QActionInput* static_cast<Qt3DInput::QActionInput*>(QObject* ptr)
.
impl StaticUpcast<QAbstractActionInput> for QActionInput
[src]
unsafe fn static_upcast(ptr: Ptr<QActionInput>) -> Ptr<QAbstractActionInput>
[src]
Calls C++ function: Qt3DInput::QAbstractActionInput* static_cast<Qt3DInput::QAbstractActionInput*>(Qt3DInput::QActionInput* ptr)
.
impl StaticUpcast<QNode> for QActionInput
[src]
unsafe fn static_upcast(ptr: Ptr<QActionInput>) -> Ptr<QNode>
[src]
Calls C++ function: Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DInput::QActionInput* ptr)
.
impl StaticUpcast<QObject> for QActionInput
[src]
unsafe fn static_upcast(ptr: Ptr<QActionInput>) -> Ptr<QObject>
[src]
Calls C++ function: QObject* static_cast<QObject*>(Qt3DInput::QActionInput* ptr)
.
Auto Trait Implementations
impl RefUnwindSafe for QActionInput
impl Send for QActionInput
impl Sync for QActionInput
impl Unpin for QActionInput
impl UnwindSafe for QActionInput
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>,