1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
//! Bindings for Qt3DLogic C++ library.
//!
//! Starting guide and examples are available at
//!             [https://github.com/rust-qt/examples](https://github.com/rust-qt/examples).
//!
//! This crate was generated for Qt 5.9.7, 5.11.3, 5.12.2, 5.13.0.
//!                 It should work with other Qt versions later than 5.9.7,
//!                 but API specific to other versions will not be available.
//!
//! This crate was generated by `ritual`.
//!                     See [README](https://github.com/rust-qt/ritual) for more information.

mod __ffi {
    //! Functions provided by the C++ wrapper library

    include!(concat!(env!("OUT_DIR"), "/ffi.rs"));
}
pub use ::cpp_utils;
pub use ::qt_3d_core;
pub use ::qt_core;
pub use ::qt_gui;
/// <p>Provides a way to have a synchronous function executed each frame.</p>
///
/// C++ class: <span style='color: green;'>```Qt3DLogic::QFrameAction```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dlogic-qframeaction.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Provides a way to have a synchronous function executed each frame.</p>
/// <p>The <a href="http://doc.qt.io/qt-5/qt3dlogic-qframeaction.html">QFrameAction</a> 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.</p>
/// <p>For example, the <a href="http://doc.qt.io/qt-5/qt3dlogic-qframeaction.html">QFrameAction</a> 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.</p>
/// <p>To execute your own code each frame connect to the <a href="http://doc.qt.io/qt-5/qt3dlogic-qframeaction.html#triggered">QFrameAction::triggered</a> signal.</p></div>
#[repr(C)]
pub struct QFrameAction {
    _unused: u8,
}
impl QFrameAction {
    /// <p>This signal is emitted each frame with <i>dt</i> being the time since the last triggering.</p>
    ///
    /// Returns a built-in Qt signal `Qt3DLogic::QFrameAction::triggered` that can be passed to `qt_core::Signal::connect`.
    ///
    /// <a href="http://doc.qt.io/qt-5/qt3dlogic-qframeaction.html#triggered">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This signal is emitted each frame with <i>dt</i> being the time since the last triggering.</p></div>
    pub fn triggered(&self) -> ::qt_core::Signal<(::std::os::raw::c_float,)> {
        unsafe {
            ::qt_core::Signal::new(
                ::cpp_utils::Ref::from_raw_ref(self),
                ::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2triggered(float)\0"),
            )
        }
    }

    /// Calls C++ function: <span style='color: green;'>```virtual const QMetaObject* Qt3DLogic::QFrameAction::metaObject() const```</span>.
    pub unsafe fn meta_object(&self) -> ::cpp_utils::Ptr<::qt_core::QMetaObject> {
        let ffi_result = crate::__ffi::ctr_qt_3d_logic_ffi_Qt3DLogic_QFrameAction_metaObject(
            self as *const crate::QFrameAction,
        );
        ::cpp_utils::Ptr::from_raw(ffi_result)
    }

    /// <p>Default constructs an instance of QFrameAction.</p>
    ///
    /// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DLogic::QFrameAction::QFrameAction(Qt3DCore::QNode* parent = …)```</span>.
    ///
    /// <a href="http://doc.qt.io/qt-5/qt3dlogic-qframeaction.html#QFrameAction">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Default constructs an instance of QFrameAction.</p></div>
    pub unsafe fn new_1a(
        parent: impl ::cpp_utils::CastInto<::cpp_utils::MutPtr<::qt_3d_core::QNode>>,
    ) -> ::cpp_utils::CppBox<crate::QFrameAction> {
        let ffi_result = crate::__ffi::ctr_qt_3d_logic_ffi_Qt3DLogic_QFrameAction_QFrameAction(
            ::cpp_utils::CastInto::<::cpp_utils::MutPtr<::qt_3d_core::QNode>>::cast_into(parent)
                .as_mut_raw_ptr(),
        );
        ::cpp_utils::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
    }

    /// <p>Provides a way to have a synchronous function executed each frame.</p>
    ///
    /// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DLogic::QFrameAction::QFrameAction()```</span>.
    ///
    /// <a href="http://doc.qt.io/qt-5/qt3dlogic-qframeaction.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Provides a way to have a synchronous function executed each frame.</p>
    /// <p>The <a href="http://doc.qt.io/qt-5/qt3dlogic-qframeaction.html">QFrameAction</a> 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.</p>
    /// <p>For example, the <a href="http://doc.qt.io/qt-5/qt3dlogic-qframeaction.html">QFrameAction</a> 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.</p>
    /// <p>To execute your own code each frame connect to the <a href="http://doc.qt.io/qt-5/qt3dlogic-qframeaction.html#triggered">QFrameAction::triggered</a> signal.</p></div>
    pub unsafe fn new_0a() -> ::cpp_utils::CppBox<crate::QFrameAction> {
        let ffi_result = crate::__ffi::ctr_qt_3d_logic_ffi_Qt3DLogic_QFrameAction_QFrameAction1();
        ::cpp_utils::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
    }

    /// Calls C++ function: <span style='color: green;'>```virtual int Qt3DLogic::QFrameAction::qt_metacall(QMetaObject::Call arg1, int arg2, void** arg3)```</span>.
    pub unsafe fn qt_metacall(
        &mut self,
        arg1: ::qt_core::q_meta_object::Call,
        arg2: ::std::os::raw::c_int,
        arg3: impl ::cpp_utils::CastInto<::cpp_utils::MutPtr<*mut ::std::ffi::c_void>>,
    ) -> ::std::os::raw::c_int {
        crate::__ffi::ctr_qt_3d_logic_ffi_Qt3DLogic_QFrameAction_qt_metacall(
            self as *mut crate::QFrameAction,
            arg1,
            arg2,
            ::cpp_utils::CastInto::<::cpp_utils::MutPtr<*mut ::std::ffi::c_void>>::cast_into(arg3)
                .as_mut_raw_ptr(),
        )
    }

    /// Calls C++ function: <span style='color: green;'>```virtual void* Qt3DLogic::QFrameAction::qt_metacast(const char* arg1)```</span>.
    pub unsafe fn qt_metacast(
        &mut self,
        arg1: impl ::cpp_utils::CastInto<::cpp_utils::Ptr<::std::os::raw::c_char>>,
    ) -> ::cpp_utils::MutPtr<::std::ffi::c_void> {
        let ffi_result = crate::__ffi::ctr_qt_3d_logic_ffi_Qt3DLogic_QFrameAction_qt_metacast(
            self as *mut crate::QFrameAction,
            ::cpp_utils::CastInto::<::cpp_utils::Ptr<::std::os::raw::c_char>>::cast_into(arg1)
                .as_raw_ptr(),
        );
        ::cpp_utils::MutPtr::from_raw(ffi_result)
    }

    /// Returns a reference to the <span style='color: green;'>```staticMetaObject```</span> field.
    pub unsafe fn static_meta_object() -> ::cpp_utils::Ref<::qt_core::QMetaObject> {
        let ffi_result =
            crate::__ffi::ctr_qt_3d_logic_ffi_Qt3DLogic_QFrameAction_staticMetaObject();
        ::cpp_utils::Ref::from_raw(ffi_result).expect("attempted to construct a null Ref")
    }

    /// Calls C++ function: <span style='color: green;'>```static QString Qt3DLogic::QFrameAction::tr(const char* s, const char* c, int n)```</span>.
    pub unsafe fn tr(
        s: impl ::cpp_utils::CastInto<::cpp_utils::Ptr<::std::os::raw::c_char>>,
        c: impl ::cpp_utils::CastInto<::cpp_utils::Ptr<::std::os::raw::c_char>>,
        n: ::std::os::raw::c_int,
    ) -> ::cpp_utils::CppBox<::qt_core::QString> {
        let ffi_result = crate::__ffi::ctr_qt_3d_logic_ffi_Qt3DLogic_QFrameAction_tr(
            ::cpp_utils::CastInto::<::cpp_utils::Ptr<::std::os::raw::c_char>>::cast_into(s)
                .as_raw_ptr(),
            ::cpp_utils::CastInto::<::cpp_utils::Ptr<::std::os::raw::c_char>>::cast_into(c)
                .as_raw_ptr(),
            n,
        );
        ::cpp_utils::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
    }

    /// Calls C++ function: <span style='color: green;'>```static QString Qt3DLogic::QFrameAction::trUtf8(const char* s, const char* c, int n)```</span>.
    pub unsafe fn tr_utf8(
        s: impl ::cpp_utils::CastInto<::cpp_utils::Ptr<::std::os::raw::c_char>>,
        c: impl ::cpp_utils::CastInto<::cpp_utils::Ptr<::std::os::raw::c_char>>,
        n: ::std::os::raw::c_int,
    ) -> ::cpp_utils::CppBox<::qt_core::QString> {
        let ffi_result = crate::__ffi::ctr_qt_3d_logic_ffi_Qt3DLogic_QFrameAction_trUtf8(
            ::cpp_utils::CastInto::<::cpp_utils::Ptr<::std::os::raw::c_char>>::cast_into(s)
                .as_raw_ptr(),
            ::cpp_utils::CastInto::<::cpp_utils::Ptr<::std::os::raw::c_char>>::cast_into(c)
                .as_raw_ptr(),
            n,
        );
        ::cpp_utils::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
    }
}

/// <p>Responsible for handling frame synchronization jobs.</p>
///
/// C++ class: <span style='color: green;'>```Qt3DLogic::QLogicAspect```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dlogic-qlogicaspect.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Responsible for handling frame synchronization jobs.</p></div>
#[repr(C)]
pub struct QLogicAspect {
    _unused: u8,
}
impl QLogicAspect {
    /// Calls C++ function: <span style='color: green;'>```virtual const QMetaObject* Qt3DLogic::QLogicAspect::metaObject() const```</span>.
    pub unsafe fn meta_object(&self) -> ::cpp_utils::Ptr<::qt_core::QMetaObject> {
        let ffi_result = crate::__ffi::ctr_qt_3d_logic_ffi_Qt3DLogic_QLogicAspect_metaObject(
            self as *const crate::QLogicAspect,
        );
        ::cpp_utils::Ptr::from_raw(ffi_result)
    }

    /// <p>Constructs a new <a href="http://doc.qt.io/qt-5/qt3dlogic-qlogicaspect.html">Qt3DLogic::QLogicAspect</a> instance with <i>parent</i>.</p>
    ///
    /// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DLogic::QLogicAspect::QLogicAspect(QObject* parent = …)```</span>.
    ///
    /// <a href="http://doc.qt.io/qt-5/qt3dlogic-qlogicaspect.html#QLogicAspect">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Constructs a new <a href="http://doc.qt.io/qt-5/qt3dlogic-qlogicaspect.html">Qt3DLogic::QLogicAspect</a> instance with <i>parent</i>.</p></div>
    pub unsafe fn new_1a(
        parent: impl ::cpp_utils::CastInto<::cpp_utils::MutPtr<::qt_core::QObject>>,
    ) -> ::cpp_utils::CppBox<crate::QLogicAspect> {
        let ffi_result = crate::__ffi::ctr_qt_3d_logic_ffi_Qt3DLogic_QLogicAspect_QLogicAspect(
            ::cpp_utils::CastInto::<::cpp_utils::MutPtr<::qt_core::QObject>>::cast_into(parent)
                .as_mut_raw_ptr(),
        );
        ::cpp_utils::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
    }

    /// <p>Responsible for handling frame synchronization jobs.</p>
    ///
    /// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DLogic::QLogicAspect::QLogicAspect()```</span>.
    ///
    /// <a href="http://doc.qt.io/qt-5/qt3dlogic-qlogicaspect.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Responsible for handling frame synchronization jobs.</p></div>
    pub unsafe fn new_0a() -> ::cpp_utils::CppBox<crate::QLogicAspect> {
        let ffi_result = crate::__ffi::ctr_qt_3d_logic_ffi_Qt3DLogic_QLogicAspect_QLogicAspect1();
        ::cpp_utils::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
    }

    /// Calls C++ function: <span style='color: green;'>```virtual int Qt3DLogic::QLogicAspect::qt_metacall(QMetaObject::Call arg1, int arg2, void** arg3)```</span>.
    pub unsafe fn qt_metacall(
        &mut self,
        arg1: ::qt_core::q_meta_object::Call,
        arg2: ::std::os::raw::c_int,
        arg3: impl ::cpp_utils::CastInto<::cpp_utils::MutPtr<*mut ::std::ffi::c_void>>,
    ) -> ::std::os::raw::c_int {
        crate::__ffi::ctr_qt_3d_logic_ffi_Qt3DLogic_QLogicAspect_qt_metacall(
            self as *mut crate::QLogicAspect,
            arg1,
            arg2,
            ::cpp_utils::CastInto::<::cpp_utils::MutPtr<*mut ::std::ffi::c_void>>::cast_into(arg3)
                .as_mut_raw_ptr(),
        )
    }

    /// Calls C++ function: <span style='color: green;'>```virtual void* Qt3DLogic::QLogicAspect::qt_metacast(const char* arg1)```</span>.
    pub unsafe fn qt_metacast(
        &mut self,
        arg1: impl ::cpp_utils::CastInto<::cpp_utils::Ptr<::std::os::raw::c_char>>,
    ) -> ::cpp_utils::MutPtr<::std::ffi::c_void> {
        let ffi_result = crate::__ffi::ctr_qt_3d_logic_ffi_Qt3DLogic_QLogicAspect_qt_metacast(
            self as *mut crate::QLogicAspect,
            ::cpp_utils::CastInto::<::cpp_utils::Ptr<::std::os::raw::c_char>>::cast_into(arg1)
                .as_raw_ptr(),
        );
        ::cpp_utils::MutPtr::from_raw(ffi_result)
    }

    /// Returns a reference to the <span style='color: green;'>```staticMetaObject```</span> field.
    pub unsafe fn static_meta_object() -> ::cpp_utils::Ref<::qt_core::QMetaObject> {
        let ffi_result =
            crate::__ffi::ctr_qt_3d_logic_ffi_Qt3DLogic_QLogicAspect_staticMetaObject();
        ::cpp_utils::Ref::from_raw(ffi_result).expect("attempted to construct a null Ref")
    }

    /// Calls C++ function: <span style='color: green;'>```static QString Qt3DLogic::QLogicAspect::tr(const char* s, const char* c, int n)```</span>.
    pub unsafe fn tr(
        s: impl ::cpp_utils::CastInto<::cpp_utils::Ptr<::std::os::raw::c_char>>,
        c: impl ::cpp_utils::CastInto<::cpp_utils::Ptr<::std::os::raw::c_char>>,
        n: ::std::os::raw::c_int,
    ) -> ::cpp_utils::CppBox<::qt_core::QString> {
        let ffi_result = crate::__ffi::ctr_qt_3d_logic_ffi_Qt3DLogic_QLogicAspect_tr(
            ::cpp_utils::CastInto::<::cpp_utils::Ptr<::std::os::raw::c_char>>::cast_into(s)
                .as_raw_ptr(),
            ::cpp_utils::CastInto::<::cpp_utils::Ptr<::std::os::raw::c_char>>::cast_into(c)
                .as_raw_ptr(),
            n,
        );
        ::cpp_utils::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
    }

    /// Calls C++ function: <span style='color: green;'>```static QString Qt3DLogic::QLogicAspect::trUtf8(const char* s, const char* c, int n)```</span>.
    pub unsafe fn tr_utf8(
        s: impl ::cpp_utils::CastInto<::cpp_utils::Ptr<::std::os::raw::c_char>>,
        c: impl ::cpp_utils::CastInto<::cpp_utils::Ptr<::std::os::raw::c_char>>,
        n: ::std::os::raw::c_int,
    ) -> ::cpp_utils::CppBox<::qt_core::QString> {
        let ffi_result = crate::__ffi::ctr_qt_3d_logic_ffi_Qt3DLogic_QLogicAspect_trUtf8(
            ::cpp_utils::CastInto::<::cpp_utils::Ptr<::std::os::raw::c_char>>::cast_into(s)
                .as_raw_ptr(),
            ::cpp_utils::CastInto::<::cpp_utils::Ptr<::std::os::raw::c_char>>::cast_into(c)
                .as_raw_ptr(),
            n,
        );
        ::cpp_utils::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
    }
}

impl ::cpp_utils::CppDeletable for crate::QFrameAction {
    /// Calls C++ function: <span style='color: green;'>```virtual [destructor] void Qt3DLogic::QFrameAction::~QFrameAction()```</span>.
    unsafe fn delete(&mut self) {
        crate::__ffi::ctr_qt_3d_logic_ffi_Qt3DLogic_QFrameAction_dQFrameAction(
            self as *mut crate::QFrameAction,
        )
    }
}

impl ::cpp_utils::CppDeletable for crate::QLogicAspect {
    /// Calls C++ function: <span style='color: green;'>```virtual [destructor] void Qt3DLogic::QLogicAspect::~QLogicAspect()```</span>.
    unsafe fn delete(&mut self) {
        crate::__ffi::ctr_qt_3d_logic_ffi_Qt3DLogic_QLogicAspect_dQLogicAspect(
            self as *mut crate::QLogicAspect,
        )
    }
}

impl ::cpp_utils::StaticDowncast<crate::QFrameAction> for ::qt_3d_core::QComponent {
    /// Calls C++ function: <span style='color: green;'>```Qt3DLogic::QFrameAction* static_cast<Qt3DLogic::QFrameAction*>(Qt3DCore::QComponent* ptr)```</span>.
    unsafe fn static_downcast(
        ptr: ::cpp_utils::Ptr<::qt_3d_core::QComponent>,
    ) -> ::cpp_utils::Ptr<crate::QFrameAction> {
        let ffi_result = crate::__ffi::ctr_qt_3d_logic_ffi_static_cast_Qt3DLogic_QFrameAction_ptr(
            ptr.as_raw_ptr() as *mut ::qt_3d_core::QComponent,
        );
        ::cpp_utils::Ptr::from_raw(ffi_result)
    }

    /// Calls C++ function: <span style='color: green;'>```Qt3DLogic::QFrameAction* static_cast<Qt3DLogic::QFrameAction*>(Qt3DCore::QComponent* ptr)```</span>.
    unsafe fn static_downcast_mut(
        ptr: ::cpp_utils::MutPtr<::qt_3d_core::QComponent>,
    ) -> ::cpp_utils::MutPtr<crate::QFrameAction> {
        let ffi_result = crate::__ffi::ctr_qt_3d_logic_ffi_static_cast_Qt3DLogic_QFrameAction_ptr(
            ptr.as_mut_raw_ptr(),
        );
        ::cpp_utils::MutPtr::from_raw(ffi_result)
    }
}

impl ::cpp_utils::StaticUpcast<::qt_3d_core::QComponent> for crate::QFrameAction {
    /// Calls C++ function: <span style='color: green;'>```Qt3DCore::QComponent* static_cast<Qt3DCore::QComponent*>(Qt3DLogic::QFrameAction* ptr)```</span>.
    unsafe fn static_upcast(
        ptr: ::cpp_utils::Ptr<crate::QFrameAction>,
    ) -> ::cpp_utils::Ptr<::qt_3d_core::QComponent> {
        let ffi_result = crate::__ffi::ctr_qt_3d_logic_ffi_static_cast_Qt3DCore_QComponent_ptr(
            ptr.as_raw_ptr() as *mut crate::QFrameAction,
        );
        ::cpp_utils::Ptr::from_raw(ffi_result)
    }

    /// Calls C++ function: <span style='color: green;'>```Qt3DCore::QComponent* static_cast<Qt3DCore::QComponent*>(Qt3DLogic::QFrameAction* ptr)```</span>.
    unsafe fn static_upcast_mut(
        ptr: ::cpp_utils::MutPtr<crate::QFrameAction>,
    ) -> ::cpp_utils::MutPtr<::qt_3d_core::QComponent> {
        let ffi_result = crate::__ffi::ctr_qt_3d_logic_ffi_static_cast_Qt3DCore_QComponent_ptr(
            ptr.as_mut_raw_ptr(),
        );
        ::cpp_utils::MutPtr::from_raw(ffi_result)
    }
}

impl ::std::ops::Deref for crate::QFrameAction {
    type Target = ::qt_3d_core::QComponent;
    /// Calls C++ function: <span style='color: green;'>```Qt3DCore::QComponent* static_cast<Qt3DCore::QComponent*>(Qt3DLogic::QFrameAction* ptr)```</span>.
    fn deref(&self) -> &::qt_3d_core::QComponent {
        let ffi_result = unsafe {
            crate::__ffi::ctr_qt_3d_logic_ffi_static_cast_Qt3DCore_QComponent_ptr(
                self as *const crate::QFrameAction as *mut crate::QFrameAction,
            )
        };
        unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
    }
}

impl ::std::ops::DerefMut for crate::QFrameAction {
    /// Calls C++ function: <span style='color: green;'>```Qt3DCore::QComponent* static_cast<Qt3DCore::QComponent*>(Qt3DLogic::QFrameAction* ptr)```</span>.
    fn deref_mut(&mut self) -> &mut ::qt_3d_core::QComponent {
        let ffi_result = unsafe {
            crate::__ffi::ctr_qt_3d_logic_ffi_static_cast_Qt3DCore_QComponent_ptr(
                self as *mut crate::QFrameAction,
            )
        };
        unsafe { ffi_result.as_mut() }.expect("Attempted to convert null pointer to reference")
    }
}

impl ::cpp_utils::DynamicCast<crate::QFrameAction> for ::qt_3d_core::QComponent {
    /// Calls C++ function: <span style='color: green;'>```Qt3DLogic::QFrameAction* dynamic_cast<Qt3DLogic::QFrameAction*>(Qt3DCore::QComponent* ptr)```</span>.
    unsafe fn dynamic_cast(
        ptr: ::cpp_utils::Ptr<::qt_3d_core::QComponent>,
    ) -> ::cpp_utils::Ptr<crate::QFrameAction> {
        let ffi_result = crate::__ffi::ctr_qt_3d_logic_ffi_dynamic_cast_Qt3DLogic_QFrameAction_ptr(
            ptr.as_raw_ptr() as *mut ::qt_3d_core::QComponent,
        );
        ::cpp_utils::Ptr::from_raw(ffi_result)
    }

    /// Calls C++ function: <span style='color: green;'>```Qt3DLogic::QFrameAction* dynamic_cast<Qt3DLogic::QFrameAction*>(Qt3DCore::QComponent* ptr)```</span>.
    unsafe fn dynamic_cast_mut(
        ptr: ::cpp_utils::MutPtr<::qt_3d_core::QComponent>,
    ) -> ::cpp_utils::MutPtr<crate::QFrameAction> {
        let ffi_result = crate::__ffi::ctr_qt_3d_logic_ffi_dynamic_cast_Qt3DLogic_QFrameAction_ptr(
            ptr.as_mut_raw_ptr(),
        );
        ::cpp_utils::MutPtr::from_raw(ffi_result)
    }
}

impl ::cpp_utils::StaticDowncast<crate::QFrameAction> for ::qt_3d_core::QNode {
    /// Calls C++ function: <span style='color: green;'>```Qt3DLogic::QFrameAction* static_cast<Qt3DLogic::QFrameAction*>(Qt3DCore::QNode* ptr)```</span>.
    unsafe fn static_downcast(
        ptr: ::cpp_utils::Ptr<::qt_3d_core::QNode>,
    ) -> ::cpp_utils::Ptr<crate::QFrameAction> {
        let ffi_result = crate::__ffi::ctr_qt_3d_logic_ffi_static_cast_Qt3DLogic_QFrameAction_ptr1(
            ptr.as_raw_ptr() as *mut ::qt_3d_core::QNode,
        );
        ::cpp_utils::Ptr::from_raw(ffi_result)
    }

    /// Calls C++ function: <span style='color: green;'>```Qt3DLogic::QFrameAction* static_cast<Qt3DLogic::QFrameAction*>(Qt3DCore::QNode* ptr)```</span>.
    unsafe fn static_downcast_mut(
        ptr: ::cpp_utils::MutPtr<::qt_3d_core::QNode>,
    ) -> ::cpp_utils::MutPtr<crate::QFrameAction> {
        let ffi_result = crate::__ffi::ctr_qt_3d_logic_ffi_static_cast_Qt3DLogic_QFrameAction_ptr1(
            ptr.as_mut_raw_ptr(),
        );
        ::cpp_utils::MutPtr::from_raw(ffi_result)
    }
}

impl ::cpp_utils::StaticUpcast<::qt_3d_core::QNode> for crate::QFrameAction {
    /// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DLogic::QFrameAction* ptr)```</span>.
    unsafe fn static_upcast(
        ptr: ::cpp_utils::Ptr<crate::QFrameAction>,
    ) -> ::cpp_utils::Ptr<::qt_3d_core::QNode> {
        let ffi_result = crate::__ffi::ctr_qt_3d_logic_ffi_static_cast_Qt3DCore_QNode_ptr(
            ptr.as_raw_ptr() as *mut crate::QFrameAction,
        );
        ::cpp_utils::Ptr::from_raw(ffi_result)
    }

    /// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DLogic::QFrameAction* ptr)```</span>.
    unsafe fn static_upcast_mut(
        ptr: ::cpp_utils::MutPtr<crate::QFrameAction>,
    ) -> ::cpp_utils::MutPtr<::qt_3d_core::QNode> {
        let ffi_result =
            crate::__ffi::ctr_qt_3d_logic_ffi_static_cast_Qt3DCore_QNode_ptr(ptr.as_mut_raw_ptr());
        ::cpp_utils::MutPtr::from_raw(ffi_result)
    }
}

impl ::cpp_utils::DynamicCast<crate::QFrameAction> for ::qt_3d_core::QNode {
    /// Calls C++ function: <span style='color: green;'>```Qt3DLogic::QFrameAction* dynamic_cast<Qt3DLogic::QFrameAction*>(Qt3DCore::QNode* ptr)```</span>.
    unsafe fn dynamic_cast(
        ptr: ::cpp_utils::Ptr<::qt_3d_core::QNode>,
    ) -> ::cpp_utils::Ptr<crate::QFrameAction> {
        let ffi_result = crate::__ffi::ctr_qt_3d_logic_ffi_dynamic_cast_Qt3DLogic_QFrameAction_ptr1(
            ptr.as_raw_ptr() as *mut ::qt_3d_core::QNode,
        );
        ::cpp_utils::Ptr::from_raw(ffi_result)
    }

    /// Calls C++ function: <span style='color: green;'>```Qt3DLogic::QFrameAction* dynamic_cast<Qt3DLogic::QFrameAction*>(Qt3DCore::QNode* ptr)```</span>.
    unsafe fn dynamic_cast_mut(
        ptr: ::cpp_utils::MutPtr<::qt_3d_core::QNode>,
    ) -> ::cpp_utils::MutPtr<crate::QFrameAction> {
        let ffi_result = crate::__ffi::ctr_qt_3d_logic_ffi_dynamic_cast_Qt3DLogic_QFrameAction_ptr1(
            ptr.as_mut_raw_ptr(),
        );
        ::cpp_utils::MutPtr::from_raw(ffi_result)
    }
}

impl ::cpp_utils::StaticDowncast<crate::QFrameAction> for ::qt_core::QObject {
    /// Calls C++ function: <span style='color: green;'>```Qt3DLogic::QFrameAction* static_cast<Qt3DLogic::QFrameAction*>(QObject* ptr)```</span>.
    unsafe fn static_downcast(
        ptr: ::cpp_utils::Ptr<::qt_core::QObject>,
    ) -> ::cpp_utils::Ptr<crate::QFrameAction> {
        let ffi_result = crate::__ffi::ctr_qt_3d_logic_ffi_static_cast_Qt3DLogic_QFrameAction_ptr2(
            ptr.as_raw_ptr() as *mut ::qt_core::QObject,
        );
        ::cpp_utils::Ptr::from_raw(ffi_result)
    }

    /// Calls C++ function: <span style='color: green;'>```Qt3DLogic::QFrameAction* static_cast<Qt3DLogic::QFrameAction*>(QObject* ptr)```</span>.
    unsafe fn static_downcast_mut(
        ptr: ::cpp_utils::MutPtr<::qt_core::QObject>,
    ) -> ::cpp_utils::MutPtr<crate::QFrameAction> {
        let ffi_result = crate::__ffi::ctr_qt_3d_logic_ffi_static_cast_Qt3DLogic_QFrameAction_ptr2(
            ptr.as_mut_raw_ptr(),
        );
        ::cpp_utils::MutPtr::from_raw(ffi_result)
    }
}

impl ::cpp_utils::StaticUpcast<::qt_core::QObject> for crate::QFrameAction {
    /// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(Qt3DLogic::QFrameAction* ptr)```</span>.
    unsafe fn static_upcast(
        ptr: ::cpp_utils::Ptr<crate::QFrameAction>,
    ) -> ::cpp_utils::Ptr<::qt_core::QObject> {
        let ffi_result = crate::__ffi::ctr_qt_3d_logic_ffi_static_cast_QObject_ptr(
            ptr.as_raw_ptr() as *mut crate::QFrameAction,
        );
        ::cpp_utils::Ptr::from_raw(ffi_result)
    }

    /// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(Qt3DLogic::QFrameAction* ptr)```</span>.
    unsafe fn static_upcast_mut(
        ptr: ::cpp_utils::MutPtr<crate::QFrameAction>,
    ) -> ::cpp_utils::MutPtr<::qt_core::QObject> {
        let ffi_result =
            crate::__ffi::ctr_qt_3d_logic_ffi_static_cast_QObject_ptr(ptr.as_mut_raw_ptr());
        ::cpp_utils::MutPtr::from_raw(ffi_result)
    }
}

impl ::cpp_utils::DynamicCast<crate::QFrameAction> for ::qt_core::QObject {
    /// Calls C++ function: <span style='color: green;'>```Qt3DLogic::QFrameAction* dynamic_cast<Qt3DLogic::QFrameAction*>(QObject* ptr)```</span>.
    unsafe fn dynamic_cast(
        ptr: ::cpp_utils::Ptr<::qt_core::QObject>,
    ) -> ::cpp_utils::Ptr<crate::QFrameAction> {
        let ffi_result = crate::__ffi::ctr_qt_3d_logic_ffi_dynamic_cast_Qt3DLogic_QFrameAction_ptr2(
            ptr.as_raw_ptr() as *mut ::qt_core::QObject,
        );
        ::cpp_utils::Ptr::from_raw(ffi_result)
    }

    /// Calls C++ function: <span style='color: green;'>```Qt3DLogic::QFrameAction* dynamic_cast<Qt3DLogic::QFrameAction*>(QObject* ptr)```</span>.
    unsafe fn dynamic_cast_mut(
        ptr: ::cpp_utils::MutPtr<::qt_core::QObject>,
    ) -> ::cpp_utils::MutPtr<crate::QFrameAction> {
        let ffi_result = crate::__ffi::ctr_qt_3d_logic_ffi_dynamic_cast_Qt3DLogic_QFrameAction_ptr2(
            ptr.as_mut_raw_ptr(),
        );
        ::cpp_utils::MutPtr::from_raw(ffi_result)
    }
}

impl ::cpp_utils::StaticDowncast<crate::QLogicAspect> for ::qt_3d_core::QAbstractAspect {
    /// Calls C++ function: <span style='color: green;'>```Qt3DLogic::QLogicAspect* static_cast<Qt3DLogic::QLogicAspect*>(Qt3DCore::QAbstractAspect* ptr)```</span>.
    unsafe fn static_downcast(
        ptr: ::cpp_utils::Ptr<::qt_3d_core::QAbstractAspect>,
    ) -> ::cpp_utils::Ptr<crate::QLogicAspect> {
        let ffi_result = crate::__ffi::ctr_qt_3d_logic_ffi_static_cast_Qt3DLogic_QLogicAspect_ptr(
            ptr.as_raw_ptr() as *mut ::qt_3d_core::QAbstractAspect,
        );
        ::cpp_utils::Ptr::from_raw(ffi_result)
    }

    /// Calls C++ function: <span style='color: green;'>```Qt3DLogic::QLogicAspect* static_cast<Qt3DLogic::QLogicAspect*>(Qt3DCore::QAbstractAspect* ptr)```</span>.
    unsafe fn static_downcast_mut(
        ptr: ::cpp_utils::MutPtr<::qt_3d_core::QAbstractAspect>,
    ) -> ::cpp_utils::MutPtr<crate::QLogicAspect> {
        let ffi_result = crate::__ffi::ctr_qt_3d_logic_ffi_static_cast_Qt3DLogic_QLogicAspect_ptr(
            ptr.as_mut_raw_ptr(),
        );
        ::cpp_utils::MutPtr::from_raw(ffi_result)
    }
}

impl ::cpp_utils::StaticUpcast<::qt_3d_core::QAbstractAspect> for crate::QLogicAspect {
    /// Calls C++ function: <span style='color: green;'>```Qt3DCore::QAbstractAspect* static_cast<Qt3DCore::QAbstractAspect*>(Qt3DLogic::QLogicAspect* ptr)```</span>.
    unsafe fn static_upcast(
        ptr: ::cpp_utils::Ptr<crate::QLogicAspect>,
    ) -> ::cpp_utils::Ptr<::qt_3d_core::QAbstractAspect> {
        let ffi_result = crate::__ffi::ctr_qt_3d_logic_ffi_static_cast_Qt3DCore_QAbstractAspect_ptr(
            ptr.as_raw_ptr() as *mut crate::QLogicAspect,
        );
        ::cpp_utils::Ptr::from_raw(ffi_result)
    }

    /// Calls C++ function: <span style='color: green;'>```Qt3DCore::QAbstractAspect* static_cast<Qt3DCore::QAbstractAspect*>(Qt3DLogic::QLogicAspect* ptr)```</span>.
    unsafe fn static_upcast_mut(
        ptr: ::cpp_utils::MutPtr<crate::QLogicAspect>,
    ) -> ::cpp_utils::MutPtr<::qt_3d_core::QAbstractAspect> {
        let ffi_result = crate::__ffi::ctr_qt_3d_logic_ffi_static_cast_Qt3DCore_QAbstractAspect_ptr(
            ptr.as_mut_raw_ptr(),
        );
        ::cpp_utils::MutPtr::from_raw(ffi_result)
    }
}

impl ::std::ops::Deref for crate::QLogicAspect {
    type Target = ::qt_3d_core::QAbstractAspect;
    /// Calls C++ function: <span style='color: green;'>```Qt3DCore::QAbstractAspect* static_cast<Qt3DCore::QAbstractAspect*>(Qt3DLogic::QLogicAspect* ptr)```</span>.
    fn deref(&self) -> &::qt_3d_core::QAbstractAspect {
        let ffi_result = unsafe {
            crate::__ffi::ctr_qt_3d_logic_ffi_static_cast_Qt3DCore_QAbstractAspect_ptr(
                self as *const crate::QLogicAspect as *mut crate::QLogicAspect,
            )
        };
        unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
    }
}

impl ::std::ops::DerefMut for crate::QLogicAspect {
    /// Calls C++ function: <span style='color: green;'>```Qt3DCore::QAbstractAspect* static_cast<Qt3DCore::QAbstractAspect*>(Qt3DLogic::QLogicAspect* ptr)```</span>.
    fn deref_mut(&mut self) -> &mut ::qt_3d_core::QAbstractAspect {
        let ffi_result = unsafe {
            crate::__ffi::ctr_qt_3d_logic_ffi_static_cast_Qt3DCore_QAbstractAspect_ptr(
                self as *mut crate::QLogicAspect,
            )
        };
        unsafe { ffi_result.as_mut() }.expect("Attempted to convert null pointer to reference")
    }
}

impl ::cpp_utils::DynamicCast<crate::QLogicAspect> for ::qt_3d_core::QAbstractAspect {
    /// Calls C++ function: <span style='color: green;'>```Qt3DLogic::QLogicAspect* dynamic_cast<Qt3DLogic::QLogicAspect*>(Qt3DCore::QAbstractAspect* ptr)```</span>.
    unsafe fn dynamic_cast(
        ptr: ::cpp_utils::Ptr<::qt_3d_core::QAbstractAspect>,
    ) -> ::cpp_utils::Ptr<crate::QLogicAspect> {
        let ffi_result = crate::__ffi::ctr_qt_3d_logic_ffi_dynamic_cast_Qt3DLogic_QLogicAspect_ptr(
            ptr.as_raw_ptr() as *mut ::qt_3d_core::QAbstractAspect,
        );
        ::cpp_utils::Ptr::from_raw(ffi_result)
    }

    /// Calls C++ function: <span style='color: green;'>```Qt3DLogic::QLogicAspect* dynamic_cast<Qt3DLogic::QLogicAspect*>(Qt3DCore::QAbstractAspect* ptr)```</span>.
    unsafe fn dynamic_cast_mut(
        ptr: ::cpp_utils::MutPtr<::qt_3d_core::QAbstractAspect>,
    ) -> ::cpp_utils::MutPtr<crate::QLogicAspect> {
        let ffi_result = crate::__ffi::ctr_qt_3d_logic_ffi_dynamic_cast_Qt3DLogic_QLogicAspect_ptr(
            ptr.as_mut_raw_ptr(),
        );
        ::cpp_utils::MutPtr::from_raw(ffi_result)
    }
}

impl ::cpp_utils::StaticDowncast<crate::QLogicAspect> for ::qt_core::QObject {
    /// Calls C++ function: <span style='color: green;'>```Qt3DLogic::QLogicAspect* static_cast<Qt3DLogic::QLogicAspect*>(QObject* ptr)```</span>.
    unsafe fn static_downcast(
        ptr: ::cpp_utils::Ptr<::qt_core::QObject>,
    ) -> ::cpp_utils::Ptr<crate::QLogicAspect> {
        let ffi_result = crate::__ffi::ctr_qt_3d_logic_ffi_static_cast_Qt3DLogic_QLogicAspect_ptr1(
            ptr.as_raw_ptr() as *mut ::qt_core::QObject,
        );
        ::cpp_utils::Ptr::from_raw(ffi_result)
    }

    /// Calls C++ function: <span style='color: green;'>```Qt3DLogic::QLogicAspect* static_cast<Qt3DLogic::QLogicAspect*>(QObject* ptr)```</span>.
    unsafe fn static_downcast_mut(
        ptr: ::cpp_utils::MutPtr<::qt_core::QObject>,
    ) -> ::cpp_utils::MutPtr<crate::QLogicAspect> {
        let ffi_result = crate::__ffi::ctr_qt_3d_logic_ffi_static_cast_Qt3DLogic_QLogicAspect_ptr1(
            ptr.as_mut_raw_ptr(),
        );
        ::cpp_utils::MutPtr::from_raw(ffi_result)
    }
}

impl ::cpp_utils::StaticUpcast<::qt_core::QObject> for crate::QLogicAspect {
    /// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(Qt3DLogic::QLogicAspect* ptr)```</span>.
    unsafe fn static_upcast(
        ptr: ::cpp_utils::Ptr<crate::QLogicAspect>,
    ) -> ::cpp_utils::Ptr<::qt_core::QObject> {
        let ffi_result = crate::__ffi::ctr_qt_3d_logic_ffi_static_cast_QObject_ptr1(
            ptr.as_raw_ptr() as *mut crate::QLogicAspect,
        );
        ::cpp_utils::Ptr::from_raw(ffi_result)
    }

    /// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(Qt3DLogic::QLogicAspect* ptr)```</span>.
    unsafe fn static_upcast_mut(
        ptr: ::cpp_utils::MutPtr<crate::QLogicAspect>,
    ) -> ::cpp_utils::MutPtr<::qt_core::QObject> {
        let ffi_result =
            crate::__ffi::ctr_qt_3d_logic_ffi_static_cast_QObject_ptr1(ptr.as_mut_raw_ptr());
        ::cpp_utils::MutPtr::from_raw(ffi_result)
    }
}

impl ::cpp_utils::DynamicCast<crate::QLogicAspect> for ::qt_core::QObject {
    /// Calls C++ function: <span style='color: green;'>```Qt3DLogic::QLogicAspect* dynamic_cast<Qt3DLogic::QLogicAspect*>(QObject* ptr)```</span>.
    unsafe fn dynamic_cast(
        ptr: ::cpp_utils::Ptr<::qt_core::QObject>,
    ) -> ::cpp_utils::Ptr<crate::QLogicAspect> {
        let ffi_result = crate::__ffi::ctr_qt_3d_logic_ffi_dynamic_cast_Qt3DLogic_QLogicAspect_ptr1(
            ptr.as_raw_ptr() as *mut ::qt_core::QObject,
        );
        ::cpp_utils::Ptr::from_raw(ffi_result)
    }

    /// Calls C++ function: <span style='color: green;'>```Qt3DLogic::QLogicAspect* dynamic_cast<Qt3DLogic::QLogicAspect*>(QObject* ptr)```</span>.
    unsafe fn dynamic_cast_mut(
        ptr: ::cpp_utils::MutPtr<::qt_core::QObject>,
    ) -> ::cpp_utils::MutPtr<crate::QLogicAspect> {
        let ffi_result = crate::__ffi::ctr_qt_3d_logic_ffi_dynamic_cast_Qt3DLogic_QLogicAspect_ptr1(
            ptr.as_mut_raw_ptr(),
        );
        ::cpp_utils::MutPtr::from_raw(ffi_result)
    }
}