[][src]Struct qt_3d_input::QInputChord

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

QInputChord represents a set of QAbstractActionInput's that must be triggerd at once.

C++ class: Qt3DInput::QInputChord.

C++ documentation:

QInputChord represents a set of QAbstractActionInput's that must be triggerd at once.

Methods

impl QInputChord[src]

pub fn slot_set_timeout(&self) -> Receiver<(c_int,)>[src]

Sets the time in which all QAbstractActionInput's in the input chord must triggered within to timeout. The time is in milliseconds

Returns a built-in Qt slot Qt3DInput::QInputChord::setTimeout that can be passed to qt_core::Signal::connect.

C++ documentation:

Sets the time in which all QAbstractActionInput's in the input chord must triggered within to timeout. The time is in milliseconds

Note: Setter function for property timeout.

See also timeout().

pub fn timeout_changed(&self) -> Signal<(c_int,)>[src]

The time in which all QAbstractActionInput's in the input chord must triggered within. The time is in milliseconds.

Returns a built-in Qt signal Qt3DInput::QInputChord::timeoutChanged that can be passed to qt_core::Signal::connect.

C++ documentation:

The time in which all QAbstractActionInput's in the input chord must triggered within. The time is in milliseconds.

Access functions:

int timeout() const
void setTimeout(int timeout)

Notifier signal:

void timeoutChanged(int timeout)

pub unsafe fn add_chord(&self, input: impl CastInto<Ptr<QAbstractActionInput>>)[src]

Append the QAbstractActionInput input to the end of this QInputChord's chord vector.

Calls C++ function: void Qt3DInput::QInputChord::addChord(Qt3DInput::QAbstractActionInput* input).

C++ documentation:

Append the QAbstractActionInput input to the end of this QInputChord's chord vector.

See also removeChord.

pub unsafe fn chords(&self) -> CppBox<QVectorOfQAbstractActionInput>[src]

Returns the QInputChord's chord vector.

Calls C++ function: QVector<Qt3DInput::QAbstractActionInput*> Qt3DInput::QInputChord::chords() const.

C++ documentation:

Returns the QInputChord's chord vector.

pub unsafe fn meta_object(&self) -> Ptr<QMetaObject>[src]

Calls C++ function: virtual const QMetaObject* Qt3DInput::QInputChord::metaObject() const.

pub unsafe fn new_1a(parent: impl CastInto<Ptr<QNode>>) -> QBox<QInputChord>[src]

Constructs a new QInputChord with parent parent.

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

C++ documentation:

Constructs a new QInputChord with parent parent.

pub unsafe fn new_0a() -> QBox<QInputChord>[src]

QInputChord represents a set of QAbstractActionInput's that must be triggerd at once.

Calls C++ function: [constructor] void Qt3DInput::QInputChord::QInputChord().

C++ documentation:

QInputChord represents a set of QAbstractActionInput's that must be triggerd at once.

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::QInputChord::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::QInputChord::qt_metacast(const char* arg1).

pub unsafe fn remove_chord(
    &self,
    input: impl CastInto<Ptr<QAbstractActionInput>>
)
[src]

Remove the QAbstractActionInput input from this QInputChord's chord vector.

Calls C++ function: void Qt3DInput::QInputChord::removeChord(Qt3DInput::QAbstractActionInput* input).

C++ documentation:

Remove the QAbstractActionInput input from this QInputChord's chord vector.

See also addChord.

pub unsafe fn set_timeout(&self, timeout: c_int)[src]

Sets the time in which all QAbstractActionInput's in the input chord must triggered within to timeout. The time is in milliseconds

Calls C++ function: [slot] void Qt3DInput::QInputChord::setTimeout(int timeout).

C++ documentation:

Sets the time in which all QAbstractActionInput's in the input chord must triggered within to timeout. The time is in milliseconds

Note: Setter function for property timeout.

See also timeout().

pub unsafe fn static_meta_object() -> Ref<QMetaObject>[src]

Returns a reference to the staticMetaObject field.

pub unsafe fn timeout(&self) -> c_int[src]

The time in which all QAbstractActionInput's in the input chord must triggered within. The time is in milliseconds.

Calls C++ function: int Qt3DInput::QInputChord::timeout() const.

C++ documentation:

The time in which all QAbstractActionInput's in the input chord must triggered within. The time is in milliseconds.

Access functions:

int timeout() const
void setTimeout(int timeout)

Notifier signal:

void timeoutChanged(int timeout)

pub unsafe fn tr(
    s: *const c_char,
    c: *const c_char,
    n: c_int
) -> CppBox<QString>
[src]

Calls C++ function: static QString Qt3DInput::QInputChord::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::QInputChord::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 QInputChord[src]

unsafe fn delete(&self)[src]

Calls C++ function: virtual [destructor] void Qt3DInput::QInputChord::~QInputChord().

impl Deref for QInputChord[src]

type Target = QAbstractActionInput

The resulting type after dereferencing.

fn deref(&self) -> &QAbstractActionInput[src]

Calls C++ function: Qt3DInput::QAbstractActionInput* static_cast<Qt3DInput::QAbstractActionInput*>(Qt3DInput::QInputChord* ptr).

impl DynamicCast<QInputChord> for QAbstractActionInput[src]

unsafe fn dynamic_cast(ptr: Ptr<QAbstractActionInput>) -> Ptr<QInputChord>[src]

Calls C++ function: Qt3DInput::QInputChord* dynamic_cast<Qt3DInput::QInputChord*>(Qt3DInput::QAbstractActionInput* ptr).

impl DynamicCast<QInputChord> for QNode[src]

unsafe fn dynamic_cast(ptr: Ptr<QNode>) -> Ptr<QInputChord>[src]

Calls C++ function: Qt3DInput::QInputChord* dynamic_cast<Qt3DInput::QInputChord*>(Qt3DCore::QNode* ptr).

impl DynamicCast<QInputChord> for QObject[src]

unsafe fn dynamic_cast(ptr: Ptr<QObject>) -> Ptr<QInputChord>[src]

Calls C++ function: Qt3DInput::QInputChord* dynamic_cast<Qt3DInput::QInputChord*>(QObject* ptr).

impl StaticDowncast<QInputChord> for QAbstractActionInput[src]

unsafe fn static_downcast(ptr: Ptr<QAbstractActionInput>) -> Ptr<QInputChord>[src]

Calls C++ function: Qt3DInput::QInputChord* static_cast<Qt3DInput::QInputChord*>(Qt3DInput::QAbstractActionInput* ptr).

impl StaticDowncast<QInputChord> for QNode[src]

unsafe fn static_downcast(ptr: Ptr<QNode>) -> Ptr<QInputChord>[src]

Calls C++ function: Qt3DInput::QInputChord* static_cast<Qt3DInput::QInputChord*>(Qt3DCore::QNode* ptr).

impl StaticDowncast<QInputChord> for QObject[src]

unsafe fn static_downcast(ptr: Ptr<QObject>) -> Ptr<QInputChord>[src]

Calls C++ function: Qt3DInput::QInputChord* static_cast<Qt3DInput::QInputChord*>(QObject* ptr).

impl StaticUpcast<QAbstractActionInput> for QInputChord[src]

unsafe fn static_upcast(ptr: Ptr<QInputChord>) -> Ptr<QAbstractActionInput>[src]

Calls C++ function: Qt3DInput::QAbstractActionInput* static_cast<Qt3DInput::QAbstractActionInput*>(Qt3DInput::QInputChord* ptr).

impl StaticUpcast<QNode> for QInputChord[src]

unsafe fn static_upcast(ptr: Ptr<QInputChord>) -> Ptr<QNode>[src]

Calls C++ function: Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DInput::QInputChord* ptr).

impl StaticUpcast<QObject> for QInputChord[src]

unsafe fn static_upcast(ptr: Ptr<QInputChord>) -> Ptr<QObject>[src]

Calls C++ function: QObject* static_cast<QObject*>(Qt3DInput::QInputChord* 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.