[][src]Struct qt_3d_input::QActionInput

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

QActionInput stores Device and Buttons used to trigger an input event.

C++ class: Qt3DInput::QActionInput.

C++ documentation:

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]

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.

C++ documentation:

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.

C++ documentation:

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.

C++ documentation:

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.

C++ documentation:

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.

C++ documentation:

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 = …).

C++ documentation:

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

C++ documentation:

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]

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

C++ documentation:

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]

The current source device of the QActionInput.

Calls C++ function: [slot] void Qt3DInput::QActionInput::setSourceDevice(Qt3DInput::QAbstractPhysicalDevice* sourceDevice).

C++ documentation:

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.

C++ documentation:

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]

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]

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]

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

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.