[][src]Struct qt_3d_logic::QFrameAction

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

Provides a way to have a synchronous function executed each frame.

C++ class: Qt3DLogic::QFrameAction.

C++ documentation:

Provides a way to have a synchronous function executed each frame.

The QFrameAction provides a way to perform tasks each frame in a synchronized way with the Qt3D backend. This is useful to implement some aspects of application logic and to prototype functionality that can later be folded into an additional Qt3D aspect.

For example, the QFrameAction can be used to animate a property in sync with the Qt3D engine where a Qt Quick animation element is not perfectly synchronized and may lead to stutters in some cases.

To execute your own code each frame connect to the QFrameAction::triggered signal.

Methods

impl QFrameAction[src]

pub fn triggered(&self) -> Signal<(c_float,)>[src]

This signal is emitted each frame with dt being the time since the last triggering.

Returns a built-in Qt signal Qt3DLogic::QFrameAction::triggered that can be passed to qt_core::Signal::connect.

C++ documentation:

This signal is emitted each frame with dt being the time since the last triggering.

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

Calls C++ function: virtual const QMetaObject* Qt3DLogic::QFrameAction::metaObject() const.

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

Default constructs an instance of QFrameAction.

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

C++ documentation:

Default constructs an instance of QFrameAction.

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

Provides a way to have a synchronous function executed each frame.

Calls C++ function: [constructor] void Qt3DLogic::QFrameAction::QFrameAction().

C++ documentation:

Provides a way to have a synchronous function executed each frame.

The QFrameAction provides a way to perform tasks each frame in a synchronized way with the Qt3D backend. This is useful to implement some aspects of application logic and to prototype functionality that can later be folded into an additional Qt3D aspect.

For example, the QFrameAction can be used to animate a property in sync with the Qt3D engine where a Qt Quick animation element is not perfectly synchronized and may lead to stutters in some cases.

To execute your own code each frame connect to the QFrameAction::triggered signal.

pub unsafe fn qt_metacall(
    &self,
    arg1: Call,
    arg2: c_int,
    arg3: *mut *mut c_void
) -> c_int
[src]

Calls C++ function: virtual int Qt3DLogic::QFrameAction::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* Qt3DLogic::QFrameAction::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]

Calls C++ function: static QString Qt3DLogic::QFrameAction::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 Qt3DLogic::QFrameAction::trUtf8(const char* s, const char* c, int n).

Trait Implementations

impl CppDeletable for QFrameAction[src]

unsafe fn delete(&self)[src]

Calls C++ function: virtual [destructor] void Qt3DLogic::QFrameAction::~QFrameAction().

impl Deref for QFrameAction[src]

type Target = QComponent

The resulting type after dereferencing.

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

Calls C++ function: Qt3DCore::QComponent* static_cast<Qt3DCore::QComponent*>(Qt3DLogic::QFrameAction* ptr).

impl DynamicCast<QFrameAction> for QComponent[src]

unsafe fn dynamic_cast(ptr: Ptr<QComponent>) -> Ptr<QFrameAction>[src]

Calls C++ function: Qt3DLogic::QFrameAction* dynamic_cast<Qt3DLogic::QFrameAction*>(Qt3DCore::QComponent* ptr).

impl DynamicCast<QFrameAction> for QNode[src]

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

Calls C++ function: Qt3DLogic::QFrameAction* dynamic_cast<Qt3DLogic::QFrameAction*>(Qt3DCore::QNode* ptr).

impl DynamicCast<QFrameAction> for QObject[src]

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

Calls C++ function: Qt3DLogic::QFrameAction* dynamic_cast<Qt3DLogic::QFrameAction*>(QObject* ptr).

impl StaticDowncast<QFrameAction> for QComponent[src]

unsafe fn static_downcast(ptr: Ptr<QComponent>) -> Ptr<QFrameAction>[src]

Calls C++ function: Qt3DLogic::QFrameAction* static_cast<Qt3DLogic::QFrameAction*>(Qt3DCore::QComponent* ptr).

impl StaticDowncast<QFrameAction> for QNode[src]

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

Calls C++ function: Qt3DLogic::QFrameAction* static_cast<Qt3DLogic::QFrameAction*>(Qt3DCore::QNode* ptr).

impl StaticDowncast<QFrameAction> for QObject[src]

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

Calls C++ function: Qt3DLogic::QFrameAction* static_cast<Qt3DLogic::QFrameAction*>(QObject* ptr).

impl StaticUpcast<QComponent> for QFrameAction[src]

unsafe fn static_upcast(ptr: Ptr<QFrameAction>) -> Ptr<QComponent>[src]

Calls C++ function: Qt3DCore::QComponent* static_cast<Qt3DCore::QComponent*>(Qt3DLogic::QFrameAction* ptr).

impl StaticUpcast<QNode> for QFrameAction[src]

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

Calls C++ function: Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DLogic::QFrameAction* ptr).

impl StaticUpcast<QObject> for QFrameAction[src]

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

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