#![cfg_attr(feature = "ritual_rustdoc_nightly", feature(doc_cfg))]
//! 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 mod ops;
pub use ::cpp_core;
pub use ::qt_core;
pub use ::qt_gui;
/// <p>Uniquely identifies a <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html">QNode</a></p>
///
/// C++ class: <span style='color: green;'>```Qt3DCore::QNodeId```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qnodeid.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Uniquely identifies a <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html">QNode</a></p></div>
#[repr(C)]
pub struct QNodeId {
_unused: u8,
}
impl QNodeId {
/// <p>Uniquely identifies a <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html">QNode</a></p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNodeId& Qt3DCore::QNodeId::operator=(const Qt3DCore::QNodeId& other)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qnodeid.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Uniquely identifies a <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html">QNode</a></p></div>
#[inline(always)]
pub unsafe fn copy_from(
&self,
other: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QNodeId>>,
) -> ::cpp_core::Ref<crate::QNodeId> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QNodeId_operator_2(
self as *const crate::QNodeId as *mut crate::QNodeId,
::cpp_core::CastInto::<::cpp_core::Ref<crate::QNodeId>>::cast_into(other)
.as_raw_ptr(),
)
};
::cpp_core::Ref::from_raw(ffi_result).expect("attempted to construct a null Ref")
}
/// <p>Returns node id.</p>
///
/// Calls C++ function: <span style='color: green;'>```static Qt3DCore::QNodeId Qt3DCore::QNodeId::createId()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qnodeid.html#createId">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns node id.</p></div>
#[inline(always)]
pub unsafe fn create_id() -> ::cpp_core::CppBox<crate::QNodeId> {
let ffi_result = { crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QNodeId_createId() };
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Returns TODO</p>
///
/// Calls C++ function: <span style='color: green;'>```quint64 Qt3DCore::QNodeId::id() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qnodeid.html#id">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns TODO</p></div>
#[inline(always)]
pub unsafe fn id(&self) -> u64 {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QNodeId_id(self as *const crate::QNodeId)
}
/// <p>Returns TODO</p>
///
/// Calls C++ function: <span style='color: green;'>```bool Qt3DCore::QNodeId::isNull() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qnodeid.html#isNull">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns TODO</p></div>
#[inline(always)]
pub unsafe fn is_null(&self) -> bool {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QNodeId_isNull(self as *const crate::QNodeId)
}
/// <p>Default constructs an instance of QNodeId.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DCore::QNodeId::QNodeId()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qnodeid.html#QNodeId">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Default constructs an instance of QNodeId.</p></div>
#[inline(always)]
pub unsafe fn new() -> ::cpp_core::CppBox<crate::QNodeId> {
let ffi_result = { crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QNodeId_QNodeId() };
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Uniquely identifies a <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html">QNode</a></p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DCore::QNodeId::QNodeId(const Qt3DCore::QNodeId& other)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qnodeid.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Uniquely identifies a <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html">QNode</a></p></div>
#[inline(always)]
pub unsafe fn new_copy(
other: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QNodeId>>,
) -> ::cpp_core::CppBox<crate::QNodeId> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QNodeId_QNodeId1(
::cpp_core::CastInto::<::cpp_core::Ref<crate::QNodeId>>::cast_into(other)
.as_raw_ptr(),
)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>TODO</p>
///
/// Calls C++ function: <span style='color: green;'>```bool Qt3DCore::QNodeId::operator bool() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qnodeid.html#operator-bool">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>TODO</p></div>
#[inline(always)]
pub unsafe fn to_bool(&self) -> bool {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QNodeId_operator_bool(
self as *const crate::QNodeId,
)
}
}
/// <p><a href="http://doc.qt.io/qt-5/qt3dcore-qabstractaspect.html">QAbstractAspect</a> is the base class for aspects that provide a vertical slice of behavior.</p>
///
/// C++ class: <span style='color: green;'>```Qt3DCore::QAbstractAspect```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qabstractaspect.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p><a href="http://doc.qt.io/qt-5/qt3dcore-qabstractaspect.html">QAbstractAspect</a> is the base class for aspects that provide a vertical slice of behavior.</p></div>
#[repr(C)]
pub struct QAbstractAspect {
_unused: u8,
}
impl QAbstractAspect {
/// Calls C++ function: <span style='color: green;'>```virtual const QMetaObject* Qt3DCore::QAbstractAspect::metaObject() const```</span>.
#[inline(always)]
pub unsafe fn meta_object(&self) -> ::cpp_core::Ptr<::qt_core::QMetaObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QAbstractAspect_metaObject(
self as *const crate::QAbstractAspect,
)
};
::cpp_core::Ptr::from_raw(ffi_result as *mut ::qt_core::QMetaObject)
}
/// <p>Constructs a new <a href="http://doc.qt.io/qt-5/qt3dcore-qabstractaspect.html">QAbstractAspect</a> with <i>parent</i></p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DCore::QAbstractAspect::QAbstractAspect(QObject* parent = …)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qabstractaspect.html#QAbstractAspect">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/qt3dcore-qabstractaspect.html">QAbstractAspect</a> with <i>parent</i></p></div>
#[inline(always)]
pub unsafe fn new_1a(
parent: impl ::cpp_core::CastInto<::cpp_core::Ptr<::qt_core::QObject>>,
) -> ::qt_core::QBox<crate::QAbstractAspect> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QAbstractAspect_QAbstractAspect(
::cpp_core::CastInto::<::cpp_core::Ptr<::qt_core::QObject>>::cast_into(parent)
.as_raw_ptr() as *mut ::qt_core::QObject,
)
};
::qt_core::QBox::from_raw(ffi_result)
}
/// <p><a href="http://doc.qt.io/qt-5/qt3dcore-qabstractaspect.html">QAbstractAspect</a> is the base class for aspects that provide a vertical slice of behavior.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DCore::QAbstractAspect::QAbstractAspect()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qabstractaspect.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p><a href="http://doc.qt.io/qt-5/qt3dcore-qabstractaspect.html">QAbstractAspect</a> is the base class for aspects that provide a vertical slice of behavior.</p></div>
#[inline(always)]
pub unsafe fn new_0a() -> ::qt_core::QBox<crate::QAbstractAspect> {
let ffi_result =
{ crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QAbstractAspect_QAbstractAspect1() };
::qt_core::QBox::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```virtual int Qt3DCore::QAbstractAspect::qt_metacall(QMetaObject::Call arg1, int arg2, void** arg3)```</span>.
#[inline(always)]
pub unsafe fn qt_metacall(
&self,
arg1: ::qt_core::q_meta_object::Call,
arg2: ::std::os::raw::c_int,
arg3: *mut *mut ::std::ffi::c_void,
) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QAbstractAspect_qt_metacall(
self as *const crate::QAbstractAspect as *mut crate::QAbstractAspect,
arg1,
arg2,
arg3,
)
}
/// Calls C++ function: <span style='color: green;'>```virtual void* Qt3DCore::QAbstractAspect::qt_metacast(const char* arg1)```</span>.
#[inline(always)]
pub unsafe fn qt_metacast(
&self,
arg1: *const ::std::os::raw::c_char,
) -> *mut ::std::ffi::c_void {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QAbstractAspect_qt_metacast(
self as *const crate::QAbstractAspect as *mut crate::QAbstractAspect,
arg1,
)
}
/// Returns a reference to the <span style='color: green;'>```staticMetaObject```</span> field.
#[inline(always)]
pub unsafe fn static_meta_object() -> ::cpp_core::Ref<::qt_core::QMetaObject> {
let ffi_result =
{ crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QAbstractAspect_staticMetaObject() };
::cpp_core::Ref::from_raw(ffi_result as *mut ::qt_core::QMetaObject)
.expect("attempted to construct a null Ref")
}
/// Calls C++ function: <span style='color: green;'>```static QString Qt3DCore::QAbstractAspect::tr(const char* s, const char* c, int n)```</span>.
#[inline(always)]
pub unsafe fn tr(
s: *const ::std::os::raw::c_char,
c: *const ::std::os::raw::c_char,
n: ::std::os::raw::c_int,
) -> ::cpp_core::CppBox<::qt_core::QString> {
let ffi_result = { crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QAbstractAspect_tr(s, c, n) };
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// Calls C++ function: <span style='color: green;'>```static QString Qt3DCore::QAbstractAspect::trUtf8(const char* s, const char* c, int n)```</span>.
#[inline(always)]
pub unsafe fn tr_utf8(
s: *const ::std::os::raw::c_char,
c: *const ::std::os::raw::c_char,
n: ::std::os::raw::c_int,
) -> ::cpp_core::CppBox<::qt_core::QString> {
let ffi_result =
{ crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QAbstractAspect_trUtf8(s, c, n) };
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
}
pub mod q_aspect_engine {
//! C++ type: <span style='color: green;'>```Qt3DCore::QAspectEngine```</span>
/// C++ enum: <span style='color: green;'>```Qt3DCore::QAspectEngine::RunMode```</span>.
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
#[repr(transparent)]
pub struct RunMode(::std::os::raw::c_int);
impl From<::std::os::raw::c_int> for RunMode {
fn from(value: ::std::os::raw::c_int) -> Self {
RunMode(value)
}
}
impl From<RunMode> for ::std::os::raw::c_int {
fn from(value: RunMode) -> Self {
value.0
}
}
impl RunMode {
pub fn to_int(&self) -> ::std::os::raw::c_int {
self.0
}
}
impl RunMode {
/// C++ enum variant: <span style='color: green;'>```Manual = 0```</span>
#[allow(non_upper_case_globals)]
pub const Manual: crate::q_aspect_engine::RunMode = crate::q_aspect_engine::RunMode(0);
/// C++ enum variant: <span style='color: green;'>```Automatic = 1```</span>
#[allow(non_upper_case_globals)]
pub const Automatic: crate::q_aspect_engine::RunMode = crate::q_aspect_engine::RunMode(1);
}
}
/// <p>Responsible for handling all the <a href="http://doc.qt.io/qt-5/qt3dcore-qabstractaspect.html">QAbstractAspect</a> subclasses that have been registered with the scene.</p>
///
/// C++ class: <span style='color: green;'>```Qt3DCore::QAspectEngine```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qaspectengine.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Responsible for handling all the <a href="http://doc.qt.io/qt-5/qt3dcore-qabstractaspect.html">QAbstractAspect</a> subclasses that have been registered with the scene.</p>
/// <p>The Qt3D run loop is controlled by the Qt3DRender::QAspectEngine.</p>
/// <p><a href="http://doc.qt.io/qt-5/qt3dcore-qabstractaspect.html">Qt3DCore::QAbstractAspect</a> subclasses can be registered by calling Qt3DCore::QAspectEngine::registerAspect() which will take care of registering the aspect and in turn that will call Qt3DCore::QAbstractAspect::onRegistered();</p>
/// <p>The simulation loop is launched as soon as a root <a href="http://doc.qt.io/qt-5/qt3dcore-qentity.html">Qt3DCore::QEntity</a> is set on the <a href="http://doc.qt.io/qt-5/qt3dcore-qaspectengine.html">Qt3DCore::QAspectEngine</a>. This is followed by a call to onEngineStartup() on each aspect so that they can start their simulation work.</p>
/// <p>The simulation loop is stopped when the root entity is set to Qt3DCore::QEntityPtr(). This calls onEngineShutdown() on each aspect so that they can stop performing their simulation work.</p>
/// <p>Setting a new valid root entity would restart the simulation loop again.</p></div>
#[repr(C)]
pub struct QAspectEngine {
_unused: u8,
}
impl QAspectEngine {
/// <p>Returns the aspects owned by the aspect engine.</p>
///
/// Calls C++ function: <span style='color: green;'>```QVector<Qt3DCore::QAbstractAspect*> Qt3DCore::QAspectEngine::aspects() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qaspectengine.html#aspects">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the aspects owned by the aspect engine.</p></div>
#[inline(always)]
pub unsafe fn aspects(&self) -> ::cpp_core::CppBox<crate::QVectorOfQAbstractAspect> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QAspectEngine_aspects(
self as *const crate::QAspectEngine,
)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Executes the given <i>command</i> on aspect engine. Valid commands are:</p>
///
/// Calls C++ function: <span style='color: green;'>```QVariant Qt3DCore::QAspectEngine::executeCommand(const QString& command)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qaspectengine.html#executeCommand">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Executes the given <i>command</i> on aspect engine. Valid commands are:</p>
/// <ul>
/// <li>"list aspects"</li>
/// </ul>
/// <p>Returns the reply for the command.</p></div>
#[inline(always)]
pub unsafe fn execute_command(
&self,
command: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_core::QString>>,
) -> ::cpp_core::CppBox<::qt_core::QVariant> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QAspectEngine_executeCommand(
self as *const crate::QAspectEngine as *mut crate::QAspectEngine,
::cpp_core::CastInto::<::cpp_core::Ref<::qt_core::QString>>::cast_into(command)
.as_raw_ptr(),
)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// Calls C++ function: <span style='color: green;'>```virtual const QMetaObject* Qt3DCore::QAspectEngine::metaObject() const```</span>.
#[inline(always)]
pub unsafe fn meta_object(&self) -> ::cpp_core::Ptr<::qt_core::QMetaObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QAspectEngine_metaObject(
self as *const crate::QAspectEngine,
)
};
::cpp_core::Ptr::from_raw(ffi_result as *mut ::qt_core::QMetaObject)
}
/// <p>Constructs a new <a href="http://doc.qt.io/qt-5/qt3dcore-qaspectengine.html">QAspectEngine</a> with <i>parent</i>.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DCore::QAspectEngine::QAspectEngine(QObject* parent = …)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qaspectengine.html#QAspectEngine">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/qt3dcore-qaspectengine.html">QAspectEngine</a> with <i>parent</i>.</p></div>
#[inline(always)]
pub unsafe fn new_1a(
parent: impl ::cpp_core::CastInto<::cpp_core::Ptr<::qt_core::QObject>>,
) -> ::qt_core::QBox<crate::QAspectEngine> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QAspectEngine_QAspectEngine(
::cpp_core::CastInto::<::cpp_core::Ptr<::qt_core::QObject>>::cast_into(parent)
.as_raw_ptr() as *mut ::qt_core::QObject,
)
};
::qt_core::QBox::from_raw(ffi_result)
}
/// <p>Responsible for handling all the <a href="http://doc.qt.io/qt-5/qt3dcore-qabstractaspect.html">QAbstractAspect</a> subclasses that have been registered with the scene.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DCore::QAspectEngine::QAspectEngine()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qaspectengine.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Responsible for handling all the <a href="http://doc.qt.io/qt-5/qt3dcore-qabstractaspect.html">QAbstractAspect</a> subclasses that have been registered with the scene.</p>
/// <p>The Qt3D run loop is controlled by the Qt3DRender::QAspectEngine.</p>
/// <p><a href="http://doc.qt.io/qt-5/qt3dcore-qabstractaspect.html">Qt3DCore::QAbstractAspect</a> subclasses can be registered by calling Qt3DCore::QAspectEngine::registerAspect() which will take care of registering the aspect and in turn that will call Qt3DCore::QAbstractAspect::onRegistered();</p>
/// <p>The simulation loop is launched as soon as a root <a href="http://doc.qt.io/qt-5/qt3dcore-qentity.html">Qt3DCore::QEntity</a> is set on the <a href="http://doc.qt.io/qt-5/qt3dcore-qaspectengine.html">Qt3DCore::QAspectEngine</a>. This is followed by a call to onEngineStartup() on each aspect so that they can start their simulation work.</p>
/// <p>The simulation loop is stopped when the root entity is set to Qt3DCore::QEntityPtr(). This calls onEngineShutdown() on each aspect so that they can stop performing their simulation work.</p>
/// <p>Setting a new valid root entity would restart the simulation loop again.</p></div>
#[inline(always)]
pub unsafe fn new_0a() -> ::qt_core::QBox<crate::QAspectEngine> {
let ffi_result =
{ crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QAspectEngine_QAspectEngine1() };
::qt_core::QBox::from_raw(ffi_result)
}
/// <p>If using the manual run mode, this function executes the jobs for each aspect. It is blocking and won't return until all jobs have been completed.</p>
///
/// Calls C++ function: <span style='color: green;'>```void Qt3DCore::QAspectEngine::processFrame()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qaspectengine.html#processFrame">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>If using the manual run mode, this function executes the jobs for each aspect. It is blocking and won't return until all jobs have been completed.</p>
/// <p>If you are using the QRenderAspect,</p></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(cpp_lib_version = "5.14.0"))
)]
#[cfg(any(cpp_lib_version = "5.14.0", feature = "ritual_rustdoc"))]
pub unsafe fn process_frame(&self) {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QAspectEngine_processFrame(
self as *const crate::QAspectEngine as *mut crate::QAspectEngine,
)
}
/// Calls C++ function: <span style='color: green;'>```virtual int Qt3DCore::QAspectEngine::qt_metacall(QMetaObject::Call arg1, int arg2, void** arg3)```</span>.
#[inline(always)]
pub unsafe fn qt_metacall(
&self,
arg1: ::qt_core::q_meta_object::Call,
arg2: ::std::os::raw::c_int,
arg3: *mut *mut ::std::ffi::c_void,
) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QAspectEngine_qt_metacall(
self as *const crate::QAspectEngine as *mut crate::QAspectEngine,
arg1,
arg2,
arg3,
)
}
/// Calls C++ function: <span style='color: green;'>```virtual void* Qt3DCore::QAspectEngine::qt_metacast(const char* arg1)```</span>.
#[inline(always)]
pub unsafe fn qt_metacast(
&self,
arg1: *const ::std::os::raw::c_char,
) -> *mut ::std::ffi::c_void {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QAspectEngine_qt_metacast(
self as *const crate::QAspectEngine as *mut crate::QAspectEngine,
arg1,
)
}
/// <p>Registers a new <i>aspect</i> to the AspectManager. The <a href="http://doc.qt.io/qt-5/qt3dcore-qaspectengine.html">QAspectEngine</a> takes ownership of the aspect and will delete it when the aspect is unregistered.</p>
///
/// Calls C++ function: <span style='color: green;'>```void Qt3DCore::QAspectEngine::registerAspect(Qt3DCore::QAbstractAspect* aspect)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qaspectengine.html#registerAspect">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Registers a new <i>aspect</i> to the AspectManager. The <a href="http://doc.qt.io/qt-5/qt3dcore-qaspectengine.html">QAspectEngine</a> takes ownership of the aspect and will delete it when the aspect is unregistered.</p></div>
#[inline(always)]
pub unsafe fn register_aspect_q_abstract_aspect(
&self,
aspect: impl ::cpp_core::CastInto<::cpp_core::Ptr<crate::QAbstractAspect>>,
) {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QAspectEngine_registerAspect(
self as *const crate::QAspectEngine as *mut crate::QAspectEngine,
::cpp_core::CastInto::<::cpp_core::Ptr<crate::QAbstractAspect>>::cast_into(aspect)
.as_raw_ptr() as *mut crate::QAbstractAspect,
)
}
/// <p>Registers a new aspect to the AspectManager based on its <i>name</i> Uses the currently set aspect factory to create the actual aspect instance.</p>
///
/// Calls C++ function: <span style='color: green;'>```void Qt3DCore::QAspectEngine::registerAspect(const QString& name)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qaspectengine.html#registerAspect-1">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Registers a new aspect to the AspectManager based on its <i>name</i> Uses the currently set aspect factory to create the actual aspect instance.</p></div>
#[inline(always)]
pub unsafe fn register_aspect_q_string(
&self,
name: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_core::QString>>,
) {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QAspectEngine_registerAspect1(
self as *const crate::QAspectEngine as *mut crate::QAspectEngine,
::cpp_core::CastInto::<::cpp_core::Ref<::qt_core::QString>>::cast_into(name)
.as_raw_ptr(),
)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QAspectEngine::RunMode Qt3DCore::QAspectEngine::runMode() const```</span>.
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(cpp_lib_version = "5.14.0"))
)]
#[cfg(any(cpp_lib_version = "5.14.0", feature = "ritual_rustdoc"))]
pub unsafe fn run_mode(&self) -> crate::q_aspect_engine::RunMode {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QAspectEngine_runMode(
self as *const crate::QAspectEngine,
)
}
/// Calls C++ function: <span style='color: green;'>```void Qt3DCore::QAspectEngine::setRunMode(Qt3DCore::QAspectEngine::RunMode mode)```</span>.
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(cpp_lib_version = "5.14.0"))
)]
#[cfg(any(cpp_lib_version = "5.14.0", feature = "ritual_rustdoc"))]
pub unsafe fn set_run_mode(&self, mode: crate::q_aspect_engine::RunMode) {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QAspectEngine_setRunMode(
self as *const crate::QAspectEngine as *mut crate::QAspectEngine,
mode,
)
}
/// Returns a reference to the <span style='color: green;'>```staticMetaObject```</span> field.
#[inline(always)]
pub unsafe fn static_meta_object() -> ::cpp_core::Ref<::qt_core::QMetaObject> {
let ffi_result =
{ crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QAspectEngine_staticMetaObject() };
::cpp_core::Ref::from_raw(ffi_result as *mut ::qt_core::QMetaObject)
.expect("attempted to construct a null Ref")
}
/// Calls C++ function: <span style='color: green;'>```static QString Qt3DCore::QAspectEngine::tr(const char* s, const char* c, int n)```</span>.
#[inline(always)]
pub unsafe fn tr(
s: *const ::std::os::raw::c_char,
c: *const ::std::os::raw::c_char,
n: ::std::os::raw::c_int,
) -> ::cpp_core::CppBox<::qt_core::QString> {
let ffi_result = { crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QAspectEngine_tr(s, c, n) };
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// Calls C++ function: <span style='color: green;'>```static QString Qt3DCore::QAspectEngine::trUtf8(const char* s, const char* c, int n)```</span>.
#[inline(always)]
pub unsafe fn tr_utf8(
s: *const ::std::os::raw::c_char,
c: *const ::std::os::raw::c_char,
n: ::std::os::raw::c_int,
) -> ::cpp_core::CppBox<::qt_core::QString> {
let ffi_result =
{ crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QAspectEngine_trUtf8(s, c, n) };
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Unregisters and deletes the given <i>aspect</i>.</p>
///
/// Calls C++ function: <span style='color: green;'>```void Qt3DCore::QAspectEngine::unregisterAspect(Qt3DCore::QAbstractAspect* aspect)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qaspectengine.html#unregisterAspect">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Unregisters and deletes the given <i>aspect</i>.</p></div>
#[inline(always)]
pub unsafe fn unregister_aspect_q_abstract_aspect(
&self,
aspect: impl ::cpp_core::CastInto<::cpp_core::Ptr<crate::QAbstractAspect>>,
) {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QAspectEngine_unregisterAspect(
self as *const crate::QAspectEngine as *mut crate::QAspectEngine,
::cpp_core::CastInto::<::cpp_core::Ptr<crate::QAbstractAspect>>::cast_into(aspect)
.as_raw_ptr() as *mut crate::QAbstractAspect,
)
}
/// <p>Unregisters and deletes the aspect with the given <i>name</i>.</p>
///
/// Calls C++ function: <span style='color: green;'>```void Qt3DCore::QAspectEngine::unregisterAspect(const QString& name)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qaspectengine.html#unregisterAspect-1">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Unregisters and deletes the aspect with the given <i>name</i>.</p></div>
#[inline(always)]
pub unsafe fn unregister_aspect_q_string(
&self,
name: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_core::QString>>,
) {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QAspectEngine_unregisterAspect1(
self as *const crate::QAspectEngine as *mut crate::QAspectEngine,
::cpp_core::CastInto::<::cpp_core::Ref<::qt_core::QString>>::cast_into(name)
.as_raw_ptr(),
)
}
}
/// <p>The base class for jobs executed in an aspect</p>
///
/// C++ class: <span style='color: green;'>```Qt3DCore::QAspectJob```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qaspectjob.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>The base class for jobs executed in an aspect</p></div>
#[repr(C)]
pub struct QAspectJob {
_unused: u8,
}
impl QAspectJob {
/// <p>Executes job.</p>
///
/// Calls C++ function: <span style='color: green;'>```pure virtual void Qt3DCore::QAspectJob::run()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qaspectjob.html#run">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Executes job.</p></div>
#[inline(always)]
pub unsafe fn run(&self) {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QAspectJob_run(
self as *const crate::QAspectJob as *mut crate::QAspectJob,
)
}
}
/// <p>The types of change that can be sent and received by Qt3D's change notification system.</p>
///
/// C++ enum: <span style='color: green;'>```Qt3DCore::ChangeFlag```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qscenechange.html#ChangeFlag-enum">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>The types of change that can be sent and received by Qt3D's change notification system.</p>
///
/// <p>The ChangeFlags type is a typedef for <a href="http://doc.qt.io/qt-5/qflags.html">QFlags</a><ChangeFlag>. It stores an OR combination of ChangeFlag values.</p></div>
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
#[repr(transparent)]
pub struct ChangeFlag(::std::os::raw::c_int);
impl From<::std::os::raw::c_int> for ChangeFlag {
fn from(value: ::std::os::raw::c_int) -> Self {
ChangeFlag(value)
}
}
impl From<ChangeFlag> for ::std::os::raw::c_int {
fn from(value: ChangeFlag) -> Self {
value.0
}
}
impl ChangeFlag {
pub fn to_int(&self) -> ::std::os::raw::c_int {
self.0
}
}
impl ChangeFlag {
/// A new instance of a <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html">QNode</a> subclass has been created. (C++ enum variant: <span style='color: green;'>```NodeCreated = 1```</span>)
#[allow(non_upper_case_globals)]
pub const NodeCreated: crate::ChangeFlag = crate::ChangeFlag(1);
/// A <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html">QNode</a> has been deleted. (C++ enum variant: <span style='color: green;'>```NodeDeleted = 2```</span>)
#[allow(non_upper_case_globals)]
pub const NodeDeleted: crate::ChangeFlag = crate::ChangeFlag(2);
/// A <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html">QNode</a> property has been updated. (C++ enum variant: <span style='color: green;'>```PropertyUpdated = 4```</span>)
#[allow(non_upper_case_globals)]
pub const PropertyUpdated: crate::ChangeFlag = crate::ChangeFlag(4);
/// A <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html">QNode</a> has been added to the scene. (C++ enum variant: <span style='color: green;'>```PropertyValueAdded = 8```</span>)
#[allow(non_upper_case_globals)]
pub const PropertyValueAdded: crate::ChangeFlag = crate::ChangeFlag(8);
/// A <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html">QNode</a> has been removed from the scene. (C++ enum variant: <span style='color: green;'>```PropertyValueRemoved = 16```</span>)
#[allow(non_upper_case_globals)]
pub const PropertyValueRemoved: crate::ChangeFlag = crate::ChangeFlag(16);
/// A <a href="http://doc.qt.io/qt-5/qt3dcore-qcomponent.html">QComponent</a> has been added to a <a href="http://doc.qt.io/qt-5/qt3dcore-qentity.html">QEntity</a>. (C++ enum variant: <span style='color: green;'>```ComponentAdded = 32```</span>)
#[allow(non_upper_case_globals)]
pub const ComponentAdded: crate::ChangeFlag = crate::ChangeFlag(32);
/// A <a href="http://doc.qt.io/qt-5/qt3dcore-qcomponent.html">QComponent</a> has been removed from a <a href="http://doc.qt.io/qt-5/qt3dcore-qentity.html">QEntity</a>. (C++ enum variant: <span style='color: green;'>```ComponentRemoved = 64```</span>)
#[allow(non_upper_case_globals)]
pub const ComponentRemoved: crate::ChangeFlag = crate::ChangeFlag(64);
/// Allows an observer to monitor for any of the above changes. (C++ enum variant: <span style='color: green;'>```AllChanges = -1```</span>)
#[allow(non_upper_case_globals)]
pub const AllChanges: crate::ChangeFlag = crate::ChangeFlag(-1);
/// A <a href="http://doc.qt.io/qt-5/qt3dcore-qnodecommand.html">QNodeCommand</a> has been sent between a node and its backend. (C++ enum variant: <span style='color: green;'>```CommandRequested = 128```</span>)
#[allow(non_upper_case_globals)]
pub const CommandRequested: crate::ChangeFlag = crate::ChangeFlag(128);
/// A <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html">QNode</a> triggered a callback. (C++ enum variant: <span style='color: green;'>```CallbackTriggered = 256```</span>)
#[allow(non_upper_case_globals)]
pub const CallbackTriggered: crate::ChangeFlag = crate::ChangeFlag(256);
}
pub mod q_scene_change {
//! C++ type: <span style='color: green;'>```Qt3DCore::QSceneChange```</span>
/// C++ enum: <span style='color: green;'>```Qt3DCore::QSceneChange::DeliveryFlag```</span>.
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
#[repr(transparent)]
pub struct DeliveryFlag(::std::os::raw::c_int);
impl From<::std::os::raw::c_int> for DeliveryFlag {
fn from(value: ::std::os::raw::c_int) -> Self {
DeliveryFlag(value)
}
}
impl From<DeliveryFlag> for ::std::os::raw::c_int {
fn from(value: DeliveryFlag) -> Self {
value.0
}
}
impl DeliveryFlag {
pub fn to_int(&self) -> ::std::os::raw::c_int {
self.0
}
}
impl DeliveryFlag {
/// C++ enum variant: <span style='color: green;'>```BackendNodes = 1```</span>
#[allow(non_upper_case_globals)]
pub const BackendNodes: crate::q_scene_change::DeliveryFlag =
crate::q_scene_change::DeliveryFlag(1);
/// C++ enum variant: <span style='color: green;'>```Nodes = 16```</span>
#[allow(non_upper_case_globals)]
pub const Nodes: crate::q_scene_change::DeliveryFlag =
crate::q_scene_change::DeliveryFlag(16);
/// C++ enum variant: <span style='color: green;'>```DeliverToAll = 17```</span>
#[allow(non_upper_case_globals)]
pub const DeliverToAll: crate::q_scene_change::DeliveryFlag =
crate::q_scene_change::DeliveryFlag(17);
}
impl From<crate::q_scene_change::DeliveryFlag>
for ::qt_core::QFlags<crate::q_scene_change::DeliveryFlag>
{
fn from(value: crate::q_scene_change::DeliveryFlag) -> Self {
Self::from(value.to_int())
}
}
impl<T: Into<::qt_core::QFlags<crate::q_scene_change::DeliveryFlag>>> std::ops::BitOr<T>
for crate::q_scene_change::DeliveryFlag
{
type Output = ::qt_core::QFlags<crate::q_scene_change::DeliveryFlag>;
fn bitor(self, rhs: T) -> ::qt_core::QFlags<crate::q_scene_change::DeliveryFlag> {
Into::<::qt_core::QFlags<crate::q_scene_change::DeliveryFlag>>::into(self) | rhs
}
}
}
/// <p>The base class for changes that can be sent and received by Qt3D's change notification system</p>
///
/// C++ class: <span style='color: green;'>```Qt3DCore::QSceneChange```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qscenechange.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>The base class for changes that can be sent and received by Qt3D's change notification system</p></div>
#[repr(C)]
pub struct QSceneChange {
_unused: u8,
}
impl QSceneChange {
/// <p>Returns the set delivery flags</p>
///
/// Calls C++ function: <span style='color: green;'>```QFlags<Qt3DCore::QSceneChange::DeliveryFlag> Qt3DCore::QSceneChange::deliveryFlags() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qscenechange.html#deliveryFlags">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the set delivery flags</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qt3dcore-qscenechange.html#setDeliveryFlags">setDeliveryFlags</a>().</p></div>
#[inline(always)]
pub unsafe fn delivery_flags(&self) -> ::qt_core::QFlags<crate::q_scene_change::DeliveryFlag> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QSceneChange_deliveryFlags(
self as *const crate::QSceneChange,
)
};
::qt_core::QFlags::from(ffi_result)
}
/// <p>Set the Delivery flags of the change to <i>flags</i></p>
///
/// Calls C++ function: <span style='color: green;'>```void Qt3DCore::QSceneChange::setDeliveryFlags(QFlags<Qt3DCore::QSceneChange::DeliveryFlag> flags)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qscenechange.html#setDeliveryFlags">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Set the Delivery flags of the change to <i>flags</i></p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qt3dcore-qscenechange.html#deliveryFlags">deliveryFlags</a>().</p></div>
#[inline(always)]
pub unsafe fn set_delivery_flags(
&self,
flags: ::qt_core::QFlags<crate::q_scene_change::DeliveryFlag>,
) {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QSceneChange_setDeliveryFlags(
self as *const crate::QSceneChange as *mut crate::QSceneChange,
flags.to_int(),
)
}
/// <p>Returns scene change subject id.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNodeId Qt3DCore::QSceneChange::subjectId() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qscenechange.html#subjectId">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns scene change subject id.</p></div>
#[inline(always)]
pub unsafe fn subject_id(&self) -> ::cpp_core::CppBox<crate::QNodeId> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QSceneChange_subjectId(
self as *const crate::QSceneChange,
)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Returns scene change type.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::ChangeFlag Qt3DCore::QSceneChange::type() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qscenechange.html#type">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns scene change type.</p></div>
#[inline(always)]
pub unsafe fn type_(&self) -> crate::ChangeFlag {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QSceneChange_type(
self as *const crate::QSceneChange,
)
}
}
/// <p>The <a href="http://doc.qt.io/qt-5/qt3dcore-qnodecreatedchangebase.html">QNodeCreatedChangeBase</a> class is the base class for all <a href="http://doc.qt.io/qt-5/qt3dcore-qscenechange.html#ChangeFlag-enum">NodeCreated</a> <a href="http://doc.qt.io/qt-5/qt3dcore-qscenechange.html">QSceneChange</a> events</p>
///
/// C++ class: <span style='color: green;'>```Qt3DCore::QNodeCreatedChangeBase```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qnodecreatedchangebase.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>The <a href="http://doc.qt.io/qt-5/qt3dcore-qnodecreatedchangebase.html">QNodeCreatedChangeBase</a> class is the base class for all <a href="http://doc.qt.io/qt-5/qt3dcore-qscenechange.html#ChangeFlag-enum">NodeCreated</a> <a href="http://doc.qt.io/qt-5/qt3dcore-qscenechange.html">QSceneChange</a> events</p>
/// <p>The <a href="http://doc.qt.io/qt-5/qt3dcore-qnodecreatedchangebase.html">QNodeCreatedChangeBase</a> class is the base class for all <a href="http://doc.qt.io/qt-5/qt3dcore-qscenechange.html">QSceneChange</a> events that have the changeType() <a href="http://doc.qt.io/qt-5/qt3dcore-qscenechange.html#ChangeFlag-enum">NodeCreated</a>. You should not need to instantiate this class. Usually you should be using one of its subclasses such as <a href="http://doc.qt.io/qt-5/qt3dcore-qnodecreatedchange.html">QNodeCreatedChange</a>.</p>
/// <p>You can subclass this to create your own node update types for communication between your <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html">QNode</a> and <a href="http://doc.qt.io/qt-5/qt3dcore-qbackendnode.html">QBackendNode</a> subclasses when writing your own aspects.</p></div>
#[repr(C)]
pub struct QNodeCreatedChangeBase {
_unused: u8,
}
impl QNodeCreatedChangeBase {
/// <p>Returns node enabled.</p>
///
/// Calls C++ function: <span style='color: green;'>```bool Qt3DCore::QNodeCreatedChangeBase::isNodeEnabled() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qnodecreatedchangebase.html#isNodeEnabled">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns node enabled.</p></div>
#[inline(always)]
pub unsafe fn is_node_enabled(&self) -> bool {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QNodeCreatedChangeBase_isNodeEnabled(
self as *const crate::QNodeCreatedChangeBase,
)
}
/// <p>Returns metaobject.</p>
///
/// Calls C++ function: <span style='color: green;'>```const QMetaObject* Qt3DCore::QNodeCreatedChangeBase::metaObject() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qnodecreatedchangebase.html#metaObject">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns metaobject.</p></div>
#[inline(always)]
pub unsafe fn meta_object(&self) -> ::cpp_core::Ptr<::qt_core::QMetaObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QNodeCreatedChangeBase_metaObject(
self as *const crate::QNodeCreatedChangeBase,
)
};
::cpp_core::Ptr::from_raw(ffi_result as *mut ::qt_core::QMetaObject)
}
/// <p>Constructs a new <a href="http://doc.qt.io/qt-5/qt3dcore-qnodecreatedchangebase.html">QNodeCreatedChangeBase</a> with <i>node</i>.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DCore::QNodeCreatedChangeBase::QNodeCreatedChangeBase(const Qt3DCore::QNode* node)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qnodecreatedchangebase.html#QNodeCreatedChangeBase">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/qt3dcore-qnodecreatedchangebase.html">QNodeCreatedChangeBase</a> with <i>node</i>.</p></div>
#[inline(always)]
pub unsafe fn new(
node: impl ::cpp_core::CastInto<::cpp_core::Ptr<crate::QNode>>,
) -> ::cpp_core::CppBox<crate::QNodeCreatedChangeBase> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QNodeCreatedChangeBase_QNodeCreatedChangeBase(
::cpp_core::CastInto::<::cpp_core::Ptr<crate::QNode>>::cast_into(node).as_raw_ptr(),
)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Returns parent id.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNodeId Qt3DCore::QNodeCreatedChangeBase::parentId() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qnodecreatedchangebase.html#parentId">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns parent id.</p></div>
#[inline(always)]
pub unsafe fn parent_id(&self) -> ::cpp_core::CppBox<crate::QNodeId> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QNodeCreatedChangeBase_parentId(
self as *const crate::QNodeCreatedChangeBase,
)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
}
/// <p>Creates and maps backend nodes to their respective frontend nodes</p>
///
/// C++ class: <span style='color: green;'>```Qt3DCore::QBackendNodeMapper```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qbackendnodemapper.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Creates and maps backend nodes to their respective frontend nodes</p></div>
#[repr(C)]
pub struct QBackendNodeMapper {
_unused: u8,
}
impl QBackendNodeMapper {
/// <p>Creates and maps backend nodes to their respective frontend nodes</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QBackendNodeMapper& Qt3DCore::QBackendNodeMapper::operator=(const Qt3DCore::QBackendNodeMapper& other)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qbackendnodemapper.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Creates and maps backend nodes to their respective frontend nodes</p></div>
#[inline(always)]
pub unsafe fn copy_from(
&self,
other: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QBackendNodeMapper>>,
) -> ::cpp_core::Ref<crate::QBackendNodeMapper> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QBackendNodeMapper_operator_(
self as *const crate::QBackendNodeMapper as *mut crate::QBackendNodeMapper,
::cpp_core::CastInto::<::cpp_core::Ref<crate::QBackendNodeMapper>>::cast_into(
other,
)
.as_raw_ptr(),
)
};
::cpp_core::Ref::from_raw(ffi_result).expect("attempted to construct a null Ref")
}
/// <p>Destroys the backend node for the given node <i>id</i>.</p>
///
/// Calls C++ function: <span style='color: green;'>```pure virtual void Qt3DCore::QBackendNodeMapper::destroy(Qt3DCore::QNodeId id) const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qbackendnodemapper.html#destroy">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Destroys the backend node for the given node <i>id</i>.</p></div>
#[inline(always)]
pub unsafe fn destroy(&self, id: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QNodeId>>) {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QBackendNodeMapper_destroy(
self as *const crate::QBackendNodeMapper,
::cpp_core::CastInto::<::cpp_core::Ref<crate::QNodeId>>::cast_into(id).as_raw_ptr(),
)
}
/// <p>Returns backend node for the given node <i>id</i>.</p>
///
/// Calls C++ function: <span style='color: green;'>```pure virtual Qt3DCore::QBackendNode* Qt3DCore::QBackendNodeMapper::get(Qt3DCore::QNodeId id) const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qbackendnodemapper.html#get">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns backend node for the given node <i>id</i>.</p></div>
#[inline(always)]
pub unsafe fn get(
&self,
id: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QNodeId>>,
) -> ::cpp_core::Ptr<crate::QBackendNode> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QBackendNodeMapper_get(
self as *const crate::QBackendNodeMapper,
::cpp_core::CastInto::<::cpp_core::Ref<crate::QNodeId>>::cast_into(id).as_raw_ptr(),
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
pub mod q_backend_node {
//! C++ type: <span style='color: green;'>```Qt3DCore::QBackendNode```</span>
/// C++ enum: <span style='color: green;'>```Qt3DCore::QBackendNode::Mode```</span>.
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
#[repr(transparent)]
pub struct Mode(::std::os::raw::c_int);
impl From<::std::os::raw::c_int> for Mode {
fn from(value: ::std::os::raw::c_int) -> Self {
Mode(value)
}
}
impl From<Mode> for ::std::os::raw::c_int {
fn from(value: Mode) -> Self {
value.0
}
}
impl Mode {
pub fn to_int(&self) -> ::std::os::raw::c_int {
self.0
}
}
impl Mode {
/// C++ enum variant: <span style='color: green;'>```ReadOnly = 0```</span>
#[allow(non_upper_case_globals)]
pub const ReadOnly: crate::q_backend_node::Mode = crate::q_backend_node::Mode(0);
/// C++ enum variant: <span style='color: green;'>```ReadWrite = 1```</span>
#[allow(non_upper_case_globals)]
pub const ReadWrite: crate::q_backend_node::Mode = crate::q_backend_node::Mode(1);
}
}
/// <p>The base class for all Qt3D backend nodes</p>
///
/// C++ class: <span style='color: green;'>```Qt3DCore::QBackendNode```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qbackendnode.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>The base class for all Qt3D backend nodes</p></div>
#[repr(C)]
pub struct QBackendNode {
_unused: u8,
}
impl QBackendNode {
/// <p>Returns <code>true</code> if the backend node is enabled.</p>
///
/// Calls C++ function: <span style='color: green;'>```bool Qt3DCore::QBackendNode::isEnabled() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qbackendnode.html#isEnabled">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns <code>true</code> if the backend node is enabled.</p></div>
#[inline(always)]
pub unsafe fn is_enabled(&self) -> bool {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QBackendNode_isEnabled(
self as *const crate::QBackendNode,
)
}
/// <p>Returns the mode of the backend mode.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QBackendNode::Mode Qt3DCore::QBackendNode::mode() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qbackendnode.html#mode">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the mode of the backend mode.</p></div>
#[inline(always)]
pub unsafe fn mode(&self) -> crate::q_backend_node::Mode {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QBackendNode_mode(
self as *const crate::QBackendNode,
)
}
/// <p>Default constructs an instance of QBackendNode.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DCore::QBackendNode::QBackendNode(Qt3DCore::QBackendNode::Mode mode = …)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qbackendnode.html#QBackendNode">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Default constructs an instance of QBackendNode.</p></div>
#[inline(always)]
pub unsafe fn new_1a(
mode: crate::q_backend_node::Mode,
) -> ::cpp_core::CppBox<crate::QBackendNode> {
let ffi_result =
{ crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QBackendNode_QBackendNode(mode) };
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>The base class for all Qt3D backend nodes</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DCore::QBackendNode::QBackendNode()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qbackendnode.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>The base class for all Qt3D backend nodes</p></div>
#[inline(always)]
pub unsafe fn new_0a() -> ::cpp_core::CppBox<crate::QBackendNode> {
let ffi_result = { crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QBackendNode_QBackendNode1() };
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Returns the peer id of the backend node.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNodeId Qt3DCore::QBackendNode::peerId() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qbackendnode.html#peerId">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the peer id of the backend node.</p></div>
#[inline(always)]
pub unsafe fn peer_id(&self) -> ::cpp_core::CppBox<crate::QNodeId> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QBackendNode_peerId(
self as *const crate::QBackendNode,
)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Enables or disables the backend node by <i>enabled</i>.</p>
///
/// Calls C++ function: <span style='color: green;'>```void Qt3DCore::QBackendNode::setEnabled(bool enabled)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qbackendnode.html#setEnabled">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Enables or disables the backend node by <i>enabled</i>.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qt3dcore-qbackendnode.html#isEnabled">isEnabled</a>().</p></div>
#[inline(always)]
pub unsafe fn set_enabled(&self, enabled: bool) {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QBackendNode_setEnabled(
self as *const crate::QBackendNode as *mut crate::QBackendNode,
enabled,
)
}
}
pub mod q_node {
//! C++ type: <span style='color: green;'>```Qt3DCore::QNode```</span>
/// C++ enum: <span style='color: green;'>```Qt3DCore::QNode::PropertyTrackingMode```</span>.
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
#[repr(transparent)]
pub struct PropertyTrackingMode(::std::os::raw::c_int);
impl From<::std::os::raw::c_int> for PropertyTrackingMode {
fn from(value: ::std::os::raw::c_int) -> Self {
PropertyTrackingMode(value)
}
}
impl From<PropertyTrackingMode> for ::std::os::raw::c_int {
fn from(value: PropertyTrackingMode) -> Self {
value.0
}
}
impl PropertyTrackingMode {
pub fn to_int(&self) -> ::std::os::raw::c_int {
self.0
}
}
impl PropertyTrackingMode {
/// C++ enum variant: <span style='color: green;'>```TrackFinalValues = 0```</span>
#[allow(non_upper_case_globals)]
pub const TrackFinalValues: crate::q_node::PropertyTrackingMode =
crate::q_node::PropertyTrackingMode(0);
/// C++ enum variant: <span style='color: green;'>```DontTrackValues = 1```</span>
#[allow(non_upper_case_globals)]
pub const DontTrackValues: crate::q_node::PropertyTrackingMode =
crate::q_node::PropertyTrackingMode(1);
/// C++ enum variant: <span style='color: green;'>```TrackAllValues = 2```</span>
#[allow(non_upper_case_globals)]
pub const TrackAllValues: crate::q_node::PropertyTrackingMode =
crate::q_node::PropertyTrackingMode(2);
}
}
/// <p><a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html">QNode</a> is the base class of all Qt3D node classes used to build a Qt3D scene.</p>
///
/// C++ class: <span style='color: green;'>```Qt3DCore::QNode```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p><a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html">QNode</a> is the base class of all Qt3D node classes used to build a Qt3D scene.</p>
/// <p>The owernship of <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html">QNode</a> is determined by the <a href="http://doc.qt.io/qt-5/qobject.html">QObject</a> parent/child relationship between nodes. By itself, a <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html">QNode</a> has no visual appearance and no particular meaning, it is there as a way of building a node based tree structure.</p>
/// <p>The parent of a <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html">QNode</a> instance can only be another <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html">QNode</a> instance.</p>
/// <p>Each <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html">QNode</a> instance has a unique id that allows it to be recognizable from other instances.</p>
/// <p>When properties are defined on a <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html">QNode</a> subclass, their NOTIFY signal will automatically generate notifications that the Qt3D backend aspects will receive.</p></div>
#[repr(C)]
pub struct QNode {
_unused: u8,
}
impl QNode {
/// <p>Holds the immediate <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html">QNode</a> parent, or null if the node has no parent.</p>
///
/// Returns a built-in Qt slot `Qt3DCore::QNode::setParent` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html#parent-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the immediate <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html">QNode</a> parent, or null if the node has no parent.</p>
/// <p>Setting the parent will notify the backend aspects about current <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html">QNode</a> instance's parent change.</p>
/// <p><b>Note: </b>if <i>parent</i> happens to be null, this will actually notify that the current <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html">QNode</a> instance was removed from the scene.</p><p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QNode *</td><td class="memItemRight bottomAlign"><span class="name"><b>parentNode</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setParent</b></span>(QNode *<i>parent</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>parentChanged</b></span>(QObject *<i>parent</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub fn slot_set_parent(&self) -> ::qt_core::Receiver<(*mut crate::QNode,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw(self).expect("attempted to construct a null Ref"),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setParent(Qt3DCore::QNode *)\0"),
)
}
}
/// <p>Holds the <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html">QNode</a> enabled flag. By default a <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html">QNode</a> is always enabled.</p>
///
/// Returns a built-in Qt slot `Qt3DCore::QNode::setEnabled` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html#enabled-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html">QNode</a> enabled flag. By default a <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html">QNode</a> is always enabled.</p>
/// <p><b>Note: </b>the interpretation of what enabled means is aspect-dependent. Even if enabled is set to <code>false</code>, some aspects may still consider the node in some manner. This is documented on a class by class basis.</p><p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> bool </td><td class="memItemRight bottomAlign"><span class="name"><b>isEnabled</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setEnabled</b></span>(bool <i>isEnabled</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>enabledChanged</b></span>(bool <i>enabled</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub fn slot_set_enabled(&self) -> ::qt_core::Receiver<(bool,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw(self).expect("attempted to construct a null Ref"),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setEnabled(bool)\0"),
)
}
}
/// <p>Holds the default property tracking mode which determines whether a <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html">QNode</a> should be listening for property updates. This only applies to properties which haven't been overridden by a call to <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html#setPropertyTracking">setPropertyTracking</a>.</p>
///
/// Returns a built-in Qt slot `Qt3DCore::QNode::setDefaultPropertyTrackingMode` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html#defaultPropertyTrackingMode-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the default property tracking mode which determines whether a <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html">QNode</a> should be listening for property updates. This only applies to properties which haven't been overridden by a call to <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html#setPropertyTracking">setPropertyTracking</a>.</p>
/// <p>By default it is set to <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html#PropertyTrackingMode-enum">QNode::TrackFinalValues</a></p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> PropertyTrackingMode </td><td class="memItemRight bottomAlign"><span class="name"><b>defaultPropertyTrackingMode</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setDefaultPropertyTrackingMode</b></span>(PropertyTrackingMode <i>mode</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>defaultPropertyTrackingModeChanged</b></span>(PropertyTrackingMode <i>mode</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub fn slot_set_default_property_tracking_mode(
&self,
) -> ::qt_core::Receiver<(crate::q_node::PropertyTrackingMode,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw(self).expect("attempted to construct a null Ref"),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"1setDefaultPropertyTrackingMode(Qt3DCore::QNode::PropertyTrackingMode)\0",
),
)
}
}
/// <p>Holds the immediate <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html">QNode</a> parent, or null if the node has no parent.</p>
///
/// Returns a built-in Qt signal `Qt3DCore::QNode::parentChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html#parent-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the immediate <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html">QNode</a> parent, or null if the node has no parent.</p>
/// <p>Setting the parent will notify the backend aspects about current <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html">QNode</a> instance's parent change.</p>
/// <p><b>Note: </b>if <i>parent</i> happens to be null, this will actually notify that the current <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html">QNode</a> instance was removed from the scene.</p><p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QNode *</td><td class="memItemRight bottomAlign"><span class="name"><b>parentNode</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setParent</b></span>(QNode *<i>parent</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>parentChanged</b></span>(QObject *<i>parent</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub fn parent_changed(&self) -> ::qt_core::Signal<(*mut ::qt_core::QObject,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw(self).expect("attempted to construct a null Ref"),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2parentChanged(QObject *)\0"),
)
}
}
/// <p>Holds the <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html">QNode</a> enabled flag. By default a <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html">QNode</a> is always enabled.</p>
///
/// Returns a built-in Qt signal `Qt3DCore::QNode::enabledChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html#enabled-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html">QNode</a> enabled flag. By default a <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html">QNode</a> is always enabled.</p>
/// <p><b>Note: </b>the interpretation of what enabled means is aspect-dependent. Even if enabled is set to <code>false</code>, some aspects may still consider the node in some manner. This is documented on a class by class basis.</p><p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> bool </td><td class="memItemRight bottomAlign"><span class="name"><b>isEnabled</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setEnabled</b></span>(bool <i>isEnabled</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>enabledChanged</b></span>(bool <i>enabled</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub fn enabled_changed(&self) -> ::qt_core::Signal<(bool,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw(self).expect("attempted to construct a null Ref"),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2enabledChanged(bool)\0"),
)
}
}
/// <p>Holds the default property tracking mode which determines whether a <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html">QNode</a> should be listening for property updates. This only applies to properties which haven't been overridden by a call to <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html#setPropertyTracking">setPropertyTracking</a>.</p>
///
/// Returns a built-in Qt signal `Qt3DCore::QNode::defaultPropertyTrackingModeChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html#defaultPropertyTrackingMode-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the default property tracking mode which determines whether a <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html">QNode</a> should be listening for property updates. This only applies to properties which haven't been overridden by a call to <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html#setPropertyTracking">setPropertyTracking</a>.</p>
/// <p>By default it is set to <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html#PropertyTrackingMode-enum">QNode::TrackFinalValues</a></p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> PropertyTrackingMode </td><td class="memItemRight bottomAlign"><span class="name"><b>defaultPropertyTrackingMode</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setDefaultPropertyTrackingMode</b></span>(PropertyTrackingMode <i>mode</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>defaultPropertyTrackingModeChanged</b></span>(PropertyTrackingMode <i>mode</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub fn default_property_tracking_mode_changed(
&self,
) -> ::qt_core::Signal<(crate::q_node::PropertyTrackingMode,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw(self).expect("attempted to construct a null Ref"),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"2defaultPropertyTrackingModeChanged(Qt3DCore::QNode::PropertyTrackingMode)\0",
),
)
}
}
/// <p>emitted when the node is destroyed.</p>
///
/// Returns a built-in Qt signal `Qt3DCore::QNode::nodeDestroyed` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html#nodeDestroyed">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>emitted when the node is destroyed.</p></div>
#[inline(always)]
pub fn node_destroyed(&self) -> ::qt_core::Signal<()> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw(self).expect("attempted to construct a null Ref"),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2nodeDestroyed()\0"),
)
}
}
/// <p>If <i>block</i> is <code>true</code>, property change notifications sent by this object to aspects are blocked. If <i>block</i> is <code>false</code>, no such blocking will occur.</p>
///
/// Calls C++ function: <span style='color: green;'>```bool Qt3DCore::QNode::blockNotifications(bool block)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html#blockNotifications">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>If <i>block</i> is <code>true</code>, property change notifications sent by this object to aspects are blocked. If <i>block</i> is <code>false</code>, no such blocking will occur.</p>
/// <p>The return value is the previous value of <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html#notificationsBlocked">notificationsBlocked</a>().</p>
/// <p>Note that the other notification types will be sent even if the notifications for this object have been blocked.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html#notificationsBlocked">notificationsBlocked</a>().</p></div>
#[inline(always)]
pub unsafe fn block_notifications(&self, block: bool) -> bool {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QNode_blockNotifications(
self as *const crate::QNode as *mut crate::QNode,
block,
)
}
/// <p>Returns a list filled with the <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html">QNode</a> children of the current <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html">QNode</a> instance.</p>
///
/// Calls C++ function: <span style='color: green;'>```QVector<Qt3DCore::QNode*> Qt3DCore::QNode::childNodes() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html#childNodes">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns a list filled with the <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html">QNode</a> children of the current <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html">QNode</a> instance.</p></div>
#[inline(always)]
pub unsafe fn child_nodes(&self) -> ::cpp_core::CppBox<crate::QVectorOfQNode> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QNode_childNodes(self as *const crate::QNode)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Clears the tracking property called <i>propertyName</i>.</p>
///
/// Calls C++ function: <span style='color: green;'>```void Qt3DCore::QNode::clearPropertyTracking(const QString& propertyName)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html#clearPropertyTracking">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Clears the tracking property called <i>propertyName</i>.</p></div>
#[inline(always)]
pub unsafe fn clear_property_tracking(
&self,
property_name: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_core::QString>>,
) {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QNode_clearPropertyTracking(
self as *const crate::QNode as *mut crate::QNode,
::cpp_core::CastInto::<::cpp_core::Ref<::qt_core::QString>>::cast_into(property_name)
.as_raw_ptr(),
)
}
/// <p>Erases all values that have been saved by the property tracking.</p>
///
/// Calls C++ function: <span style='color: green;'>```void Qt3DCore::QNode::clearPropertyTrackings()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html#clearPropertyTrackings">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Erases all values that have been saved by the property tracking.</p></div>
#[inline(always)]
pub unsafe fn clear_property_trackings(&self) {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QNode_clearPropertyTrackings(
self as *const crate::QNode as *mut crate::QNode,
)
}
/// <p>Holds the default property tracking mode which determines whether a <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html">QNode</a> should be listening for property updates. This only applies to properties which haven't been overridden by a call to <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html#setPropertyTracking">setPropertyTracking</a>.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode::PropertyTrackingMode Qt3DCore::QNode::defaultPropertyTrackingMode() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html#defaultPropertyTrackingMode-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the default property tracking mode which determines whether a <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html">QNode</a> should be listening for property updates. This only applies to properties which haven't been overridden by a call to <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html#setPropertyTracking">setPropertyTracking</a>.</p>
/// <p>By default it is set to <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html#PropertyTrackingMode-enum">QNode::TrackFinalValues</a></p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> PropertyTrackingMode </td><td class="memItemRight bottomAlign"><span class="name"><b>defaultPropertyTrackingMode</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setDefaultPropertyTrackingMode</b></span>(PropertyTrackingMode <i>mode</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>defaultPropertyTrackingModeChanged</b></span>(PropertyTrackingMode <i>mode</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub unsafe fn default_property_tracking_mode(&self) -> crate::q_node::PropertyTrackingMode {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QNode_defaultPropertyTrackingMode(
self as *const crate::QNode,
)
}
/// <p>Returns the id that uniquely identifies the <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html">QNode</a> instance.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNodeId Qt3DCore::QNode::id() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html#id">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the id that uniquely identifies the <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html">QNode</a> instance.</p></div>
#[inline(always)]
pub unsafe fn id(&self) -> ::cpp_core::CppBox<crate::QNodeId> {
let ffi_result =
{ crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QNode_id(self as *const crate::QNode) };
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Holds the <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html">QNode</a> enabled flag. By default a <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html">QNode</a> is always enabled.</p>
///
/// Calls C++ function: <span style='color: green;'>```bool Qt3DCore::QNode::isEnabled() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html#enabled-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html">QNode</a> enabled flag. By default a <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html">QNode</a> is always enabled.</p>
/// <p><b>Note: </b>the interpretation of what enabled means is aspect-dependent. Even if enabled is set to <code>false</code>, some aspects may still consider the node in some manner. This is documented on a class by class basis.</p><p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> bool </td><td class="memItemRight bottomAlign"><span class="name"><b>isEnabled</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setEnabled</b></span>(bool <i>isEnabled</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>enabledChanged</b></span>(bool <i>enabled</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub unsafe fn is_enabled(&self) -> bool {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QNode_isEnabled(self as *const crate::QNode)
}
/// Calls C++ function: <span style='color: green;'>```virtual const QMetaObject* Qt3DCore::QNode::metaObject() const```</span>.
#[inline(always)]
pub unsafe fn meta_object(&self) -> ::cpp_core::Ptr<::qt_core::QMetaObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QNode_metaObject(self as *const crate::QNode)
};
::cpp_core::Ptr::from_raw(ffi_result as *mut ::qt_core::QMetaObject)
}
/// <p>Creates a new <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html">QNode</a> instance with parent <i>parent</i>.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DCore::QNode::QNode(Qt3DCore::QNode* parent = …)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html#QNode">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Creates a new <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html">QNode</a> instance with parent <i>parent</i>.</p>
/// <p><b>Note: </b>The backend aspects will be notified that a <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html">QNode</a> instance is part of the scene only if it has a parent; unless this is the root node of the Qt3D scene.</p><p><b>See also </b><a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html#parent-prop">setParent</a>().</p></div>
#[inline(always)]
pub unsafe fn new_1a(
parent: impl ::cpp_core::CastInto<::cpp_core::Ptr<crate::QNode>>,
) -> ::qt_core::QBox<crate::QNode> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QNode_QNode(
::cpp_core::CastInto::<::cpp_core::Ptr<crate::QNode>>::cast_into(parent)
.as_raw_ptr() as *mut crate::QNode,
)
};
::qt_core::QBox::from_raw(ffi_result)
}
/// <p><a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html">QNode</a> is the base class of all Qt3D node classes used to build a Qt3D scene.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DCore::QNode::QNode()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p><a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html">QNode</a> is the base class of all Qt3D node classes used to build a Qt3D scene.</p>
/// <p>The owernship of <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html">QNode</a> is determined by the <a href="http://doc.qt.io/qt-5/qobject.html">QObject</a> parent/child relationship between nodes. By itself, a <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html">QNode</a> has no visual appearance and no particular meaning, it is there as a way of building a node based tree structure.</p>
/// <p>The parent of a <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html">QNode</a> instance can only be another <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html">QNode</a> instance.</p>
/// <p>Each <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html">QNode</a> instance has a unique id that allows it to be recognizable from other instances.</p>
/// <p>When properties are defined on a <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html">QNode</a> subclass, their NOTIFY signal will automatically generate notifications that the Qt3D backend aspects will receive.</p></div>
#[inline(always)]
pub unsafe fn new_0a() -> ::qt_core::QBox<crate::QNode> {
let ffi_result = { crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QNode_QNode1() };
::qt_core::QBox::from_raw(ffi_result)
}
/// <p>Returns <code>true</code> if aspect notifications are blocked; otherwise returns <code>false</code>. By default, notifications are <i>not</i> blocked.</p>
///
/// Calls C++ function: <span style='color: green;'>```bool Qt3DCore::QNode::notificationsBlocked() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html#notificationsBlocked">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns <code>true</code> if aspect notifications are blocked; otherwise returns <code>false</code>. By default, notifications are <i>not</i> blocked.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html#blockNotifications">blockNotifications</a>().</p></div>
#[inline(always)]
pub unsafe fn notifications_blocked(&self) -> bool {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QNode_notificationsBlocked(
self as *const crate::QNode,
)
}
/// <p>Holds the immediate <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html">QNode</a> parent, or null if the node has no parent.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* Qt3DCore::QNode::parentNode() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html#parent-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the immediate <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html">QNode</a> parent, or null if the node has no parent.</p>
/// <p>Setting the parent will notify the backend aspects about current <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html">QNode</a> instance's parent change.</p>
/// <p><b>Note: </b>if <i>parent</i> happens to be null, this will actually notify that the current <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html">QNode</a> instance was removed from the scene.</p><p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QNode *</td><td class="memItemRight bottomAlign"><span class="name"><b>parentNode</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setParent</b></span>(QNode *<i>parent</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>parentChanged</b></span>(QObject *<i>parent</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub unsafe fn parent_node(&self) -> ::qt_core::QPtr<crate::QNode> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QNode_parentNode(self as *const crate::QNode)
};
::qt_core::QPtr::from_raw(ffi_result)
}
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html#setPropertyTracking">setPropertyTracking</a>().</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode::PropertyTrackingMode Qt3DCore::QNode::propertyTracking(const QString& propertyName) const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html#propertyTracking">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p><b>See also </b><a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html#setPropertyTracking">setPropertyTracking</a>().</p></div>
#[inline(always)]
pub unsafe fn property_tracking(
&self,
property_name: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_core::QString>>,
) -> crate::q_node::PropertyTrackingMode {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QNode_propertyTracking(
self as *const crate::QNode,
::cpp_core::CastInto::<::cpp_core::Ref<::qt_core::QString>>::cast_into(property_name)
.as_raw_ptr(),
)
}
/// Calls C++ function: <span style='color: green;'>```virtual int Qt3DCore::QNode::qt_metacall(QMetaObject::Call arg1, int arg2, void** arg3)```</span>.
#[inline(always)]
pub unsafe fn qt_metacall(
&self,
arg1: ::qt_core::q_meta_object::Call,
arg2: ::std::os::raw::c_int,
arg3: *mut *mut ::std::ffi::c_void,
) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QNode_qt_metacall(
self as *const crate::QNode as *mut crate::QNode,
arg1,
arg2,
arg3,
)
}
/// Calls C++ function: <span style='color: green;'>```virtual void* Qt3DCore::QNode::qt_metacast(const char* arg1)```</span>.
#[inline(always)]
pub unsafe fn qt_metacast(
&self,
arg1: *const ::std::os::raw::c_char,
) -> *mut ::std::ffi::c_void {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QNode_qt_metacast(
self as *const crate::QNode as *mut crate::QNode,
arg1,
)
}
/// <p>Sends a command messages to the backend node</p>
///
/// Calls C++ function: <span style='color: green;'>```unsigned long long Qt3DCore::QNode::sendCommand(const QString& name, const QVariant& data = …, unsigned long long replyTo = …)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html#sendCommand">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Sends a command messages to the backend node</p>
/// <p>Creates a <a href="http://doc.qt.io/qt-5/qt3dcore-qnodecommand.html">QNodeCommand</a> message and dispatches it to the backend node. The command is given and a <i>name</i> and some <i>data</i> which can be used in the backend node to performe various operations. This returns a CommandId which can be used to identify the initial command when receiving a message in reply. If the command message is to be sent in reply to another command, <i>replyTo</i> contains the id of that command.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qt3dcore-qnodecommand.html">QNodeCommand</a> and <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html#sendReply">QNode::sendReply</a>.</p></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn send_command_3a(
&self,
name: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_core::QString>>,
data: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_core::QVariant>>,
reply_to: ::std::os::raw::c_ulonglong,
) -> ::std::os::raw::c_ulonglong {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QNode_sendCommand(
self as *const crate::QNode as *mut crate::QNode,
::cpp_core::CastInto::<::cpp_core::Ref<::qt_core::QString>>::cast_into(name)
.as_raw_ptr(),
::cpp_core::CastInto::<::cpp_core::Ref<::qt_core::QVariant>>::cast_into(data)
.as_raw_ptr(),
reply_to,
)
}
/// <p>Sends a command messages to the backend node</p>
///
/// Calls C++ function: <span style='color: green;'>```unsigned long long Qt3DCore::QNode::sendCommand(const QString& name, const QVariant& data = …)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html#sendCommand">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Sends a command messages to the backend node</p>
/// <p>Creates a <a href="http://doc.qt.io/qt-5/qt3dcore-qnodecommand.html">QNodeCommand</a> message and dispatches it to the backend node. The command is given and a <i>name</i> and some <i>data</i> which can be used in the backend node to performe various operations. This returns a CommandId which can be used to identify the initial command when receiving a message in reply. If the command message is to be sent in reply to another command, <i>replyTo</i> contains the id of that command.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qt3dcore-qnodecommand.html">QNodeCommand</a> and <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html#sendReply">QNode::sendReply</a>.</p></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn send_command_2a(
&self,
name: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_core::QString>>,
data: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_core::QVariant>>,
) -> ::std::os::raw::c_ulonglong {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QNode_sendCommand1(
self as *const crate::QNode as *mut crate::QNode,
::cpp_core::CastInto::<::cpp_core::Ref<::qt_core::QString>>::cast_into(name)
.as_raw_ptr(),
::cpp_core::CastInto::<::cpp_core::Ref<::qt_core::QVariant>>::cast_into(data)
.as_raw_ptr(),
)
}
/// <p>Sends a command messages to the backend node</p>
///
/// Calls C++ function: <span style='color: green;'>```unsigned long long Qt3DCore::QNode::sendCommand(const QString& name)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html#sendCommand">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Sends a command messages to the backend node</p>
/// <p>Creates a <a href="http://doc.qt.io/qt-5/qt3dcore-qnodecommand.html">QNodeCommand</a> message and dispatches it to the backend node. The command is given and a <i>name</i> and some <i>data</i> which can be used in the backend node to performe various operations. This returns a CommandId which can be used to identify the initial command when receiving a message in reply. If the command message is to be sent in reply to another command, <i>replyTo</i> contains the id of that command.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qt3dcore-qnodecommand.html">QNodeCommand</a> and <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html#sendReply">QNode::sendReply</a>.</p></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn send_command_1a(
&self,
name: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_core::QString>>,
) -> ::std::os::raw::c_ulonglong {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QNode_sendCommand2(
self as *const crate::QNode as *mut crate::QNode,
::cpp_core::CastInto::<::cpp_core::Ref<::qt_core::QString>>::cast_into(name)
.as_raw_ptr(),
)
}
/// <p>Holds the default property tracking mode which determines whether a <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html">QNode</a> should be listening for property updates. This only applies to properties which haven't been overridden by a call to <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html#setPropertyTracking">setPropertyTracking</a>.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DCore::QNode::setDefaultPropertyTrackingMode(Qt3DCore::QNode::PropertyTrackingMode mode)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html#defaultPropertyTrackingMode-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the default property tracking mode which determines whether a <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html">QNode</a> should be listening for property updates. This only applies to properties which haven't been overridden by a call to <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html#setPropertyTracking">setPropertyTracking</a>.</p>
/// <p>By default it is set to <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html#PropertyTrackingMode-enum">QNode::TrackFinalValues</a></p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> PropertyTrackingMode </td><td class="memItemRight bottomAlign"><span class="name"><b>defaultPropertyTrackingMode</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setDefaultPropertyTrackingMode</b></span>(PropertyTrackingMode <i>mode</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>defaultPropertyTrackingModeChanged</b></span>(PropertyTrackingMode <i>mode</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub unsafe fn set_default_property_tracking_mode(
&self,
mode: crate::q_node::PropertyTrackingMode,
) {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QNode_setDefaultPropertyTrackingMode(
self as *const crate::QNode as *mut crate::QNode,
mode,
)
}
/// <p>Holds the <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html">QNode</a> enabled flag. By default a <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html">QNode</a> is always enabled.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DCore::QNode::setEnabled(bool isEnabled)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html#enabled-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html">QNode</a> enabled flag. By default a <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html">QNode</a> is always enabled.</p>
/// <p><b>Note: </b>the interpretation of what enabled means is aspect-dependent. Even if enabled is set to <code>false</code>, some aspects may still consider the node in some manner. This is documented on a class by class basis.</p><p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> bool </td><td class="memItemRight bottomAlign"><span class="name"><b>isEnabled</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setEnabled</b></span>(bool <i>isEnabled</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>enabledChanged</b></span>(bool <i>enabled</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub unsafe fn set_enabled(&self, is_enabled: bool) {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QNode_setEnabled(
self as *const crate::QNode as *mut crate::QNode,
is_enabled,
)
}
/// <p>Holds the immediate <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html">QNode</a> parent, or null if the node has no parent.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DCore::QNode::setParent(Qt3DCore::QNode* parent)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html#parent-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the immediate <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html">QNode</a> parent, or null if the node has no parent.</p>
/// <p>Setting the parent will notify the backend aspects about current <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html">QNode</a> instance's parent change.</p>
/// <p><b>Note: </b>if <i>parent</i> happens to be null, this will actually notify that the current <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html">QNode</a> instance was removed from the scene.</p><p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QNode *</td><td class="memItemRight bottomAlign"><span class="name"><b>parentNode</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setParent</b></span>(QNode *<i>parent</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>parentChanged</b></span>(QObject *<i>parent</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub unsafe fn set_parent(
&self,
parent: impl ::cpp_core::CastInto<::cpp_core::Ptr<crate::QNode>>,
) {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QNode_setParent(
self as *const crate::QNode as *mut crate::QNode,
::cpp_core::CastInto::<::cpp_core::Ptr<crate::QNode>>::cast_into(parent).as_raw_ptr()
as *mut crate::QNode,
)
}
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html#propertyTracking">propertyTracking</a>().</p>
///
/// Calls C++ function: <span style='color: green;'>```void Qt3DCore::QNode::setPropertyTracking(const QString& propertyName, Qt3DCore::QNode::PropertyTrackingMode trackMode)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html#setPropertyTracking">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p><b>See also </b><a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html#propertyTracking">propertyTracking</a>().</p></div>
#[inline(always)]
pub unsafe fn set_property_tracking(
&self,
property_name: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_core::QString>>,
track_mode: crate::q_node::PropertyTrackingMode,
) {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QNode_setPropertyTracking(
self as *const crate::QNode as *mut crate::QNode,
::cpp_core::CastInto::<::cpp_core::Ref<::qt_core::QString>>::cast_into(property_name)
.as_raw_ptr(),
track_mode,
)
}
/// Returns a reference to the <span style='color: green;'>```staticMetaObject```</span> field.
#[inline(always)]
pub unsafe fn static_meta_object() -> ::cpp_core::Ref<::qt_core::QMetaObject> {
let ffi_result = { crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QNode_staticMetaObject() };
::cpp_core::Ref::from_raw(ffi_result as *mut ::qt_core::QMetaObject)
.expect("attempted to construct a null Ref")
}
/// Calls C++ function: <span style='color: green;'>```static QString Qt3DCore::QNode::tr(const char* s, const char* c, int n)```</span>.
#[inline(always)]
pub unsafe fn tr(
s: *const ::std::os::raw::c_char,
c: *const ::std::os::raw::c_char,
n: ::std::os::raw::c_int,
) -> ::cpp_core::CppBox<::qt_core::QString> {
let ffi_result = { crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QNode_tr(s, c, n) };
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// Calls C++ function: <span style='color: green;'>```static QString Qt3DCore::QNode::trUtf8(const char* s, const char* c, int n)```</span>.
#[inline(always)]
pub unsafe fn tr_utf8(
s: *const ::std::os::raw::c_char,
c: *const ::std::os::raw::c_char,
n: ::std::os::raw::c_int,
) -> ::cpp_core::CppBox<::qt_core::QString> {
let ffi_result = { crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QNode_trUtf8(s, c, n) };
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
}
/// C++ class: <span style='color: green;'>```Qt3DCore::QNodeIdTypePair```</span>.
#[repr(C)]
pub struct QNodeIdTypePair {
_unused: u8,
}
impl QNodeIdTypePair {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNodeIdTypePair& Qt3DCore::QNodeIdTypePair::operator=(const Qt3DCore::QNodeIdTypePair& other)```</span>.
#[inline(always)]
pub unsafe fn copy_from(
&self,
other: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QNodeIdTypePair>>,
) -> ::cpp_core::Ref<crate::QNodeIdTypePair> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QNodeIdTypePair_operator_(
self as *const crate::QNodeIdTypePair as *mut crate::QNodeIdTypePair,
::cpp_core::CastInto::<::cpp_core::Ref<crate::QNodeIdTypePair>>::cast_into(other)
.as_raw_ptr(),
)
};
::cpp_core::Ref::from_raw(ffi_result).expect("attempted to construct a null Ref")
}
/// Returns a reference to the <span style='color: green;'>```id```</span> field.
#[inline(always)]
pub unsafe fn id(&self) -> ::cpp_core::Ref<crate::QNodeId> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QNodeIdTypePair_id(
self as *const crate::QNodeIdTypePair,
)
};
::cpp_core::Ref::from_raw(ffi_result as *mut crate::QNodeId)
.expect("attempted to construct a null Ref")
}
/// Returns a mutable reference to the <span style='color: green;'>```id```</span> field.
#[inline(always)]
pub unsafe fn id_mut(&self) -> ::cpp_core::Ref<crate::QNodeId> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QNodeIdTypePair_id_mut(
self as *const crate::QNodeIdTypePair as *mut crate::QNodeIdTypePair,
)
};
::cpp_core::Ref::from_raw(ffi_result).expect("attempted to construct a null Ref")
}
/// <p>Default constructs an instance of QNodeIdTypePair.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DCore::QNodeIdTypePair::QNodeIdTypePair()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qnodeidtypepair.html#QNodeIdTypePair">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Default constructs an instance of QNodeIdTypePair.</p></div>
#[inline(always)]
pub unsafe fn new_0a() -> ::cpp_core::CppBox<crate::QNodeIdTypePair> {
let ffi_result =
{ crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QNodeIdTypePair_QNodeIdTypePair() };
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Default constructs an instance of QNodeIdTypePair.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DCore::QNodeIdTypePair::QNodeIdTypePair(Qt3DCore::QNodeId _id, const QMetaObject* _type)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qnodeidtypepair.html#QNodeIdTypePair-1">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Default constructs an instance of QNodeIdTypePair.</p></div>
#[inline(always)]
pub unsafe fn new_2a(
id: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QNodeId>>,
type_: impl ::cpp_core::CastInto<::cpp_core::Ptr<::qt_core::QMetaObject>>,
) -> ::cpp_core::CppBox<crate::QNodeIdTypePair> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QNodeIdTypePair_QNodeIdTypePair1(
::cpp_core::CastInto::<::cpp_core::Ref<crate::QNodeId>>::cast_into(id).as_raw_ptr(),
::cpp_core::CastInto::<::cpp_core::Ptr<::qt_core::QMetaObject>>::cast_into(type_)
.as_raw_ptr(),
)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DCore::QNodeIdTypePair::QNodeIdTypePair(const Qt3DCore::QNodeIdTypePair& other)```</span>.
#[inline(always)]
pub unsafe fn new_copy(
other: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QNodeIdTypePair>>,
) -> ::cpp_core::CppBox<crate::QNodeIdTypePair> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QNodeIdTypePair_QNodeIdTypePair2(
::cpp_core::CastInto::<::cpp_core::Ref<crate::QNodeIdTypePair>>::cast_into(other)
.as_raw_ptr(),
)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// Sets the value of the <span style='color: green;'>```id```</span> field.
#[inline(always)]
pub unsafe fn set_id(&self, value: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QNodeId>>) {
crate::__ffi::ctr_qt_3d_core_ffi_set_Qt3DCore_QNodeIdTypePair_id(
self as *const crate::QNodeIdTypePair as *mut crate::QNodeIdTypePair,
::cpp_core::CastInto::<::cpp_core::Ref<crate::QNodeId>>::cast_into(value).as_raw_ptr(),
)
}
/// Sets the value of the <span style='color: green;'>```type```</span> field.
#[inline(always)]
pub unsafe fn set_type(
&self,
value: impl ::cpp_core::CastInto<::cpp_core::Ptr<::qt_core::QMetaObject>>,
) {
crate::__ffi::ctr_qt_3d_core_ffi_set_Qt3DCore_QNodeIdTypePair_type(
self as *const crate::QNodeIdTypePair as *mut crate::QNodeIdTypePair,
::cpp_core::CastInto::<::cpp_core::Ptr<::qt_core::QMetaObject>>::cast_into(value)
.as_raw_ptr(),
)
}
/// Returns the value of the <span style='color: green;'>```type```</span> field.
#[inline(always)]
pub unsafe fn type_(&self) -> ::cpp_core::Ptr<::qt_core::QMetaObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QNodeIdTypePair_type(
self as *const crate::QNodeIdTypePair,
)
};
::cpp_core::Ptr::from_raw(ffi_result as *mut ::qt_core::QMetaObject)
}
}
/// <p>The base class of scene nodes that can be aggregated by <a href="http://doc.qt.io/qt-5/qt3dcore-qentity.html">Qt3DCore::QEntity</a> instances as a component.</p>
///
/// C++ class: <span style='color: green;'>```Qt3DCore::QComponent```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qcomponent.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>The base class of scene nodes that can be aggregated by <a href="http://doc.qt.io/qt-5/qt3dcore-qentity.html">Qt3DCore::QEntity</a> instances as a component.</p>
/// <p>A <a href="http://doc.qt.io/qt-5/qt3dcore-qcomponent.html">Qt3DCore::QComponent</a> provides a vertical slice of behavior that can be assigned to and sometimes shared across <a href="http://doc.qt.io/qt-5/qt3dcore-qentity.html">Qt3DCore::QEntity</a> instances.</p>
/// <p><a href="http://doc.qt.io/qt-5/qt3dcore-qcomponent.html">Qt3DCore::QComponent</a> subclasses are often aggregated in groups that impart useful behavior to the aggregating entity. For example, to have an Entity that gets drawn by the Qt3D renderer aspect, an entity would most likely aggregate <a href="http://doc.qt.io/qt-5/qt3dcore-qtransform.html">Qt3DCore::QTransform</a>, <a href="http://doc.qt.io/qt-5/qt3drender-qmesh.html">Qt3DRender::QMesh</a>, and <a href="http://doc.qt.io/qt-5/qt3drender-qmaterial.html">Qt3DRender::QMaterial</a> components.</p></div>
#[repr(C)]
pub struct QComponent {
_unused: u8,
}
impl QComponent {
/// <p>Holds the shareable flag of the <a href="http://doc.qt.io/qt-5/qt3dcore-qcomponent.html">QComponent</a>. The <a href="http://doc.qt.io/qt-5/qt3dcore-qcomponent.html">QComponent</a> can be shared across several entities if <code>true</code>.</p>
///
/// Returns a built-in Qt slot `Qt3DCore::QComponent::setShareable` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qcomponent.html#isShareable-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the shareable flag of the <a href="http://doc.qt.io/qt-5/qt3dcore-qcomponent.html">QComponent</a>. The <a href="http://doc.qt.io/qt-5/qt3dcore-qcomponent.html">QComponent</a> can be shared across several entities if <code>true</code>.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> bool </td><td class="memItemRight bottomAlign"><span class="name"><b>isShareable</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setShareable</b></span>(bool <i>isShareable</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>shareableChanged</b></span>(bool <i>isShareable</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub fn slot_set_shareable(&self) -> ::qt_core::Receiver<(bool,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw(self).expect("attempted to construct a null Ref"),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setShareable(bool)\0"),
)
}
}
/// <p>Holds the shareable flag of the <a href="http://doc.qt.io/qt-5/qt3dcore-qcomponent.html">QComponent</a>. The <a href="http://doc.qt.io/qt-5/qt3dcore-qcomponent.html">QComponent</a> can be shared across several entities if <code>true</code>.</p>
///
/// Returns a built-in Qt signal `Qt3DCore::QComponent::shareableChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qcomponent.html#isShareable-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the shareable flag of the <a href="http://doc.qt.io/qt-5/qt3dcore-qcomponent.html">QComponent</a>. The <a href="http://doc.qt.io/qt-5/qt3dcore-qcomponent.html">QComponent</a> can be shared across several entities if <code>true</code>.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> bool </td><td class="memItemRight bottomAlign"><span class="name"><b>isShareable</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setShareable</b></span>(bool <i>isShareable</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>shareableChanged</b></span>(bool <i>isShareable</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub fn shareable_changed(&self) -> ::qt_core::Signal<(bool,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw(self).expect("attempted to construct a null Ref"),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2shareableChanged(bool)\0"),
)
}
}
/// <p>Indicates that a reference has been added to <i>entity</i>.</p>
///
/// Returns a built-in Qt signal `Qt3DCore::QComponent::addedToEntity` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qcomponent.html#addedToEntity">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Indicates that a reference has been added to <i>entity</i>.</p></div>
#[inline(always)]
pub fn added_to_entity(&self) -> ::qt_core::Signal<(*mut crate::QEntity,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw(self).expect("attempted to construct a null Ref"),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"2addedToEntity(Qt3DCore::QEntity *)\0",
),
)
}
}
/// <p>Indicates that a reference has been removed from <i>entity</i>.</p>
///
/// Returns a built-in Qt signal `Qt3DCore::QComponent::removedFromEntity` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qcomponent.html#removedFromEntity">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Indicates that a reference has been removed from <i>entity</i>.</p></div>
#[inline(always)]
pub fn removed_from_entity(&self) -> ::qt_core::Signal<(*mut crate::QEntity,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw(self).expect("attempted to construct a null Ref"),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"2removedFromEntity(Qt3DCore::QEntity *)\0",
),
)
}
}
/// <p>Returns a <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> containing all the entities that reference this component.</p>
///
/// Calls C++ function: <span style='color: green;'>```QVector<Qt3DCore::QEntity*> Qt3DCore::QComponent::entities() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qcomponent.html#entities">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns a <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> containing all the entities that reference this component.</p></div>
#[inline(always)]
pub unsafe fn entities(&self) -> ::cpp_core::CppBox<crate::QVectorOfQEntity> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QComponent_entities(
self as *const crate::QComponent,
)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Holds the shareable flag of the <a href="http://doc.qt.io/qt-5/qt3dcore-qcomponent.html">QComponent</a>. The <a href="http://doc.qt.io/qt-5/qt3dcore-qcomponent.html">QComponent</a> can be shared across several entities if <code>true</code>.</p>
///
/// Calls C++ function: <span style='color: green;'>```bool Qt3DCore::QComponent::isShareable() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qcomponent.html#isShareable-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the shareable flag of the <a href="http://doc.qt.io/qt-5/qt3dcore-qcomponent.html">QComponent</a>. The <a href="http://doc.qt.io/qt-5/qt3dcore-qcomponent.html">QComponent</a> can be shared across several entities if <code>true</code>.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> bool </td><td class="memItemRight bottomAlign"><span class="name"><b>isShareable</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setShareable</b></span>(bool <i>isShareable</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>shareableChanged</b></span>(bool <i>isShareable</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub unsafe fn is_shareable(&self) -> bool {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QComponent_isShareable(
self as *const crate::QComponent,
)
}
/// Calls C++ function: <span style='color: green;'>```virtual const QMetaObject* Qt3DCore::QComponent::metaObject() const```</span>.
#[inline(always)]
pub unsafe fn meta_object(&self) -> ::cpp_core::Ptr<::qt_core::QMetaObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QComponent_metaObject(
self as *const crate::QComponent,
)
};
::cpp_core::Ptr::from_raw(ffi_result as *mut ::qt_core::QMetaObject)
}
/// <p>Constructs a new <a href="http://doc.qt.io/qt-5/qt3dcore-qcomponent.html">QComponent</a> instance with <i>parent</i> as the parent.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DCore::QComponent::QComponent(Qt3DCore::QNode* parent = …)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qcomponent.html#QComponent">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/qt3dcore-qcomponent.html">QComponent</a> instance with <i>parent</i> as the parent.</p>
/// <p><b>Note: </b>a <a href="http://doc.qt.io/qt-5/qt3dcore-qcomponent.html">QComponent</a> should never be instanced directly, instance one of the subclasses instead.</p></div>
#[inline(always)]
pub unsafe fn new_1a(
parent: impl ::cpp_core::CastInto<::cpp_core::Ptr<crate::QNode>>,
) -> ::qt_core::QBox<crate::QComponent> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QComponent_QComponent(
::cpp_core::CastInto::<::cpp_core::Ptr<crate::QNode>>::cast_into(parent)
.as_raw_ptr() as *mut crate::QNode,
)
};
::qt_core::QBox::from_raw(ffi_result)
}
/// <p>The base class of scene nodes that can be aggregated by <a href="http://doc.qt.io/qt-5/qt3dcore-qentity.html">Qt3DCore::QEntity</a> instances as a component.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DCore::QComponent::QComponent()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qcomponent.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>The base class of scene nodes that can be aggregated by <a href="http://doc.qt.io/qt-5/qt3dcore-qentity.html">Qt3DCore::QEntity</a> instances as a component.</p>
/// <p>A <a href="http://doc.qt.io/qt-5/qt3dcore-qcomponent.html">Qt3DCore::QComponent</a> provides a vertical slice of behavior that can be assigned to and sometimes shared across <a href="http://doc.qt.io/qt-5/qt3dcore-qentity.html">Qt3DCore::QEntity</a> instances.</p>
/// <p><a href="http://doc.qt.io/qt-5/qt3dcore-qcomponent.html">Qt3DCore::QComponent</a> subclasses are often aggregated in groups that impart useful behavior to the aggregating entity. For example, to have an Entity that gets drawn by the Qt3D renderer aspect, an entity would most likely aggregate <a href="http://doc.qt.io/qt-5/qt3dcore-qtransform.html">Qt3DCore::QTransform</a>, <a href="http://doc.qt.io/qt-5/qt3drender-qmesh.html">Qt3DRender::QMesh</a>, and <a href="http://doc.qt.io/qt-5/qt3drender-qmaterial.html">Qt3DRender::QMaterial</a> components.</p></div>
#[inline(always)]
pub unsafe fn new_0a() -> ::qt_core::QBox<crate::QComponent> {
let ffi_result = { crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QComponent_QComponent1() };
::qt_core::QBox::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```virtual int Qt3DCore::QComponent::qt_metacall(QMetaObject::Call arg1, int arg2, void** arg3)```</span>.
#[inline(always)]
pub unsafe fn qt_metacall(
&self,
arg1: ::qt_core::q_meta_object::Call,
arg2: ::std::os::raw::c_int,
arg3: *mut *mut ::std::ffi::c_void,
) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QComponent_qt_metacall(
self as *const crate::QComponent as *mut crate::QComponent,
arg1,
arg2,
arg3,
)
}
/// Calls C++ function: <span style='color: green;'>```virtual void* Qt3DCore::QComponent::qt_metacast(const char* arg1)```</span>.
#[inline(always)]
pub unsafe fn qt_metacast(
&self,
arg1: *const ::std::os::raw::c_char,
) -> *mut ::std::ffi::c_void {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QComponent_qt_metacast(
self as *const crate::QComponent as *mut crate::QComponent,
arg1,
)
}
/// <p>Holds the shareable flag of the <a href="http://doc.qt.io/qt-5/qt3dcore-qcomponent.html">QComponent</a>. The <a href="http://doc.qt.io/qt-5/qt3dcore-qcomponent.html">QComponent</a> can be shared across several entities if <code>true</code>.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DCore::QComponent::setShareable(bool isShareable)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qcomponent.html#isShareable-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the shareable flag of the <a href="http://doc.qt.io/qt-5/qt3dcore-qcomponent.html">QComponent</a>. The <a href="http://doc.qt.io/qt-5/qt3dcore-qcomponent.html">QComponent</a> can be shared across several entities if <code>true</code>.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> bool </td><td class="memItemRight bottomAlign"><span class="name"><b>isShareable</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setShareable</b></span>(bool <i>isShareable</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>shareableChanged</b></span>(bool <i>isShareable</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub unsafe fn set_shareable(&self, is_shareable: bool) {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QComponent_setShareable(
self as *const crate::QComponent as *mut crate::QComponent,
is_shareable,
)
}
/// Returns a reference to the <span style='color: green;'>```staticMetaObject```</span> field.
#[inline(always)]
pub unsafe fn static_meta_object() -> ::cpp_core::Ref<::qt_core::QMetaObject> {
let ffi_result =
{ crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QComponent_staticMetaObject() };
::cpp_core::Ref::from_raw(ffi_result as *mut ::qt_core::QMetaObject)
.expect("attempted to construct a null Ref")
}
/// Calls C++ function: <span style='color: green;'>```static QString Qt3DCore::QComponent::tr(const char* s, const char* c, int n)```</span>.
#[inline(always)]
pub unsafe fn tr(
s: *const ::std::os::raw::c_char,
c: *const ::std::os::raw::c_char,
n: ::std::os::raw::c_int,
) -> ::cpp_core::CppBox<::qt_core::QString> {
let ffi_result = { crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QComponent_tr(s, c, n) };
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// Calls C++ function: <span style='color: green;'>```static QString Qt3DCore::QComponent::trUtf8(const char* s, const char* c, int n)```</span>.
#[inline(always)]
pub unsafe fn tr_utf8(
s: *const ::std::os::raw::c_char,
c: *const ::std::os::raw::c_char,
n: ::std::os::raw::c_int,
) -> ::cpp_core::CppBox<::qt_core::QString> {
let ffi_result = { crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QComponent_trUtf8(s, c, n) };
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
}
/// <p>The <a href="http://doc.qt.io/qt-5/qt3dcore-qcomponentaddedchange.html">QComponentAddedChange</a> class is used to notify when a component is added to an entity</p>
///
/// C++ class: <span style='color: green;'>```Qt3DCore::QComponentAddedChange```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qcomponentaddedchange.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>The <a href="http://doc.qt.io/qt-5/qt3dcore-qcomponentaddedchange.html">QComponentAddedChange</a> class is used to notify when a component is added to an entity</p></div>
#[repr(C)]
pub struct QComponentAddedChange {
_unused: u8,
}
impl QComponentAddedChange {
/// <p>Returns the id of the component added.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNodeId Qt3DCore::QComponentAddedChange::componentId() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qcomponentaddedchange.html#componentId">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the id of the component added.</p></div>
#[inline(always)]
pub unsafe fn component_id(&self) -> ::cpp_core::CppBox<crate::QNodeId> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QComponentAddedChange_componentId(
self as *const crate::QComponentAddedChange,
)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Returns the metaobject.</p>
///
/// Calls C++ function: <span style='color: green;'>```const QMetaObject* Qt3DCore::QComponentAddedChange::componentMetaObject() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qcomponentaddedchange.html#componentMetaObject">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the metaobject.</p></div>
#[inline(always)]
pub unsafe fn component_meta_object(&self) -> ::cpp_core::Ptr<::qt_core::QMetaObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QComponentAddedChange_componentMetaObject(
self as *const crate::QComponentAddedChange,
)
};
::cpp_core::Ptr::from_raw(ffi_result as *mut ::qt_core::QMetaObject)
}
/// <p>Returns the id of the entity the component was added to.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNodeId Qt3DCore::QComponentAddedChange::entityId() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qcomponentaddedchange.html#entityId">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the id of the entity the component was added to.</p></div>
#[inline(always)]
pub unsafe fn entity_id(&self) -> ::cpp_core::CppBox<crate::QNodeId> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QComponentAddedChange_entityId(
self as *const crate::QComponentAddedChange,
)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Constructs a new <a href="http://doc.qt.io/qt-5/qt3dcore-qcomponentaddedchange.html">QComponentAddedChange</a> which will notify <i>entity</i> that <i>component</i> was added</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DCore::QComponentAddedChange::QComponentAddedChange(const Qt3DCore::QEntity* entity, const Qt3DCore::QComponent* component)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qcomponentaddedchange.html#QComponentAddedChange">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/qt3dcore-qcomponentaddedchange.html">QComponentAddedChange</a> which will notify <i>entity</i> that <i>component</i> was added</p></div>
#[inline(always)]
pub unsafe fn from_q_entity_q_component(
entity: impl ::cpp_core::CastInto<::cpp_core::Ptr<crate::QEntity>>,
component: impl ::cpp_core::CastInto<::cpp_core::Ptr<crate::QComponent>>,
) -> ::cpp_core::CppBox<crate::QComponentAddedChange> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QComponentAddedChange_QComponentAddedChange(
::cpp_core::CastInto::<::cpp_core::Ptr<crate::QEntity>>::cast_into(entity)
.as_raw_ptr(),
::cpp_core::CastInto::<::cpp_core::Ptr<crate::QComponent>>::cast_into(component)
.as_raw_ptr(),
)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Constructs a new <a href="http://doc.qt.io/qt-5/qt3dcore-qcomponentaddedchange.html">QComponentAddedChange</a> which will notify <i>component</i> that it was added to <i>entity</i></p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DCore::QComponentAddedChange::QComponentAddedChange(const Qt3DCore::QComponent* component, const Qt3DCore::QEntity* entity)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qcomponentaddedchange.html#QComponentAddedChange-1">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/qt3dcore-qcomponentaddedchange.html">QComponentAddedChange</a> which will notify <i>component</i> that it was added to <i>entity</i></p></div>
#[inline(always)]
pub unsafe fn from_q_component_q_entity(
component: impl ::cpp_core::CastInto<::cpp_core::Ptr<crate::QComponent>>,
entity: impl ::cpp_core::CastInto<::cpp_core::Ptr<crate::QEntity>>,
) -> ::cpp_core::CppBox<crate::QComponentAddedChange> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QComponentAddedChange_QComponentAddedChange1(
::cpp_core::CastInto::<::cpp_core::Ptr<crate::QComponent>>::cast_into(component)
.as_raw_ptr(),
::cpp_core::CastInto::<::cpp_core::Ptr<crate::QEntity>>::cast_into(entity)
.as_raw_ptr(),
)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
}
/// <p>The <a href="http://doc.qt.io/qt-5/qt3dcore-qcomponentremovedchange.html">QComponentRemovedChange</a> class is used to notify when a component is removed from an entity</p>
///
/// C++ class: <span style='color: green;'>```Qt3DCore::QComponentRemovedChange```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qcomponentremovedchange.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>The <a href="http://doc.qt.io/qt-5/qt3dcore-qcomponentremovedchange.html">QComponentRemovedChange</a> class is used to notify when a component is removed from an entity</p></div>
#[repr(C)]
pub struct QComponentRemovedChange {
_unused: u8,
}
impl QComponentRemovedChange {
/// <p>Returns the id of the component removed.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNodeId Qt3DCore::QComponentRemovedChange::componentId() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qcomponentremovedchange.html#componentId">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the id of the component removed.</p></div>
#[inline(always)]
pub unsafe fn component_id(&self) -> ::cpp_core::CppBox<crate::QNodeId> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QComponentRemovedChange_componentId(
self as *const crate::QComponentRemovedChange,
)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Returns the metaobject.</p>
///
/// Calls C++ function: <span style='color: green;'>```const QMetaObject* Qt3DCore::QComponentRemovedChange::componentMetaObject() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qcomponentremovedchange.html#componentMetaObject">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the metaobject.</p></div>
#[inline(always)]
pub unsafe fn component_meta_object(&self) -> ::cpp_core::Ptr<::qt_core::QMetaObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QComponentRemovedChange_componentMetaObject(
self as *const crate::QComponentRemovedChange,
)
};
::cpp_core::Ptr::from_raw(ffi_result as *mut ::qt_core::QMetaObject)
}
/// <p>Returns the id of the entity the component was removed from.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNodeId Qt3DCore::QComponentRemovedChange::entityId() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qcomponentremovedchange.html#entityId">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the id of the entity the component was removed from.</p></div>
#[inline(always)]
pub unsafe fn entity_id(&self) -> ::cpp_core::CppBox<crate::QNodeId> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QComponentRemovedChange_entityId(
self as *const crate::QComponentRemovedChange,
)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Constructs a new <a href="http://doc.qt.io/qt-5/qt3dcore-qcomponentremovedchange.html">QComponentRemovedChange</a> which will notify <i>entity</i> that <i>component</i> was removed.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DCore::QComponentRemovedChange::QComponentRemovedChange(const Qt3DCore::QEntity* entity, const Qt3DCore::QComponent* component)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qcomponentremovedchange.html#QComponentRemovedChange">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/qt3dcore-qcomponentremovedchange.html">QComponentRemovedChange</a> which will notify <i>entity</i> that <i>component</i> was removed.</p></div>
#[inline(always)]
pub unsafe fn from_q_entity_q_component(
entity: impl ::cpp_core::CastInto<::cpp_core::Ptr<crate::QEntity>>,
component: impl ::cpp_core::CastInto<::cpp_core::Ptr<crate::QComponent>>,
) -> ::cpp_core::CppBox<crate::QComponentRemovedChange> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QComponentRemovedChange_QComponentRemovedChange(::cpp_core::CastInto::<::cpp_core::Ptr<crate::QEntity>>::cast_into(entity).as_raw_ptr(), ::cpp_core::CastInto::<::cpp_core::Ptr<crate::QComponent>>::cast_into(component).as_raw_ptr())
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Constructs a new <a href="http://doc.qt.io/qt-5/qt3dcore-qcomponentremovedchange.html">QComponentRemovedChange</a> which will notify <i>component</i> that it was removed from <i>entity</i></p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DCore::QComponentRemovedChange::QComponentRemovedChange(const Qt3DCore::QComponent* component, const Qt3DCore::QEntity* entity)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qcomponentremovedchange.html#QComponentRemovedChange-1">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/qt3dcore-qcomponentremovedchange.html">QComponentRemovedChange</a> which will notify <i>component</i> that it was removed from <i>entity</i></p></div>
#[inline(always)]
pub unsafe fn from_q_component_q_entity(
component: impl ::cpp_core::CastInto<::cpp_core::Ptr<crate::QComponent>>,
entity: impl ::cpp_core::CastInto<::cpp_core::Ptr<crate::QEntity>>,
) -> ::cpp_core::CppBox<crate::QComponentRemovedChange> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QComponentRemovedChange_QComponentRemovedChange1(::cpp_core::CastInto::<::cpp_core::Ptr<crate::QComponent>>::cast_into(component).as_raw_ptr(), ::cpp_core::CastInto::<::cpp_core::Ptr<crate::QEntity>>::cast_into(entity).as_raw_ptr())
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
}
/// <p>The <a href="http://doc.qt.io/qt-5/qt3dcore-qpropertyupdatedchangebase.html">QPropertyUpdatedChangeBase</a> class is the base class for all <a href="http://doc.qt.io/qt-5/qt3dcore-qscenechange.html#ChangeFlag-enum">PropertyUpdated</a> <a href="http://doc.qt.io/qt-5/qt3dcore-qscenechange.html">QSceneChange</a> events</p>
///
/// C++ class: <span style='color: green;'>```Qt3DCore::QPropertyUpdatedChangeBase```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qpropertyupdatedchangebase.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>The <a href="http://doc.qt.io/qt-5/qt3dcore-qpropertyupdatedchangebase.html">QPropertyUpdatedChangeBase</a> class is the base class for all <a href="http://doc.qt.io/qt-5/qt3dcore-qscenechange.html#ChangeFlag-enum">PropertyUpdated</a> <a href="http://doc.qt.io/qt-5/qt3dcore-qscenechange.html">QSceneChange</a> events</p>
/// <p>The <a href="http://doc.qt.io/qt-5/qt3dcore-qpropertyupdatedchangebase.html">QPropertyUpdatedChangeBase</a> class is the base class for all <a href="http://doc.qt.io/qt-5/qt3dcore-qscenechange.html">QSceneChange</a> events that have the changeType() <a href="http://doc.qt.io/qt-5/qt3dcore-qscenechange.html#ChangeFlag-enum">PropertyUpdated</a>. You should not need to instantiate this class. Usually you should be using one of its subclasses such as <a href="http://doc.qt.io/qt-5/qt3dcore-qpropertyupdatedchange.html">QPropertyUpdatedChange</a> or QTypedPropertyUpdatedChange.</p>
/// <p>You can subclass this to create your own node update types for communication between your <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html">QNode</a> and <a href="http://doc.qt.io/qt-5/qt3dcore-qbackendnode.html">QBackendNode</a> subclasses when writing your own aspects.</p></div>
#[repr(C)]
pub struct QPropertyUpdatedChangeBase {
_unused: u8,
}
/// <p>The <a href="http://doc.qt.io/qt-5/qt3dcore-qdynamicpropertyupdatedchange.html">QDynamicPropertyUpdatedChange</a> class is used to notify when a dynamic property value is updated</p>
///
/// C++ class: <span style='color: green;'>```Qt3DCore::QDynamicPropertyUpdatedChange```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qdynamicpropertyupdatedchange.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>The <a href="http://doc.qt.io/qt-5/qt3dcore-qdynamicpropertyupdatedchange.html">QDynamicPropertyUpdatedChange</a> class is used to notify when a dynamic property value is updated</p></div>
#[repr(C)]
pub struct QDynamicPropertyUpdatedChange {
_unused: u8,
}
impl QDynamicPropertyUpdatedChange {
/// <p>Constructs a new <a href="http://doc.qt.io/qt-5/qt3dcore-qdynamicpropertyupdatedchange.html">QDynamicPropertyUpdatedChange</a> with <i>subjectId</i>.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DCore::QDynamicPropertyUpdatedChange::QDynamicPropertyUpdatedChange(Qt3DCore::QNodeId subjectId)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qdynamicpropertyupdatedchange.html#QDynamicPropertyUpdatedChange">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/qt3dcore-qdynamicpropertyupdatedchange.html">QDynamicPropertyUpdatedChange</a> with <i>subjectId</i>.</p></div>
#[inline(always)]
pub unsafe fn new(
subject_id: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QNodeId>>,
) -> ::cpp_core::CppBox<crate::QDynamicPropertyUpdatedChange> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QDynamicPropertyUpdatedChange_QDynamicPropertyUpdatedChange(::cpp_core::CastInto::<::cpp_core::Ref<crate::QNodeId>>::cast_into(subject_id).as_raw_ptr())
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Returns name of the property.</p>
///
/// Calls C++ function: <span style='color: green;'>```QByteArray Qt3DCore::QDynamicPropertyUpdatedChange::propertyName() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qdynamicpropertyupdatedchange.html#propertyName">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns name of the property.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qt3dcore-qdynamicpropertyupdatedchange.html#setPropertyName">setPropertyName</a>().</p></div>
#[inline(always)]
pub unsafe fn property_name(&self) -> ::cpp_core::CppBox<::qt_core::QByteArray> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QDynamicPropertyUpdatedChange_propertyName(
self as *const crate::QDynamicPropertyUpdatedChange,
)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Sets the property change <i>name</i>.</p>
///
/// Calls C++ function: <span style='color: green;'>```void Qt3DCore::QDynamicPropertyUpdatedChange::setPropertyName(const QByteArray& name)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qdynamicpropertyupdatedchange.html#setPropertyName">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Sets the property change <i>name</i>.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qt3dcore-qdynamicpropertyupdatedchange.html#propertyName">propertyName</a>().</p></div>
#[inline(always)]
pub unsafe fn set_property_name(
&self,
name: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_core::QByteArray>>,
) {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QDynamicPropertyUpdatedChange_setPropertyName(
self as *const crate::QDynamicPropertyUpdatedChange
as *mut crate::QDynamicPropertyUpdatedChange,
::cpp_core::CastInto::<::cpp_core::Ref<::qt_core::QByteArray>>::cast_into(name)
.as_raw_ptr(),
)
}
/// <p>Set the property change <i>value</i>.</p>
///
/// Calls C++ function: <span style='color: green;'>```void Qt3DCore::QDynamicPropertyUpdatedChange::setValue(const QVariant& value)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qdynamicpropertyupdatedchange.html#setValue">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Set the property change <i>value</i>.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qt3dcore-qdynamicpropertyupdatedchange.html#value">value</a>().</p></div>
#[inline(always)]
pub unsafe fn set_value(
&self,
value: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_core::QVariant>>,
) {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QDynamicPropertyUpdatedChange_setValue(
self as *const crate::QDynamicPropertyUpdatedChange
as *mut crate::QDynamicPropertyUpdatedChange,
::cpp_core::CastInto::<::cpp_core::Ref<::qt_core::QVariant>>::cast_into(value)
.as_raw_ptr(),
)
}
/// <p>Returns property value.</p>
///
/// Calls C++ function: <span style='color: green;'>```QVariant Qt3DCore::QDynamicPropertyUpdatedChange::value() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qdynamicpropertyupdatedchange.html#value">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns property value.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qt3dcore-qdynamicpropertyupdatedchange.html#setValue">setValue</a>().</p></div>
#[inline(always)]
pub unsafe fn value(&self) -> ::cpp_core::CppBox<::qt_core::QVariant> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QDynamicPropertyUpdatedChange_value(
self as *const crate::QDynamicPropertyUpdatedChange,
)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
}
/// <p><a href="http://doc.qt.io/qt-5/qt3dcore-qentity.html">Qt3DCore::QEntity</a> is a <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html">Qt3DCore::QNode</a> subclass that can aggregate several <a href="http://doc.qt.io/qt-5/qt3dcore-qcomponent.html">Qt3DCore::QComponent</a> instances that will specify its behavior.</p>
///
/// C++ class: <span style='color: green;'>```Qt3DCore::QEntity```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qentity.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p><a href="http://doc.qt.io/qt-5/qt3dcore-qentity.html">Qt3DCore::QEntity</a> is a <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html">Qt3DCore::QNode</a> subclass that can aggregate several <a href="http://doc.qt.io/qt-5/qt3dcore-qcomponent.html">Qt3DCore::QComponent</a> instances that will specify its behavior.</p>
/// <p>By itself a <a href="http://doc.qt.io/qt-5/qt3dcore-qentity.html">Qt3DCore::QEntity</a> is an empty shell. The behavior of a <a href="http://doc.qt.io/qt-5/qt3dcore-qentity.html">Qt3DCore::QEntity</a> object is defined by the <a href="http://doc.qt.io/qt-5/qt3dcore-qcomponent.html">Qt3DCore::QComponent</a> objects it references. Each Qt3D backend aspect will be able to interpret and process an Entity by recognizing which components it is made up of. One aspect may decide to only process entities composed of a single <a href="http://doc.qt.io/qt-5/qt3dcore-qtransform.html">Qt3DCore::QTransform</a> component whilst another may focus on <a href="http://doc.qt.io/qt-5/qt3dinput-qmousehandler.html">Qt3DInput::QMouseHandler</a>.</p></div>
#[repr(C)]
pub struct QEntity {
_unused: u8,
}
impl QEntity {
/// <p>Adds a new reference to the component <i>comp</i>.</p>
///
/// Calls C++ function: <span style='color: green;'>```void Qt3DCore::QEntity::addComponent(Qt3DCore::QComponent* comp)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qentity.html#addComponent">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Adds a new reference to the component <i>comp</i>.</p>
/// <p><b>Note: </b>If the <a href="http://doc.qt.io/qt-5/qt3dcore-qcomponent.html">Qt3DCore::QComponent</a> has no parent, the <a href="http://doc.qt.io/qt-5/qt3dcore-qentity.html">Qt3DCore::QEntity</a> will set itself as its parent thereby taking ownership of the component.</p></div>
#[inline(always)]
pub unsafe fn add_component(
&self,
comp: impl ::cpp_core::CastInto<::cpp_core::Ptr<crate::QComponent>>,
) {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QEntity_addComponent(
self as *const crate::QEntity as *mut crate::QEntity,
::cpp_core::CastInto::<::cpp_core::Ptr<crate::QComponent>>::cast_into(comp).as_raw_ptr()
as *mut crate::QComponent,
)
}
/// <p>Returns the list of <a href="http://doc.qt.io/qt-5/qt3dcore-qcomponent.html">Qt3DCore::QComponent</a> instances the entity is referencing.</p>
///
/// Calls C++ function: <span style='color: green;'>```QVector<Qt3DCore::QComponent*> Qt3DCore::QEntity::components() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qentity.html#components">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the list of <a href="http://doc.qt.io/qt-5/qt3dcore-qcomponent.html">Qt3DCore::QComponent</a> instances the entity is referencing.</p></div>
#[inline(always)]
pub unsafe fn components(&self) -> ::cpp_core::CppBox<crate::QVectorOfQComponent> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QEntity_components(
self as *const crate::QEntity,
)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// Calls C++ function: <span style='color: green;'>```virtual const QMetaObject* Qt3DCore::QEntity::metaObject() const```</span>.
#[inline(always)]
pub unsafe fn meta_object(&self) -> ::cpp_core::Ptr<::qt_core::QMetaObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QEntity_metaObject(
self as *const crate::QEntity,
)
};
::cpp_core::Ptr::from_raw(ffi_result as *mut ::qt_core::QMetaObject)
}
/// <p>Constructs a new <a href="http://doc.qt.io/qt-5/qt3dcore-qentity.html">Qt3DCore::QEntity</a> instance with <i>parent</i> as parent.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DCore::QEntity::QEntity(Qt3DCore::QNode* parent = …)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qentity.html#QEntity">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/qt3dcore-qentity.html">Qt3DCore::QEntity</a> instance with <i>parent</i> as parent.</p></div>
#[inline(always)]
pub unsafe fn new_1a(
parent: impl ::cpp_core::CastInto<::cpp_core::Ptr<crate::QNode>>,
) -> ::qt_core::QBox<crate::QEntity> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QEntity_QEntity(
::cpp_core::CastInto::<::cpp_core::Ptr<crate::QNode>>::cast_into(parent)
.as_raw_ptr() as *mut crate::QNode,
)
};
::qt_core::QBox::from_raw(ffi_result)
}
/// <p><a href="http://doc.qt.io/qt-5/qt3dcore-qentity.html">Qt3DCore::QEntity</a> is a <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html">Qt3DCore::QNode</a> subclass that can aggregate several <a href="http://doc.qt.io/qt-5/qt3dcore-qcomponent.html">Qt3DCore::QComponent</a> instances that will specify its behavior.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DCore::QEntity::QEntity()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qentity.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p><a href="http://doc.qt.io/qt-5/qt3dcore-qentity.html">Qt3DCore::QEntity</a> is a <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html">Qt3DCore::QNode</a> subclass that can aggregate several <a href="http://doc.qt.io/qt-5/qt3dcore-qcomponent.html">Qt3DCore::QComponent</a> instances that will specify its behavior.</p>
/// <p>By itself a <a href="http://doc.qt.io/qt-5/qt3dcore-qentity.html">Qt3DCore::QEntity</a> is an empty shell. The behavior of a <a href="http://doc.qt.io/qt-5/qt3dcore-qentity.html">Qt3DCore::QEntity</a> object is defined by the <a href="http://doc.qt.io/qt-5/qt3dcore-qcomponent.html">Qt3DCore::QComponent</a> objects it references. Each Qt3D backend aspect will be able to interpret and process an Entity by recognizing which components it is made up of. One aspect may decide to only process entities composed of a single <a href="http://doc.qt.io/qt-5/qt3dcore-qtransform.html">Qt3DCore::QTransform</a> component whilst another may focus on <a href="http://doc.qt.io/qt-5/qt3dinput-qmousehandler.html">Qt3DInput::QMouseHandler</a>.</p></div>
#[inline(always)]
pub unsafe fn new_0a() -> ::qt_core::QBox<crate::QEntity> {
let ffi_result = { crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QEntity_QEntity1() };
::qt_core::QBox::from_raw(ffi_result)
}
/// <p>Returns the parent <a href="http://doc.qt.io/qt-5/qt3dcore-qentity.html">Qt3DCore::QEntity</a> instance of this entity. If the immediate parent isn't a <a href="http://doc.qt.io/qt-5/qt3dcore-qentity.html">Qt3DCore::QEntity</a>, this function traverses up the scene hierarchy until a parent <a href="http://doc.qt.io/qt-5/qt3dcore-qentity.html">Qt3DCore::QEntity</a> is found. If no <a href="http://doc.qt.io/qt-5/qt3dcore-qentity.html">Qt3DCore::QEntity</a> parent can be found, returns null.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QEntity* Qt3DCore::QEntity::parentEntity() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qentity.html#parentEntity">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the parent <a href="http://doc.qt.io/qt-5/qt3dcore-qentity.html">Qt3DCore::QEntity</a> instance of this entity. If the immediate parent isn't a <a href="http://doc.qt.io/qt-5/qt3dcore-qentity.html">Qt3DCore::QEntity</a>, this function traverses up the scene hierarchy until a parent <a href="http://doc.qt.io/qt-5/qt3dcore-qentity.html">Qt3DCore::QEntity</a> is found. If no <a href="http://doc.qt.io/qt-5/qt3dcore-qentity.html">Qt3DCore::QEntity</a> parent can be found, returns null.</p></div>
#[inline(always)]
pub unsafe fn parent_entity(&self) -> ::qt_core::QPtr<crate::QEntity> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QEntity_parentEntity(
self as *const crate::QEntity,
)
};
::qt_core::QPtr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```virtual int Qt3DCore::QEntity::qt_metacall(QMetaObject::Call arg1, int arg2, void** arg3)```</span>.
#[inline(always)]
pub unsafe fn qt_metacall(
&self,
arg1: ::qt_core::q_meta_object::Call,
arg2: ::std::os::raw::c_int,
arg3: *mut *mut ::std::ffi::c_void,
) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QEntity_qt_metacall(
self as *const crate::QEntity as *mut crate::QEntity,
arg1,
arg2,
arg3,
)
}
/// Calls C++ function: <span style='color: green;'>```virtual void* Qt3DCore::QEntity::qt_metacast(const char* arg1)```</span>.
#[inline(always)]
pub unsafe fn qt_metacast(
&self,
arg1: *const ::std::os::raw::c_char,
) -> *mut ::std::ffi::c_void {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QEntity_qt_metacast(
self as *const crate::QEntity as *mut crate::QEntity,
arg1,
)
}
/// <p>Removes the reference to <i>comp</i>.</p>
///
/// Calls C++ function: <span style='color: green;'>```void Qt3DCore::QEntity::removeComponent(Qt3DCore::QComponent* comp)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qentity.html#removeComponent">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Removes the reference to <i>comp</i>.</p></div>
#[inline(always)]
pub unsafe fn remove_component(
&self,
comp: impl ::cpp_core::CastInto<::cpp_core::Ptr<crate::QComponent>>,
) {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QEntity_removeComponent(
self as *const crate::QEntity as *mut crate::QEntity,
::cpp_core::CastInto::<::cpp_core::Ptr<crate::QComponent>>::cast_into(comp).as_raw_ptr()
as *mut crate::QComponent,
)
}
/// Returns a reference to the <span style='color: green;'>```staticMetaObject```</span> field.
#[inline(always)]
pub unsafe fn static_meta_object() -> ::cpp_core::Ref<::qt_core::QMetaObject> {
let ffi_result = { crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QEntity_staticMetaObject() };
::cpp_core::Ref::from_raw(ffi_result as *mut ::qt_core::QMetaObject)
.expect("attempted to construct a null Ref")
}
/// Calls C++ function: <span style='color: green;'>```static QString Qt3DCore::QEntity::tr(const char* s, const char* c, int n)```</span>.
#[inline(always)]
pub unsafe fn tr(
s: *const ::std::os::raw::c_char,
c: *const ::std::os::raw::c_char,
n: ::std::os::raw::c_int,
) -> ::cpp_core::CppBox<::qt_core::QString> {
let ffi_result = { crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QEntity_tr(s, c, n) };
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// Calls C++ function: <span style='color: green;'>```static QString Qt3DCore::QEntity::trUtf8(const char* s, const char* c, int n)```</span>.
#[inline(always)]
pub unsafe fn tr_utf8(
s: *const ::std::os::raw::c_char,
c: *const ::std::os::raw::c_char,
n: ::std::os::raw::c_int,
) -> ::cpp_core::CppBox<::qt_core::QString> {
let ffi_result = { crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QEntity_trUtf8(s, c, n) };
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
}
/// <p>Used to notify when a node is destroyed.</p>
///
/// C++ class: <span style='color: green;'>```Qt3DCore::QNodeDestroyedChange```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qnodedestroyedchange.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Used to notify when a node is destroyed.</p></div>
#[repr(C)]
pub struct QNodeDestroyedChange {
_unused: u8,
}
impl QNodeDestroyedChange {
/// <p>Constructs a new <a href="http://doc.qt.io/qt-5/qt3dcore-qnodedestroyedchange.html">QNodeDestroyedChange</a> with <i>node</i> and its <i>subtreeIdsAndTypes</i>.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DCore::QNodeDestroyedChange::QNodeDestroyedChange(const Qt3DCore::QNode* node, const QVector<Qt3DCore::QNodeIdTypePair>& subtreeIdsAndTypes)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qnodedestroyedchange.html#QNodeDestroyedChange">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/qt3dcore-qnodedestroyedchange.html">QNodeDestroyedChange</a> with <i>node</i> and its <i>subtreeIdsAndTypes</i>.</p></div>
#[inline(always)]
pub unsafe fn new(
node: impl ::cpp_core::CastInto<::cpp_core::Ptr<crate::QNode>>,
subtree_ids_and_types: impl ::cpp_core::CastInto<
::cpp_core::Ref<crate::QVectorOfQNodeIdTypePair>,
>,
) -> ::cpp_core::CppBox<crate::QNodeDestroyedChange> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QNodeDestroyedChange_QNodeDestroyedChange(::cpp_core::CastInto::<::cpp_core::Ptr<crate::QNode>>::cast_into(node).as_raw_ptr(), ::cpp_core::CastInto::<::cpp_core::Ref<crate::QVectorOfQNodeIdTypePair>>::cast_into(subtree_ids_and_types).as_raw_ptr())
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Returns a vector of subtree node id type pairs</p>
///
/// Calls C++ function: <span style='color: green;'>```QVector<Qt3DCore::QNodeIdTypePair> Qt3DCore::QNodeDestroyedChange::subtreeIdsAndTypes() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qnodedestroyedchange.html#subtreeIdsAndTypes">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns a vector of subtree node id type pairs</p></div>
#[inline(always)]
pub unsafe fn subtree_ids_and_types(
&self,
) -> ::cpp_core::CppBox<crate::QVectorOfQNodeIdTypePair> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QNodeDestroyedChange_subtreeIdsAndTypes(
self as *const crate::QNodeDestroyedChange,
)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
}
/// <p>The <a href="http://doc.qt.io/qt-5/qt3dcore-qpropertyvalueaddedchangebase.html">QPropertyValueAddedChangeBase</a> class is the base class for all <a href="http://doc.qt.io/qt-5/qt3dcore-qscenechange.html#ChangeFlag-enum">PropertyValueAdded</a> <a href="http://doc.qt.io/qt-5/qt3dcore-qscenechange.html">QSceneChange</a> events</p>
///
/// C++ class: <span style='color: green;'>```Qt3DCore::QPropertyValueAddedChangeBase```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qpropertyvalueaddedchangebase.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>The <a href="http://doc.qt.io/qt-5/qt3dcore-qpropertyvalueaddedchangebase.html">QPropertyValueAddedChangeBase</a> class is the base class for all <a href="http://doc.qt.io/qt-5/qt3dcore-qscenechange.html#ChangeFlag-enum">PropertyValueAdded</a> <a href="http://doc.qt.io/qt-5/qt3dcore-qscenechange.html">QSceneChange</a> events</p>
/// <p>The <a href="http://doc.qt.io/qt-5/qt3dcore-qpropertyvalueaddedchangebase.html">QPropertyValueAddedChangeBase</a> class is the base class for all <a href="http://doc.qt.io/qt-5/qt3dcore-qscenechange.html">QSceneChange</a> events that have the changeType() <a href="http://doc.qt.io/qt-5/qt3dcore-qscenechange.html#ChangeFlag-enum">PropertyValueAdded</a>. You should not need to instantiate this class. Usually you should be using one of its subclasses such as <a href="http://doc.qt.io/qt-5/qt3dcore-qpropertynodeaddedchange.html">QPropertyNodeAddedChange</a>.</p>
/// <p>You can subclass this to create your own node added types for communication between your <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html">QNode</a> and <a href="http://doc.qt.io/qt-5/qt3dcore-qbackendnode.html">QBackendNode</a> subclasses when writing your own aspects.</p></div>
#[repr(C)]
pub struct QPropertyValueAddedChangeBase {
_unused: u8,
}
/// <p>The <a href="http://doc.qt.io/qt-5/qt3dcore-qstaticpropertyvalueaddedchangebase.html">QStaticPropertyValueAddedChangeBase</a> class is the base class for all static <a href="http://doc.qt.io/qt-5/qt3dcore-qscenechange.html#ChangeFlag-enum">PropertyValueAdded</a> <a href="http://doc.qt.io/qt-5/qt3dcore-qscenechange.html">QSceneChange</a> events</p>
///
/// C++ class: <span style='color: green;'>```Qt3DCore::QStaticPropertyValueAddedChangeBase```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qstaticpropertyvalueaddedchangebase.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>The <a href="http://doc.qt.io/qt-5/qt3dcore-qstaticpropertyvalueaddedchangebase.html">QStaticPropertyValueAddedChangeBase</a> class is the base class for all static <a href="http://doc.qt.io/qt-5/qt3dcore-qscenechange.html#ChangeFlag-enum">PropertyValueAdded</a> <a href="http://doc.qt.io/qt-5/qt3dcore-qscenechange.html">QSceneChange</a> events</p></div>
#[repr(C)]
pub struct QStaticPropertyValueAddedChangeBase {
_unused: u8,
}
impl QStaticPropertyValueAddedChangeBase {
/// <p>Returns name of the property.</p>
///
/// Calls C++ function: <span style='color: green;'>```const char* Qt3DCore::QStaticPropertyValueAddedChangeBase::propertyName() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qstaticpropertyvalueaddedchangebase.html#propertyName">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns name of the property.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qt3dcore-qstaticpropertyvalueaddedchangebase.html#setPropertyName">setPropertyName</a>().</p></div>
#[inline(always)]
pub unsafe fn property_name(&self) -> *const ::std::os::raw::c_char {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QStaticPropertyValueAddedChangeBase_propertyName(
self as *const crate::QStaticPropertyValueAddedChangeBase,
)
}
/// <p>Sets the property change <i>name</i>.</p>
///
/// Calls C++ function: <span style='color: green;'>```void Qt3DCore::QStaticPropertyValueAddedChangeBase::setPropertyName(const char* name)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qstaticpropertyvalueaddedchangebase.html#setPropertyName">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Sets the property change <i>name</i>.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qt3dcore-qstaticpropertyvalueaddedchangebase.html#propertyName">propertyName</a>().</p></div>
#[inline(always)]
pub unsafe fn set_property_name(&self, name: *const ::std::os::raw::c_char) {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QStaticPropertyValueAddedChangeBase_setPropertyName(self as *const crate::QStaticPropertyValueAddedChangeBase as *mut crate::QStaticPropertyValueAddedChangeBase, name)
}
}
/// <p>Used to notify when a node is added to a property</p>
///
/// C++ class: <span style='color: green;'>```Qt3DCore::QPropertyNodeAddedChange```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qpropertynodeaddedchange.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Used to notify when a node is added to a property</p></div>
#[repr(C)]
pub struct QPropertyNodeAddedChange {
_unused: u8,
}
impl QPropertyNodeAddedChange {
/// <p>Returns the id of the node added to the property.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNodeId Qt3DCore::QPropertyNodeAddedChange::addedNodeId() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qpropertynodeaddedchange.html#addedNodeId">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the id of the node added to the property.</p></div>
#[inline(always)]
pub unsafe fn added_node_id(&self) -> ::cpp_core::CppBox<crate::QNodeId> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QPropertyNodeAddedChange_addedNodeId(
self as *const crate::QPropertyNodeAddedChange,
)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Returns the meta object of the node added to the property.</p>
///
/// Calls C++ function: <span style='color: green;'>```const QMetaObject* Qt3DCore::QPropertyNodeAddedChange::metaObject() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qpropertynodeaddedchange.html#metaObject">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the meta object of the node added to the property.</p></div>
#[inline(always)]
pub unsafe fn meta_object(&self) -> ::cpp_core::Ptr<::qt_core::QMetaObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QPropertyNodeAddedChange_metaObject(
self as *const crate::QPropertyNodeAddedChange,
)
};
::cpp_core::Ptr::from_raw(ffi_result as *mut ::qt_core::QMetaObject)
}
/// <p>Constructs a new <a href="http://doc.qt.io/qt-5/qt3dcore-qpropertynodeaddedchange.html">QPropertyNodeAddedChange</a> with <i>subjectId</i>, <i>node</i>.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DCore::QPropertyNodeAddedChange::QPropertyNodeAddedChange(Qt3DCore::QNodeId subjectId, Qt3DCore::QNode* node)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qpropertynodeaddedchange.html#QPropertyNodeAddedChange">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/qt3dcore-qpropertynodeaddedchange.html">QPropertyNodeAddedChange</a> with <i>subjectId</i>, <i>node</i>.</p></div>
#[inline(always)]
pub unsafe fn new(
subject_id: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QNodeId>>,
node: impl ::cpp_core::CastInto<::cpp_core::Ptr<crate::QNode>>,
) -> ::cpp_core::CppBox<crate::QPropertyNodeAddedChange> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QPropertyNodeAddedChange_QPropertyNodeAddedChange(::cpp_core::CastInto::<::cpp_core::Ref<crate::QNodeId>>::cast_into(subject_id).as_raw_ptr(), ::cpp_core::CastInto::<::cpp_core::Ptr<crate::QNode>>::cast_into(node).as_raw_ptr() as *mut crate::QNode)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
}
/// <p>The <a href="http://doc.qt.io/qt-5/qt3dcore-qpropertyvalueremovedchangebase.html">QPropertyValueRemovedChangeBase</a> class is the base class for all <a href="http://doc.qt.io/qt-5/qt3dcore-qscenechange.html#ChangeFlag-enum">PropertyValueRemoved</a> <a href="http://doc.qt.io/qt-5/qt3dcore-qscenechange.html">QSceneChange</a> events</p>
///
/// C++ class: <span style='color: green;'>```Qt3DCore::QPropertyValueRemovedChangeBase```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qpropertyvalueremovedchangebase.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>The <a href="http://doc.qt.io/qt-5/qt3dcore-qpropertyvalueremovedchangebase.html">QPropertyValueRemovedChangeBase</a> class is the base class for all <a href="http://doc.qt.io/qt-5/qt3dcore-qscenechange.html#ChangeFlag-enum">PropertyValueRemoved</a> <a href="http://doc.qt.io/qt-5/qt3dcore-qscenechange.html">QSceneChange</a> events</p>
/// <p>The <a href="http://doc.qt.io/qt-5/qt3dcore-qpropertyvalueremovedchangebase.html">QPropertyValueRemovedChangeBase</a> class is the base class for all <a href="http://doc.qt.io/qt-5/qt3dcore-qscenechange.html">QSceneChange</a> events that have the changeType() <a href="http://doc.qt.io/qt-5/qt3dcore-qscenechange.html#ChangeFlag-enum">PropertyValueRemoved</a>. You should not need to instantiate this class. Usually you should be using one of its subclasses such as <a href="http://doc.qt.io/qt-5/qt3dcore-qpropertynoderemovedchange.html">QPropertyNodeRemovedChange</a>.</p>
/// <p>You can subclass this to create your own node Removed types for communication between your <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html">QNode</a> and <a href="http://doc.qt.io/qt-5/qt3dcore-qbackendnode.html">QBackendNode</a> subclasses when writing your own aspects.</p></div>
#[repr(C)]
pub struct QPropertyValueRemovedChangeBase {
_unused: u8,
}
/// <p>The <a href="http://doc.qt.io/qt-5/qt3dcore-qstaticpropertyvalueremovedchangebase.html">QStaticPropertyValueRemovedChangeBase</a> class is the base class for all static <a href="http://doc.qt.io/qt-5/qt3dcore-qscenechange.html#ChangeFlag-enum">PropertyValueRemoved</a> <a href="http://doc.qt.io/qt-5/qt3dcore-qscenechange.html">QSceneChange</a> events</p>
///
/// C++ class: <span style='color: green;'>```Qt3DCore::QStaticPropertyValueRemovedChangeBase```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qstaticpropertyvalueremovedchangebase.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>The <a href="http://doc.qt.io/qt-5/qt3dcore-qstaticpropertyvalueremovedchangebase.html">QStaticPropertyValueRemovedChangeBase</a> class is the base class for all static <a href="http://doc.qt.io/qt-5/qt3dcore-qscenechange.html#ChangeFlag-enum">PropertyValueRemoved</a> <a href="http://doc.qt.io/qt-5/qt3dcore-qscenechange.html">QSceneChange</a> events</p></div>
#[repr(C)]
pub struct QStaticPropertyValueRemovedChangeBase {
_unused: u8,
}
impl QStaticPropertyValueRemovedChangeBase {
/// <p>Returns name of the property.</p>
///
/// Calls C++ function: <span style='color: green;'>```const char* Qt3DCore::QStaticPropertyValueRemovedChangeBase::propertyName() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qstaticpropertyvalueremovedchangebase.html#propertyName">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns name of the property.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qt3dcore-qstaticpropertyvalueremovedchangebase.html#setPropertyName">setPropertyName</a>().</p></div>
#[inline(always)]
pub unsafe fn property_name(&self) -> *const ::std::os::raw::c_char {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QStaticPropertyValueRemovedChangeBase_propertyName(
self as *const crate::QStaticPropertyValueRemovedChangeBase,
)
}
/// <p>Sets the property change <i>name</i>.</p>
///
/// Calls C++ function: <span style='color: green;'>```void Qt3DCore::QStaticPropertyValueRemovedChangeBase::setPropertyName(const char* name)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qstaticpropertyvalueremovedchangebase.html#setPropertyName">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Sets the property change <i>name</i>.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qt3dcore-qstaticpropertyvalueremovedchangebase.html#propertyName">propertyName</a>().</p></div>
#[inline(always)]
pub unsafe fn set_property_name(&self, name: *const ::std::os::raw::c_char) {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QStaticPropertyValueRemovedChangeBase_setPropertyName(self as *const crate::QStaticPropertyValueRemovedChangeBase as *mut crate::QStaticPropertyValueRemovedChangeBase, name)
}
}
/// <p>The <a href="http://doc.qt.io/qt-5/qt3dcore-qpropertynoderemovedchange.html">QPropertyNodeRemovedChange</a> class is used to notify when a node is removed from a property</p>
///
/// C++ class: <span style='color: green;'>```Qt3DCore::QPropertyNodeRemovedChange```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qpropertynoderemovedchange.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>The <a href="http://doc.qt.io/qt-5/qt3dcore-qpropertynoderemovedchange.html">QPropertyNodeRemovedChange</a> class is used to notify when a node is removed from a property</p></div>
#[repr(C)]
pub struct QPropertyNodeRemovedChange {
_unused: u8,
}
impl QPropertyNodeRemovedChange {
/// <p>Returns the metaObject of the node removed to the property.</p>
///
/// Calls C++ function: <span style='color: green;'>```const QMetaObject* Qt3DCore::QPropertyNodeRemovedChange::metaObject() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qpropertynoderemovedchange.html#metaObject">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the metaObject of the node removed to the property.</p></div>
#[inline(always)]
pub unsafe fn meta_object(&self) -> ::cpp_core::Ptr<::qt_core::QMetaObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QPropertyNodeRemovedChange_metaObject(
self as *const crate::QPropertyNodeRemovedChange,
)
};
::cpp_core::Ptr::from_raw(ffi_result as *mut ::qt_core::QMetaObject)
}
/// <p>Constructs a new <a href="http://doc.qt.io/qt-5/qt3dcore-qpropertynoderemovedchange.html">QPropertyNodeRemovedChange</a> with <i>subjectId</i>, <i>node</i>.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DCore::QPropertyNodeRemovedChange::QPropertyNodeRemovedChange(Qt3DCore::QNodeId subjectId, Qt3DCore::QNode* node)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qpropertynoderemovedchange.html#QPropertyNodeRemovedChange">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/qt3dcore-qpropertynoderemovedchange.html">QPropertyNodeRemovedChange</a> with <i>subjectId</i>, <i>node</i>.</p></div>
#[inline(always)]
pub unsafe fn new(
subject_id: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QNodeId>>,
node: impl ::cpp_core::CastInto<::cpp_core::Ptr<crate::QNode>>,
) -> ::cpp_core::CppBox<crate::QPropertyNodeRemovedChange> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QPropertyNodeRemovedChange_QPropertyNodeRemovedChange(::cpp_core::CastInto::<::cpp_core::Ref<crate::QNodeId>>::cast_into(subject_id).as_raw_ptr(), ::cpp_core::CastInto::<::cpp_core::Ptr<crate::QNode>>::cast_into(node).as_raw_ptr() as *mut crate::QNode)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Returns the id of the node removed to the property.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNodeId Qt3DCore::QPropertyNodeRemovedChange::removedNodeId() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qpropertynoderemovedchange.html#removedNodeId">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the id of the node removed to the property.</p></div>
#[inline(always)]
pub unsafe fn removed_node_id(&self) -> ::cpp_core::CppBox<crate::QNodeId> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QPropertyNodeRemovedChange_removedNodeId(
self as *const crate::QPropertyNodeRemovedChange,
)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
}
/// <p>The <a href="http://doc.qt.io/qt-5/qt3dcore-qstaticpropertyupdatedchangebase.html">QStaticPropertyUpdatedChangeBase</a> class is the base class for all static <a href="http://doc.qt.io/qt-5/qt3dcore-qscenechange.html#ChangeFlag-enum">PropertyUpdated</a> <a href="http://doc.qt.io/qt-5/qt3dcore-qscenechange.html">QSceneChange</a> events</p>
///
/// C++ class: <span style='color: green;'>```Qt3DCore::QStaticPropertyUpdatedChangeBase```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qstaticpropertyupdatedchangebase.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>The <a href="http://doc.qt.io/qt-5/qt3dcore-qstaticpropertyupdatedchangebase.html">QStaticPropertyUpdatedChangeBase</a> class is the base class for all static <a href="http://doc.qt.io/qt-5/qt3dcore-qscenechange.html#ChangeFlag-enum">PropertyUpdated</a> <a href="http://doc.qt.io/qt-5/qt3dcore-qscenechange.html">QSceneChange</a> events</p></div>
#[repr(C)]
pub struct QStaticPropertyUpdatedChangeBase {
_unused: u8,
}
impl QStaticPropertyUpdatedChangeBase {
/// <p>Returns name of the property.</p>
///
/// Calls C++ function: <span style='color: green;'>```const char* Qt3DCore::QStaticPropertyUpdatedChangeBase::propertyName() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qstaticpropertyupdatedchangebase.html#propertyName">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns name of the property.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qt3dcore-qstaticpropertyupdatedchangebase.html#setPropertyName">setPropertyName</a>().</p></div>
#[inline(always)]
pub unsafe fn property_name(&self) -> *const ::std::os::raw::c_char {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QStaticPropertyUpdatedChangeBase_propertyName(
self as *const crate::QStaticPropertyUpdatedChangeBase,
)
}
/// <p>Sets the property change <i>name</i>.</p>
///
/// Calls C++ function: <span style='color: green;'>```void Qt3DCore::QStaticPropertyUpdatedChangeBase::setPropertyName(const char* name)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qstaticpropertyupdatedchangebase.html#setPropertyName">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Sets the property change <i>name</i>.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qt3dcore-qstaticpropertyupdatedchangebase.html#propertyName">propertyName</a>().</p></div>
#[inline(always)]
pub unsafe fn set_property_name(&self, name: *const ::std::os::raw::c_char) {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QStaticPropertyUpdatedChangeBase_setPropertyName(
self as *const crate::QStaticPropertyUpdatedChangeBase
as *mut crate::QStaticPropertyUpdatedChangeBase,
name,
)
}
}
/// <p>The <a href="http://doc.qt.io/qt-5/qt3dcore-qpropertyupdatedchange.html">QPropertyUpdatedChange</a> class is used to notify when a property value is updated</p>
///
/// C++ class: <span style='color: green;'>```Qt3DCore::QPropertyUpdatedChange```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qpropertyupdatedchange.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>The <a href="http://doc.qt.io/qt-5/qt3dcore-qpropertyupdatedchange.html">QPropertyUpdatedChange</a> class is used to notify when a property value is updated</p></div>
#[repr(C)]
pub struct QPropertyUpdatedChange {
_unused: u8,
}
impl QPropertyUpdatedChange {
/// <p>Constructs a new <a href="http://doc.qt.io/qt-5/qt3dcore-qpropertyupdatedchange.html">QPropertyUpdatedChange</a> with <i>subjectId</i>.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DCore::QPropertyUpdatedChange::QPropertyUpdatedChange(Qt3DCore::QNodeId subjectId)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qpropertyupdatedchange.html#QPropertyUpdatedChange">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/qt3dcore-qpropertyupdatedchange.html">QPropertyUpdatedChange</a> with <i>subjectId</i>.</p></div>
#[inline(always)]
pub unsafe fn new(
subject_id: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QNodeId>>,
) -> ::cpp_core::CppBox<crate::QPropertyUpdatedChange> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QPropertyUpdatedChange_QPropertyUpdatedChange(
::cpp_core::CastInto::<::cpp_core::Ref<crate::QNodeId>>::cast_into(subject_id)
.as_raw_ptr(),
)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Set the property change <i>value</i>.</p>
///
/// Calls C++ function: <span style='color: green;'>```void Qt3DCore::QPropertyUpdatedChange::setValue(const QVariant& value)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qpropertyupdatedchange.html#setValue">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Set the property change <i>value</i>.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qt3dcore-qpropertyupdatedchange.html#value">value</a>().</p></div>
#[inline(always)]
pub unsafe fn set_value(
&self,
value: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_core::QVariant>>,
) {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QPropertyUpdatedChange_setValue(
self as *const crate::QPropertyUpdatedChange as *mut crate::QPropertyUpdatedChange,
::cpp_core::CastInto::<::cpp_core::Ref<::qt_core::QVariant>>::cast_into(value)
.as_raw_ptr(),
)
}
/// <p>Returns property value.</p>
///
/// Calls C++ function: <span style='color: green;'>```QVariant Qt3DCore::QPropertyUpdatedChange::value() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qpropertyupdatedchange.html#value">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns property value.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qt3dcore-qpropertyupdatedchange.html#setValue">setValue</a>().</p></div>
#[inline(always)]
pub unsafe fn value(&self) -> ::cpp_core::CppBox<::qt_core::QVariant> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QPropertyUpdatedChange_value(
self as *const crate::QPropertyUpdatedChange,
)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
}
/// <p>Used to notify when a value is added to a property</p>
///
/// C++ class: <span style='color: green;'>```Qt3DCore::QPropertyValueAddedChange```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qpropertyvalueaddedchange.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Used to notify when a value is added to a property</p></div>
#[repr(C)]
pub struct QPropertyValueAddedChange {
_unused: u8,
}
impl QPropertyValueAddedChange {
/// <p>Returns the value added to the property.</p>
///
/// Calls C++ function: <span style='color: green;'>```QVariant Qt3DCore::QPropertyValueAddedChange::addedValue() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qpropertyvalueaddedchange.html#addedValue">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the value added to the property.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qt3dcore-qpropertyvalueaddedchange.html#setAddedValue">setAddedValue</a>().</p></div>
#[inline(always)]
pub unsafe fn added_value(&self) -> ::cpp_core::CppBox<::qt_core::QVariant> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QPropertyValueAddedChange_addedValue(
self as *const crate::QPropertyValueAddedChange,
)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Constructs a new <a href="http://doc.qt.io/qt-5/qt3dcore-qpropertyvalueaddedchange.html">QPropertyValueAddedChange</a> with <i>subjectId</i>.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DCore::QPropertyValueAddedChange::QPropertyValueAddedChange(Qt3DCore::QNodeId subjectId)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qpropertyvalueaddedchange.html#QPropertyValueAddedChange">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/qt3dcore-qpropertyvalueaddedchange.html">QPropertyValueAddedChange</a> with <i>subjectId</i>.</p></div>
#[inline(always)]
pub unsafe fn new(
subject_id: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QNodeId>>,
) -> ::cpp_core::CppBox<crate::QPropertyValueAddedChange> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QPropertyValueAddedChange_QPropertyValueAddedChange(::cpp_core::CastInto::<::cpp_core::Ref<crate::QNodeId>>::cast_into(subject_id).as_raw_ptr())
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Sets the value added to the property to <i>value</i>.</p>
///
/// Calls C++ function: <span style='color: green;'>```void Qt3DCore::QPropertyValueAddedChange::setAddedValue(const QVariant& value)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qpropertyvalueaddedchange.html#setAddedValue">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Sets the value added to the property to <i>value</i>.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qt3dcore-qpropertyvalueaddedchange.html#addedValue">addedValue</a>().</p></div>
#[inline(always)]
pub unsafe fn set_added_value(
&self,
value: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_core::QVariant>>,
) {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QPropertyValueAddedChange_setAddedValue(
self as *const crate::QPropertyValueAddedChange
as *mut crate::QPropertyValueAddedChange,
::cpp_core::CastInto::<::cpp_core::Ref<::qt_core::QVariant>>::cast_into(value)
.as_raw_ptr(),
)
}
}
/// <p>Used to notify when a value is added to a property</p>
///
/// C++ class: <span style='color: green;'>```Qt3DCore::QPropertyValueRemovedChange```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qpropertyvalueremovedchange.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Used to notify when a value is added to a property</p></div>
#[repr(C)]
pub struct QPropertyValueRemovedChange {
_unused: u8,
}
impl QPropertyValueRemovedChange {
/// <p>Constructs a new <a href="http://doc.qt.io/qt-5/qt3dcore-qpropertyvalueremovedchange.html">QPropertyValueRemovedChange</a> with <i>subjectId</i>.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DCore::QPropertyValueRemovedChange::QPropertyValueRemovedChange(Qt3DCore::QNodeId subjectId)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qpropertyvalueremovedchange.html#QPropertyValueRemovedChange">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/qt3dcore-qpropertyvalueremovedchange.html">QPropertyValueRemovedChange</a> with <i>subjectId</i>.</p></div>
#[inline(always)]
pub unsafe fn new(
subject_id: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QNodeId>>,
) -> ::cpp_core::CppBox<crate::QPropertyValueRemovedChange> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QPropertyValueRemovedChange_QPropertyValueRemovedChange(::cpp_core::CastInto::<::cpp_core::Ref<crate::QNodeId>>::cast_into(subject_id).as_raw_ptr())
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Returns the value removed from the property.</p>
///
/// Calls C++ function: <span style='color: green;'>```QVariant Qt3DCore::QPropertyValueRemovedChange::removedValue() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qpropertyvalueremovedchange.html#removedValue">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the value removed from the property.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qt3dcore-qpropertyvalueremovedchange.html#setRemovedValue">setRemovedValue</a>().</p></div>
#[inline(always)]
pub unsafe fn removed_value(&self) -> ::cpp_core::CppBox<::qt_core::QVariant> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QPropertyValueRemovedChange_removedValue(
self as *const crate::QPropertyValueRemovedChange,
)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Sets the value removed from the property to <i>value</i>.</p>
///
/// Calls C++ function: <span style='color: green;'>```void Qt3DCore::QPropertyValueRemovedChange::setRemovedValue(const QVariant& value)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qpropertyvalueremovedchange.html#setRemovedValue">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Sets the value removed from the property to <i>value</i>.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qt3dcore-qpropertyvalueremovedchange.html#removedValue">removedValue</a>().</p></div>
#[inline(always)]
pub unsafe fn set_removed_value(
&self,
value: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_core::QVariant>>,
) {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QPropertyValueRemovedChange_setRemovedValue(
self as *const crate::QPropertyValueRemovedChange
as *mut crate::QPropertyValueRemovedChange,
::cpp_core::CastInto::<::cpp_core::Ref<::qt_core::QVariant>>::cast_into(value)
.as_raw_ptr(),
)
}
}
/// <p>Used to perform transforms on meshes</p>
///
/// C++ class: <span style='color: green;'>```Qt3DCore::QTransform```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qtransform.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Used to perform transforms on meshes</p>
/// <p>The <a href="http://doc.qt.io/qt-5/qt3dcore-qtransform.html">QTransform</a> component is not shareable between multiple <a href="http://doc.qt.io/qt-5/qt3dcore-qentity.html">QEntity</a>'s. The transformation is held as <a href="http://doc.qt.io/qt-5/qvector3d.html">QVector3D</a> scale, <a href="http://doc.qt.io/qt-5/qquaternion.html">QQuaternion</a> rotation and <a href="http://doc.qt.io/qt-5/qvector3d.html">QVector3D</a> translation components. The transformations are applied to the mesh in that order. When <a href="http://doc.qt.io/qt-5/qt3dcore-qtransform.html#matrix-prop">QTransform::matrix</a> property is set, it is decomposed to these transform components and corresponding signals are emitted.</p>
/// <p>Several helper functions are provided to set up the <a href="http://doc.qt.io/qt-5/qt3dcore-qtransform.html">QTransform</a>; <a href="http://doc.qt.io/qt-5/qt3dcore-qtransform.html#fromAxisAndAngle">fromAxisAndAngle</a> and <a href="http://doc.qt.io/qt-5/qt3dcore-qtransform.html#fromAxesAndAngles">fromAxesAndAngles</a> can be used to set the rotation around specific axes, <a href="http://doc.qt.io/qt-5/qt3dcore-qtransform.html#fromEulerAngles">fromEulerAngles</a> can be used to set the rotation based on euler angles and <a href="http://doc.qt.io/qt-5/qt3dcore-qtransform.html#rotateAround">rotateAround</a> can be used to rotate the object around specific point relative to local origin.</p></div>
#[repr(C)]
pub struct QTransform {
_unused: u8,
}
impl QTransform {
/// <p>Holds the uniform scale of the transform. If the scale has been set with <a href="http://doc.qt.io/qt-5/qt3dcore-qtransform.html#scale3D-prop">setScale3D</a>, holds the x value only.</p>
///
/// Returns a built-in Qt slot `Qt3DCore::QTransform::setScale` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qtransform.html#scale-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the uniform scale of the transform. If the scale has been set with <a href="http://doc.qt.io/qt-5/qt3dcore-qtransform.html#scale3D-prop">setScale3D</a>, holds the x value only.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> float </td><td class="memItemRight bottomAlign"><span class="name"><b>scale</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setScale</b></span>(float <i>scale</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>scaleChanged</b></span>(float <i>scale</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub fn slot_set_scale(&self) -> ::qt_core::Receiver<(::std::os::raw::c_float,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw(self).expect("attempted to construct a null Ref"),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setScale(float)\0"),
)
}
}
/// <p>Holds the scale of the transform as <a href="http://doc.qt.io/qt-5/qvector3d.html">QVector3D</a>.</p>
///
/// Returns a built-in Qt slot `Qt3DCore::QTransform::setScale3D` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qtransform.html#scale3D-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the scale of the transform as <a href="http://doc.qt.io/qt-5/qvector3d.html">QVector3D</a>.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QVector3D </td><td class="memItemRight bottomAlign"><span class="name"><b>scale3D</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setScale3D</b></span>(const QVector3D &<i>scale</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>scale3DChanged</b></span>(const QVector3D &<i>scale</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub fn slot_set_scale_3d(&self) -> ::qt_core::Receiver<(*const ::qt_gui::QVector3D,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw(self).expect("attempted to construct a null Ref"),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"1setScale3D(QVector3D const &)\0",
),
)
}
}
/// <p>Holds the rotation of the transform as <a href="http://doc.qt.io/qt-5/qquaternion.html">QQuaternion</a>.</p>
///
/// Returns a built-in Qt slot `Qt3DCore::QTransform::setRotation` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qtransform.html#rotation-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the rotation of the transform as <a href="http://doc.qt.io/qt-5/qquaternion.html">QQuaternion</a>.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QQuaternion </td><td class="memItemRight bottomAlign"><span class="name"><b>rotation</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setRotation</b></span>(const QQuaternion &<i>rotation</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>rotationChanged</b></span>(const QQuaternion &<i>rotation</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub fn slot_set_rotation(&self) -> ::qt_core::Receiver<(*const ::qt_gui::QQuaternion,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw(self).expect("attempted to construct a null Ref"),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"1setRotation(QQuaternion const &)\0",
),
)
}
}
/// <p>Holds the translation of the transform as <a href="http://doc.qt.io/qt-5/qvector3d.html">QVector3D</a>.</p>
///
/// Returns a built-in Qt slot `Qt3DCore::QTransform::setTranslation` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qtransform.html#translation-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the translation of the transform as <a href="http://doc.qt.io/qt-5/qvector3d.html">QVector3D</a>.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QVector3D </td><td class="memItemRight bottomAlign"><span class="name"><b>translation</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setTranslation</b></span>(const QVector3D &<i>translation</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>translationChanged</b></span>(const QVector3D &<i>translation</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub fn slot_set_translation(&self) -> ::qt_core::Receiver<(*const ::qt_gui::QVector3D,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw(self).expect("attempted to construct a null Ref"),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"1setTranslation(QVector3D const &)\0",
),
)
}
}
/// <p>Holds the <a href="http://doc.qt.io/qt-5/qmatrix4x4.html">QMatrix4x4</a> of the transform.</p>
///
/// Returns a built-in Qt slot `Qt3DCore::QTransform::setMatrix` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qtransform.html#matrix-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the <a href="http://doc.qt.io/qt-5/qmatrix4x4.html">QMatrix4x4</a> of the transform.</p>
/// <p><b>Note: </b>When the matrix property is set, it is decomposed to translation, rotation and scale components.</p><p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QMatrix4x4 </td><td class="memItemRight bottomAlign"><span class="name"><b>matrix</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setMatrix</b></span>(const QMatrix4x4 &<i>matrix</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>matrixChanged</b></span>()</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub fn slot_set_matrix(&self) -> ::qt_core::Receiver<(*const ::qt_gui::QMatrix4X4,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw(self).expect("attempted to construct a null Ref"),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"1setMatrix(QMatrix4x4 const &)\0",
),
)
}
}
/// <p>Holds the x rotation of the transform as Euler angle.</p>
///
/// Returns a built-in Qt slot `Qt3DCore::QTransform::setRotationX` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qtransform.html#rotationX-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the x rotation of the transform as Euler angle.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> float </td><td class="memItemRight bottomAlign"><span class="name"><b>rotationX</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setRotationX</b></span>(float <i>rotationX</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>rotationXChanged</b></span>(float <i>rotationX</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub fn slot_set_rotation_x(&self) -> ::qt_core::Receiver<(::std::os::raw::c_float,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw(self).expect("attempted to construct a null Ref"),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setRotationX(float)\0"),
)
}
}
/// <p>Holds the y rotation of the transform as Euler angle.</p>
///
/// Returns a built-in Qt slot `Qt3DCore::QTransform::setRotationY` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qtransform.html#rotationY-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the y rotation of the transform as Euler angle.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> float </td><td class="memItemRight bottomAlign"><span class="name"><b>rotationY</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setRotationY</b></span>(float <i>rotationY</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>rotationYChanged</b></span>(float <i>rotationY</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub fn slot_set_rotation_y(&self) -> ::qt_core::Receiver<(::std::os::raw::c_float,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw(self).expect("attempted to construct a null Ref"),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setRotationY(float)\0"),
)
}
}
/// <p>Holds the z rotation of the transform as Euler angle.</p>
///
/// Returns a built-in Qt slot `Qt3DCore::QTransform::setRotationZ` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qtransform.html#rotationZ-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the z rotation of the transform as Euler angle.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> float </td><td class="memItemRight bottomAlign"><span class="name"><b>rotationZ</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setRotationZ</b></span>(float <i>rotationZ</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>rotationZChanged</b></span>(float <i>rotationZ</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub fn slot_set_rotation_z(&self) -> ::qt_core::Receiver<(::std::os::raw::c_float,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw(self).expect("attempted to construct a null Ref"),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setRotationZ(float)\0"),
)
}
}
/// <p>Holds the uniform scale of the transform. If the scale has been set with <a href="http://doc.qt.io/qt-5/qt3dcore-qtransform.html#scale3D-prop">setScale3D</a>, holds the x value only.</p>
///
/// Returns a built-in Qt signal `Qt3DCore::QTransform::scaleChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qtransform.html#scale-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the uniform scale of the transform. If the scale has been set with <a href="http://doc.qt.io/qt-5/qt3dcore-qtransform.html#scale3D-prop">setScale3D</a>, holds the x value only.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> float </td><td class="memItemRight bottomAlign"><span class="name"><b>scale</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setScale</b></span>(float <i>scale</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>scaleChanged</b></span>(float <i>scale</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub fn scale_changed(&self) -> ::qt_core::Signal<(::std::os::raw::c_float,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw(self).expect("attempted to construct a null Ref"),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2scaleChanged(float)\0"),
)
}
}
/// <p>Holds the scale of the transform as <a href="http://doc.qt.io/qt-5/qvector3d.html">QVector3D</a>.</p>
///
/// Returns a built-in Qt signal `Qt3DCore::QTransform::scale3DChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qtransform.html#scale3D-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the scale of the transform as <a href="http://doc.qt.io/qt-5/qvector3d.html">QVector3D</a>.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QVector3D </td><td class="memItemRight bottomAlign"><span class="name"><b>scale3D</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setScale3D</b></span>(const QVector3D &<i>scale</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>scale3DChanged</b></span>(const QVector3D &<i>scale</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub fn scale_3d_changed(&self) -> ::qt_core::Signal<(*const ::qt_gui::QVector3D,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw(self).expect("attempted to construct a null Ref"),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"2scale3DChanged(QVector3D const &)\0",
),
)
}
}
/// <p>Holds the rotation of the transform as <a href="http://doc.qt.io/qt-5/qquaternion.html">QQuaternion</a>.</p>
///
/// Returns a built-in Qt signal `Qt3DCore::QTransform::rotationChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qtransform.html#rotation-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the rotation of the transform as <a href="http://doc.qt.io/qt-5/qquaternion.html">QQuaternion</a>.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QQuaternion </td><td class="memItemRight bottomAlign"><span class="name"><b>rotation</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setRotation</b></span>(const QQuaternion &<i>rotation</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>rotationChanged</b></span>(const QQuaternion &<i>rotation</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub fn rotation_changed(&self) -> ::qt_core::Signal<(*const ::qt_gui::QQuaternion,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw(self).expect("attempted to construct a null Ref"),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"2rotationChanged(QQuaternion const &)\0",
),
)
}
}
/// <p>Holds the translation of the transform as <a href="http://doc.qt.io/qt-5/qvector3d.html">QVector3D</a>.</p>
///
/// Returns a built-in Qt signal `Qt3DCore::QTransform::translationChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qtransform.html#translation-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the translation of the transform as <a href="http://doc.qt.io/qt-5/qvector3d.html">QVector3D</a>.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QVector3D </td><td class="memItemRight bottomAlign"><span class="name"><b>translation</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setTranslation</b></span>(const QVector3D &<i>translation</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>translationChanged</b></span>(const QVector3D &<i>translation</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub fn translation_changed(&self) -> ::qt_core::Signal<(*const ::qt_gui::QVector3D,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw(self).expect("attempted to construct a null Ref"),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"2translationChanged(QVector3D const &)\0",
),
)
}
}
/// <p>Holds the <a href="http://doc.qt.io/qt-5/qmatrix4x4.html">QMatrix4x4</a> of the transform.</p>
///
/// Returns a built-in Qt signal `Qt3DCore::QTransform::matrixChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qtransform.html#matrix-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the <a href="http://doc.qt.io/qt-5/qmatrix4x4.html">QMatrix4x4</a> of the transform.</p>
/// <p><b>Note: </b>When the matrix property is set, it is decomposed to translation, rotation and scale components.</p><p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QMatrix4x4 </td><td class="memItemRight bottomAlign"><span class="name"><b>matrix</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setMatrix</b></span>(const QMatrix4x4 &<i>matrix</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>matrixChanged</b></span>()</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub fn matrix_changed(&self) -> ::qt_core::Signal<()> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw(self).expect("attempted to construct a null Ref"),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2matrixChanged()\0"),
)
}
}
/// <p>Holds the x rotation of the transform as Euler angle.</p>
///
/// Returns a built-in Qt signal `Qt3DCore::QTransform::rotationXChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qtransform.html#rotationX-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the x rotation of the transform as Euler angle.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> float </td><td class="memItemRight bottomAlign"><span class="name"><b>rotationX</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setRotationX</b></span>(float <i>rotationX</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>rotationXChanged</b></span>(float <i>rotationX</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub fn rotation_x_changed(&self) -> ::qt_core::Signal<(::std::os::raw::c_float,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw(self).expect("attempted to construct a null Ref"),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2rotationXChanged(float)\0"),
)
}
}
/// <p>Holds the y rotation of the transform as Euler angle.</p>
///
/// Returns a built-in Qt signal `Qt3DCore::QTransform::rotationYChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qtransform.html#rotationY-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the y rotation of the transform as Euler angle.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> float </td><td class="memItemRight bottomAlign"><span class="name"><b>rotationY</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setRotationY</b></span>(float <i>rotationY</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>rotationYChanged</b></span>(float <i>rotationY</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub fn rotation_y_changed(&self) -> ::qt_core::Signal<(::std::os::raw::c_float,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw(self).expect("attempted to construct a null Ref"),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2rotationYChanged(float)\0"),
)
}
}
/// <p>Holds the z rotation of the transform as Euler angle.</p>
///
/// Returns a built-in Qt signal `Qt3DCore::QTransform::rotationZChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qtransform.html#rotationZ-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the z rotation of the transform as Euler angle.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> float </td><td class="memItemRight bottomAlign"><span class="name"><b>rotationZ</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setRotationZ</b></span>(float <i>rotationZ</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>rotationZChanged</b></span>(float <i>rotationZ</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub fn rotation_z_changed(&self) -> ::qt_core::Signal<(::std::os::raw::c_float,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw(self).expect("attempted to construct a null Ref"),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2rotationZChanged(float)\0"),
)
}
}
/// <p>Creates a QQuaterniom definining a rotation from the axes <i>xAxis</i>, <i>yAxis</i> and <i>zAxis</i>.</p>
///
/// Calls C++ function: <span style='color: green;'>```static QQuaternion Qt3DCore::QTransform::fromAxes(const QVector3D& xAxis, const QVector3D& yAxis, const QVector3D& zAxis)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qtransform.html#fromAxes">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Creates a QQuaterniom definining a rotation from the axes <i>xAxis</i>, <i>yAxis</i> and <i>zAxis</i>.</p>
/// <p>This function was introduced in Qt 5.11.</p>
/// <p><b>Note: </b>This function can be invoked via the meta-object system and from QML. See <a href="http://doc.qt.io/qt-5/qobject.html#Q_INVOKABLE">Q_INVOKABLE</a>.</p></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn from_axes(
x_axis: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_gui::QVector3D>>,
y_axis: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_gui::QVector3D>>,
z_axis: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_gui::QVector3D>>,
) -> ::cpp_core::CppBox<::qt_gui::QQuaternion> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QTransform_fromAxes(
::cpp_core::CastInto::<::cpp_core::Ref<::qt_gui::QVector3D>>::cast_into(x_axis)
.as_raw_ptr(),
::cpp_core::CastInto::<::cpp_core::Ref<::qt_gui::QVector3D>>::cast_into(y_axis)
.as_raw_ptr(),
::cpp_core::CastInto::<::cpp_core::Ref<::qt_gui::QVector3D>>::cast_into(z_axis)
.as_raw_ptr(),
)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Creates a <a href="http://doc.qt.io/qt-5/qquaternion.html">QQuaternion</a> from <i>axis1</i>, <i>angle1</i>, <i>axis2</i>, and <i>angle2</i>. Returns the resulting <a href="http://doc.qt.io/qt-5/qquaternion.html">QQuaternion</a>.</p>
///
/// Calls C++ function: <span style='color: green;'>```static QQuaternion Qt3DCore::QTransform::fromAxesAndAngles(const QVector3D& axis1, float angle1, const QVector3D& axis2, float angle2)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qtransform.html#fromAxesAndAngles">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Creates a <a href="http://doc.qt.io/qt-5/qquaternion.html">QQuaternion</a> from <i>axis1</i>, <i>angle1</i>, <i>axis2</i>, and <i>angle2</i>. Returns the resulting <a href="http://doc.qt.io/qt-5/qquaternion.html">QQuaternion</a>.</p></div>
#[inline(always)]
pub unsafe fn from_axes_and_angles_4a(
axis1: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_gui::QVector3D>>,
angle1: ::std::os::raw::c_float,
axis2: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_gui::QVector3D>>,
angle2: ::std::os::raw::c_float,
) -> ::cpp_core::CppBox<::qt_gui::QQuaternion> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QTransform_fromAxesAndAngles(
::cpp_core::CastInto::<::cpp_core::Ref<::qt_gui::QVector3D>>::cast_into(axis1)
.as_raw_ptr(),
angle1,
::cpp_core::CastInto::<::cpp_core::Ref<::qt_gui::QVector3D>>::cast_into(axis2)
.as_raw_ptr(),
angle2,
)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Creates a <a href="http://doc.qt.io/qt-5/qquaternion.html">QQuaternion</a> from <i>axis1</i>, <i>angle1</i>, <i>axis2</i>, <i>angle2</i>, <i>axis3</i>, and <i>angle3</i>. Returns the resulting <a href="http://doc.qt.io/qt-5/qquaternion.html">QQuaternion</a>.</p>
///
/// Calls C++ function: <span style='color: green;'>```static QQuaternion Qt3DCore::QTransform::fromAxesAndAngles(const QVector3D& axis1, float angle1, const QVector3D& axis2, float angle2, const QVector3D& axis3, float angle3)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qtransform.html#fromAxesAndAngles-1">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Creates a <a href="http://doc.qt.io/qt-5/qquaternion.html">QQuaternion</a> from <i>axis1</i>, <i>angle1</i>, <i>axis2</i>, <i>angle2</i>, <i>axis3</i>, and <i>angle3</i>. Returns the resulting <a href="http://doc.qt.io/qt-5/qquaternion.html">QQuaternion</a>.</p></div>
#[inline(always)]
pub unsafe fn from_axes_and_angles_6a(
axis1: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_gui::QVector3D>>,
angle1: ::std::os::raw::c_float,
axis2: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_gui::QVector3D>>,
angle2: ::std::os::raw::c_float,
axis3: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_gui::QVector3D>>,
angle3: ::std::os::raw::c_float,
) -> ::cpp_core::CppBox<::qt_gui::QQuaternion> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QTransform_fromAxesAndAngles1(
::cpp_core::CastInto::<::cpp_core::Ref<::qt_gui::QVector3D>>::cast_into(axis1)
.as_raw_ptr(),
angle1,
::cpp_core::CastInto::<::cpp_core::Ref<::qt_gui::QVector3D>>::cast_into(axis2)
.as_raw_ptr(),
angle2,
::cpp_core::CastInto::<::cpp_core::Ref<::qt_gui::QVector3D>>::cast_into(axis3)
.as_raw_ptr(),
angle3,
)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Creates a <a href="http://doc.qt.io/qt-5/qquaternion.html">QQuaternion</a> from <i>axis</i> and <i>angle</i>. Returns the resulting <a href="http://doc.qt.io/qt-5/qquaternion.html">QQuaternion</a>.</p>
///
/// Calls C++ function: <span style='color: green;'>```static QQuaternion Qt3DCore::QTransform::fromAxisAndAngle(const QVector3D& axis, float angle)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qtransform.html#fromAxisAndAngle">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Creates a <a href="http://doc.qt.io/qt-5/qquaternion.html">QQuaternion</a> from <i>axis</i> and <i>angle</i>. Returns the resulting <a href="http://doc.qt.io/qt-5/qquaternion.html">QQuaternion</a>.</p></div>
#[inline(always)]
pub unsafe fn from_axis_and_angle_2a(
axis: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_gui::QVector3D>>,
angle: ::std::os::raw::c_float,
) -> ::cpp_core::CppBox<::qt_gui::QQuaternion> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QTransform_fromAxisAndAngle(
::cpp_core::CastInto::<::cpp_core::Ref<::qt_gui::QVector3D>>::cast_into(axis)
.as_raw_ptr(),
angle,
)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Creates a <a href="http://doc.qt.io/qt-5/qquaternion.html">QQuaternion</a> from <i>x</i>, <i>y</i>, <i>z</i>, and <i>angle</i>. Returns the resulting <a href="http://doc.qt.io/qt-5/qquaternion.html">QQuaternion</a>.</p>
///
/// Calls C++ function: <span style='color: green;'>```static QQuaternion Qt3DCore::QTransform::fromAxisAndAngle(float x, float y, float z, float angle)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qtransform.html#fromAxisAndAngle-1">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Creates a <a href="http://doc.qt.io/qt-5/qquaternion.html">QQuaternion</a> from <i>x</i>, <i>y</i>, <i>z</i>, and <i>angle</i>. Returns the resulting <a href="http://doc.qt.io/qt-5/qquaternion.html">QQuaternion</a>.</p></div>
#[inline(always)]
pub unsafe fn from_axis_and_angle_4a(
x: ::std::os::raw::c_float,
y: ::std::os::raw::c_float,
z: ::std::os::raw::c_float,
angle: ::std::os::raw::c_float,
) -> ::cpp_core::CppBox<::qt_gui::QQuaternion> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QTransform_fromAxisAndAngle1(x, y, z, angle)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Creates a <a href="http://doc.qt.io/qt-5/qquaternion.html">QQuaternion</a> from <i>eulerAngles</i>. Returns the resulting <a href="http://doc.qt.io/qt-5/qquaternion.html">QQuaternion</a>.</p>
///
/// Calls C++ function: <span style='color: green;'>```static QQuaternion Qt3DCore::QTransform::fromEulerAngles(const QVector3D& eulerAngles)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qtransform.html#fromEulerAngles">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Creates a <a href="http://doc.qt.io/qt-5/qquaternion.html">QQuaternion</a> from <i>eulerAngles</i>. Returns the resulting <a href="http://doc.qt.io/qt-5/qquaternion.html">QQuaternion</a>.</p></div>
#[inline(always)]
pub unsafe fn from_euler_angles_1a(
euler_angles: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_gui::QVector3D>>,
) -> ::cpp_core::CppBox<::qt_gui::QQuaternion> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QTransform_fromEulerAngles(
::cpp_core::CastInto::<::cpp_core::Ref<::qt_gui::QVector3D>>::cast_into(
euler_angles,
)
.as_raw_ptr(),
)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Creates a <a href="http://doc.qt.io/qt-5/qquaternion.html">QQuaternion</a> from <i>pitch</i>, <i>yaw</i>, and <i>roll</i>. Returns the resulting <a href="http://doc.qt.io/qt-5/qquaternion.html">QQuaternion</a>.</p>
///
/// Calls C++ function: <span style='color: green;'>```static QQuaternion Qt3DCore::QTransform::fromEulerAngles(float pitch, float yaw, float roll)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qtransform.html#fromEulerAngles-1">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Creates a <a href="http://doc.qt.io/qt-5/qquaternion.html">QQuaternion</a> from <i>pitch</i>, <i>yaw</i>, and <i>roll</i>. Returns the resulting <a href="http://doc.qt.io/qt-5/qquaternion.html">QQuaternion</a>.</p></div>
#[inline(always)]
pub unsafe fn from_euler_angles_3a(
pitch: ::std::os::raw::c_float,
yaw: ::std::os::raw::c_float,
roll: ::std::os::raw::c_float,
) -> ::cpp_core::CppBox<::qt_gui::QQuaternion> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QTransform_fromEulerAngles1(pitch, yaw, roll)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Holds the <a href="http://doc.qt.io/qt-5/qmatrix4x4.html">QMatrix4x4</a> of the transform.</p>
///
/// Calls C++ function: <span style='color: green;'>```QMatrix4x4 Qt3DCore::QTransform::matrix() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qtransform.html#matrix-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the <a href="http://doc.qt.io/qt-5/qmatrix4x4.html">QMatrix4x4</a> of the transform.</p>
/// <p><b>Note: </b>When the matrix property is set, it is decomposed to translation, rotation and scale components.</p><p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QMatrix4x4 </td><td class="memItemRight bottomAlign"><span class="name"><b>matrix</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setMatrix</b></span>(const QMatrix4x4 &<i>matrix</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>matrixChanged</b></span>()</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub unsafe fn matrix(&self) -> ::cpp_core::CppBox<::qt_gui::QMatrix4X4> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QTransform_matrix(
self as *const crate::QTransform,
)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// Calls C++ function: <span style='color: green;'>```virtual const QMetaObject* Qt3DCore::QTransform::metaObject() const```</span>.
#[inline(always)]
pub unsafe fn meta_object(&self) -> ::cpp_core::Ptr<::qt_core::QMetaObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QTransform_metaObject(
self as *const crate::QTransform,
)
};
::cpp_core::Ptr::from_raw(ffi_result as *mut ::qt_core::QMetaObject)
}
/// <p>Constructs a new <a href="http://doc.qt.io/qt-5/qt3dcore-qtransform.html">QTransform</a> with <i>parent</i>.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DCore::QTransform::QTransform(Qt3DCore::QNode* parent = …)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qtransform.html#QTransform">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/qt3dcore-qtransform.html">QTransform</a> with <i>parent</i>.</p></div>
#[inline(always)]
pub unsafe fn new_1a(
parent: impl ::cpp_core::CastInto<::cpp_core::Ptr<crate::QNode>>,
) -> ::qt_core::QBox<crate::QTransform> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QTransform_QTransform(
::cpp_core::CastInto::<::cpp_core::Ptr<crate::QNode>>::cast_into(parent)
.as_raw_ptr() as *mut crate::QNode,
)
};
::qt_core::QBox::from_raw(ffi_result)
}
/// <p>Used to perform transforms on meshes</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DCore::QTransform::QTransform()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qtransform.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Used to perform transforms on meshes</p>
/// <p>The <a href="http://doc.qt.io/qt-5/qt3dcore-qtransform.html">QTransform</a> component is not shareable between multiple <a href="http://doc.qt.io/qt-5/qt3dcore-qentity.html">QEntity</a>'s. The transformation is held as <a href="http://doc.qt.io/qt-5/qvector3d.html">QVector3D</a> scale, <a href="http://doc.qt.io/qt-5/qquaternion.html">QQuaternion</a> rotation and <a href="http://doc.qt.io/qt-5/qvector3d.html">QVector3D</a> translation components. The transformations are applied to the mesh in that order. When <a href="http://doc.qt.io/qt-5/qt3dcore-qtransform.html#matrix-prop">QTransform::matrix</a> property is set, it is decomposed to these transform components and corresponding signals are emitted.</p>
/// <p>Several helper functions are provided to set up the <a href="http://doc.qt.io/qt-5/qt3dcore-qtransform.html">QTransform</a>; <a href="http://doc.qt.io/qt-5/qt3dcore-qtransform.html#fromAxisAndAngle">fromAxisAndAngle</a> and <a href="http://doc.qt.io/qt-5/qt3dcore-qtransform.html#fromAxesAndAngles">fromAxesAndAngles</a> can be used to set the rotation around specific axes, <a href="http://doc.qt.io/qt-5/qt3dcore-qtransform.html#fromEulerAngles">fromEulerAngles</a> can be used to set the rotation based on euler angles and <a href="http://doc.qt.io/qt-5/qt3dcore-qtransform.html#rotateAround">rotateAround</a> can be used to rotate the object around specific point relative to local origin.</p></div>
#[inline(always)]
pub unsafe fn new_0a() -> ::qt_core::QBox<crate::QTransform> {
let ffi_result = { crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QTransform_QTransform1() };
::qt_core::QBox::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```virtual int Qt3DCore::QTransform::qt_metacall(QMetaObject::Call arg1, int arg2, void** arg3)```</span>.
#[inline(always)]
pub unsafe fn qt_metacall(
&self,
arg1: ::qt_core::q_meta_object::Call,
arg2: ::std::os::raw::c_int,
arg3: *mut *mut ::std::ffi::c_void,
) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QTransform_qt_metacall(
self as *const crate::QTransform as *mut crate::QTransform,
arg1,
arg2,
arg3,
)
}
/// Calls C++ function: <span style='color: green;'>```virtual void* Qt3DCore::QTransform::qt_metacast(const char* arg1)```</span>.
#[inline(always)]
pub unsafe fn qt_metacast(
&self,
arg1: *const ::std::os::raw::c_char,
) -> *mut ::std::ffi::c_void {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QTransform_qt_metacast(
self as *const crate::QTransform as *mut crate::QTransform,
arg1,
)
}
/// <p>Creates a rotation matrix from <i>axis</i> and <i>angle</i> around <i>point</i>. Returns the resulting <a href="http://doc.qt.io/qt-5/qmatrix4x4.html">QMatrix4x4</a>.</p>
///
/// Calls C++ function: <span style='color: green;'>```static QMatrix4x4 Qt3DCore::QTransform::rotateAround(const QVector3D& point, float angle, const QVector3D& axis)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qtransform.html#rotateAround">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Creates a rotation matrix from <i>axis</i> and <i>angle</i> around <i>point</i>. Returns the resulting <a href="http://doc.qt.io/qt-5/qmatrix4x4.html">QMatrix4x4</a>.</p></div>
#[inline(always)]
pub unsafe fn rotate_around(
point: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_gui::QVector3D>>,
angle: ::std::os::raw::c_float,
axis: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_gui::QVector3D>>,
) -> ::cpp_core::CppBox<::qt_gui::QMatrix4X4> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QTransform_rotateAround(
::cpp_core::CastInto::<::cpp_core::Ref<::qt_gui::QVector3D>>::cast_into(point)
.as_raw_ptr(),
angle,
::cpp_core::CastInto::<::cpp_core::Ref<::qt_gui::QVector3D>>::cast_into(axis)
.as_raw_ptr(),
)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Returns a rotation matrix defined from the axes <i>xAxis</i>, <i>yAxis</i>, <i>zAxis</i>.</p>
///
/// Calls C++ function: <span style='color: green;'>```static QMatrix4x4 Qt3DCore::QTransform::rotateFromAxes(const QVector3D& xAxis, const QVector3D& yAxis, const QVector3D& zAxis)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qtransform.html#rotateFromAxes">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns a rotation matrix defined from the axes <i>xAxis</i>, <i>yAxis</i>, <i>zAxis</i>.</p>
/// <p>This function was introduced in Qt 5.11.</p>
/// <p><b>Note: </b>This function can be invoked via the meta-object system and from QML. See <a href="http://doc.qt.io/qt-5/qobject.html#Q_INVOKABLE">Q_INVOKABLE</a>.</p></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn rotate_from_axes(
x_axis: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_gui::QVector3D>>,
y_axis: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_gui::QVector3D>>,
z_axis: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_gui::QVector3D>>,
) -> ::cpp_core::CppBox<::qt_gui::QMatrix4X4> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QTransform_rotateFromAxes(
::cpp_core::CastInto::<::cpp_core::Ref<::qt_gui::QVector3D>>::cast_into(x_axis)
.as_raw_ptr(),
::cpp_core::CastInto::<::cpp_core::Ref<::qt_gui::QVector3D>>::cast_into(y_axis)
.as_raw_ptr(),
::cpp_core::CastInto::<::cpp_core::Ref<::qt_gui::QVector3D>>::cast_into(z_axis)
.as_raw_ptr(),
)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Holds the rotation of the transform as <a href="http://doc.qt.io/qt-5/qquaternion.html">QQuaternion</a>.</p>
///
/// Calls C++ function: <span style='color: green;'>```QQuaternion Qt3DCore::QTransform::rotation() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qtransform.html#rotation-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the rotation of the transform as <a href="http://doc.qt.io/qt-5/qquaternion.html">QQuaternion</a>.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QQuaternion </td><td class="memItemRight bottomAlign"><span class="name"><b>rotation</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setRotation</b></span>(const QQuaternion &<i>rotation</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>rotationChanged</b></span>(const QQuaternion &<i>rotation</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub unsafe fn rotation(&self) -> ::cpp_core::CppBox<::qt_gui::QQuaternion> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QTransform_rotation(
self as *const crate::QTransform,
)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Holds the x rotation of the transform as Euler angle.</p>
///
/// Calls C++ function: <span style='color: green;'>```float Qt3DCore::QTransform::rotationX() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qtransform.html#rotationX-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the x rotation of the transform as Euler angle.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> float </td><td class="memItemRight bottomAlign"><span class="name"><b>rotationX</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setRotationX</b></span>(float <i>rotationX</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>rotationXChanged</b></span>(float <i>rotationX</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub unsafe fn rotation_x(&self) -> ::std::os::raw::c_float {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QTransform_rotationX(
self as *const crate::QTransform,
)
}
/// <p>Holds the y rotation of the transform as Euler angle.</p>
///
/// Calls C++ function: <span style='color: green;'>```float Qt3DCore::QTransform::rotationY() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qtransform.html#rotationY-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the y rotation of the transform as Euler angle.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> float </td><td class="memItemRight bottomAlign"><span class="name"><b>rotationY</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setRotationY</b></span>(float <i>rotationY</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>rotationYChanged</b></span>(float <i>rotationY</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub unsafe fn rotation_y(&self) -> ::std::os::raw::c_float {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QTransform_rotationY(
self as *const crate::QTransform,
)
}
/// <p>Holds the z rotation of the transform as Euler angle.</p>
///
/// Calls C++ function: <span style='color: green;'>```float Qt3DCore::QTransform::rotationZ() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qtransform.html#rotationZ-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the z rotation of the transform as Euler angle.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> float </td><td class="memItemRight bottomAlign"><span class="name"><b>rotationZ</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setRotationZ</b></span>(float <i>rotationZ</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>rotationZChanged</b></span>(float <i>rotationZ</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub unsafe fn rotation_z(&self) -> ::std::os::raw::c_float {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QTransform_rotationZ(
self as *const crate::QTransform,
)
}
/// <p>Holds the uniform scale of the transform. If the scale has been set with <a href="http://doc.qt.io/qt-5/qt3dcore-qtransform.html#scale3D-prop">setScale3D</a>, holds the x value only.</p>
///
/// Calls C++ function: <span style='color: green;'>```float Qt3DCore::QTransform::scale() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qtransform.html#scale-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the uniform scale of the transform. If the scale has been set with <a href="http://doc.qt.io/qt-5/qt3dcore-qtransform.html#scale3D-prop">setScale3D</a>, holds the x value only.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> float </td><td class="memItemRight bottomAlign"><span class="name"><b>scale</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setScale</b></span>(float <i>scale</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>scaleChanged</b></span>(float <i>scale</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub unsafe fn scale(&self) -> ::std::os::raw::c_float {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QTransform_scale(self as *const crate::QTransform)
}
/// <p>Holds the scale of the transform as <a href="http://doc.qt.io/qt-5/qvector3d.html">QVector3D</a>.</p>
///
/// Calls C++ function: <span style='color: green;'>```QVector3D Qt3DCore::QTransform::scale3D() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qtransform.html#scale3D-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the scale of the transform as <a href="http://doc.qt.io/qt-5/qvector3d.html">QVector3D</a>.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QVector3D </td><td class="memItemRight bottomAlign"><span class="name"><b>scale3D</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setScale3D</b></span>(const QVector3D &<i>scale</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>scale3DChanged</b></span>(const QVector3D &<i>scale</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub unsafe fn scale_3d(&self) -> ::cpp_core::CppBox<::qt_gui::QVector3D> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QTransform_scale3D(
self as *const crate::QTransform,
)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Holds the <a href="http://doc.qt.io/qt-5/qmatrix4x4.html">QMatrix4x4</a> of the transform.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DCore::QTransform::setMatrix(const QMatrix4x4& matrix)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qtransform.html#matrix-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the <a href="http://doc.qt.io/qt-5/qmatrix4x4.html">QMatrix4x4</a> of the transform.</p>
/// <p><b>Note: </b>When the matrix property is set, it is decomposed to translation, rotation and scale components.</p><p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QMatrix4x4 </td><td class="memItemRight bottomAlign"><span class="name"><b>matrix</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setMatrix</b></span>(const QMatrix4x4 &<i>matrix</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>matrixChanged</b></span>()</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub unsafe fn set_matrix(
&self,
matrix: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_gui::QMatrix4X4>>,
) {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QTransform_setMatrix(
self as *const crate::QTransform as *mut crate::QTransform,
::cpp_core::CastInto::<::cpp_core::Ref<::qt_gui::QMatrix4X4>>::cast_into(matrix)
.as_raw_ptr(),
)
}
/// <p>Holds the rotation of the transform as <a href="http://doc.qt.io/qt-5/qquaternion.html">QQuaternion</a>.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DCore::QTransform::setRotation(const QQuaternion& rotation)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qtransform.html#rotation-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the rotation of the transform as <a href="http://doc.qt.io/qt-5/qquaternion.html">QQuaternion</a>.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QQuaternion </td><td class="memItemRight bottomAlign"><span class="name"><b>rotation</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setRotation</b></span>(const QQuaternion &<i>rotation</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>rotationChanged</b></span>(const QQuaternion &<i>rotation</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub unsafe fn set_rotation(
&self,
rotation: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_gui::QQuaternion>>,
) {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QTransform_setRotation(
self as *const crate::QTransform as *mut crate::QTransform,
::cpp_core::CastInto::<::cpp_core::Ref<::qt_gui::QQuaternion>>::cast_into(rotation)
.as_raw_ptr(),
)
}
/// <p>Holds the x rotation of the transform as Euler angle.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DCore::QTransform::setRotationX(float rotationX)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qtransform.html#rotationX-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the x rotation of the transform as Euler angle.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> float </td><td class="memItemRight bottomAlign"><span class="name"><b>rotationX</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setRotationX</b></span>(float <i>rotationX</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>rotationXChanged</b></span>(float <i>rotationX</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub unsafe fn set_rotation_x(&self, rotation_x: ::std::os::raw::c_float) {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QTransform_setRotationX(
self as *const crate::QTransform as *mut crate::QTransform,
rotation_x,
)
}
/// <p>Holds the y rotation of the transform as Euler angle.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DCore::QTransform::setRotationY(float rotationY)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qtransform.html#rotationY-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the y rotation of the transform as Euler angle.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> float </td><td class="memItemRight bottomAlign"><span class="name"><b>rotationY</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setRotationY</b></span>(float <i>rotationY</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>rotationYChanged</b></span>(float <i>rotationY</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub unsafe fn set_rotation_y(&self, rotation_y: ::std::os::raw::c_float) {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QTransform_setRotationY(
self as *const crate::QTransform as *mut crate::QTransform,
rotation_y,
)
}
/// <p>Holds the z rotation of the transform as Euler angle.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DCore::QTransform::setRotationZ(float rotationZ)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qtransform.html#rotationZ-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the z rotation of the transform as Euler angle.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> float </td><td class="memItemRight bottomAlign"><span class="name"><b>rotationZ</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setRotationZ</b></span>(float <i>rotationZ</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>rotationZChanged</b></span>(float <i>rotationZ</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub unsafe fn set_rotation_z(&self, rotation_z: ::std::os::raw::c_float) {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QTransform_setRotationZ(
self as *const crate::QTransform as *mut crate::QTransform,
rotation_z,
)
}
/// <p>Holds the uniform scale of the transform. If the scale has been set with <a href="http://doc.qt.io/qt-5/qt3dcore-qtransform.html#scale3D-prop">setScale3D</a>, holds the x value only.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DCore::QTransform::setScale(float scale)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qtransform.html#scale-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the uniform scale of the transform. If the scale has been set with <a href="http://doc.qt.io/qt-5/qt3dcore-qtransform.html#scale3D-prop">setScale3D</a>, holds the x value only.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> float </td><td class="memItemRight bottomAlign"><span class="name"><b>scale</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setScale</b></span>(float <i>scale</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>scaleChanged</b></span>(float <i>scale</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub unsafe fn set_scale(&self, scale: ::std::os::raw::c_float) {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QTransform_setScale(
self as *const crate::QTransform as *mut crate::QTransform,
scale,
)
}
/// <p>Holds the scale of the transform as <a href="http://doc.qt.io/qt-5/qvector3d.html">QVector3D</a>.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DCore::QTransform::setScale3D(const QVector3D& scale)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qtransform.html#scale3D-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the scale of the transform as <a href="http://doc.qt.io/qt-5/qvector3d.html">QVector3D</a>.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QVector3D </td><td class="memItemRight bottomAlign"><span class="name"><b>scale3D</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setScale3D</b></span>(const QVector3D &<i>scale</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>scale3DChanged</b></span>(const QVector3D &<i>scale</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub unsafe fn set_scale_3d(
&self,
scale: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_gui::QVector3D>>,
) {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QTransform_setScale3D(
self as *const crate::QTransform as *mut crate::QTransform,
::cpp_core::CastInto::<::cpp_core::Ref<::qt_gui::QVector3D>>::cast_into(scale)
.as_raw_ptr(),
)
}
/// <p>Holds the translation of the transform as <a href="http://doc.qt.io/qt-5/qvector3d.html">QVector3D</a>.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DCore::QTransform::setTranslation(const QVector3D& translation)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qtransform.html#translation-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the translation of the transform as <a href="http://doc.qt.io/qt-5/qvector3d.html">QVector3D</a>.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QVector3D </td><td class="memItemRight bottomAlign"><span class="name"><b>translation</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setTranslation</b></span>(const QVector3D &<i>translation</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>translationChanged</b></span>(const QVector3D &<i>translation</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub unsafe fn set_translation(
&self,
translation: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_gui::QVector3D>>,
) {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QTransform_setTranslation(
self as *const crate::QTransform as *mut crate::QTransform,
::cpp_core::CastInto::<::cpp_core::Ref<::qt_gui::QVector3D>>::cast_into(translation)
.as_raw_ptr(),
)
}
/// Returns a reference to the <span style='color: green;'>```staticMetaObject```</span> field.
#[inline(always)]
pub unsafe fn static_meta_object() -> ::cpp_core::Ref<::qt_core::QMetaObject> {
let ffi_result =
{ crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QTransform_staticMetaObject() };
::cpp_core::Ref::from_raw(ffi_result as *mut ::qt_core::QMetaObject)
.expect("attempted to construct a null Ref")
}
/// Calls C++ function: <span style='color: green;'>```static QString Qt3DCore::QTransform::tr(const char* s, const char* c, int n)```</span>.
#[inline(always)]
pub unsafe fn tr(
s: *const ::std::os::raw::c_char,
c: *const ::std::os::raw::c_char,
n: ::std::os::raw::c_int,
) -> ::cpp_core::CppBox<::qt_core::QString> {
let ffi_result = { crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QTransform_tr(s, c, n) };
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// Calls C++ function: <span style='color: green;'>```static QString Qt3DCore::QTransform::trUtf8(const char* s, const char* c, int n)```</span>.
#[inline(always)]
pub unsafe fn tr_utf8(
s: *const ::std::os::raw::c_char,
c: *const ::std::os::raw::c_char,
n: ::std::os::raw::c_int,
) -> ::cpp_core::CppBox<::qt_core::QString> {
let ffi_result = { crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QTransform_trUtf8(s, c, n) };
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Holds the translation of the transform as <a href="http://doc.qt.io/qt-5/qvector3d.html">QVector3D</a>.</p>
///
/// Calls C++ function: <span style='color: green;'>```QVector3D Qt3DCore::QTransform::translation() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qtransform.html#translation-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the translation of the transform as <a href="http://doc.qt.io/qt-5/qvector3d.html">QVector3D</a>.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QVector3D </td><td class="memItemRight bottomAlign"><span class="name"><b>translation</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setTranslation</b></span>(const QVector3D &<i>translation</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>translationChanged</b></span>(const QVector3D &<i>translation</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub unsafe fn translation(&self) -> ::cpp_core::CppBox<::qt_gui::QVector3D> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QTransform_translation(
self as *const crate::QTransform,
)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Holds the world transformation matrix for the transform. This assumes the <a href="http://doc.qt.io/qt-5/qt3dcore-qtransform.html">QTransform</a> component is being referenced by a <a href="http://doc.qt.io/qt-5/qt3dcore-qentity.html">QEntity</a>. This makes it more convenient to identify when a <a href="http://doc.qt.io/qt-5/qt3dcore-qentity.html">QEntity</a> part of a subtree has been transformed in the world even though its local transformation might not have changed.</p>
///
/// Calls C++ function: <span style='color: green;'>```QMatrix4x4 Qt3DCore::QTransform::worldMatrix() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qtransform.html#worldMatrix-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the world transformation matrix for the transform. This assumes the <a href="http://doc.qt.io/qt-5/qt3dcore-qtransform.html">QTransform</a> component is being referenced by a <a href="http://doc.qt.io/qt-5/qt3dcore-qentity.html">QEntity</a>. This makes it more convenient to identify when a <a href="http://doc.qt.io/qt-5/qt3dcore-qentity.html">QEntity</a> part of a subtree has been transformed in the world even though its local transformation might not have changed.</p>
/// <p>This property was introduced in Qt 5.14.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QMatrix4x4 </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="http://doc.qt.io/qt-5/qt3dcore-qtransform.html#worldMatrix">worldMatrix</a></b></span>() const</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>worldMatrixChanged</b></span>(const QMatrix4x4 &<i>worldMatrix</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(cpp_lib_version = "5.14.0"))
)]
#[cfg(any(cpp_lib_version = "5.14.0", feature = "ritual_rustdoc"))]
pub unsafe fn world_matrix(&self) -> ::cpp_core::CppBox<::qt_gui::QMatrix4X4> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QTransform_worldMatrix(
self as *const crate::QTransform,
)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Holds the world transformation matrix for the transform. This assumes the <a href="http://doc.qt.io/qt-5/qt3dcore-qtransform.html">QTransform</a> component is being referenced by a <a href="http://doc.qt.io/qt-5/qt3dcore-qentity.html">QEntity</a>. This makes it more convenient to identify when a <a href="http://doc.qt.io/qt-5/qt3dcore-qentity.html">QEntity</a> part of a subtree has been transformed in the world even though its local transformation might not have changed.</p>
///
/// Calls C++ function: <span style='color: green;'>```void Qt3DCore::QTransform::worldMatrixChanged(const QMatrix4x4& worldMatrix)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qtransform.html#worldMatrix-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the world transformation matrix for the transform. This assumes the <a href="http://doc.qt.io/qt-5/qt3dcore-qtransform.html">QTransform</a> component is being referenced by a <a href="http://doc.qt.io/qt-5/qt3dcore-qentity.html">QEntity</a>. This makes it more convenient to identify when a <a href="http://doc.qt.io/qt-5/qt3dcore-qentity.html">QEntity</a> part of a subtree has been transformed in the world even though its local transformation might not have changed.</p>
/// <p>This property was introduced in Qt 5.14.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QMatrix4x4 </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="http://doc.qt.io/qt-5/qt3dcore-qtransform.html#worldMatrix">worldMatrix</a></b></span>() const</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>worldMatrixChanged</b></span>(const QMatrix4x4 &<i>worldMatrix</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(cpp_lib_version = "5.14.0"))
)]
#[cfg(any(cpp_lib_version = "5.14.0", feature = "ritual_rustdoc"))]
pub unsafe fn world_matrix_changed(
&self,
world_matrix: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_gui::QMatrix4X4>>,
) {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QTransform_worldMatrixChanged(
self as *const crate::QTransform as *mut crate::QTransform,
::cpp_core::CastInto::<::cpp_core::Ref<::qt_gui::QMatrix4X4>>::cast_into(world_matrix)
.as_raw_ptr(),
)
}
}
/// <p>The <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> class is a template class that provides a dynamic array.</p>
///
/// C++ class: <span style='color: green;'>```QVector<Qt3DCore::QAbstractAspect*>```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>The <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> class is a template class that provides a dynamic array.</p>
/// <p><a href="http://doc.qt.io/qt-5/qvector.html">QVector</a><T> is one of Qt's generic <a href="http://doc.qt.io/qt-5/containers.html">container classes</a>. It stores its items in adjacent memory locations and provides fast index-based access.</p>
/// <p><a href="http://doc.qt.io/qt-5/qlist.html">QList</a><T>, <a href="http://doc.qt.io/qt-5/qlinkedlist.html">QLinkedList</a><T>, <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a><T>, and <a href="http://doc.qt.io/qt-5/qvarlengtharray.html">QVarLengthArray</a><T> provide similar APIs and functionality. They are often interchangeable, but there are performance consequences. Here is an overview of use cases:</p>
/// <ul>
/// <li><a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> should be your default first choice. <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a><T> will usually give better performance than <a href="http://doc.qt.io/qt-5/qlist.html">QList</a><T>, because <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a><T> always stores its items sequentially in memory, where <a href="http://doc.qt.io/qt-5/qlist.html">QList</a><T> will allocate its items on the heap unless <code>sizeof(T) <= sizeof(void*)</code> and T has been declared to be either a <code>Q_MOVABLE_TYPE</code> or a <code>Q_PRIMITIVE_TYPE</code> using <a href="http://doc.qt.io/qt-5/qtglobal.html#Q_DECLARE_TYPEINFO">Q_DECLARE_TYPEINFO</a>. See the <a href="http://marcmutz.wordpress.com/effective-qt/containers/#containers-qlist">Pros and Cons of Using QList</a> for an explanation.</li>
/// <li>However, <a href="http://doc.qt.io/qt-5/qlist.html">QList</a> is used throughout the Qt APIs for passing parameters and for returning values. Use <a href="http://doc.qt.io/qt-5/qlist.html">QList</a> to interface with those APIs.</li>
/// <li>If you need a real linked list, which guarantees <a href="http://doc.qt.io/qt-5/containers.html#algorithmic-complexity">constant time</a> insertions mid-list and uses iterators to items rather than indexes, use <a href="http://doc.qt.io/qt-5/qlinkedlist.html">QLinkedList</a>.</li>
/// </ul>
/// <p><b>Note: </b><a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> and <a href="http://doc.qt.io/qt-5/qvarlengtharray.html">QVarLengthArray</a> both guarantee C-compatible array layout. <a href="http://doc.qt.io/qt-5/qlist.html">QList</a> does not. This might be important if your application must interface with a C API.</p><p><b>Note: </b>Iterators into a <a href="http://doc.qt.io/qt-5/qlinkedlist.html">QLinkedList</a> and references into heap-allocating QLists remain valid as long as the referenced items remain in the container. This is not true for iterators and references into a <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> and non-heap-allocating QLists.</p><p>Here's an example of a <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> that stores integers and a <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> that stores <a href="http://doc.qt.io/qt-5/qstring.html">QString</a> values:</p>
/// <pre class="cpp">
///
/// <span class="type"><a href="http://doc.qt.io/qt-5/qvector.html#QVector">QVector</a></span><span class="operator"><</span><span class="type">int</span><span class="operator">></span> integerVector;
/// <span class="type"><a href="http://doc.qt.io/qt-5/qvector.html#QVector">QVector</a></span><span class="operator"><</span><span class="type"><a href="http://doc.qt.io/qt-5/qstring.html">QString</a></span><span class="operator">></span> stringVector;
///
/// </pre>
/// <p><a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> stores its items in a vector (array). Typically, vectors are created with an initial size. For example, the following code constructs a <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> with 200 elements:</p>
/// <pre class="cpp">
///
/// <span class="type"><a href="http://doc.qt.io/qt-5/qvector.html#QVector">QVector</a></span><span class="operator"><</span><span class="type"><a href="http://doc.qt.io/qt-5/qstring.html">QString</a></span><span class="operator">></span> vector(<span class="number">200</span>);
///
/// </pre>
/// <p>The elements are automatically initialized with a <a href="http://doc.qt.io/qt-5/containers.html#default-constructed-value">default-constructed value</a>. If you want to initialize the vector with a different value, pass that value as the second argument to the constructor:</p>
/// <pre class="cpp">
///
/// <span class="type"><a href="http://doc.qt.io/qt-5/qvector.html#QVector">QVector</a></span><span class="operator"><</span><span class="type"><a href="http://doc.qt.io/qt-5/qstring.html">QString</a></span><span class="operator">></span> vector(<span class="number">200</span><span class="operator">,</span> <span class="string">"Pass"</span>);
///
/// </pre>
/// <p>You can also call <a href="http://doc.qt.io/qt-5/qvector.html#fill">fill</a>() at any time to fill the vector with a value.</p>
/// <p><a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> uses 0-based indexes, just like C++ arrays. To access the item at a particular index position, you can use operator[](). On non-const vectors, operator[]() returns a reference to the item that can be used on the left side of an assignment:</p>
/// <pre class="cpp">
///
/// <span class="keyword">if</span> (vector<span class="operator">[</span><span class="number">0</span><span class="operator">]</span> <span class="operator">=</span><span class="operator">=</span> <span class="string">"Liz"</span>)
///   vector<span class="operator">[</span><span class="number">0</span><span class="operator">]</span> <span class="operator">=</span> <span class="string">"Elizabeth"</span>;
///
/// </pre>
/// <p>For read-only access, an alternative syntax is to use <a href="http://doc.qt.io/qt-5/qvector.html#at">at</a>():</p>
/// <pre class="cpp">
///
/// <span class="keyword">for</span> (<span class="type">int</span> i <span class="operator">=</span> <span class="number">0</span>; i <span class="operator"><</span> vector<span class="operator">.</span>size(); <span class="operator">+</span><span class="operator">+</span>i) {
///   <span class="keyword">if</span> (vector<span class="operator">.</span>at(i) <span class="operator">=</span><span class="operator">=</span> <span class="string">"Alfonso"</span>)
///     cout <span class="operator"><</span><span class="operator"><</span> <span class="string">"Found Alfonso at position "</span> <span class="operator"><</span><span class="operator"><</span> i <span class="operator"><</span><span class="operator"><</span> endl;
/// }
///
/// </pre>
/// <p><a href="http://doc.qt.io/qt-5/qvector.html#at">at</a>() can be faster than operator[](), because it never causes a <a href="http://doc.qt.io/qt-5/implicit-sharing.html#deep-copy">deep copy</a> to occur.</p>
/// <p>Another way to access the data stored in a <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> is to call <a href="http://doc.qt.io/qt-5/qvector.html#data">data</a>(). The function returns a pointer to the first item in the vector. You can use the pointer to directly access and modify the elements stored in the vector. The pointer is also useful if you need to pass a <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> to a function that accepts a plain C++ array.</p>
/// <p>If you want to find all occurrences of a particular value in a vector, use <a href="http://doc.qt.io/qt-5/qvector.html#indexOf">indexOf</a>() or <a href="http://doc.qt.io/qt-5/qvector.html#lastIndexOf">lastIndexOf</a>(). The former searches forward starting from a given index position, the latter searches backward. Both return the index of the matching item if they found one; otherwise, they return -1. For example:</p>
/// <pre class="cpp">
///
/// <span class="type">int</span> i <span class="operator">=</span> vector<span class="operator">.</span>indexOf(<span class="string">"Harumi"</span>);
/// <span class="keyword">if</span> (i <span class="operator">!</span><span class="operator">=</span> <span class="operator">-</span><span class="number">1</span>)
///   cout <span class="operator"><</span><span class="operator"><</span> <span class="string">"First occurrence of Harumi is at position "</span> <span class="operator"><</span><span class="operator"><</span> i <span class="operator"><</span><span class="operator"><</span> endl;
///
/// </pre>
/// <p>If you simply want to check whether a vector contains a particular value, use <a href="http://doc.qt.io/qt-5/qvector.html#contains">contains</a>(). If you want to find out how many times a particular value occurs in the vector, use <a href="http://doc.qt.io/qt-5/qvector.html#count-1">count</a>().</p>
/// <p><a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> provides these basic functions to add, move, and remove items: <a href="http://doc.qt.io/qt-5/qvector.html#insert">insert</a>(), <a href="http://doc.qt.io/qt-5/qvector.html#replace">replace</a>(), <a href="http://doc.qt.io/qt-5/qvector.html#remove">remove</a>(), <a href="http://doc.qt.io/qt-5/qvector.html#prepend">prepend</a>(), <a href="http://doc.qt.io/qt-5/qvector.html#append">append</a>(). With the exception of <a href="http://doc.qt.io/qt-5/qvector.html#append">append</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#replace">replace</a>(), these functions can be slow (<a href="http://doc.qt.io/qt-5/containers.html#linear-time">linear time</a>) for large vectors, because they require moving many items in the vector by one position in memory. If you want a container class that provides fast insertion/removal in the middle, use <a href="http://doc.qt.io/qt-5/qlist.html">QList</a> or <a href="http://doc.qt.io/qt-5/qlinkedlist.html">QLinkedList</a> instead.</p>
/// <p>Unlike plain C++ arrays, QVectors can be resized at any time by calling <a href="http://doc.qt.io/qt-5/qvector.html#resize">resize</a>(). If the new size is larger than the old size, <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> might need to reallocate the whole vector. <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> tries to reduce the number of reallocations by preallocating up to twice as much memory as the actual data needs.</p>
/// <p>If you know in advance approximately how many items the <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> will contain, you can call <a href="http://doc.qt.io/qt-5/qvector.html#reserve">reserve</a>(), asking <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> to preallocate a certain amount of memory. You can also call <a href="http://doc.qt.io/qt-5/qvector.html#capacity">capacity</a>() to find out how much memory <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> actually allocated.</p>
/// <p>Note that using non-const operators and functions can cause <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> to do a deep copy of the data. This is due to <a href="http://doc.qt.io/qt-5/implicit-sharing.html">implicit sharing</a>.</p>
/// <p><a href="http://doc.qt.io/qt-5/qvector.html">QVector</a>'s value type must be an <a href="http://doc.qt.io/qt-5/containers.html#assignable-data-type">assignable data type</a>. This covers most data types that are commonly used, but the compiler won't let you, for example, store a <a href="http://doc.qt.io/qt-5/qwidget.html">QWidget</a> as a value; instead, store a <a href="http://doc.qt.io/qt-5/qwidget.html">QWidget</a> *. A few functions have additional requirements; for example, <a href="http://doc.qt.io/qt-5/qvector.html#indexOf">indexOf</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#lastIndexOf">lastIndexOf</a>() expect the value type to support <code>operator==()</code>. These requirements are documented on a per-function basis.</p>
/// <p>Like the other container classes, <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> provides <a href="http://doc.qt.io/qt-5/containers.html#java-style-iterators">Java-style iterators</a> (<a href="http://doc.qt.io/qt-5/qvectoriterator.html">QVectorIterator</a> and <a href="http://doc.qt.io/qt-5/qmutablevectoriterator.html">QMutableVectorIterator</a>) and <a href="http://doc.qt.io/qt-5/containers.html#stl-style-iterators">STL-style iterators</a> (<a href="http://doc.qt.io/qt-5/qvector.html#const_iterator-typedef">QVector::const_iterator</a> and <a href="http://doc.qt.io/qt-5/qvector.html#iterator-typedefx">QVector::iterator</a>). In practice, these are rarely used, because you can use indexes into the <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a>.</p>
/// <p>In addition to <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a>, Qt also provides <a href="http://doc.qt.io/qt-5/qvarlengtharray.html">QVarLengthArray</a>, a very low-level class with little functionality that is optimized for speed.</p>
/// <p><a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> does <i>not</i> support inserting, prepending, appending or replacing with references to its own values. Doing so will cause your application to abort with an error message.</p>
/// <a name="more-information-on-using-qt-containers"></a>
/// <h4>More Information on Using Qt Containers</h4>
/// <p>For a detailed discussion comparing Qt containers with each other and with STL containers, see <a href="http://marcmutz.wordpress.com/effective-qt/containers/">Understand the Qt Containers</a>.</p></div>
#[repr(C)]
pub struct QVectorOfQAbstractAspect {
_unused: u8,
}
impl QVectorOfQAbstractAspect {
/// <p>Appends the items of the <i>other</i> vector to this vector and returns a reference to this vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```QVector<Qt3DCore::QAbstractAspect*>& QVector<Qt3DCore::QAbstractAspect*>::operator+=(const QVector<Qt3DCore::QAbstractAspect*>& l)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#operator-2b-eq">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Appends the items of the <i>other</i> vector to this vector and returns a reference to this vector.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#operator-2b">operator+</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#append">append</a>().</p></div>
#[inline(always)]
pub unsafe fn add_assign_q_vector_of_q_abstract_aspect(
&self,
l: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QVectorOfQAbstractAspect>>,
) -> ::cpp_core::Ref<crate::QVectorOfQAbstractAspect> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QAbstractAspect_ptr_operator__4(self as *const crate::QVectorOfQAbstractAspect as *mut crate::QVectorOfQAbstractAspect, ::cpp_core::CastInto::<::cpp_core::Ref<crate::QVectorOfQAbstractAspect>>::cast_into(l).as_raw_ptr())
};
::cpp_core::Ref::from_raw(ffi_result).expect("attempted to construct a null Ref")
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```QVector<Qt3DCore::QAbstractAspect*>& QVector<Qt3DCore::QAbstractAspect*>::operator+=(const Qt3DCore::QAbstractAspect*& t)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#operator-2b-eq-1">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This is an overloaded function.</p>
/// <p>Appends <i>value</i> to the vector.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#append">append</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#operator-lt-lt">operator<<</a>().</p></div>
#[inline(always)]
pub unsafe fn add_assign_q_abstract_aspect(
&self,
t: *const *mut crate::QAbstractAspect,
) -> ::cpp_core::Ref<crate::QVectorOfQAbstractAspect> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QAbstractAspect_ptr_operator__5(
self as *const crate::QVectorOfQAbstractAspect
as *mut crate::QVectorOfQAbstractAspect,
t,
)
};
::cpp_core::Ref::from_raw(ffi_result).expect("attempted to construct a null Ref")
}
/// <p>Inserts <i>value</i> at the end of the vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QAbstractAspect*>::append(const Qt3DCore::QAbstractAspect*& t)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#append">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Inserts <i>value</i> at the end of the vector.</p>
/// <p>Example:</p>
/// <pre class="cpp">
///
/// <span class="type"><a href="http://doc.qt.io/qt-5/qvector.html#QVector">QVector</a></span><span class="operator"><</span><span class="type"><a href="http://doc.qt.io/qt-5/qstring.html">QString</a></span><span class="operator">></span> vector;
/// vector<span class="operator">.</span>append(<span class="string">"one"</span>);
/// vector<span class="operator">.</span>append(<span class="string">"two"</span>);
/// <span class="type"><a href="http://doc.qt.io/qt-5/qstring.html">QString</a></span> three <span class="operator">=</span> <span class="string">"three"</span>;
/// vector<span class="operator">.</span>append(three);
/// <span class="comment">// vector: ["one", "two", "three"]</span>
/// <span class="comment">// three: "three"</span>
///
/// </pre>
/// <p>This is the same as calling resize(<a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>() + 1) and assigning <i>value</i> to the new last element in the vector.</p>
/// <p>This operation is relatively fast, because <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> typically allocates more memory than necessary, so it can grow without reallocating the entire vector each time.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#operator-lt-lt">operator<<</a>(), <a href="http://doc.qt.io/qt-5/qvector.html#prepend">prepend</a>(), and <a href="http://doc.qt.io/qt-5/qvector.html#insert">insert</a>().</p></div>
#[inline(always)]
pub unsafe fn append_q_abstract_aspect(&self, t: *const *mut crate::QAbstractAspect) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QAbstractAspect_ptr_append(
self as *const crate::QVectorOfQAbstractAspect as *mut crate::QVectorOfQAbstractAspect,
t,
)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QAbstractAspect*>::append(const QVector<Qt3DCore::QAbstractAspect*>& l)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#append-2">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This is an overloaded function.</p>
/// <p>Appends the items of the <i>value</i> vector to this vector.</p>
/// <p>This function was introduced in Qt 5.5.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#operator-lt-lt">operator<<</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#operator-2b-eq">operator+=</a>().</p></div>
#[inline(always)]
pub unsafe fn append_q_vector_of_q_abstract_aspect(
&self,
l: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QVectorOfQAbstractAspect>>,
) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QAbstractAspect_ptr_append2(
self as *const crate::QVectorOfQAbstractAspect as *mut crate::QVectorOfQAbstractAspect,
::cpp_core::CastInto::<::cpp_core::Ref<crate::QVectorOfQAbstractAspect>>::cast_into(l)
.as_raw_ptr(),
)
}
/// <p>Returns the item at index position <i>i</i> in the vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```const Qt3DCore::QAbstractAspect*& QVector<Qt3DCore::QAbstractAspect*>::at(int i) const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#at">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the item at index position <i>i</i> in the vector.</p>
/// <p><i>i</i> must be a valid index position in the vector (i.e., 0 <= <i>i</i> < <a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>()).</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#value">value</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#operator-5b-5d">operator[]</a>().</p></div>
#[inline(always)]
pub unsafe fn at(&self, i: ::std::os::raw::c_int) -> *const *mut crate::QAbstractAspect {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QAbstractAspect_ptr_at(
self as *const crate::QVectorOfQAbstractAspect,
i,
)
}
/// <p>This function is provided for STL compatibility. It is equivalent to <a href="http://doc.qt.io/qt-5/qvector.html#last">last</a>().</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QAbstractAspect*& QVector<Qt3DCore::QAbstractAspect*>::back()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#back">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This function is provided for STL compatibility. It is equivalent to <a href="http://doc.qt.io/qt-5/qvector.html#last">last</a>().</p></div>
#[inline(always)]
pub unsafe fn back_mut(&self) -> *mut *mut crate::QAbstractAspect {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QAbstractAspect_ptr_back(
self as *const crate::QVectorOfQAbstractAspect as *mut crate::QVectorOfQAbstractAspect,
)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```const Qt3DCore::QAbstractAspect*& QVector<Qt3DCore::QAbstractAspect*>::back() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#back-1">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This is an overloaded function.</p></div>
#[inline(always)]
pub unsafe fn back(&self) -> *const *mut crate::QAbstractAspect {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QAbstractAspect_ptr_back1(
self as *const crate::QVectorOfQAbstractAspect,
)
}
/// <p>Returns the maximum number of items that can be stored in the vector without forcing a reallocation.</p>
///
/// Calls C++ function: <span style='color: green;'>```int QVector<Qt3DCore::QAbstractAspect*>::capacity() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#capacity">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the maximum number of items that can be stored in the vector without forcing a reallocation.</p>
/// <p>The sole purpose of this function is to provide a means of fine tuning <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a>'s memory usage. In general, you will rarely ever need to call this function. If you want to know how many items are in the vector, call <a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>().</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#reserve">reserve</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#squeeze">squeeze</a>().</p></div>
#[inline(always)]
pub unsafe fn capacity(&self) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QAbstractAspect_ptr_capacity(
self as *const crate::QVectorOfQAbstractAspect,
)
}
/// <p>Removes all the elements from the vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QAbstractAspect*>::clear()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#clear">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Removes all the elements from the vector.</p>
/// <p><b>Note: </b>Until Qt 5.6, this also released the memory used by the vector. From Qt 5.7, the capacity is preserved. To shed all capacity, swap with a default-constructed vector:</p><pre class="cpp">
///
/// <span class="type"><a href="http://doc.qt.io/qt-5/qvector.html#QVector">QVector</a></span><span class="operator"><</span>T<span class="operator">></span> v <span class="operator">.</span><span class="operator">.</span><span class="operator">.</span>;
/// <span class="type"><a href="http://doc.qt.io/qt-5/qvector.html#QVector">QVector</a></span><span class="operator"><</span>T<span class="operator">></span>()<span class="operator">.</span>swap(v);
/// Q_ASSERT(v<span class="operator">.</span>capacity() <span class="operator">=</span><span class="operator">=</span> <span class="number">0</span>);
///
/// </pre>
/// <p>or call <a href="http://doc.qt.io/qt-5/qvector.html#squeeze">squeeze</a>().</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#squeeze">squeeze</a>().</p></div>
#[inline(always)]
pub unsafe fn clear(&self) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QAbstractAspect_ptr_clear(
self as *const crate::QVectorOfQAbstractAspect as *mut crate::QVectorOfQAbstractAspect,
)
}
/// <p>Returns a const pointer to the data stored in the vector. The pointer can be used to access the items in the vector. The pointer remains valid as long as the vector isn't reallocated.</p>
///
/// Calls C++ function: <span style='color: green;'>```const Qt3DCore::QAbstractAspect** QVector<Qt3DCore::QAbstractAspect*>::constData() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#constData">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns a const pointer to the data stored in the vector. The pointer can be used to access the items in the vector. The pointer remains valid as long as the vector isn't reallocated.</p>
/// <p>This function is mostly useful to pass a vector to a function that accepts a plain C++ array.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#data">data</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#operator-5b-5d">operator[]</a>().</p></div>
#[inline(always)]
pub unsafe fn const_data(&self) -> *const *mut crate::QAbstractAspect {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QAbstractAspect_ptr_constData(
self as *const crate::QVectorOfQAbstractAspect,
)
}
/// <p>Returns a const reference to the first item in the vector. This function assumes that the vector isn't empty.</p>
///
/// Calls C++ function: <span style='color: green;'>```const Qt3DCore::QAbstractAspect*& QVector<Qt3DCore::QAbstractAspect*>::constFirst() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#constFirst">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns a const reference to the first item in the vector. This function assumes that the vector isn't empty.</p>
/// <p>This function was introduced in Qt 5.6.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#constLast">constLast</a>(), <a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>(), and <a href="http://doc.qt.io/qt-5/qvector.html#first">first</a>().</p></div>
#[inline(always)]
pub unsafe fn const_first(&self) -> *const *mut crate::QAbstractAspect {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QAbstractAspect_ptr_constFirst(
self as *const crate::QVectorOfQAbstractAspect,
)
}
/// <p>Returns a const reference to the last item in the vector. This function assumes that the vector isn't empty.</p>
///
/// Calls C++ function: <span style='color: green;'>```const Qt3DCore::QAbstractAspect*& QVector<Qt3DCore::QAbstractAspect*>::constLast() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#constLast">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns a const reference to the last item in the vector. This function assumes that the vector isn't empty.</p>
/// <p>This function was introduced in Qt 5.6.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#constFirst">constFirst</a>(), <a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>(), and <a href="http://doc.qt.io/qt-5/qvector.html#last">last</a>().</p></div>
#[inline(always)]
pub unsafe fn const_last(&self) -> *const *mut crate::QAbstractAspect {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QAbstractAspect_ptr_constLast(
self as *const crate::QVectorOfQAbstractAspect,
)
}
/// <p>Returns <code>true</code> if the vector contains an occurrence of <i>value</i>; otherwise returns <code>false</code>.</p>
///
/// Calls C++ function: <span style='color: green;'>```bool QVector<Qt3DCore::QAbstractAspect*>::contains(const Qt3DCore::QAbstractAspect*& t) const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#contains">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns <code>true</code> if the vector contains an occurrence of <i>value</i>; otherwise returns <code>false</code>.</p>
/// <p>This function requires the value type to have an implementation of <code>operator==()</code>.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#indexOf">indexOf</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#count-1">count</a>().</p></div>
#[inline(always)]
pub unsafe fn contains(&self, t: *const *mut crate::QAbstractAspect) -> bool {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QAbstractAspect_ptr_contains(
self as *const crate::QVectorOfQAbstractAspect,
t,
)
}
/// <p>Assigns <i>other</i> to this vector and returns a reference to this vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```QVector<Qt3DCore::QAbstractAspect*>& QVector<Qt3DCore::QAbstractAspect*>::operator=(const QVector<Qt3DCore::QAbstractAspect*>& v)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#operator-eq">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Assigns <i>other</i> to this vector and returns a reference to this vector.</p></div>
#[inline(always)]
pub unsafe fn copy_from(
&self,
v: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QVectorOfQAbstractAspect>>,
) -> ::cpp_core::Ref<crate::QVectorOfQAbstractAspect> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QAbstractAspect_ptr_operator_(self as *const crate::QVectorOfQAbstractAspect as *mut crate::QVectorOfQAbstractAspect, ::cpp_core::CastInto::<::cpp_core::Ref<crate::QVectorOfQAbstractAspect>>::cast_into(v).as_raw_ptr())
};
::cpp_core::Ref::from_raw(ffi_result).expect("attempted to construct a null Ref")
}
/// <p>Returns the number of occurrences of <i>value</i> in the vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```int QVector<Qt3DCore::QAbstractAspect*>::count(const Qt3DCore::QAbstractAspect*& t) const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#count">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the number of occurrences of <i>value</i> in the vector.</p>
/// <p>This function requires the value type to have an implementation of <code>operator==()</code>.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#contains">contains</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#indexOf">indexOf</a>().</p></div>
#[inline(always)]
pub unsafe fn count_1a(&self, t: *const *mut crate::QAbstractAspect) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QAbstractAspect_ptr_count(
self as *const crate::QVectorOfQAbstractAspect,
t,
)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```int QVector<Qt3DCore::QAbstractAspect*>::count() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#count-1">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This is an overloaded function.</p>
/// <p>Same as <a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>().</p></div>
#[inline(always)]
pub unsafe fn count_0a(&self) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QAbstractAspect_ptr_count1(
self as *const crate::QVectorOfQAbstractAspect,
)
}
/// <p>Returns a pointer to the data stored in the vector. The pointer can be used to access and modify the items in the vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QAbstractAspect** QVector<Qt3DCore::QAbstractAspect*>::data()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#data">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns a pointer to the data stored in the vector. The pointer can be used to access and modify the items in the vector.</p>
/// <p>Example:</p>
/// <pre class="cpp">
///
/// <span class="type"><a href="http://doc.qt.io/qt-5/qvector.html#QVector">QVector</a></span><span class="operator"><</span><span class="type">int</span><span class="operator">></span> vector(<span class="number">10</span>);
/// <span class="type">int</span> <span class="operator">*</span>data <span class="operator">=</span> vector<span class="operator">.</span>data();
/// <span class="keyword">for</span> (<span class="type">int</span> i <span class="operator">=</span> <span class="number">0</span>; i <span class="operator"><</span> <span class="number">10</span>; <span class="operator">+</span><span class="operator">+</span>i)
///   data<span class="operator">[</span>i<span class="operator">]</span> <span class="operator">=</span> <span class="number">2</span> <span class="operator">*</span> i;
///
/// </pre>
/// <p>The pointer remains valid as long as the vector isn't reallocated.</p>
/// <p>This function is mostly useful to pass a vector to a function that accepts a plain C++ array.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#constData">constData</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#operator-5b-5d">operator[]</a>().</p></div>
#[inline(always)]
pub unsafe fn data_mut(&self) -> *mut *mut crate::QAbstractAspect {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QAbstractAspect_ptr_data(
self as *const crate::QVectorOfQAbstractAspect as *mut crate::QVectorOfQAbstractAspect,
)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```const Qt3DCore::QAbstractAspect** QVector<Qt3DCore::QAbstractAspect*>::data() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#data-1">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This is an overloaded function.</p></div>
#[inline(always)]
pub unsafe fn data(&self) -> *const *mut crate::QAbstractAspect {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QAbstractAspect_ptr_data1(
self as *const crate::QVectorOfQAbstractAspect,
)
}
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QAbstractAspect*>::detach()```</span>.
#[inline(always)]
pub unsafe fn detach(&self) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QAbstractAspect_ptr_detach(
self as *const crate::QVectorOfQAbstractAspect as *mut crate::QVectorOfQAbstractAspect,
)
}
/// <p>This function is provided for STL compatibility. It is equivalent to <a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>(), returning <code>true</code> if the vector is empty; otherwise returns <code>false</code>.</p>
///
/// Calls C++ function: <span style='color: green;'>```bool QVector<Qt3DCore::QAbstractAspect*>::empty() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#empty">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This function is provided for STL compatibility. It is equivalent to <a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>(), returning <code>true</code> if the vector is empty; otherwise returns <code>false</code>.</p></div>
#[inline(always)]
pub unsafe fn empty(&self) -> bool {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QAbstractAspect_ptr_empty(
self as *const crate::QVectorOfQAbstractAspect,
)
}
/// <p>Returns <code>true</code> if this vector is not empty and its last item is equal to <i>value</i>; otherwise returns <code>false</code>.</p>
///
/// Calls C++ function: <span style='color: green;'>```bool QVector<Qt3DCore::QAbstractAspect*>::endsWith(const Qt3DCore::QAbstractAspect*& t) const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#endsWith">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns <code>true</code> if this vector is not empty and its last item is equal to <i>value</i>; otherwise returns <code>false</code>.</p>
/// <p>This function was introduced in Qt 4.5.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#last">last</a>().</p></div>
#[inline(always)]
pub unsafe fn ends_with(&self, t: *const *mut crate::QAbstractAspect) -> bool {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QAbstractAspect_ptr_endsWith(
self as *const crate::QVectorOfQAbstractAspect,
t,
)
}
/// <p>Assigns <i>value</i> to all items in the vector. If <i>size</i> is different from -1 (the default), the vector is resized to size <i>size</i> beforehand.</p>
///
/// Calls C++ function: <span style='color: green;'>```QVector<Qt3DCore::QAbstractAspect*>& QVector<Qt3DCore::QAbstractAspect*>::fill(const Qt3DCore::QAbstractAspect*& t, int size = …)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#fill">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Assigns <i>value</i> to all items in the vector. If <i>size</i> is different from -1 (the default), the vector is resized to size <i>size</i> beforehand.</p>
/// <p>Example:</p>
/// <pre class="cpp">
///
/// <span class="type"><a href="http://doc.qt.io/qt-5/qvector.html#QVector">QVector</a></span><span class="operator"><</span><span class="type"><a href="http://doc.qt.io/qt-5/qstring.html">QString</a></span><span class="operator">></span> vector(<span class="number">3</span>);
/// vector<span class="operator">.</span>fill(<span class="string">"Yes"</span>);
/// <span class="comment">// vector: ["Yes", "Yes", "Yes"]</span>
///
/// vector<span class="operator">.</span>fill(<span class="string">"oh"</span><span class="operator">,</span> <span class="number">5</span>);
/// <span class="comment">// vector: ["oh", "oh", "oh", "oh", "oh"]</span>
///
/// </pre>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#resize">resize</a>().</p></div>
#[inline(always)]
pub unsafe fn fill_2a(
&self,
t: *const *mut crate::QAbstractAspect,
size: ::std::os::raw::c_int,
) -> ::cpp_core::Ref<crate::QVectorOfQAbstractAspect> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QAbstractAspect_ptr_fill(
self as *const crate::QVectorOfQAbstractAspect
as *mut crate::QVectorOfQAbstractAspect,
t,
size,
)
};
::cpp_core::Ref::from_raw(ffi_result).expect("attempted to construct a null Ref")
}
/// <p>Assigns <i>value</i> to all items in the vector. If <i>size</i> is different from -1 (the default), the vector is resized to size <i>size</i> beforehand.</p>
///
/// Calls C++ function: <span style='color: green;'>```QVector<Qt3DCore::QAbstractAspect*>& QVector<Qt3DCore::QAbstractAspect*>::fill(const Qt3DCore::QAbstractAspect*& t)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#fill">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Assigns <i>value</i> to all items in the vector. If <i>size</i> is different from -1 (the default), the vector is resized to size <i>size</i> beforehand.</p>
/// <p>Example:</p>
/// <pre class="cpp">
///
/// <span class="type"><a href="http://doc.qt.io/qt-5/qvector.html#QVector">QVector</a></span><span class="operator"><</span><span class="type"><a href="http://doc.qt.io/qt-5/qstring.html">QString</a></span><span class="operator">></span> vector(<span class="number">3</span>);
/// vector<span class="operator">.</span>fill(<span class="string">"Yes"</span>);
/// <span class="comment">// vector: ["Yes", "Yes", "Yes"]</span>
///
/// vector<span class="operator">.</span>fill(<span class="string">"oh"</span><span class="operator">,</span> <span class="number">5</span>);
/// <span class="comment">// vector: ["oh", "oh", "oh", "oh", "oh"]</span>
///
/// </pre>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#resize">resize</a>().</p></div>
#[inline(always)]
pub unsafe fn fill_1a(
&self,
t: *const *mut crate::QAbstractAspect,
) -> ::cpp_core::Ref<crate::QVectorOfQAbstractAspect> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QAbstractAspect_ptr_fill1(
self as *const crate::QVectorOfQAbstractAspect
as *mut crate::QVectorOfQAbstractAspect,
t,
)
};
::cpp_core::Ref::from_raw(ffi_result).expect("attempted to construct a null Ref")
}
/// <p>Returns a reference to the first item in the vector. This function assumes that the vector isn't empty.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QAbstractAspect*& QVector<Qt3DCore::QAbstractAspect*>::first()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#first">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns a reference to the first item in the vector. This function assumes that the vector isn't empty.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#last">last</a>(), <a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>(), and <a href="http://doc.qt.io/qt-5/qvector.html#constFirst">constFirst</a>().</p></div>
#[inline(always)]
pub unsafe fn first_mut(&self) -> *mut *mut crate::QAbstractAspect {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QAbstractAspect_ptr_first(
self as *const crate::QVectorOfQAbstractAspect as *mut crate::QVectorOfQAbstractAspect,
)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```const Qt3DCore::QAbstractAspect*& QVector<Qt3DCore::QAbstractAspect*>::first() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#first-1">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This is an overloaded function.</p></div>
#[inline(always)]
pub unsafe fn first(&self) -> *const *mut crate::QAbstractAspect {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QAbstractAspect_ptr_first1(
self as *const crate::QVectorOfQAbstractAspect,
)
}
/// <p>This function is provided for STL compatibility. It is equivalent to <a href="http://doc.qt.io/qt-5/qvector.html#first">first</a>().</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QAbstractAspect*& QVector<Qt3DCore::QAbstractAspect*>::front()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#front">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This function is provided for STL compatibility. It is equivalent to <a href="http://doc.qt.io/qt-5/qvector.html#first">first</a>().</p></div>
#[inline(always)]
pub unsafe fn front_mut(&self) -> *mut *mut crate::QAbstractAspect {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QAbstractAspect_ptr_front(
self as *const crate::QVectorOfQAbstractAspect as *mut crate::QVectorOfQAbstractAspect,
)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```const Qt3DCore::QAbstractAspect*& QVector<Qt3DCore::QAbstractAspect*>::front() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#front-1">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This is an overloaded function.</p></div>
#[inline(always)]
pub unsafe fn front(&self) -> *const *mut crate::QAbstractAspect {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QAbstractAspect_ptr_front1(
self as *const crate::QVectorOfQAbstractAspect,
)
}
/// <p>Returns the item at index position <i>i</i> as a modifiable reference.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QAbstractAspect*& QVector<Qt3DCore::QAbstractAspect*>::operator[](int i)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#operator-5b-5d">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the item at index position <i>i</i> as a modifiable reference.</p>
/// <p><i>i</i> must be a valid index position in the vector (i.e., 0 <= <i>i</i> < <a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>()).</p>
/// <p>Note that using non-const operators can cause <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> to do a deep copy.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#at">at</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#value">value</a>().</p></div>
#[inline(always)]
pub unsafe fn index_mut(&self, i: ::std::os::raw::c_int) -> *mut *mut crate::QAbstractAspect {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QAbstractAspect_ptr_operator__2(
self as *const crate::QVectorOfQAbstractAspect as *mut crate::QVectorOfQAbstractAspect,
i,
)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```const Qt3DCore::QAbstractAspect*& QVector<Qt3DCore::QAbstractAspect*>::operator[](int i) const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#operator-5b-5d-1">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This is an overloaded function.</p>
/// <p>Same as at(<i>i</i>).</p></div>
#[inline(always)]
pub unsafe fn index(&self, i: ::std::os::raw::c_int) -> *const *mut crate::QAbstractAspect {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QAbstractAspect_ptr_operator__3(
self as *const crate::QVectorOfQAbstractAspect,
i,
)
}
/// <p>Returns the index position of the first occurrence of <i>value</i> in the vector, searching forward from index position <i>from</i>. Returns -1 if no item matched.</p>
///
/// Calls C++ function: <span style='color: green;'>```int QVector<Qt3DCore::QAbstractAspect*>::indexOf(const Qt3DCore::QAbstractAspect*& t, int from = …) const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#indexOf">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the index position of the first occurrence of <i>value</i> in the vector, searching forward from index position <i>from</i>. Returns -1 if no item matched.</p>
/// <p>Example:</p>
/// <pre class="cpp">
///
/// <span class="type"><a href="http://doc.qt.io/qt-5/qvector.html#QVector">QVector</a></span><span class="operator"><</span><span class="type"><a href="http://doc.qt.io/qt-5/qstring.html">QString</a></span><span class="operator">></span> vector;
/// vector <span class="operator"><</span><span class="operator"><</span> <span class="string">"A"</span> <span class="operator"><</span><span class="operator"><</span> <span class="string">"B"</span> <span class="operator"><</span><span class="operator"><</span> <span class="string">"C"</span> <span class="operator"><</span><span class="operator"><</span> <span class="string">"B"</span> <span class="operator"><</span><span class="operator"><</span> <span class="string">"A"</span>;
/// vector<span class="operator">.</span>indexOf(<span class="string">"B"</span>); <span class="comment">// returns 1</span>
/// vector<span class="operator">.</span>indexOf(<span class="string">"B"</span><span class="operator">,</span> <span class="number">1</span>); <span class="comment">// returns 1</span>
/// vector<span class="operator">.</span>indexOf(<span class="string">"B"</span><span class="operator">,</span> <span class="number">2</span>); <span class="comment">// returns 3</span>
/// vector<span class="operator">.</span>indexOf(<span class="string">"X"</span>); <span class="comment">// returns -1</span>
///
/// </pre>
/// <p>This function requires the value type to have an implementation of <code>operator==()</code>.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#lastIndexOf">lastIndexOf</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#contains">contains</a>().</p></div>
#[inline(always)]
pub unsafe fn index_of_2a(
&self,
t: *const *mut crate::QAbstractAspect,
from: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QAbstractAspect_ptr_indexOf(
self as *const crate::QVectorOfQAbstractAspect,
t,
from,
)
}
/// <p>Returns the index position of the first occurrence of <i>value</i> in the vector, searching forward from index position <i>from</i>. Returns -1 if no item matched.</p>
///
/// Calls C++ function: <span style='color: green;'>```int QVector<Qt3DCore::QAbstractAspect*>::indexOf(const Qt3DCore::QAbstractAspect*& t) const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#indexOf">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the index position of the first occurrence of <i>value</i> in the vector, searching forward from index position <i>from</i>. Returns -1 if no item matched.</p>
/// <p>Example:</p>
/// <pre class="cpp">
///
/// <span class="type"><a href="http://doc.qt.io/qt-5/qvector.html#QVector">QVector</a></span><span class="operator"><</span><span class="type"><a href="http://doc.qt.io/qt-5/qstring.html">QString</a></span><span class="operator">></span> vector;
/// vector <span class="operator"><</span><span class="operator"><</span> <span class="string">"A"</span> <span class="operator"><</span><span class="operator"><</span> <span class="string">"B"</span> <span class="operator"><</span><span class="operator"><</span> <span class="string">"C"</span> <span class="operator"><</span><span class="operator"><</span> <span class="string">"B"</span> <span class="operator"><</span><span class="operator"><</span> <span class="string">"A"</span>;
/// vector<span class="operator">.</span>indexOf(<span class="string">"B"</span>); <span class="comment">// returns 1</span>
/// vector<span class="operator">.</span>indexOf(<span class="string">"B"</span><span class="operator">,</span> <span class="number">1</span>); <span class="comment">// returns 1</span>
/// vector<span class="operator">.</span>indexOf(<span class="string">"B"</span><span class="operator">,</span> <span class="number">2</span>); <span class="comment">// returns 3</span>
/// vector<span class="operator">.</span>indexOf(<span class="string">"X"</span>); <span class="comment">// returns -1</span>
///
/// </pre>
/// <p>This function requires the value type to have an implementation of <code>operator==()</code>.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#lastIndexOf">lastIndexOf</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#contains">contains</a>().</p></div>
#[inline(always)]
pub unsafe fn index_of_1a(
&self,
t: *const *mut crate::QAbstractAspect,
) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QAbstractAspect_ptr_indexOf1(
self as *const crate::QVectorOfQAbstractAspect,
t,
)
}
/// <p>Inserts <i>value</i> at index position <i>i</i> in the vector. If <i>i</i> is 0, the value is prepended to the vector. If <i>i</i> is <a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>(), the value is appended to the vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QAbstractAspect*>::insert(int i, const Qt3DCore::QAbstractAspect*& t)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#insert">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Inserts <i>value</i> at index position <i>i</i> in the vector. If <i>i</i> is 0, the value is prepended to the vector. If <i>i</i> is <a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>(), the value is appended to the vector.</p>
/// <p>Example:</p>
/// <pre class="cpp">
///
/// <span class="type"><a href="http://doc.qt.io/qt-5/qvector.html#QVector">QVector</a></span><span class="operator"><</span><span class="type"><a href="http://doc.qt.io/qt-5/qstring.html">QString</a></span><span class="operator">></span> vector;
/// vector <span class="operator"><</span><span class="operator"><</span> <span class="string">"alpha"</span> <span class="operator"><</span><span class="operator"><</span> <span class="string">"beta"</span> <span class="operator"><</span><span class="operator"><</span> <span class="string">"delta"</span>;
/// vector<span class="operator">.</span>insert(<span class="number">2</span><span class="operator">,</span> <span class="string">"gamma"</span>);
/// <span class="comment">// vector: ["alpha", "beta", "gamma", "delta"]</span>
///
/// </pre>
/// <p>For large vectors, this operation can be slow (<a href="http://doc.qt.io/qt-5/containers.html#linear-time">linear time</a>), because it requires moving all the items at indexes <i>i</i> and above by one position further in memory. If you want a container class that provides a fast insert() function, use <a href="http://doc.qt.io/qt-5/qlinkedlist.html">QLinkedList</a> instead.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#append">append</a>(), <a href="http://doc.qt.io/qt-5/qvector.html#prepend">prepend</a>(), and <a href="http://doc.qt.io/qt-5/qvector.html#remove">remove</a>().</p></div>
#[inline(always)]
pub unsafe fn insert_2a(
&self,
i: ::std::os::raw::c_int,
t: *const *mut crate::QAbstractAspect,
) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QAbstractAspect_ptr_insert(
self as *const crate::QVectorOfQAbstractAspect as *mut crate::QVectorOfQAbstractAspect,
i,
t,
)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QAbstractAspect*>::insert(int i, int n, const Qt3DCore::QAbstractAspect*& t)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#insert-1">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This is an overloaded function.</p>
/// <p>Inserts <i>count</i> copies of <i>value</i> at index position <i>i</i> in the vector.</p>
/// <p>Example:</p>
/// <pre class="cpp">
///
/// <span class="type"><a href="http://doc.qt.io/qt-5/qvector.html#QVector">QVector</a></span><span class="operator"><</span><span class="type">double</span><span class="operator">></span> vector;
/// vector <span class="operator"><</span><span class="operator"><</span> <span class="number">2.718</span> <span class="operator"><</span><span class="operator"><</span> <span class="number">1.442</span> <span class="operator"><</span><span class="operator"><</span> <span class="number">0.4342</span>;
/// vector<span class="operator">.</span>insert(<span class="number">1</span><span class="operator">,</span> <span class="number">3</span><span class="operator">,</span> <span class="number">9.9</span>);
/// <span class="comment">// vector: [2.718, 9.9, 9.9, 9.9, 1.442, 0.4342]</span>
///
/// </pre></div>
#[inline(always)]
pub unsafe fn insert_3a(
&self,
i: ::std::os::raw::c_int,
n: ::std::os::raw::c_int,
t: *const *mut crate::QAbstractAspect,
) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QAbstractAspect_ptr_insert1(
self as *const crate::QVectorOfQAbstractAspect as *mut crate::QVectorOfQAbstractAspect,
i,
n,
t,
)
}
/// Calls C++ function: <span style='color: green;'>```bool QVector<Qt3DCore::QAbstractAspect*>::isDetached() const```</span>.
#[inline(always)]
pub unsafe fn is_detached(&self) -> bool {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QAbstractAspect_ptr_isDetached(
self as *const crate::QVectorOfQAbstractAspect,
)
}
/// <p>Returns <code>true</code> if the vector has size 0; otherwise returns <code>false</code>.</p>
///
/// Calls C++ function: <span style='color: green;'>```bool QVector<Qt3DCore::QAbstractAspect*>::isEmpty() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns <code>true</code> if the vector has size 0; otherwise returns <code>false</code>.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#resize">resize</a>().</p></div>
#[inline(always)]
pub unsafe fn is_empty(&self) -> bool {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QAbstractAspect_ptr_isEmpty(
self as *const crate::QVectorOfQAbstractAspect,
)
}
/// Calls C++ function: <span style='color: green;'>```bool QVector<Qt3DCore::QAbstractAspect*>::isSharedWith(const QVector<Qt3DCore::QAbstractAspect*>& other) const```</span>.
#[inline(always)]
pub unsafe fn is_shared_with(
&self,
other: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QVectorOfQAbstractAspect>>,
) -> bool {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QAbstractAspect_ptr_isSharedWith(
self as *const crate::QVectorOfQAbstractAspect,
::cpp_core::CastInto::<::cpp_core::Ref<crate::QVectorOfQAbstractAspect>>::cast_into(
other,
)
.as_raw_ptr(),
)
}
/// <p>Returns a reference to the last item in the vector. This function assumes that the vector isn't empty.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QAbstractAspect*& QVector<Qt3DCore::QAbstractAspect*>::last()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#last">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns a reference to the last item in the vector. This function assumes that the vector isn't empty.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#first">first</a>(), <a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>(), and <a href="http://doc.qt.io/qt-5/qvector.html#constLast">constLast</a>().</p></div>
#[inline(always)]
pub unsafe fn last_mut(&self) -> *mut *mut crate::QAbstractAspect {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QAbstractAspect_ptr_last(
self as *const crate::QVectorOfQAbstractAspect as *mut crate::QVectorOfQAbstractAspect,
)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```const Qt3DCore::QAbstractAspect*& QVector<Qt3DCore::QAbstractAspect*>::last() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#last-1">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This is an overloaded function.</p></div>
#[inline(always)]
pub unsafe fn last(&self) -> *const *mut crate::QAbstractAspect {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QAbstractAspect_ptr_last1(
self as *const crate::QVectorOfQAbstractAspect,
)
}
/// <p>Returns the index position of the last occurrence of the value <i>value</i> in the vector, searching backward from index position <i>from</i>. If <i>from</i> is -1 (the default), the search starts at the last item. Returns -1 if no item matched.</p>
///
/// Calls C++ function: <span style='color: green;'>```int QVector<Qt3DCore::QAbstractAspect*>::lastIndexOf(const Qt3DCore::QAbstractAspect*& t, int from = …) const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#lastIndexOf">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the index position of the last occurrence of the value <i>value</i> in the vector, searching backward from index position <i>from</i>. If <i>from</i> is -1 (the default), the search starts at the last item. Returns -1 if no item matched.</p>
/// <p>Example:</p>
/// <pre class="cpp">
///
/// <span class="type"><a href="http://doc.qt.io/qt-5/qlist.html">QList</a></span><span class="operator"><</span><span class="type"><a href="http://doc.qt.io/qt-5/qstring.html">QString</a></span><span class="operator">></span> vector;
/// vector <span class="operator"><</span><span class="operator"><</span> <span class="string">"A"</span> <span class="operator"><</span><span class="operator"><</span> <span class="string">"B"</span> <span class="operator"><</span><span class="operator"><</span> <span class="string">"C"</span> <span class="operator"><</span><span class="operator"><</span> <span class="string">"B"</span> <span class="operator"><</span><span class="operator"><</span> <span class="string">"A"</span>;
/// vector<span class="operator">.</span>lastIndexOf(<span class="string">"B"</span>); <span class="comment">// returns 3</span>
/// vector<span class="operator">.</span>lastIndexOf(<span class="string">"B"</span><span class="operator">,</span> <span class="number">3</span>); <span class="comment">// returns 3</span>
/// vector<span class="operator">.</span>lastIndexOf(<span class="string">"B"</span><span class="operator">,</span> <span class="number">2</span>); <span class="comment">// returns 1</span>
/// vector<span class="operator">.</span>lastIndexOf(<span class="string">"X"</span>); <span class="comment">// returns -1</span>
///
/// </pre>
/// <p>This function requires the value type to have an implementation of <code>operator==()</code>.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#indexOf">indexOf</a>().</p></div>
#[inline(always)]
pub unsafe fn last_index_of_2a(
&self,
t: *const *mut crate::QAbstractAspect,
from: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QAbstractAspect_ptr_lastIndexOf(
self as *const crate::QVectorOfQAbstractAspect,
t,
from,
)
}
/// <p>Returns the index position of the last occurrence of the value <i>value</i> in the vector, searching backward from index position <i>from</i>. If <i>from</i> is -1 (the default), the search starts at the last item. Returns -1 if no item matched.</p>
///
/// Calls C++ function: <span style='color: green;'>```int QVector<Qt3DCore::QAbstractAspect*>::lastIndexOf(const Qt3DCore::QAbstractAspect*& t) const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#lastIndexOf">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the index position of the last occurrence of the value <i>value</i> in the vector, searching backward from index position <i>from</i>. If <i>from</i> is -1 (the default), the search starts at the last item. Returns -1 if no item matched.</p>
/// <p>Example:</p>
/// <pre class="cpp">
///
/// <span class="type"><a href="http://doc.qt.io/qt-5/qlist.html">QList</a></span><span class="operator"><</span><span class="type"><a href="http://doc.qt.io/qt-5/qstring.html">QString</a></span><span class="operator">></span> vector;
/// vector <span class="operator"><</span><span class="operator"><</span> <span class="string">"A"</span> <span class="operator"><</span><span class="operator"><</span> <span class="string">"B"</span> <span class="operator"><</span><span class="operator"><</span> <span class="string">"C"</span> <span class="operator"><</span><span class="operator"><</span> <span class="string">"B"</span> <span class="operator"><</span><span class="operator"><</span> <span class="string">"A"</span>;
/// vector<span class="operator">.</span>lastIndexOf(<span class="string">"B"</span>); <span class="comment">// returns 3</span>
/// vector<span class="operator">.</span>lastIndexOf(<span class="string">"B"</span><span class="operator">,</span> <span class="number">3</span>); <span class="comment">// returns 3</span>
/// vector<span class="operator">.</span>lastIndexOf(<span class="string">"B"</span><span class="operator">,</span> <span class="number">2</span>); <span class="comment">// returns 1</span>
/// vector<span class="operator">.</span>lastIndexOf(<span class="string">"X"</span>); <span class="comment">// returns -1</span>
///
/// </pre>
/// <p>This function requires the value type to have an implementation of <code>operator==()</code>.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#indexOf">indexOf</a>().</p></div>
#[inline(always)]
pub unsafe fn last_index_of_1a(
&self,
t: *const *mut crate::QAbstractAspect,
) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QAbstractAspect_ptr_lastIndexOf1(
self as *const crate::QVectorOfQAbstractAspect,
t,
)
}
/// <p>Same as <a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#count-1">count</a>().</p>
///
/// Calls C++ function: <span style='color: green;'>```int QVector<Qt3DCore::QAbstractAspect*>::length() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#length">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Same as <a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#count-1">count</a>().</p>
/// <p>Provided for compatibility with <a href="http://doc.qt.io/qt-5/qlist.html">QList</a>.</p>
/// <p>This function was introduced in Qt 5.2.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>(), <a href="http://doc.qt.io/qt-5/qvector.html#count-1">count</a>(), and <a href="http://doc.qt.io/qt-5/qlist.html#length">QList::length</a>().</p></div>
#[inline(always)]
pub unsafe fn length(&self) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QAbstractAspect_ptr_length(
self as *const crate::QVectorOfQAbstractAspect,
)
}
/// <p>Returns a sub-vector which contains elements from this vector, starting at position <i>pos</i>. If <i>length</i> is -1 (the default), all elements after <i>pos</i> are included; otherwise <i>length</i> elements (or all remaining elements if there are less than <i>length</i> elements) are included.</p>
///
/// Calls C++ function: <span style='color: green;'>```QVector<Qt3DCore::QAbstractAspect*> QVector<Qt3DCore::QAbstractAspect*>::mid(int pos, int len = …) const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#mid">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns a sub-vector which contains elements from this vector, starting at position <i>pos</i>. If <i>length</i> is -1 (the default), all elements after <i>pos</i> are included; otherwise <i>length</i> elements (or all remaining elements if there are less than <i>length</i> elements) are included.</p></div>
#[inline(always)]
pub unsafe fn mid_2a(
&self,
pos: ::std::os::raw::c_int,
len: ::std::os::raw::c_int,
) -> ::cpp_core::CppBox<crate::QVectorOfQAbstractAspect> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QAbstractAspect_ptr_mid(
self as *const crate::QVectorOfQAbstractAspect,
pos,
len,
)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Returns a sub-vector which contains elements from this vector, starting at position <i>pos</i>. If <i>length</i> is -1 (the default), all elements after <i>pos</i> are included; otherwise <i>length</i> elements (or all remaining elements if there are less than <i>length</i> elements) are included.</p>
///
/// Calls C++ function: <span style='color: green;'>```QVector<Qt3DCore::QAbstractAspect*> QVector<Qt3DCore::QAbstractAspect*>::mid(int pos) const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#mid">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns a sub-vector which contains elements from this vector, starting at position <i>pos</i>. If <i>length</i> is -1 (the default), all elements after <i>pos</i> are included; otherwise <i>length</i> elements (or all remaining elements if there are less than <i>length</i> elements) are included.</p></div>
#[inline(always)]
pub unsafe fn mid_1a(
&self,
pos: ::std::os::raw::c_int,
) -> ::cpp_core::CppBox<crate::QVectorOfQAbstractAspect> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QAbstractAspect_ptr_mid1(
self as *const crate::QVectorOfQAbstractAspect,
pos,
)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Moves the item at index position <i>from</i> to index position <i>to</i>.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QAbstractAspect*>::move(int from, int to)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#move">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Moves the item at index position <i>from</i> to index position <i>to</i>.</p>
/// <p>Provided for compatibility with <a href="http://doc.qt.io/qt-5/qlist.html">QList</a>.</p>
/// <p>This function was introduced in Qt 5.6.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qlist.html#move">QList::move</a>().</p></div>
#[inline(always)]
pub unsafe fn move_(&self, from: ::std::os::raw::c_int, to: ::std::os::raw::c_int) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QAbstractAspect_ptr_move(
self as *const crate::QVectorOfQAbstractAspect as *mut crate::QVectorOfQAbstractAspect,
from,
to,
)
}
/// <p>Constructs an empty vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void QVector<Qt3DCore::QAbstractAspect*>::QVector()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#QVector">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Constructs an empty vector.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#resize">resize</a>().</p></div>
#[inline(always)]
pub unsafe fn new_0a() -> ::cpp_core::CppBox<crate::QVectorOfQAbstractAspect> {
let ffi_result =
{ crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QAbstractAspect_ptr_QVector() };
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Constructs a vector with an initial size of <i>size</i> elements.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void QVector<Qt3DCore::QAbstractAspect*>::QVector(int size)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#QVector-1">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Constructs a vector with an initial size of <i>size</i> elements.</p>
/// <p>The elements are initialized with a <a href="http://doc.qt.io/qt-5/containers.html#default-constructed-value">default-constructed value</a>.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#resize">resize</a>().</p></div>
#[inline(always)]
pub unsafe fn new_1a(
size: ::std::os::raw::c_int,
) -> ::cpp_core::CppBox<crate::QVectorOfQAbstractAspect> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QAbstractAspect_ptr_QVector1(size)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Constructs a vector with an initial size of <i>size</i> elements. Each element is initialized with <i>value</i>.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void QVector<Qt3DCore::QAbstractAspect*>::QVector(int size, const Qt3DCore::QAbstractAspect*& t)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#QVector-2">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Constructs a vector with an initial size of <i>size</i> elements. Each element is initialized with <i>value</i>.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#resize">resize</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#fill">fill</a>().</p></div>
#[inline(always)]
pub unsafe fn new_2a(
size: ::std::os::raw::c_int,
t: *const *mut crate::QAbstractAspect,
) -> ::cpp_core::CppBox<crate::QVectorOfQAbstractAspect> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QAbstractAspect_ptr_QVector2(size, t)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Constructs a copy of <i>other</i>.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void QVector<Qt3DCore::QAbstractAspect*>::QVector(const QVector<Qt3DCore::QAbstractAspect*>& v)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#QVector-3">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Constructs a copy of <i>other</i>.</p>
/// <p>This operation takes <a href="http://doc.qt.io/qt-5/containers.html#algorithmic-complexity">constant time</a>, because <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> is <a href="http://doc.qt.io/qt-5/implicit-sharing.html">implicitly shared</a>. This makes returning a <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> from a function very fast. If a shared instance is modified, it will be copied (copy-on-write), and that takes <a href="http://doc.qt.io/qt-5/containers.html#algorithmic-complexity">linear time</a>.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#operator-eq">operator=</a>().</p></div>
#[inline(always)]
pub unsafe fn new_copy(
v: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QVectorOfQAbstractAspect>>,
) -> ::cpp_core::CppBox<crate::QVectorOfQAbstractAspect> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QAbstractAspect_ptr_QVector3(::cpp_core::CastInto::<::cpp_core::Ref<crate::QVectorOfQAbstractAspect>>::cast_into(v).as_raw_ptr())
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>This function is provided for STL compatibility. It is equivalent to <a href="http://doc.qt.io/qt-5/qvector.html#removeLast">removeLast</a>().</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QAbstractAspect*>::pop_back()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#pop_back">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This function is provided for STL compatibility. It is equivalent to <a href="http://doc.qt.io/qt-5/qvector.html#removeLast">removeLast</a>().</p></div>
#[inline(always)]
pub unsafe fn pop_back(&self) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QAbstractAspect_ptr_pop_back(
self as *const crate::QVectorOfQAbstractAspect as *mut crate::QVectorOfQAbstractAspect,
)
}
/// <p>This function is provided for STL compatibility. It is equivalent to <a href="http://doc.qt.io/qt-5/qvector.html#removeFirst">removeFirst</a>().</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QAbstractAspect*>::pop_front()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#pop_front">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This function is provided for STL compatibility. It is equivalent to <a href="http://doc.qt.io/qt-5/qvector.html#removeFirst">removeFirst</a>().</p></div>
#[inline(always)]
pub unsafe fn pop_front(&self) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QAbstractAspect_ptr_pop_front(
self as *const crate::QVectorOfQAbstractAspect as *mut crate::QVectorOfQAbstractAspect,
)
}
/// <p>Inserts <i>value</i> at the beginning of the vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QAbstractAspect*>::prepend(const Qt3DCore::QAbstractAspect*& t)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#prepend">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Inserts <i>value</i> at the beginning of the vector.</p>
/// <p>Example:</p>
/// <pre class="cpp">
///
/// <span class="type"><a href="http://doc.qt.io/qt-5/qvector.html#QVector">QVector</a></span><span class="operator"><</span><span class="type"><a href="http://doc.qt.io/qt-5/qstring.html">QString</a></span><span class="operator">></span> vector;
/// vector<span class="operator">.</span>prepend(<span class="string">"one"</span>);
/// vector<span class="operator">.</span>prepend(<span class="string">"two"</span>);
/// vector<span class="operator">.</span>prepend(<span class="string">"three"</span>);
/// <span class="comment">// vector: ["three", "two", "one"]</span>
///
/// </pre>
/// <p>This is the same as vector.insert(0, <i>value</i>).</p>
/// <p>For large vectors, this operation can be slow (<a href="http://doc.qt.io/qt-5/containers.html#linear-time">linear time</a>), because it requires moving all the items in the vector by one position further in memory. If you want a container class that provides a fast prepend() function, use <a href="http://doc.qt.io/qt-5/qlist.html">QList</a> or <a href="http://doc.qt.io/qt-5/qlinkedlist.html">QLinkedList</a> instead.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#append">append</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#insert">insert</a>().</p></div>
#[inline(always)]
pub unsafe fn prepend(&self, t: *const *mut crate::QAbstractAspect) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QAbstractAspect_ptr_prepend(
self as *const crate::QVectorOfQAbstractAspect as *mut crate::QVectorOfQAbstractAspect,
t,
)
}
/// <p>This function is provided for STL compatibility. It is equivalent to append(<i>value</i>).</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QAbstractAspect*>::push_back(const Qt3DCore::QAbstractAspect*& t)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#push_back">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This function is provided for STL compatibility. It is equivalent to append(<i>value</i>).</p></div>
#[inline(always)]
pub unsafe fn push_back(&self, t: *const *mut crate::QAbstractAspect) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QAbstractAspect_ptr_push_back(
self as *const crate::QVectorOfQAbstractAspect as *mut crate::QVectorOfQAbstractAspect,
t,
)
}
/// <p>This function is provided for STL compatibility. It is equivalent to prepend(<i>value</i>).</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QAbstractAspect*>::push_front(const Qt3DCore::QAbstractAspect*& t)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#push_front">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This function is provided for STL compatibility. It is equivalent to prepend(<i>value</i>).</p></div>
#[inline(always)]
pub unsafe fn push_front(&self, t: *const *mut crate::QAbstractAspect) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QAbstractAspect_ptr_push_front(
self as *const crate::QVectorOfQAbstractAspect as *mut crate::QVectorOfQAbstractAspect,
t,
)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QAbstractAspect*>::remove(int i)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#remove">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This is an overloaded function.</p>
/// <p>Removes the element at index position <i>i</i>.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#insert">insert</a>(), <a href="http://doc.qt.io/qt-5/qvector.html#replace">replace</a>(), and <a href="http://doc.qt.io/qt-5/qvector.html#fill">fill</a>().</p></div>
#[inline(always)]
pub unsafe fn remove_1a(&self, i: ::std::os::raw::c_int) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QAbstractAspect_ptr_remove(
self as *const crate::QVectorOfQAbstractAspect as *mut crate::QVectorOfQAbstractAspect,
i,
)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QAbstractAspect*>::remove(int i, int n)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#remove-1">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This is an overloaded function.</p>
/// <p>Removes <i>count</i> elements from the middle of the vector, starting at index position <i>i</i>.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#insert">insert</a>(), <a href="http://doc.qt.io/qt-5/qvector.html#replace">replace</a>(), and <a href="http://doc.qt.io/qt-5/qvector.html#fill">fill</a>().</p></div>
#[inline(always)]
pub unsafe fn remove_2a(&self, i: ::std::os::raw::c_int, n: ::std::os::raw::c_int) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QAbstractAspect_ptr_remove1(
self as *const crate::QVectorOfQAbstractAspect as *mut crate::QVectorOfQAbstractAspect,
i,
n,
)
}
/// <p>Removes all elements that compare equal to <i>t</i> from the vector. Returns the number of elements removed, if any.</p>
///
/// Calls C++ function: <span style='color: green;'>```int QVector<Qt3DCore::QAbstractAspect*>::removeAll(const Qt3DCore::QAbstractAspect*& t)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#removeAll">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Removes all elements that compare equal to <i>t</i> from the vector. Returns the number of elements removed, if any.</p>
/// <p>Provided for compatibility with <a href="http://doc.qt.io/qt-5/qlist.html">QList</a>.</p>
/// <p>This function was introduced in Qt 5.4.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#removeOne">removeOne</a>() and <a href="http://doc.qt.io/qt-5/qlist.html#removeAll">QList::removeAll</a>().</p></div>
#[inline(always)]
pub unsafe fn remove_all(
&self,
t: *const *mut crate::QAbstractAspect,
) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QAbstractAspect_ptr_removeAll(
self as *const crate::QVectorOfQAbstractAspect as *mut crate::QVectorOfQAbstractAspect,
t,
)
}
/// <p>Removes the element at index position <i>i</i>. Equivalent to</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QAbstractAspect*>::removeAt(int i)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#removeAt">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Removes the element at index position <i>i</i>. Equivalent to</p>
/// <pre class="cpp">
///
/// remove(i);
///
/// </pre>
/// <p>Provided for compatibility with <a href="http://doc.qt.io/qt-5/qlist.html">QList</a>.</p>
/// <p>This function was introduced in Qt 5.2.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#remove">remove</a>() and <a href="http://doc.qt.io/qt-5/qlist.html#removeAt">QList::removeAt</a>().</p></div>
#[inline(always)]
pub unsafe fn remove_at(&self, i: ::std::os::raw::c_int) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QAbstractAspect_ptr_removeAt(
self as *const crate::QVectorOfQAbstractAspect as *mut crate::QVectorOfQAbstractAspect,
i,
)
}
/// <p>Removes the first item in the vector. Calling this function is equivalent to calling remove(0). The vector must not be empty. If the vector can be empty, call <a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>() before calling this function.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QAbstractAspect*>::removeFirst()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#removeFirst">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Removes the first item in the vector. Calling this function is equivalent to calling remove(0). The vector must not be empty. If the vector can be empty, call <a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>() before calling this function.</p>
/// <p>This function was introduced in Qt 5.1.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#remove">remove</a>(), <a href="http://doc.qt.io/qt-5/qvector.html#takeFirst">takeFirst</a>(), and <a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>().</p></div>
#[inline(always)]
pub unsafe fn remove_first(&self) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QAbstractAspect_ptr_removeFirst(
self as *const crate::QVectorOfQAbstractAspect as *mut crate::QVectorOfQAbstractAspect,
)
}
/// <p>Removes the last item in the vector. Calling this function is equivalent to calling remove(<a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>() - 1). The vector must not be empty. If the vector can be empty, call <a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>() before calling this function.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QAbstractAspect*>::removeLast()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#removeLast">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Removes the last item in the vector. Calling this function is equivalent to calling remove(<a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>() - 1). The vector must not be empty. If the vector can be empty, call <a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>() before calling this function.</p>
/// <p>This function was introduced in Qt 5.1.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#remove">remove</a>(), <a href="http://doc.qt.io/qt-5/qvector.html#takeLast">takeLast</a>(), <a href="http://doc.qt.io/qt-5/qvector.html#removeFirst">removeFirst</a>(), and <a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>().</p></div>
#[inline(always)]
pub unsafe fn remove_last(&self) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QAbstractAspect_ptr_removeLast(
self as *const crate::QVectorOfQAbstractAspect as *mut crate::QVectorOfQAbstractAspect,
)
}
/// <p>Removes the first element that compares equal to <i>t</i> from the vector. Returns whether an element was, in fact, removed.</p>
///
/// Calls C++ function: <span style='color: green;'>```bool QVector<Qt3DCore::QAbstractAspect*>::removeOne(const Qt3DCore::QAbstractAspect*& t)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#removeOne">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Removes the first element that compares equal to <i>t</i> from the vector. Returns whether an element was, in fact, removed.</p>
/// <p>Provided for compatibility with <a href="http://doc.qt.io/qt-5/qlist.html">QList</a>.</p>
/// <p>This function was introduced in Qt 5.4.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#removeAll">removeAll</a>() and <a href="http://doc.qt.io/qt-5/qlist.html#removeOne">QList::removeOne</a>().</p></div>
#[inline(always)]
pub unsafe fn remove_one(&self, t: *const *mut crate::QAbstractAspect) -> bool {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QAbstractAspect_ptr_removeOne(
self as *const crate::QVectorOfQAbstractAspect as *mut crate::QVectorOfQAbstractAspect,
t,
)
}
/// <p>Replaces the item at index position <i>i</i> with <i>value</i>.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QAbstractAspect*>::replace(int i, const Qt3DCore::QAbstractAspect*& t)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#replace">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Replaces the item at index position <i>i</i> with <i>value</i>.</p>
/// <p><i>i</i> must be a valid index position in the vector (i.e., 0 <= <i>i</i> < <a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>()).</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#operator-5b-5d">operator[]</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#remove">remove</a>().</p></div>
#[inline(always)]
pub unsafe fn replace(&self, i: ::std::os::raw::c_int, t: *const *mut crate::QAbstractAspect) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QAbstractAspect_ptr_replace(
self as *const crate::QVectorOfQAbstractAspect as *mut crate::QVectorOfQAbstractAspect,
i,
t,
)
}
/// <p>Attempts to allocate memory for at least <i>size</i> elements. If you know in advance how large the vector will be, you should call this function to prevent reallocations and memory fragmentation.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QAbstractAspect*>::reserve(int size)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#reserve">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Attempts to allocate memory for at least <i>size</i> elements. If you know in advance how large the vector will be, you should call this function to prevent reallocations and memory fragmentation.</p>
/// <p>If <i>size</i> is an underestimate, the worst that will happen is that the <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> will be a bit slower. If <i>size</i> is an overestimate, you may have used more memory than the normal <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> growth strategy would have allocated—or you may have used less.</p>
/// <p>An alternative to reserve() is calling <a href="http://doc.qt.io/qt-5/qvector.html#resize">resize</a>(). Whether or not that is faster than reserve() depends on the element type, because <a href="http://doc.qt.io/qt-5/qvector.html#resize">resize</a>() default-constructs all elements, and requires assignment to existing entries rather than calling <a href="http://doc.qt.io/qt-5/qvector.html#append">append</a>(), which copy- or move-constructs. For simple types, like <code>int</code> or <code>double</code>, <a href="http://doc.qt.io/qt-5/qvector.html#resize">resize</a>() is typically faster, but for anything more complex, you should prefer reserve().</p>
/// <p><b>Warning:</b> If the size passed to <a href="http://doc.qt.io/qt-5/qvector.html#resize">resize</a>() was underestimated, you run out of allocated space and into undefined behavior. This problem does not exist with reserve(), because it treats the size as just a hint.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#squeeze">squeeze</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#capacity">capacity</a>().</p></div>
#[inline(always)]
pub unsafe fn reserve(&self, size: ::std::os::raw::c_int) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QAbstractAspect_ptr_reserve(
self as *const crate::QVectorOfQAbstractAspect as *mut crate::QVectorOfQAbstractAspect,
size,
)
}
/// <p>Sets the size of the vector to <i>size</i>. If <i>size</i> is greater than the current size, elements are added to the end; the new elements are initialized with a <a href="http://doc.qt.io/qt-5/containers.html#default-constructed-value">default-constructed value</a>. If <i>size</i> is less than the current size, elements are removed from the end.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QAbstractAspect*>::resize(int size)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#resize">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Sets the size of the vector to <i>size</i>. If <i>size</i> is greater than the current size, elements are added to the end; the new elements are initialized with a <a href="http://doc.qt.io/qt-5/containers.html#default-constructed-value">default-constructed value</a>. If <i>size</i> is less than the current size, elements are removed from the end.</p>
/// <p>Since Qt 5.6, resize() doesn't shrink the capacity anymore. To shed excess capacity, use <a href="http://doc.qt.io/qt-5/qvector.html#squeeze">squeeze</a>().</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>().</p></div>
#[inline(always)]
pub unsafe fn resize(&self, size: ::std::os::raw::c_int) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QAbstractAspect_ptr_resize(
self as *const crate::QVectorOfQAbstractAspect as *mut crate::QVectorOfQAbstractAspect,
size,
)
}
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QAbstractAspect*>::setSharable(bool sharable)```</span>.
#[inline(always)]
pub unsafe fn set_sharable(&self, sharable: bool) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QAbstractAspect_ptr_setSharable(
self as *const crate::QVectorOfQAbstractAspect as *mut crate::QVectorOfQAbstractAspect,
sharable,
)
}
/// <p>This function is provided for STL compatibility. It is equivalent to <a href="http://doc.qt.io/qt-5/qvector.html#squeeze">squeeze</a>().</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QAbstractAspect*>::shrink_to_fit()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#shrink_to_fit">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This function is provided for STL compatibility. It is equivalent to <a href="http://doc.qt.io/qt-5/qvector.html#squeeze">squeeze</a>().</p>
/// <p>This function was introduced in Qt 5.10.</p></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn shrink_to_fit(&self) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QAbstractAspect_ptr_shrink_to_fit(
self as *const crate::QVectorOfQAbstractAspect as *mut crate::QVectorOfQAbstractAspect,
)
}
/// <p>Returns the number of items in the vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```int QVector<Qt3DCore::QAbstractAspect*>::size() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#size">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the number of items in the vector.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#resize">resize</a>().</p></div>
#[inline(always)]
pub unsafe fn size(&self) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QAbstractAspect_ptr_size(
self as *const crate::QVectorOfQAbstractAspect,
)
}
/// <p>Releases any memory not required to store the items.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QAbstractAspect*>::squeeze()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#squeeze">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Releases any memory not required to store the items.</p>
/// <p>The sole purpose of this function is to provide a means of fine tuning <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a>'s memory usage. In general, you will rarely ever need to call this function.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#reserve">reserve</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#capacity">capacity</a>().</p></div>
#[inline(always)]
pub unsafe fn squeeze(&self) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QAbstractAspect_ptr_squeeze(
self as *const crate::QVectorOfQAbstractAspect as *mut crate::QVectorOfQAbstractAspect,
)
}
/// <p>Returns <code>true</code> if this vector is not empty and its first item is equal to <i>value</i>; otherwise returns <code>false</code>.</p>
///
/// Calls C++ function: <span style='color: green;'>```bool QVector<Qt3DCore::QAbstractAspect*>::startsWith(const Qt3DCore::QAbstractAspect*& t) const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#startsWith">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns <code>true</code> if this vector is not empty and its first item is equal to <i>value</i>; otherwise returns <code>false</code>.</p>
/// <p>This function was introduced in Qt 4.5.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#first">first</a>().</p></div>
#[inline(always)]
pub unsafe fn starts_with(&self, t: *const *mut crate::QAbstractAspect) -> bool {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QAbstractAspect_ptr_startsWith(
self as *const crate::QVectorOfQAbstractAspect,
t,
)
}
/// <p>Swaps vector <i>other</i> with this vector. This operation is very fast and never fails.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QAbstractAspect*>::swap(QVector<Qt3DCore::QAbstractAspect*>& other)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#swap">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Swaps vector <i>other</i> with this vector. This operation is very fast and never fails.</p>
/// <p>This function was introduced in Qt 4.8.</p></div>
#[inline(always)]
pub unsafe fn swap(
&self,
other: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QVectorOfQAbstractAspect>>,
) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QAbstractAspect_ptr_swap(
self as *const crate::QVectorOfQAbstractAspect as *mut crate::QVectorOfQAbstractAspect,
::cpp_core::CastInto::<::cpp_core::Ref<crate::QVectorOfQAbstractAspect>>::cast_into(
other,
)
.as_raw_ptr() as *mut crate::QVectorOfQAbstractAspect,
)
}
/// <p>Exchange the item at index position <i>i</i> with the item at index position <i>j</i>. This function assumes that both <i>i</i> and <i>j</i> are at least 0 but less than <a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>(). To avoid failure, test that both <i>i</i> and <i>j</i> are at least 0 and less than <a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>().</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QAbstractAspect*>::swapItemsAt(int i, int j)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#swapItemsAt">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Exchange the item at index position <i>i</i> with the item at index position <i>j</i>. This function assumes that both <i>i</i> and <i>j</i> are at least 0 but less than <a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>(). To avoid failure, test that both <i>i</i> and <i>j</i> are at least 0 and less than <a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>().</p>
/// <p>This function was introduced in Qt 5.14.</p></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(cpp_lib_version = "5.14.0"))
)]
#[cfg(any(cpp_lib_version = "5.14.0", feature = "ritual_rustdoc"))]
pub unsafe fn swap_items_at(&self, i: ::std::os::raw::c_int, j: ::std::os::raw::c_int) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QAbstractAspect_ptr_swapItemsAt(
self as *const crate::QVectorOfQAbstractAspect as *mut crate::QVectorOfQAbstractAspect,
i,
j,
)
}
/// <p>Removes the element at index position <i>i</i> and returns it.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QAbstractAspect* QVector<Qt3DCore::QAbstractAspect*>::takeAt(int i)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#takeAt">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Removes the element at index position <i>i</i> and returns it.</p>
/// <p>Equivalent to</p>
/// <pre class="cpp">
///
/// T t <span class="operator">=</span> at(i);
/// remove(i);
/// <span class="keyword">return</span> t;
///
/// </pre>
/// <p>Provided for compatibility with <a href="http://doc.qt.io/qt-5/qlist.html">QList</a>.</p>
/// <p>This function was introduced in Qt 5.2.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#takeFirst">takeFirst</a>(), <a href="http://doc.qt.io/qt-5/qvector.html#takeLast">takeLast</a>(), and <a href="http://doc.qt.io/qt-5/qlist.html#takeAt">QList::takeAt</a>().</p></div>
#[inline(always)]
pub unsafe fn take_at(
&self,
i: ::std::os::raw::c_int,
) -> ::qt_core::QPtr<crate::QAbstractAspect> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QAbstractAspect_ptr_takeAt(
self as *const crate::QVectorOfQAbstractAspect
as *mut crate::QVectorOfQAbstractAspect,
i,
)
};
::qt_core::QPtr::from_raw(ffi_result)
}
/// <p>Removes the first item in the vector and returns it. This function assumes the vector is not empty. To avoid failure, call <a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>() before calling this function.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QAbstractAspect* QVector<Qt3DCore::QAbstractAspect*>::takeFirst()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#takeFirst">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Removes the first item in the vector and returns it. This function assumes the vector is not empty. To avoid failure, call <a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>() before calling this function.</p>
/// <p>This function was introduced in Qt 5.1.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#takeLast">takeLast</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#removeFirst">removeFirst</a>().</p></div>
#[inline(always)]
pub unsafe fn take_first(&self) -> ::qt_core::QPtr<crate::QAbstractAspect> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QAbstractAspect_ptr_takeFirst(
self as *const crate::QVectorOfQAbstractAspect
as *mut crate::QVectorOfQAbstractAspect,
)
};
::qt_core::QPtr::from_raw(ffi_result)
}
/// <p>Removes the last item in the list and returns it. This function assumes the vector is not empty. To avoid failure, call <a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>() before calling this function.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QAbstractAspect* QVector<Qt3DCore::QAbstractAspect*>::takeLast()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#takeLast">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Removes the last item in the list and returns it. This function assumes the vector is not empty. To avoid failure, call <a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>() before calling this function.</p>
/// <p>If you don't use the return value, <a href="http://doc.qt.io/qt-5/qvector.html#removeLast">removeLast</a>() is more efficient.</p>
/// <p>This function was introduced in Qt 5.1.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#takeFirst">takeFirst</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#removeLast">removeLast</a>().</p></div>
#[inline(always)]
pub unsafe fn take_last(&self) -> ::qt_core::QPtr<crate::QAbstractAspect> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QAbstractAspect_ptr_takeLast(
self as *const crate::QVectorOfQAbstractAspect
as *mut crate::QVectorOfQAbstractAspect,
)
};
::qt_core::QPtr::from_raw(ffi_result)
}
/// <p>Returns the value at index position <i>i</i> in the vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QAbstractAspect* QVector<Qt3DCore::QAbstractAspect*>::value(int i) const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#value">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the value at index position <i>i</i> in the vector.</p>
/// <p>If the index <i>i</i> is out of bounds, the function returns a <a href="http://doc.qt.io/qt-5/containers.html#default-constructed-value">default-constructed value</a>. If you are certain that <i>i</i> is within bounds, you can use <a href="http://doc.qt.io/qt-5/qvector.html#at">at</a>() instead, which is slightly faster.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#at">at</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#operator-5b-5d">operator[]</a>().</p></div>
#[inline(always)]
pub unsafe fn value_1a(
&self,
i: ::std::os::raw::c_int,
) -> ::qt_core::QPtr<crate::QAbstractAspect> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QAbstractAspect_ptr_value(
self as *const crate::QVectorOfQAbstractAspect,
i,
)
};
::qt_core::QPtr::from_raw(ffi_result)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QAbstractAspect* QVector<Qt3DCore::QAbstractAspect*>::value(int i, const Qt3DCore::QAbstractAspect*& defaultValue) const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#value-1">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This is an overloaded function.</p>
/// <p>If the index <i>i</i> is out of bounds, the function returns <i>defaultValue</i>.</p></div>
#[inline(always)]
pub unsafe fn value_2a(
&self,
i: ::std::os::raw::c_int,
default_value: *const *mut crate::QAbstractAspect,
) -> ::qt_core::QPtr<crate::QAbstractAspect> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QAbstractAspect_ptr_value1(
self as *const crate::QVectorOfQAbstractAspect,
i,
default_value,
)
};
::qt_core::QPtr::from_raw(ffi_result)
}
}
impl From<crate::ChangeFlag> for ::qt_core::QFlags<crate::ChangeFlag> {
fn from(value: crate::ChangeFlag) -> Self {
Self::from(value.to_int())
}
}
impl<T: Into<::qt_core::QFlags<crate::ChangeFlag>>> std::ops::BitOr<T> for crate::ChangeFlag {
type Output = ::qt_core::QFlags<crate::ChangeFlag>;
fn bitor(self, rhs: T) -> ::qt_core::QFlags<crate::ChangeFlag> {
Into::<::qt_core::QFlags<crate::ChangeFlag>>::into(self) | rhs
}
}
/// <p>The <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> class is a template class that provides a dynamic array.</p>
///
/// C++ class: <span style='color: green;'>```QVector<Qt3DCore::QNode*>```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>The <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> class is a template class that provides a dynamic array.</p>
/// <p><a href="http://doc.qt.io/qt-5/qvector.html">QVector</a><T> is one of Qt's generic <a href="http://doc.qt.io/qt-5/containers.html">container classes</a>. It stores its items in adjacent memory locations and provides fast index-based access.</p>
/// <p><a href="http://doc.qt.io/qt-5/qlist.html">QList</a><T>, <a href="http://doc.qt.io/qt-5/qlinkedlist.html">QLinkedList</a><T>, <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a><T>, and <a href="http://doc.qt.io/qt-5/qvarlengtharray.html">QVarLengthArray</a><T> provide similar APIs and functionality. They are often interchangeable, but there are performance consequences. Here is an overview of use cases:</p>
/// <ul>
/// <li><a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> should be your default first choice. <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a><T> will usually give better performance than <a href="http://doc.qt.io/qt-5/qlist.html">QList</a><T>, because <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a><T> always stores its items sequentially in memory, where <a href="http://doc.qt.io/qt-5/qlist.html">QList</a><T> will allocate its items on the heap unless <code>sizeof(T) <= sizeof(void*)</code> and T has been declared to be either a <code>Q_MOVABLE_TYPE</code> or a <code>Q_PRIMITIVE_TYPE</code> using <a href="http://doc.qt.io/qt-5/qtglobal.html#Q_DECLARE_TYPEINFO">Q_DECLARE_TYPEINFO</a>. See the <a href="http://marcmutz.wordpress.com/effective-qt/containers/#containers-qlist">Pros and Cons of Using QList</a> for an explanation.</li>
/// <li>However, <a href="http://doc.qt.io/qt-5/qlist.html">QList</a> is used throughout the Qt APIs for passing parameters and for returning values. Use <a href="http://doc.qt.io/qt-5/qlist.html">QList</a> to interface with those APIs.</li>
/// <li>If you need a real linked list, which guarantees <a href="http://doc.qt.io/qt-5/containers.html#algorithmic-complexity">constant time</a> insertions mid-list and uses iterators to items rather than indexes, use <a href="http://doc.qt.io/qt-5/qlinkedlist.html">QLinkedList</a>.</li>
/// </ul>
/// <p><b>Note: </b><a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> and <a href="http://doc.qt.io/qt-5/qvarlengtharray.html">QVarLengthArray</a> both guarantee C-compatible array layout. <a href="http://doc.qt.io/qt-5/qlist.html">QList</a> does not. This might be important if your application must interface with a C API.</p><p><b>Note: </b>Iterators into a <a href="http://doc.qt.io/qt-5/qlinkedlist.html">QLinkedList</a> and references into heap-allocating QLists remain valid as long as the referenced items remain in the container. This is not true for iterators and references into a <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> and non-heap-allocating QLists.</p><p>Here's an example of a <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> that stores integers and a <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> that stores <a href="http://doc.qt.io/qt-5/qstring.html">QString</a> values:</p>
/// <pre class="cpp">
///
/// <span class="type"><a href="http://doc.qt.io/qt-5/qvector.html#QVector">QVector</a></span><span class="operator"><</span><span class="type">int</span><span class="operator">></span> integerVector;
/// <span class="type"><a href="http://doc.qt.io/qt-5/qvector.html#QVector">QVector</a></span><span class="operator"><</span><span class="type"><a href="http://doc.qt.io/qt-5/qstring.html">QString</a></span><span class="operator">></span> stringVector;
///
/// </pre>
/// <p><a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> stores its items in a vector (array). Typically, vectors are created with an initial size. For example, the following code constructs a <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> with 200 elements:</p>
/// <pre class="cpp">
///
/// <span class="type"><a href="http://doc.qt.io/qt-5/qvector.html#QVector">QVector</a></span><span class="operator"><</span><span class="type"><a href="http://doc.qt.io/qt-5/qstring.html">QString</a></span><span class="operator">></span> vector(<span class="number">200</span>);
///
/// </pre>
/// <p>The elements are automatically initialized with a <a href="http://doc.qt.io/qt-5/containers.html#default-constructed-value">default-constructed value</a>. If you want to initialize the vector with a different value, pass that value as the second argument to the constructor:</p>
/// <pre class="cpp">
///
/// <span class="type"><a href="http://doc.qt.io/qt-5/qvector.html#QVector">QVector</a></span><span class="operator"><</span><span class="type"><a href="http://doc.qt.io/qt-5/qstring.html">QString</a></span><span class="operator">></span> vector(<span class="number">200</span><span class="operator">,</span> <span class="string">"Pass"</span>);
///
/// </pre>
/// <p>You can also call <a href="http://doc.qt.io/qt-5/qvector.html#fill">fill</a>() at any time to fill the vector with a value.</p>
/// <p><a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> uses 0-based indexes, just like C++ arrays. To access the item at a particular index position, you can use operator[](). On non-const vectors, operator[]() returns a reference to the item that can be used on the left side of an assignment:</p>
/// <pre class="cpp">
///
/// <span class="keyword">if</span> (vector<span class="operator">[</span><span class="number">0</span><span class="operator">]</span> <span class="operator">=</span><span class="operator">=</span> <span class="string">"Liz"</span>)
///   vector<span class="operator">[</span><span class="number">0</span><span class="operator">]</span> <span class="operator">=</span> <span class="string">"Elizabeth"</span>;
///
/// </pre>
/// <p>For read-only access, an alternative syntax is to use <a href="http://doc.qt.io/qt-5/qvector.html#at">at</a>():</p>
/// <pre class="cpp">
///
/// <span class="keyword">for</span> (<span class="type">int</span> i <span class="operator">=</span> <span class="number">0</span>; i <span class="operator"><</span> vector<span class="operator">.</span>size(); <span class="operator">+</span><span class="operator">+</span>i) {
///   <span class="keyword">if</span> (vector<span class="operator">.</span>at(i) <span class="operator">=</span><span class="operator">=</span> <span class="string">"Alfonso"</span>)
///     cout <span class="operator"><</span><span class="operator"><</span> <span class="string">"Found Alfonso at position "</span> <span class="operator"><</span><span class="operator"><</span> i <span class="operator"><</span><span class="operator"><</span> endl;
/// }
///
/// </pre>
/// <p><a href="http://doc.qt.io/qt-5/qvector.html#at">at</a>() can be faster than operator[](), because it never causes a <a href="http://doc.qt.io/qt-5/implicit-sharing.html#deep-copy">deep copy</a> to occur.</p>
/// <p>Another way to access the data stored in a <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> is to call <a href="http://doc.qt.io/qt-5/qvector.html#data">data</a>(). The function returns a pointer to the first item in the vector. You can use the pointer to directly access and modify the elements stored in the vector. The pointer is also useful if you need to pass a <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> to a function that accepts a plain C++ array.</p>
/// <p>If you want to find all occurrences of a particular value in a vector, use <a href="http://doc.qt.io/qt-5/qvector.html#indexOf">indexOf</a>() or <a href="http://doc.qt.io/qt-5/qvector.html#lastIndexOf">lastIndexOf</a>(). The former searches forward starting from a given index position, the latter searches backward. Both return the index of the matching item if they found one; otherwise, they return -1. For example:</p>
/// <pre class="cpp">
///
/// <span class="type">int</span> i <span class="operator">=</span> vector<span class="operator">.</span>indexOf(<span class="string">"Harumi"</span>);
/// <span class="keyword">if</span> (i <span class="operator">!</span><span class="operator">=</span> <span class="operator">-</span><span class="number">1</span>)
///   cout <span class="operator"><</span><span class="operator"><</span> <span class="string">"First occurrence of Harumi is at position "</span> <span class="operator"><</span><span class="operator"><</span> i <span class="operator"><</span><span class="operator"><</span> endl;
///
/// </pre>
/// <p>If you simply want to check whether a vector contains a particular value, use <a href="http://doc.qt.io/qt-5/qvector.html#contains">contains</a>(). If you want to find out how many times a particular value occurs in the vector, use <a href="http://doc.qt.io/qt-5/qvector.html#count-1">count</a>().</p>
/// <p><a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> provides these basic functions to add, move, and remove items: <a href="http://doc.qt.io/qt-5/qvector.html#insert">insert</a>(), <a href="http://doc.qt.io/qt-5/qvector.html#replace">replace</a>(), <a href="http://doc.qt.io/qt-5/qvector.html#remove">remove</a>(), <a href="http://doc.qt.io/qt-5/qvector.html#prepend">prepend</a>(), <a href="http://doc.qt.io/qt-5/qvector.html#append">append</a>(). With the exception of <a href="http://doc.qt.io/qt-5/qvector.html#append">append</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#replace">replace</a>(), these functions can be slow (<a href="http://doc.qt.io/qt-5/containers.html#linear-time">linear time</a>) for large vectors, because they require moving many items in the vector by one position in memory. If you want a container class that provides fast insertion/removal in the middle, use <a href="http://doc.qt.io/qt-5/qlist.html">QList</a> or <a href="http://doc.qt.io/qt-5/qlinkedlist.html">QLinkedList</a> instead.</p>
/// <p>Unlike plain C++ arrays, QVectors can be resized at any time by calling <a href="http://doc.qt.io/qt-5/qvector.html#resize">resize</a>(). If the new size is larger than the old size, <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> might need to reallocate the whole vector. <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> tries to reduce the number of reallocations by preallocating up to twice as much memory as the actual data needs.</p>
/// <p>If you know in advance approximately how many items the <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> will contain, you can call <a href="http://doc.qt.io/qt-5/qvector.html#reserve">reserve</a>(), asking <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> to preallocate a certain amount of memory. You can also call <a href="http://doc.qt.io/qt-5/qvector.html#capacity">capacity</a>() to find out how much memory <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> actually allocated.</p>
/// <p>Note that using non-const operators and functions can cause <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> to do a deep copy of the data. This is due to <a href="http://doc.qt.io/qt-5/implicit-sharing.html">implicit sharing</a>.</p>
/// <p><a href="http://doc.qt.io/qt-5/qvector.html">QVector</a>'s value type must be an <a href="http://doc.qt.io/qt-5/containers.html#assignable-data-type">assignable data type</a>. This covers most data types that are commonly used, but the compiler won't let you, for example, store a <a href="http://doc.qt.io/qt-5/qwidget.html">QWidget</a> as a value; instead, store a <a href="http://doc.qt.io/qt-5/qwidget.html">QWidget</a> *. A few functions have additional requirements; for example, <a href="http://doc.qt.io/qt-5/qvector.html#indexOf">indexOf</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#lastIndexOf">lastIndexOf</a>() expect the value type to support <code>operator==()</code>. These requirements are documented on a per-function basis.</p>
/// <p>Like the other container classes, <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> provides <a href="http://doc.qt.io/qt-5/containers.html#java-style-iterators">Java-style iterators</a> (<a href="http://doc.qt.io/qt-5/qvectoriterator.html">QVectorIterator</a> and <a href="http://doc.qt.io/qt-5/qmutablevectoriterator.html">QMutableVectorIterator</a>) and <a href="http://doc.qt.io/qt-5/containers.html#stl-style-iterators">STL-style iterators</a> (<a href="http://doc.qt.io/qt-5/qvector.html#const_iterator-typedef">QVector::const_iterator</a> and <a href="http://doc.qt.io/qt-5/qvector.html#iterator-typedefx">QVector::iterator</a>). In practice, these are rarely used, because you can use indexes into the <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a>.</p>
/// <p>In addition to <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a>, Qt also provides <a href="http://doc.qt.io/qt-5/qvarlengtharray.html">QVarLengthArray</a>, a very low-level class with little functionality that is optimized for speed.</p>
/// <p><a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> does <i>not</i> support inserting, prepending, appending or replacing with references to its own values. Doing so will cause your application to abort with an error message.</p>
/// <a name="more-information-on-using-qt-containers"></a>
/// <h4>More Information on Using Qt Containers</h4>
/// <p>For a detailed discussion comparing Qt containers with each other and with STL containers, see <a href="http://marcmutz.wordpress.com/effective-qt/containers/">Understand the Qt Containers</a>.</p></div>
#[repr(C)]
pub struct QVectorOfQNode {
_unused: u8,
}
impl QVectorOfQNode {
/// <p>Appends the items of the <i>other</i> vector to this vector and returns a reference to this vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```QVector<Qt3DCore::QNode*>& QVector<Qt3DCore::QNode*>::operator+=(const QVector<Qt3DCore::QNode*>& l)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#operator-2b-eq">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Appends the items of the <i>other</i> vector to this vector and returns a reference to this vector.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#operator-2b">operator+</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#append">append</a>().</p></div>
#[inline(always)]
pub unsafe fn add_assign_q_vector_of_q_node(
&self,
l: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QVectorOfQNode>>,
) -> ::cpp_core::Ref<crate::QVectorOfQNode> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNode_ptr_operator__4(
self as *const crate::QVectorOfQNode as *mut crate::QVectorOfQNode,
::cpp_core::CastInto::<::cpp_core::Ref<crate::QVectorOfQNode>>::cast_into(l)
.as_raw_ptr(),
)
};
::cpp_core::Ref::from_raw(ffi_result).expect("attempted to construct a null Ref")
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```QVector<Qt3DCore::QNode*>& QVector<Qt3DCore::QNode*>::operator+=(const Qt3DCore::QNode*& t)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#operator-2b-eq-1">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This is an overloaded function.</p>
/// <p>Appends <i>value</i> to the vector.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#append">append</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#operator-lt-lt">operator<<</a>().</p></div>
#[inline(always)]
pub unsafe fn add_assign_q_node(
&self,
t: *const *mut crate::QNode,
) -> ::cpp_core::Ref<crate::QVectorOfQNode> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNode_ptr_operator__5(
self as *const crate::QVectorOfQNode as *mut crate::QVectorOfQNode,
t,
)
};
::cpp_core::Ref::from_raw(ffi_result).expect("attempted to construct a null Ref")
}
/// <p>Inserts <i>value</i> at the end of the vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QNode*>::append(const Qt3DCore::QNode*& t)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#append">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Inserts <i>value</i> at the end of the vector.</p>
/// <p>Example:</p>
/// <pre class="cpp">
///
/// <span class="type"><a href="http://doc.qt.io/qt-5/qvector.html#QVector">QVector</a></span><span class="operator"><</span><span class="type"><a href="http://doc.qt.io/qt-5/qstring.html">QString</a></span><span class="operator">></span> vector;
/// vector<span class="operator">.</span>append(<span class="string">"one"</span>);
/// vector<span class="operator">.</span>append(<span class="string">"two"</span>);
/// <span class="type"><a href="http://doc.qt.io/qt-5/qstring.html">QString</a></span> three <span class="operator">=</span> <span class="string">"three"</span>;
/// vector<span class="operator">.</span>append(three);
/// <span class="comment">// vector: ["one", "two", "three"]</span>
/// <span class="comment">// three: "three"</span>
///
/// </pre>
/// <p>This is the same as calling resize(<a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>() + 1) and assigning <i>value</i> to the new last element in the vector.</p>
/// <p>This operation is relatively fast, because <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> typically allocates more memory than necessary, so it can grow without reallocating the entire vector each time.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#operator-lt-lt">operator<<</a>(), <a href="http://doc.qt.io/qt-5/qvector.html#prepend">prepend</a>(), and <a href="http://doc.qt.io/qt-5/qvector.html#insert">insert</a>().</p></div>
#[inline(always)]
pub unsafe fn append_q_node(&self, t: *const *mut crate::QNode) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNode_ptr_append(
self as *const crate::QVectorOfQNode as *mut crate::QVectorOfQNode,
t,
)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QNode*>::append(const QVector<Qt3DCore::QNode*>& l)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#append-2">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This is an overloaded function.</p>
/// <p>Appends the items of the <i>value</i> vector to this vector.</p>
/// <p>This function was introduced in Qt 5.5.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#operator-lt-lt">operator<<</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#operator-2b-eq">operator+=</a>().</p></div>
#[inline(always)]
pub unsafe fn append_q_vector_of_q_node(
&self,
l: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QVectorOfQNode>>,
) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNode_ptr_append2(
self as *const crate::QVectorOfQNode as *mut crate::QVectorOfQNode,
::cpp_core::CastInto::<::cpp_core::Ref<crate::QVectorOfQNode>>::cast_into(l)
.as_raw_ptr(),
)
}
/// <p>Returns the item at index position <i>i</i> in the vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```const Qt3DCore::QNode*& QVector<Qt3DCore::QNode*>::at(int i) const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#at">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the item at index position <i>i</i> in the vector.</p>
/// <p><i>i</i> must be a valid index position in the vector (i.e., 0 <= <i>i</i> < <a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>()).</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#value">value</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#operator-5b-5d">operator[]</a>().</p></div>
#[inline(always)]
pub unsafe fn at(&self, i: ::std::os::raw::c_int) -> *const *mut crate::QNode {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNode_ptr_at(
self as *const crate::QVectorOfQNode,
i,
)
}
/// <p>This function is provided for STL compatibility. It is equivalent to <a href="http://doc.qt.io/qt-5/qvector.html#last">last</a>().</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode*& QVector<Qt3DCore::QNode*>::back()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#back">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This function is provided for STL compatibility. It is equivalent to <a href="http://doc.qt.io/qt-5/qvector.html#last">last</a>().</p></div>
#[inline(always)]
pub unsafe fn back_mut(&self) -> *mut *mut crate::QNode {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNode_ptr_back(
self as *const crate::QVectorOfQNode as *mut crate::QVectorOfQNode,
)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```const Qt3DCore::QNode*& QVector<Qt3DCore::QNode*>::back() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#back-1">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This is an overloaded function.</p></div>
#[inline(always)]
pub unsafe fn back(&self) -> *const *mut crate::QNode {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNode_ptr_back1(
self as *const crate::QVectorOfQNode,
)
}
/// <p>Returns the maximum number of items that can be stored in the vector without forcing a reallocation.</p>
///
/// Calls C++ function: <span style='color: green;'>```int QVector<Qt3DCore::QNode*>::capacity() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#capacity">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the maximum number of items that can be stored in the vector without forcing a reallocation.</p>
/// <p>The sole purpose of this function is to provide a means of fine tuning <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a>'s memory usage. In general, you will rarely ever need to call this function. If you want to know how many items are in the vector, call <a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>().</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#reserve">reserve</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#squeeze">squeeze</a>().</p></div>
#[inline(always)]
pub unsafe fn capacity(&self) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNode_ptr_capacity(
self as *const crate::QVectorOfQNode,
)
}
/// <p>Removes all the elements from the vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QNode*>::clear()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#clear">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Removes all the elements from the vector.</p>
/// <p><b>Note: </b>Until Qt 5.6, this also released the memory used by the vector. From Qt 5.7, the capacity is preserved. To shed all capacity, swap with a default-constructed vector:</p><pre class="cpp">
///
/// <span class="type"><a href="http://doc.qt.io/qt-5/qvector.html#QVector">QVector</a></span><span class="operator"><</span>T<span class="operator">></span> v <span class="operator">.</span><span class="operator">.</span><span class="operator">.</span>;
/// <span class="type"><a href="http://doc.qt.io/qt-5/qvector.html#QVector">QVector</a></span><span class="operator"><</span>T<span class="operator">></span>()<span class="operator">.</span>swap(v);
/// Q_ASSERT(v<span class="operator">.</span>capacity() <span class="operator">=</span><span class="operator">=</span> <span class="number">0</span>);
///
/// </pre>
/// <p>or call <a href="http://doc.qt.io/qt-5/qvector.html#squeeze">squeeze</a>().</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#squeeze">squeeze</a>().</p></div>
#[inline(always)]
pub unsafe fn clear(&self) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNode_ptr_clear(
self as *const crate::QVectorOfQNode as *mut crate::QVectorOfQNode,
)
}
/// <p>Returns a const pointer to the data stored in the vector. The pointer can be used to access the items in the vector. The pointer remains valid as long as the vector isn't reallocated.</p>
///
/// Calls C++ function: <span style='color: green;'>```const Qt3DCore::QNode** QVector<Qt3DCore::QNode*>::constData() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#constData">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns a const pointer to the data stored in the vector. The pointer can be used to access the items in the vector. The pointer remains valid as long as the vector isn't reallocated.</p>
/// <p>This function is mostly useful to pass a vector to a function that accepts a plain C++ array.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#data">data</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#operator-5b-5d">operator[]</a>().</p></div>
#[inline(always)]
pub unsafe fn const_data(&self) -> *const *mut crate::QNode {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNode_ptr_constData(
self as *const crate::QVectorOfQNode,
)
}
/// <p>Returns a const reference to the first item in the vector. This function assumes that the vector isn't empty.</p>
///
/// Calls C++ function: <span style='color: green;'>```const Qt3DCore::QNode*& QVector<Qt3DCore::QNode*>::constFirst() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#constFirst">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns a const reference to the first item in the vector. This function assumes that the vector isn't empty.</p>
/// <p>This function was introduced in Qt 5.6.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#constLast">constLast</a>(), <a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>(), and <a href="http://doc.qt.io/qt-5/qvector.html#first">first</a>().</p></div>
#[inline(always)]
pub unsafe fn const_first(&self) -> *const *mut crate::QNode {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNode_ptr_constFirst(
self as *const crate::QVectorOfQNode,
)
}
/// <p>Returns a const reference to the last item in the vector. This function assumes that the vector isn't empty.</p>
///
/// Calls C++ function: <span style='color: green;'>```const Qt3DCore::QNode*& QVector<Qt3DCore::QNode*>::constLast() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#constLast">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns a const reference to the last item in the vector. This function assumes that the vector isn't empty.</p>
/// <p>This function was introduced in Qt 5.6.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#constFirst">constFirst</a>(), <a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>(), and <a href="http://doc.qt.io/qt-5/qvector.html#last">last</a>().</p></div>
#[inline(always)]
pub unsafe fn const_last(&self) -> *const *mut crate::QNode {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNode_ptr_constLast(
self as *const crate::QVectorOfQNode,
)
}
/// <p>Returns <code>true</code> if the vector contains an occurrence of <i>value</i>; otherwise returns <code>false</code>.</p>
///
/// Calls C++ function: <span style='color: green;'>```bool QVector<Qt3DCore::QNode*>::contains(const Qt3DCore::QNode*& t) const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#contains">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns <code>true</code> if the vector contains an occurrence of <i>value</i>; otherwise returns <code>false</code>.</p>
/// <p>This function requires the value type to have an implementation of <code>operator==()</code>.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#indexOf">indexOf</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#count-1">count</a>().</p></div>
#[inline(always)]
pub unsafe fn contains(&self, t: *const *mut crate::QNode) -> bool {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNode_ptr_contains(
self as *const crate::QVectorOfQNode,
t,
)
}
/// <p>Assigns <i>other</i> to this vector and returns a reference to this vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```QVector<Qt3DCore::QNode*>& QVector<Qt3DCore::QNode*>::operator=(const QVector<Qt3DCore::QNode*>& v)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#operator-eq">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Assigns <i>other</i> to this vector and returns a reference to this vector.</p></div>
#[inline(always)]
pub unsafe fn copy_from(
&self,
v: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QVectorOfQNode>>,
) -> ::cpp_core::Ref<crate::QVectorOfQNode> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNode_ptr_operator_(
self as *const crate::QVectorOfQNode as *mut crate::QVectorOfQNode,
::cpp_core::CastInto::<::cpp_core::Ref<crate::QVectorOfQNode>>::cast_into(v)
.as_raw_ptr(),
)
};
::cpp_core::Ref::from_raw(ffi_result).expect("attempted to construct a null Ref")
}
/// <p>Returns the number of occurrences of <i>value</i> in the vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```int QVector<Qt3DCore::QNode*>::count(const Qt3DCore::QNode*& t) const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#count">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the number of occurrences of <i>value</i> in the vector.</p>
/// <p>This function requires the value type to have an implementation of <code>operator==()</code>.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#contains">contains</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#indexOf">indexOf</a>().</p></div>
#[inline(always)]
pub unsafe fn count_1a(&self, t: *const *mut crate::QNode) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNode_ptr_count(
self as *const crate::QVectorOfQNode,
t,
)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```int QVector<Qt3DCore::QNode*>::count() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#count-1">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This is an overloaded function.</p>
/// <p>Same as <a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>().</p></div>
#[inline(always)]
pub unsafe fn count_0a(&self) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNode_ptr_count1(
self as *const crate::QVectorOfQNode,
)
}
/// <p>Returns a pointer to the data stored in the vector. The pointer can be used to access and modify the items in the vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode** QVector<Qt3DCore::QNode*>::data()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#data">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns a pointer to the data stored in the vector. The pointer can be used to access and modify the items in the vector.</p>
/// <p>Example:</p>
/// <pre class="cpp">
///
/// <span class="type"><a href="http://doc.qt.io/qt-5/qvector.html#QVector">QVector</a></span><span class="operator"><</span><span class="type">int</span><span class="operator">></span> vector(<span class="number">10</span>);
/// <span class="type">int</span> <span class="operator">*</span>data <span class="operator">=</span> vector<span class="operator">.</span>data();
/// <span class="keyword">for</span> (<span class="type">int</span> i <span class="operator">=</span> <span class="number">0</span>; i <span class="operator"><</span> <span class="number">10</span>; <span class="operator">+</span><span class="operator">+</span>i)
///   data<span class="operator">[</span>i<span class="operator">]</span> <span class="operator">=</span> <span class="number">2</span> <span class="operator">*</span> i;
///
/// </pre>
/// <p>The pointer remains valid as long as the vector isn't reallocated.</p>
/// <p>This function is mostly useful to pass a vector to a function that accepts a plain C++ array.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#constData">constData</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#operator-5b-5d">operator[]</a>().</p></div>
#[inline(always)]
pub unsafe fn data_mut(&self) -> *mut *mut crate::QNode {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNode_ptr_data(
self as *const crate::QVectorOfQNode as *mut crate::QVectorOfQNode,
)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```const Qt3DCore::QNode** QVector<Qt3DCore::QNode*>::data() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#data-1">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This is an overloaded function.</p></div>
#[inline(always)]
pub unsafe fn data(&self) -> *const *mut crate::QNode {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNode_ptr_data1(
self as *const crate::QVectorOfQNode,
)
}
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QNode*>::detach()```</span>.
#[inline(always)]
pub unsafe fn detach(&self) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNode_ptr_detach(
self as *const crate::QVectorOfQNode as *mut crate::QVectorOfQNode,
)
}
/// <p>This function is provided for STL compatibility. It is equivalent to <a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>(), returning <code>true</code> if the vector is empty; otherwise returns <code>false</code>.</p>
///
/// Calls C++ function: <span style='color: green;'>```bool QVector<Qt3DCore::QNode*>::empty() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#empty">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This function is provided for STL compatibility. It is equivalent to <a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>(), returning <code>true</code> if the vector is empty; otherwise returns <code>false</code>.</p></div>
#[inline(always)]
pub unsafe fn empty(&self) -> bool {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNode_ptr_empty(
self as *const crate::QVectorOfQNode,
)
}
/// <p>Returns <code>true</code> if this vector is not empty and its last item is equal to <i>value</i>; otherwise returns <code>false</code>.</p>
///
/// Calls C++ function: <span style='color: green;'>```bool QVector<Qt3DCore::QNode*>::endsWith(const Qt3DCore::QNode*& t) const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#endsWith">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns <code>true</code> if this vector is not empty and its last item is equal to <i>value</i>; otherwise returns <code>false</code>.</p>
/// <p>This function was introduced in Qt 4.5.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#last">last</a>().</p></div>
#[inline(always)]
pub unsafe fn ends_with(&self, t: *const *mut crate::QNode) -> bool {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNode_ptr_endsWith(
self as *const crate::QVectorOfQNode,
t,
)
}
/// <p>Assigns <i>value</i> to all items in the vector. If <i>size</i> is different from -1 (the default), the vector is resized to size <i>size</i> beforehand.</p>
///
/// Calls C++ function: <span style='color: green;'>```QVector<Qt3DCore::QNode*>& QVector<Qt3DCore::QNode*>::fill(const Qt3DCore::QNode*& t, int size = …)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#fill">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Assigns <i>value</i> to all items in the vector. If <i>size</i> is different from -1 (the default), the vector is resized to size <i>size</i> beforehand.</p>
/// <p>Example:</p>
/// <pre class="cpp">
///
/// <span class="type"><a href="http://doc.qt.io/qt-5/qvector.html#QVector">QVector</a></span><span class="operator"><</span><span class="type"><a href="http://doc.qt.io/qt-5/qstring.html">QString</a></span><span class="operator">></span> vector(<span class="number">3</span>);
/// vector<span class="operator">.</span>fill(<span class="string">"Yes"</span>);
/// <span class="comment">// vector: ["Yes", "Yes", "Yes"]</span>
///
/// vector<span class="operator">.</span>fill(<span class="string">"oh"</span><span class="operator">,</span> <span class="number">5</span>);
/// <span class="comment">// vector: ["oh", "oh", "oh", "oh", "oh"]</span>
///
/// </pre>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#resize">resize</a>().</p></div>
#[inline(always)]
pub unsafe fn fill_2a(
&self,
t: *const *mut crate::QNode,
size: ::std::os::raw::c_int,
) -> ::cpp_core::Ref<crate::QVectorOfQNode> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNode_ptr_fill(
self as *const crate::QVectorOfQNode as *mut crate::QVectorOfQNode,
t,
size,
)
};
::cpp_core::Ref::from_raw(ffi_result).expect("attempted to construct a null Ref")
}
/// <p>Assigns <i>value</i> to all items in the vector. If <i>size</i> is different from -1 (the default), the vector is resized to size <i>size</i> beforehand.</p>
///
/// Calls C++ function: <span style='color: green;'>```QVector<Qt3DCore::QNode*>& QVector<Qt3DCore::QNode*>::fill(const Qt3DCore::QNode*& t)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#fill">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Assigns <i>value</i> to all items in the vector. If <i>size</i> is different from -1 (the default), the vector is resized to size <i>size</i> beforehand.</p>
/// <p>Example:</p>
/// <pre class="cpp">
///
/// <span class="type"><a href="http://doc.qt.io/qt-5/qvector.html#QVector">QVector</a></span><span class="operator"><</span><span class="type"><a href="http://doc.qt.io/qt-5/qstring.html">QString</a></span><span class="operator">></span> vector(<span class="number">3</span>);
/// vector<span class="operator">.</span>fill(<span class="string">"Yes"</span>);
/// <span class="comment">// vector: ["Yes", "Yes", "Yes"]</span>
///
/// vector<span class="operator">.</span>fill(<span class="string">"oh"</span><span class="operator">,</span> <span class="number">5</span>);
/// <span class="comment">// vector: ["oh", "oh", "oh", "oh", "oh"]</span>
///
/// </pre>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#resize">resize</a>().</p></div>
#[inline(always)]
pub unsafe fn fill_1a(
&self,
t: *const *mut crate::QNode,
) -> ::cpp_core::Ref<crate::QVectorOfQNode> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNode_ptr_fill1(
self as *const crate::QVectorOfQNode as *mut crate::QVectorOfQNode,
t,
)
};
::cpp_core::Ref::from_raw(ffi_result).expect("attempted to construct a null Ref")
}
/// <p>Returns a reference to the first item in the vector. This function assumes that the vector isn't empty.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode*& QVector<Qt3DCore::QNode*>::first()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#first">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns a reference to the first item in the vector. This function assumes that the vector isn't empty.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#last">last</a>(), <a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>(), and <a href="http://doc.qt.io/qt-5/qvector.html#constFirst">constFirst</a>().</p></div>
#[inline(always)]
pub unsafe fn first_mut(&self) -> *mut *mut crate::QNode {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNode_ptr_first(
self as *const crate::QVectorOfQNode as *mut crate::QVectorOfQNode,
)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```const Qt3DCore::QNode*& QVector<Qt3DCore::QNode*>::first() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#first-1">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This is an overloaded function.</p></div>
#[inline(always)]
pub unsafe fn first(&self) -> *const *mut crate::QNode {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNode_ptr_first1(
self as *const crate::QVectorOfQNode,
)
}
/// <p>This function is provided for STL compatibility. It is equivalent to <a href="http://doc.qt.io/qt-5/qvector.html#first">first</a>().</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode*& QVector<Qt3DCore::QNode*>::front()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#front">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This function is provided for STL compatibility. It is equivalent to <a href="http://doc.qt.io/qt-5/qvector.html#first">first</a>().</p></div>
#[inline(always)]
pub unsafe fn front_mut(&self) -> *mut *mut crate::QNode {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNode_ptr_front(
self as *const crate::QVectorOfQNode as *mut crate::QVectorOfQNode,
)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```const Qt3DCore::QNode*& QVector<Qt3DCore::QNode*>::front() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#front-1">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This is an overloaded function.</p></div>
#[inline(always)]
pub unsafe fn front(&self) -> *const *mut crate::QNode {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNode_ptr_front1(
self as *const crate::QVectorOfQNode,
)
}
/// <p>Returns the item at index position <i>i</i> as a modifiable reference.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode*& QVector<Qt3DCore::QNode*>::operator[](int i)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#operator-5b-5d">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the item at index position <i>i</i> as a modifiable reference.</p>
/// <p><i>i</i> must be a valid index position in the vector (i.e., 0 <= <i>i</i> < <a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>()).</p>
/// <p>Note that using non-const operators can cause <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> to do a deep copy.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#at">at</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#value">value</a>().</p></div>
#[inline(always)]
pub unsafe fn index_mut(&self, i: ::std::os::raw::c_int) -> *mut *mut crate::QNode {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNode_ptr_operator__2(
self as *const crate::QVectorOfQNode as *mut crate::QVectorOfQNode,
i,
)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```const Qt3DCore::QNode*& QVector<Qt3DCore::QNode*>::operator[](int i) const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#operator-5b-5d-1">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This is an overloaded function.</p>
/// <p>Same as at(<i>i</i>).</p></div>
#[inline(always)]
pub unsafe fn index(&self, i: ::std::os::raw::c_int) -> *const *mut crate::QNode {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNode_ptr_operator__3(
self as *const crate::QVectorOfQNode,
i,
)
}
/// <p>Returns the index position of the first occurrence of <i>value</i> in the vector, searching forward from index position <i>from</i>. Returns -1 if no item matched.</p>
///
/// Calls C++ function: <span style='color: green;'>```int QVector<Qt3DCore::QNode*>::indexOf(const Qt3DCore::QNode*& t, int from = …) const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#indexOf">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the index position of the first occurrence of <i>value</i> in the vector, searching forward from index position <i>from</i>. Returns -1 if no item matched.</p>
/// <p>Example:</p>
/// <pre class="cpp">
///
/// <span class="type"><a href="http://doc.qt.io/qt-5/qvector.html#QVector">QVector</a></span><span class="operator"><</span><span class="type"><a href="http://doc.qt.io/qt-5/qstring.html">QString</a></span><span class="operator">></span> vector;
/// vector <span class="operator"><</span><span class="operator"><</span> <span class="string">"A"</span> <span class="operator"><</span><span class="operator"><</span> <span class="string">"B"</span> <span class="operator"><</span><span class="operator"><</span> <span class="string">"C"</span> <span class="operator"><</span><span class="operator"><</span> <span class="string">"B"</span> <span class="operator"><</span><span class="operator"><</span> <span class="string">"A"</span>;
/// vector<span class="operator">.</span>indexOf(<span class="string">"B"</span>); <span class="comment">// returns 1</span>
/// vector<span class="operator">.</span>indexOf(<span class="string">"B"</span><span class="operator">,</span> <span class="number">1</span>); <span class="comment">// returns 1</span>
/// vector<span class="operator">.</span>indexOf(<span class="string">"B"</span><span class="operator">,</span> <span class="number">2</span>); <span class="comment">// returns 3</span>
/// vector<span class="operator">.</span>indexOf(<span class="string">"X"</span>); <span class="comment">// returns -1</span>
///
/// </pre>
/// <p>This function requires the value type to have an implementation of <code>operator==()</code>.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#lastIndexOf">lastIndexOf</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#contains">contains</a>().</p></div>
#[inline(always)]
pub unsafe fn index_of_2a(
&self,
t: *const *mut crate::QNode,
from: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNode_ptr_indexOf(
self as *const crate::QVectorOfQNode,
t,
from,
)
}
/// <p>Returns the index position of the first occurrence of <i>value</i> in the vector, searching forward from index position <i>from</i>. Returns -1 if no item matched.</p>
///
/// Calls C++ function: <span style='color: green;'>```int QVector<Qt3DCore::QNode*>::indexOf(const Qt3DCore::QNode*& t) const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#indexOf">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the index position of the first occurrence of <i>value</i> in the vector, searching forward from index position <i>from</i>. Returns -1 if no item matched.</p>
/// <p>Example:</p>
/// <pre class="cpp">
///
/// <span class="type"><a href="http://doc.qt.io/qt-5/qvector.html#QVector">QVector</a></span><span class="operator"><</span><span class="type"><a href="http://doc.qt.io/qt-5/qstring.html">QString</a></span><span class="operator">></span> vector;
/// vector <span class="operator"><</span><span class="operator"><</span> <span class="string">"A"</span> <span class="operator"><</span><span class="operator"><</span> <span class="string">"B"</span> <span class="operator"><</span><span class="operator"><</span> <span class="string">"C"</span> <span class="operator"><</span><span class="operator"><</span> <span class="string">"B"</span> <span class="operator"><</span><span class="operator"><</span> <span class="string">"A"</span>;
/// vector<span class="operator">.</span>indexOf(<span class="string">"B"</span>); <span class="comment">// returns 1</span>
/// vector<span class="operator">.</span>indexOf(<span class="string">"B"</span><span class="operator">,</span> <span class="number">1</span>); <span class="comment">// returns 1</span>
/// vector<span class="operator">.</span>indexOf(<span class="string">"B"</span><span class="operator">,</span> <span class="number">2</span>); <span class="comment">// returns 3</span>
/// vector<span class="operator">.</span>indexOf(<span class="string">"X"</span>); <span class="comment">// returns -1</span>
///
/// </pre>
/// <p>This function requires the value type to have an implementation of <code>operator==()</code>.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#lastIndexOf">lastIndexOf</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#contains">contains</a>().</p></div>
#[inline(always)]
pub unsafe fn index_of_1a(&self, t: *const *mut crate::QNode) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNode_ptr_indexOf1(
self as *const crate::QVectorOfQNode,
t,
)
}
/// <p>Inserts <i>value</i> at index position <i>i</i> in the vector. If <i>i</i> is 0, the value is prepended to the vector. If <i>i</i> is <a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>(), the value is appended to the vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QNode*>::insert(int i, const Qt3DCore::QNode*& t)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#insert">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Inserts <i>value</i> at index position <i>i</i> in the vector. If <i>i</i> is 0, the value is prepended to the vector. If <i>i</i> is <a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>(), the value is appended to the vector.</p>
/// <p>Example:</p>
/// <pre class="cpp">
///
/// <span class="type"><a href="http://doc.qt.io/qt-5/qvector.html#QVector">QVector</a></span><span class="operator"><</span><span class="type"><a href="http://doc.qt.io/qt-5/qstring.html">QString</a></span><span class="operator">></span> vector;
/// vector <span class="operator"><</span><span class="operator"><</span> <span class="string">"alpha"</span> <span class="operator"><</span><span class="operator"><</span> <span class="string">"beta"</span> <span class="operator"><</span><span class="operator"><</span> <span class="string">"delta"</span>;
/// vector<span class="operator">.</span>insert(<span class="number">2</span><span class="operator">,</span> <span class="string">"gamma"</span>);
/// <span class="comment">// vector: ["alpha", "beta", "gamma", "delta"]</span>
///
/// </pre>
/// <p>For large vectors, this operation can be slow (<a href="http://doc.qt.io/qt-5/containers.html#linear-time">linear time</a>), because it requires moving all the items at indexes <i>i</i> and above by one position further in memory. If you want a container class that provides a fast insert() function, use <a href="http://doc.qt.io/qt-5/qlinkedlist.html">QLinkedList</a> instead.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#append">append</a>(), <a href="http://doc.qt.io/qt-5/qvector.html#prepend">prepend</a>(), and <a href="http://doc.qt.io/qt-5/qvector.html#remove">remove</a>().</p></div>
#[inline(always)]
pub unsafe fn insert_2a(&self, i: ::std::os::raw::c_int, t: *const *mut crate::QNode) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNode_ptr_insert(
self as *const crate::QVectorOfQNode as *mut crate::QVectorOfQNode,
i,
t,
)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QNode*>::insert(int i, int n, const Qt3DCore::QNode*& t)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#insert-1">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This is an overloaded function.</p>
/// <p>Inserts <i>count</i> copies of <i>value</i> at index position <i>i</i> in the vector.</p>
/// <p>Example:</p>
/// <pre class="cpp">
///
/// <span class="type"><a href="http://doc.qt.io/qt-5/qvector.html#QVector">QVector</a></span><span class="operator"><</span><span class="type">double</span><span class="operator">></span> vector;
/// vector <span class="operator"><</span><span class="operator"><</span> <span class="number">2.718</span> <span class="operator"><</span><span class="operator"><</span> <span class="number">1.442</span> <span class="operator"><</span><span class="operator"><</span> <span class="number">0.4342</span>;
/// vector<span class="operator">.</span>insert(<span class="number">1</span><span class="operator">,</span> <span class="number">3</span><span class="operator">,</span> <span class="number">9.9</span>);
/// <span class="comment">// vector: [2.718, 9.9, 9.9, 9.9, 1.442, 0.4342]</span>
///
/// </pre></div>
#[inline(always)]
pub unsafe fn insert_3a(
&self,
i: ::std::os::raw::c_int,
n: ::std::os::raw::c_int,
t: *const *mut crate::QNode,
) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNode_ptr_insert1(
self as *const crate::QVectorOfQNode as *mut crate::QVectorOfQNode,
i,
n,
t,
)
}
/// Calls C++ function: <span style='color: green;'>```bool QVector<Qt3DCore::QNode*>::isDetached() const```</span>.
#[inline(always)]
pub unsafe fn is_detached(&self) -> bool {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNode_ptr_isDetached(
self as *const crate::QVectorOfQNode,
)
}
/// <p>Returns <code>true</code> if the vector has size 0; otherwise returns <code>false</code>.</p>
///
/// Calls C++ function: <span style='color: green;'>```bool QVector<Qt3DCore::QNode*>::isEmpty() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns <code>true</code> if the vector has size 0; otherwise returns <code>false</code>.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#resize">resize</a>().</p></div>
#[inline(always)]
pub unsafe fn is_empty(&self) -> bool {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNode_ptr_isEmpty(
self as *const crate::QVectorOfQNode,
)
}
/// Calls C++ function: <span style='color: green;'>```bool QVector<Qt3DCore::QNode*>::isSharedWith(const QVector<Qt3DCore::QNode*>& other) const```</span>.
#[inline(always)]
pub unsafe fn is_shared_with(
&self,
other: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QVectorOfQNode>>,
) -> bool {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNode_ptr_isSharedWith(
self as *const crate::QVectorOfQNode,
::cpp_core::CastInto::<::cpp_core::Ref<crate::QVectorOfQNode>>::cast_into(other)
.as_raw_ptr(),
)
}
/// <p>Returns a reference to the last item in the vector. This function assumes that the vector isn't empty.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode*& QVector<Qt3DCore::QNode*>::last()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#last">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns a reference to the last item in the vector. This function assumes that the vector isn't empty.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#first">first</a>(), <a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>(), and <a href="http://doc.qt.io/qt-5/qvector.html#constLast">constLast</a>().</p></div>
#[inline(always)]
pub unsafe fn last_mut(&self) -> *mut *mut crate::QNode {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNode_ptr_last(
self as *const crate::QVectorOfQNode as *mut crate::QVectorOfQNode,
)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```const Qt3DCore::QNode*& QVector<Qt3DCore::QNode*>::last() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#last-1">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This is an overloaded function.</p></div>
#[inline(always)]
pub unsafe fn last(&self) -> *const *mut crate::QNode {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNode_ptr_last1(
self as *const crate::QVectorOfQNode,
)
}
/// <p>Returns the index position of the last occurrence of the value <i>value</i> in the vector, searching backward from index position <i>from</i>. If <i>from</i> is -1 (the default), the search starts at the last item. Returns -1 if no item matched.</p>
///
/// Calls C++ function: <span style='color: green;'>```int QVector<Qt3DCore::QNode*>::lastIndexOf(const Qt3DCore::QNode*& t, int from = …) const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#lastIndexOf">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the index position of the last occurrence of the value <i>value</i> in the vector, searching backward from index position <i>from</i>. If <i>from</i> is -1 (the default), the search starts at the last item. Returns -1 if no item matched.</p>
/// <p>Example:</p>
/// <pre class="cpp">
///
/// <span class="type"><a href="http://doc.qt.io/qt-5/qlist.html">QList</a></span><span class="operator"><</span><span class="type"><a href="http://doc.qt.io/qt-5/qstring.html">QString</a></span><span class="operator">></span> vector;
/// vector <span class="operator"><</span><span class="operator"><</span> <span class="string">"A"</span> <span class="operator"><</span><span class="operator"><</span> <span class="string">"B"</span> <span class="operator"><</span><span class="operator"><</span> <span class="string">"C"</span> <span class="operator"><</span><span class="operator"><</span> <span class="string">"B"</span> <span class="operator"><</span><span class="operator"><</span> <span class="string">"A"</span>;
/// vector<span class="operator">.</span>lastIndexOf(<span class="string">"B"</span>); <span class="comment">// returns 3</span>
/// vector<span class="operator">.</span>lastIndexOf(<span class="string">"B"</span><span class="operator">,</span> <span class="number">3</span>); <span class="comment">// returns 3</span>
/// vector<span class="operator">.</span>lastIndexOf(<span class="string">"B"</span><span class="operator">,</span> <span class="number">2</span>); <span class="comment">// returns 1</span>
/// vector<span class="operator">.</span>lastIndexOf(<span class="string">"X"</span>); <span class="comment">// returns -1</span>
///
/// </pre>
/// <p>This function requires the value type to have an implementation of <code>operator==()</code>.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#indexOf">indexOf</a>().</p></div>
#[inline(always)]
pub unsafe fn last_index_of_2a(
&self,
t: *const *mut crate::QNode,
from: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNode_ptr_lastIndexOf(
self as *const crate::QVectorOfQNode,
t,
from,
)
}
/// <p>Returns the index position of the last occurrence of the value <i>value</i> in the vector, searching backward from index position <i>from</i>. If <i>from</i> is -1 (the default), the search starts at the last item. Returns -1 if no item matched.</p>
///
/// Calls C++ function: <span style='color: green;'>```int QVector<Qt3DCore::QNode*>::lastIndexOf(const Qt3DCore::QNode*& t) const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#lastIndexOf">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the index position of the last occurrence of the value <i>value</i> in the vector, searching backward from index position <i>from</i>. If <i>from</i> is -1 (the default), the search starts at the last item. Returns -1 if no item matched.</p>
/// <p>Example:</p>
/// <pre class="cpp">
///
/// <span class="type"><a href="http://doc.qt.io/qt-5/qlist.html">QList</a></span><span class="operator"><</span><span class="type"><a href="http://doc.qt.io/qt-5/qstring.html">QString</a></span><span class="operator">></span> vector;
/// vector <span class="operator"><</span><span class="operator"><</span> <span class="string">"A"</span> <span class="operator"><</span><span class="operator"><</span> <span class="string">"B"</span> <span class="operator"><</span><span class="operator"><</span> <span class="string">"C"</span> <span class="operator"><</span><span class="operator"><</span> <span class="string">"B"</span> <span class="operator"><</span><span class="operator"><</span> <span class="string">"A"</span>;
/// vector<span class="operator">.</span>lastIndexOf(<span class="string">"B"</span>); <span class="comment">// returns 3</span>
/// vector<span class="operator">.</span>lastIndexOf(<span class="string">"B"</span><span class="operator">,</span> <span class="number">3</span>); <span class="comment">// returns 3</span>
/// vector<span class="operator">.</span>lastIndexOf(<span class="string">"B"</span><span class="operator">,</span> <span class="number">2</span>); <span class="comment">// returns 1</span>
/// vector<span class="operator">.</span>lastIndexOf(<span class="string">"X"</span>); <span class="comment">// returns -1</span>
///
/// </pre>
/// <p>This function requires the value type to have an implementation of <code>operator==()</code>.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#indexOf">indexOf</a>().</p></div>
#[inline(always)]
pub unsafe fn last_index_of_1a(&self, t: *const *mut crate::QNode) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNode_ptr_lastIndexOf1(
self as *const crate::QVectorOfQNode,
t,
)
}
/// <p>Same as <a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#count-1">count</a>().</p>
///
/// Calls C++ function: <span style='color: green;'>```int QVector<Qt3DCore::QNode*>::length() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#length">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Same as <a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#count-1">count</a>().</p>
/// <p>Provided for compatibility with <a href="http://doc.qt.io/qt-5/qlist.html">QList</a>.</p>
/// <p>This function was introduced in Qt 5.2.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>(), <a href="http://doc.qt.io/qt-5/qvector.html#count-1">count</a>(), and <a href="http://doc.qt.io/qt-5/qlist.html#length">QList::length</a>().</p></div>
#[inline(always)]
pub unsafe fn length(&self) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNode_ptr_length(
self as *const crate::QVectorOfQNode,
)
}
/// <p>Returns a sub-vector which contains elements from this vector, starting at position <i>pos</i>. If <i>length</i> is -1 (the default), all elements after <i>pos</i> are included; otherwise <i>length</i> elements (or all remaining elements if there are less than <i>length</i> elements) are included.</p>
///
/// Calls C++ function: <span style='color: green;'>```QVector<Qt3DCore::QNode*> QVector<Qt3DCore::QNode*>::mid(int pos, int len = …) const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#mid">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns a sub-vector which contains elements from this vector, starting at position <i>pos</i>. If <i>length</i> is -1 (the default), all elements after <i>pos</i> are included; otherwise <i>length</i> elements (or all remaining elements if there are less than <i>length</i> elements) are included.</p></div>
#[inline(always)]
pub unsafe fn mid_2a(
&self,
pos: ::std::os::raw::c_int,
len: ::std::os::raw::c_int,
) -> ::cpp_core::CppBox<crate::QVectorOfQNode> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNode_ptr_mid(
self as *const crate::QVectorOfQNode,
pos,
len,
)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Returns a sub-vector which contains elements from this vector, starting at position <i>pos</i>. If <i>length</i> is -1 (the default), all elements after <i>pos</i> are included; otherwise <i>length</i> elements (or all remaining elements if there are less than <i>length</i> elements) are included.</p>
///
/// Calls C++ function: <span style='color: green;'>```QVector<Qt3DCore::QNode*> QVector<Qt3DCore::QNode*>::mid(int pos) const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#mid">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns a sub-vector which contains elements from this vector, starting at position <i>pos</i>. If <i>length</i> is -1 (the default), all elements after <i>pos</i> are included; otherwise <i>length</i> elements (or all remaining elements if there are less than <i>length</i> elements) are included.</p></div>
#[inline(always)]
pub unsafe fn mid_1a(
&self,
pos: ::std::os::raw::c_int,
) -> ::cpp_core::CppBox<crate::QVectorOfQNode> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNode_ptr_mid1(
self as *const crate::QVectorOfQNode,
pos,
)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Moves the item at index position <i>from</i> to index position <i>to</i>.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QNode*>::move(int from, int to)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#move">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Moves the item at index position <i>from</i> to index position <i>to</i>.</p>
/// <p>Provided for compatibility with <a href="http://doc.qt.io/qt-5/qlist.html">QList</a>.</p>
/// <p>This function was introduced in Qt 5.6.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qlist.html#move">QList::move</a>().</p></div>
#[inline(always)]
pub unsafe fn move_(&self, from: ::std::os::raw::c_int, to: ::std::os::raw::c_int) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNode_ptr_move(
self as *const crate::QVectorOfQNode as *mut crate::QVectorOfQNode,
from,
to,
)
}
/// <p>Constructs an empty vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void QVector<Qt3DCore::QNode*>::QVector()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#QVector">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Constructs an empty vector.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#resize">resize</a>().</p></div>
#[inline(always)]
pub unsafe fn new_0a() -> ::cpp_core::CppBox<crate::QVectorOfQNode> {
let ffi_result = { crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNode_ptr_QVector() };
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Constructs a vector with an initial size of <i>size</i> elements.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void QVector<Qt3DCore::QNode*>::QVector(int size)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#QVector-1">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Constructs a vector with an initial size of <i>size</i> elements.</p>
/// <p>The elements are initialized with a <a href="http://doc.qt.io/qt-5/containers.html#default-constructed-value">default-constructed value</a>.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#resize">resize</a>().</p></div>
#[inline(always)]
pub unsafe fn new_1a(size: ::std::os::raw::c_int) -> ::cpp_core::CppBox<crate::QVectorOfQNode> {
let ffi_result =
{ crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNode_ptr_QVector1(size) };
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Constructs a vector with an initial size of <i>size</i> elements. Each element is initialized with <i>value</i>.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void QVector<Qt3DCore::QNode*>::QVector(int size, const Qt3DCore::QNode*& t)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#QVector-2">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Constructs a vector with an initial size of <i>size</i> elements. Each element is initialized with <i>value</i>.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#resize">resize</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#fill">fill</a>().</p></div>
#[inline(always)]
pub unsafe fn new_2a(
size: ::std::os::raw::c_int,
t: *const *mut crate::QNode,
) -> ::cpp_core::CppBox<crate::QVectorOfQNode> {
let ffi_result =
{ crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNode_ptr_QVector2(size, t) };
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Constructs a copy of <i>other</i>.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void QVector<Qt3DCore::QNode*>::QVector(const QVector<Qt3DCore::QNode*>& v)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#QVector-3">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Constructs a copy of <i>other</i>.</p>
/// <p>This operation takes <a href="http://doc.qt.io/qt-5/containers.html#algorithmic-complexity">constant time</a>, because <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> is <a href="http://doc.qt.io/qt-5/implicit-sharing.html">implicitly shared</a>. This makes returning a <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> from a function very fast. If a shared instance is modified, it will be copied (copy-on-write), and that takes <a href="http://doc.qt.io/qt-5/containers.html#algorithmic-complexity">linear time</a>.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#operator-eq">operator=</a>().</p></div>
#[inline(always)]
pub unsafe fn new_copy(
v: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QVectorOfQNode>>,
) -> ::cpp_core::CppBox<crate::QVectorOfQNode> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNode_ptr_QVector3(
::cpp_core::CastInto::<::cpp_core::Ref<crate::QVectorOfQNode>>::cast_into(v)
.as_raw_ptr(),
)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>This function is provided for STL compatibility. It is equivalent to <a href="http://doc.qt.io/qt-5/qvector.html#removeLast">removeLast</a>().</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QNode*>::pop_back()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#pop_back">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This function is provided for STL compatibility. It is equivalent to <a href="http://doc.qt.io/qt-5/qvector.html#removeLast">removeLast</a>().</p></div>
#[inline(always)]
pub unsafe fn pop_back(&self) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNode_ptr_pop_back(
self as *const crate::QVectorOfQNode as *mut crate::QVectorOfQNode,
)
}
/// <p>This function is provided for STL compatibility. It is equivalent to <a href="http://doc.qt.io/qt-5/qvector.html#removeFirst">removeFirst</a>().</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QNode*>::pop_front()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#pop_front">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This function is provided for STL compatibility. It is equivalent to <a href="http://doc.qt.io/qt-5/qvector.html#removeFirst">removeFirst</a>().</p></div>
#[inline(always)]
pub unsafe fn pop_front(&self) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNode_ptr_pop_front(
self as *const crate::QVectorOfQNode as *mut crate::QVectorOfQNode,
)
}
/// <p>Inserts <i>value</i> at the beginning of the vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QNode*>::prepend(const Qt3DCore::QNode*& t)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#prepend">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Inserts <i>value</i> at the beginning of the vector.</p>
/// <p>Example:</p>
/// <pre class="cpp">
///
/// <span class="type"><a href="http://doc.qt.io/qt-5/qvector.html#QVector">QVector</a></span><span class="operator"><</span><span class="type"><a href="http://doc.qt.io/qt-5/qstring.html">QString</a></span><span class="operator">></span> vector;
/// vector<span class="operator">.</span>prepend(<span class="string">"one"</span>);
/// vector<span class="operator">.</span>prepend(<span class="string">"two"</span>);
/// vector<span class="operator">.</span>prepend(<span class="string">"three"</span>);
/// <span class="comment">// vector: ["three", "two", "one"]</span>
///
/// </pre>
/// <p>This is the same as vector.insert(0, <i>value</i>).</p>
/// <p>For large vectors, this operation can be slow (<a href="http://doc.qt.io/qt-5/containers.html#linear-time">linear time</a>), because it requires moving all the items in the vector by one position further in memory. If you want a container class that provides a fast prepend() function, use <a href="http://doc.qt.io/qt-5/qlist.html">QList</a> or <a href="http://doc.qt.io/qt-5/qlinkedlist.html">QLinkedList</a> instead.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#append">append</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#insert">insert</a>().</p></div>
#[inline(always)]
pub unsafe fn prepend(&self, t: *const *mut crate::QNode) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNode_ptr_prepend(
self as *const crate::QVectorOfQNode as *mut crate::QVectorOfQNode,
t,
)
}
/// <p>This function is provided for STL compatibility. It is equivalent to append(<i>value</i>).</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QNode*>::push_back(const Qt3DCore::QNode*& t)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#push_back">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This function is provided for STL compatibility. It is equivalent to append(<i>value</i>).</p></div>
#[inline(always)]
pub unsafe fn push_back(&self, t: *const *mut crate::QNode) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNode_ptr_push_back(
self as *const crate::QVectorOfQNode as *mut crate::QVectorOfQNode,
t,
)
}
/// <p>This function is provided for STL compatibility. It is equivalent to prepend(<i>value</i>).</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QNode*>::push_front(const Qt3DCore::QNode*& t)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#push_front">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This function is provided for STL compatibility. It is equivalent to prepend(<i>value</i>).</p></div>
#[inline(always)]
pub unsafe fn push_front(&self, t: *const *mut crate::QNode) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNode_ptr_push_front(
self as *const crate::QVectorOfQNode as *mut crate::QVectorOfQNode,
t,
)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QNode*>::remove(int i)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#remove">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This is an overloaded function.</p>
/// <p>Removes the element at index position <i>i</i>.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#insert">insert</a>(), <a href="http://doc.qt.io/qt-5/qvector.html#replace">replace</a>(), and <a href="http://doc.qt.io/qt-5/qvector.html#fill">fill</a>().</p></div>
#[inline(always)]
pub unsafe fn remove_1a(&self, i: ::std::os::raw::c_int) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNode_ptr_remove(
self as *const crate::QVectorOfQNode as *mut crate::QVectorOfQNode,
i,
)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QNode*>::remove(int i, int n)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#remove-1">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This is an overloaded function.</p>
/// <p>Removes <i>count</i> elements from the middle of the vector, starting at index position <i>i</i>.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#insert">insert</a>(), <a href="http://doc.qt.io/qt-5/qvector.html#replace">replace</a>(), and <a href="http://doc.qt.io/qt-5/qvector.html#fill">fill</a>().</p></div>
#[inline(always)]
pub unsafe fn remove_2a(&self, i: ::std::os::raw::c_int, n: ::std::os::raw::c_int) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNode_ptr_remove1(
self as *const crate::QVectorOfQNode as *mut crate::QVectorOfQNode,
i,
n,
)
}
/// <p>Removes all elements that compare equal to <i>t</i> from the vector. Returns the number of elements removed, if any.</p>
///
/// Calls C++ function: <span style='color: green;'>```int QVector<Qt3DCore::QNode*>::removeAll(const Qt3DCore::QNode*& t)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#removeAll">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Removes all elements that compare equal to <i>t</i> from the vector. Returns the number of elements removed, if any.</p>
/// <p>Provided for compatibility with <a href="http://doc.qt.io/qt-5/qlist.html">QList</a>.</p>
/// <p>This function was introduced in Qt 5.4.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#removeOne">removeOne</a>() and <a href="http://doc.qt.io/qt-5/qlist.html#removeAll">QList::removeAll</a>().</p></div>
#[inline(always)]
pub unsafe fn remove_all(&self, t: *const *mut crate::QNode) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNode_ptr_removeAll(
self as *const crate::QVectorOfQNode as *mut crate::QVectorOfQNode,
t,
)
}
/// <p>Removes the element at index position <i>i</i>. Equivalent to</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QNode*>::removeAt(int i)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#removeAt">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Removes the element at index position <i>i</i>. Equivalent to</p>
/// <pre class="cpp">
///
/// remove(i);
///
/// </pre>
/// <p>Provided for compatibility with <a href="http://doc.qt.io/qt-5/qlist.html">QList</a>.</p>
/// <p>This function was introduced in Qt 5.2.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#remove">remove</a>() and <a href="http://doc.qt.io/qt-5/qlist.html#removeAt">QList::removeAt</a>().</p></div>
#[inline(always)]
pub unsafe fn remove_at(&self, i: ::std::os::raw::c_int) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNode_ptr_removeAt(
self as *const crate::QVectorOfQNode as *mut crate::QVectorOfQNode,
i,
)
}
/// <p>Removes the first item in the vector. Calling this function is equivalent to calling remove(0). The vector must not be empty. If the vector can be empty, call <a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>() before calling this function.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QNode*>::removeFirst()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#removeFirst">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Removes the first item in the vector. Calling this function is equivalent to calling remove(0). The vector must not be empty. If the vector can be empty, call <a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>() before calling this function.</p>
/// <p>This function was introduced in Qt 5.1.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#remove">remove</a>(), <a href="http://doc.qt.io/qt-5/qvector.html#takeFirst">takeFirst</a>(), and <a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>().</p></div>
#[inline(always)]
pub unsafe fn remove_first(&self) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNode_ptr_removeFirst(
self as *const crate::QVectorOfQNode as *mut crate::QVectorOfQNode,
)
}
/// <p>Removes the last item in the vector. Calling this function is equivalent to calling remove(<a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>() - 1). The vector must not be empty. If the vector can be empty, call <a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>() before calling this function.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QNode*>::removeLast()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#removeLast">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Removes the last item in the vector. Calling this function is equivalent to calling remove(<a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>() - 1). The vector must not be empty. If the vector can be empty, call <a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>() before calling this function.</p>
/// <p>This function was introduced in Qt 5.1.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#remove">remove</a>(), <a href="http://doc.qt.io/qt-5/qvector.html#takeLast">takeLast</a>(), <a href="http://doc.qt.io/qt-5/qvector.html#removeFirst">removeFirst</a>(), and <a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>().</p></div>
#[inline(always)]
pub unsafe fn remove_last(&self) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNode_ptr_removeLast(
self as *const crate::QVectorOfQNode as *mut crate::QVectorOfQNode,
)
}
/// <p>Removes the first element that compares equal to <i>t</i> from the vector. Returns whether an element was, in fact, removed.</p>
///
/// Calls C++ function: <span style='color: green;'>```bool QVector<Qt3DCore::QNode*>::removeOne(const Qt3DCore::QNode*& t)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#removeOne">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Removes the first element that compares equal to <i>t</i> from the vector. Returns whether an element was, in fact, removed.</p>
/// <p>Provided for compatibility with <a href="http://doc.qt.io/qt-5/qlist.html">QList</a>.</p>
/// <p>This function was introduced in Qt 5.4.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#removeAll">removeAll</a>() and <a href="http://doc.qt.io/qt-5/qlist.html#removeOne">QList::removeOne</a>().</p></div>
#[inline(always)]
pub unsafe fn remove_one(&self, t: *const *mut crate::QNode) -> bool {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNode_ptr_removeOne(
self as *const crate::QVectorOfQNode as *mut crate::QVectorOfQNode,
t,
)
}
/// <p>Replaces the item at index position <i>i</i> with <i>value</i>.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QNode*>::replace(int i, const Qt3DCore::QNode*& t)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#replace">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Replaces the item at index position <i>i</i> with <i>value</i>.</p>
/// <p><i>i</i> must be a valid index position in the vector (i.e., 0 <= <i>i</i> < <a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>()).</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#operator-5b-5d">operator[]</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#remove">remove</a>().</p></div>
#[inline(always)]
pub unsafe fn replace(&self, i: ::std::os::raw::c_int, t: *const *mut crate::QNode) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNode_ptr_replace(
self as *const crate::QVectorOfQNode as *mut crate::QVectorOfQNode,
i,
t,
)
}
/// <p>Attempts to allocate memory for at least <i>size</i> elements. If you know in advance how large the vector will be, you should call this function to prevent reallocations and memory fragmentation.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QNode*>::reserve(int size)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#reserve">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Attempts to allocate memory for at least <i>size</i> elements. If you know in advance how large the vector will be, you should call this function to prevent reallocations and memory fragmentation.</p>
/// <p>If <i>size</i> is an underestimate, the worst that will happen is that the <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> will be a bit slower. If <i>size</i> is an overestimate, you may have used more memory than the normal <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> growth strategy would have allocated—or you may have used less.</p>
/// <p>An alternative to reserve() is calling <a href="http://doc.qt.io/qt-5/qvector.html#resize">resize</a>(). Whether or not that is faster than reserve() depends on the element type, because <a href="http://doc.qt.io/qt-5/qvector.html#resize">resize</a>() default-constructs all elements, and requires assignment to existing entries rather than calling <a href="http://doc.qt.io/qt-5/qvector.html#append">append</a>(), which copy- or move-constructs. For simple types, like <code>int</code> or <code>double</code>, <a href="http://doc.qt.io/qt-5/qvector.html#resize">resize</a>() is typically faster, but for anything more complex, you should prefer reserve().</p>
/// <p><b>Warning:</b> If the size passed to <a href="http://doc.qt.io/qt-5/qvector.html#resize">resize</a>() was underestimated, you run out of allocated space and into undefined behavior. This problem does not exist with reserve(), because it treats the size as just a hint.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#squeeze">squeeze</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#capacity">capacity</a>().</p></div>
#[inline(always)]
pub unsafe fn reserve(&self, size: ::std::os::raw::c_int) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNode_ptr_reserve(
self as *const crate::QVectorOfQNode as *mut crate::QVectorOfQNode,
size,
)
}
/// <p>Sets the size of the vector to <i>size</i>. If <i>size</i> is greater than the current size, elements are added to the end; the new elements are initialized with a <a href="http://doc.qt.io/qt-5/containers.html#default-constructed-value">default-constructed value</a>. If <i>size</i> is less than the current size, elements are removed from the end.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QNode*>::resize(int size)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#resize">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Sets the size of the vector to <i>size</i>. If <i>size</i> is greater than the current size, elements are added to the end; the new elements are initialized with a <a href="http://doc.qt.io/qt-5/containers.html#default-constructed-value">default-constructed value</a>. If <i>size</i> is less than the current size, elements are removed from the end.</p>
/// <p>Since Qt 5.6, resize() doesn't shrink the capacity anymore. To shed excess capacity, use <a href="http://doc.qt.io/qt-5/qvector.html#squeeze">squeeze</a>().</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>().</p></div>
#[inline(always)]
pub unsafe fn resize(&self, size: ::std::os::raw::c_int) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNode_ptr_resize(
self as *const crate::QVectorOfQNode as *mut crate::QVectorOfQNode,
size,
)
}
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QNode*>::setSharable(bool sharable)```</span>.
#[inline(always)]
pub unsafe fn set_sharable(&self, sharable: bool) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNode_ptr_setSharable(
self as *const crate::QVectorOfQNode as *mut crate::QVectorOfQNode,
sharable,
)
}
/// <p>This function is provided for STL compatibility. It is equivalent to <a href="http://doc.qt.io/qt-5/qvector.html#squeeze">squeeze</a>().</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QNode*>::shrink_to_fit()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#shrink_to_fit">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This function is provided for STL compatibility. It is equivalent to <a href="http://doc.qt.io/qt-5/qvector.html#squeeze">squeeze</a>().</p>
/// <p>This function was introduced in Qt 5.10.</p></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn shrink_to_fit(&self) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNode_ptr_shrink_to_fit(
self as *const crate::QVectorOfQNode as *mut crate::QVectorOfQNode,
)
}
/// <p>Returns the number of items in the vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```int QVector<Qt3DCore::QNode*>::size() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#size">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the number of items in the vector.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#resize">resize</a>().</p></div>
#[inline(always)]
pub unsafe fn size(&self) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNode_ptr_size(
self as *const crate::QVectorOfQNode,
)
}
/// <p>Releases any memory not required to store the items.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QNode*>::squeeze()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#squeeze">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Releases any memory not required to store the items.</p>
/// <p>The sole purpose of this function is to provide a means of fine tuning <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a>'s memory usage. In general, you will rarely ever need to call this function.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#reserve">reserve</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#capacity">capacity</a>().</p></div>
#[inline(always)]
pub unsafe fn squeeze(&self) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNode_ptr_squeeze(
self as *const crate::QVectorOfQNode as *mut crate::QVectorOfQNode,
)
}
/// <p>Returns <code>true</code> if this vector is not empty and its first item is equal to <i>value</i>; otherwise returns <code>false</code>.</p>
///
/// Calls C++ function: <span style='color: green;'>```bool QVector<Qt3DCore::QNode*>::startsWith(const Qt3DCore::QNode*& t) const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#startsWith">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns <code>true</code> if this vector is not empty and its first item is equal to <i>value</i>; otherwise returns <code>false</code>.</p>
/// <p>This function was introduced in Qt 4.5.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#first">first</a>().</p></div>
#[inline(always)]
pub unsafe fn starts_with(&self, t: *const *mut crate::QNode) -> bool {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNode_ptr_startsWith(
self as *const crate::QVectorOfQNode,
t,
)
}
/// <p>Swaps vector <i>other</i> with this vector. This operation is very fast and never fails.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QNode*>::swap(QVector<Qt3DCore::QNode*>& other)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#swap">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Swaps vector <i>other</i> with this vector. This operation is very fast and never fails.</p>
/// <p>This function was introduced in Qt 4.8.</p></div>
#[inline(always)]
pub unsafe fn swap(
&self,
other: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QVectorOfQNode>>,
) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNode_ptr_swap(
self as *const crate::QVectorOfQNode as *mut crate::QVectorOfQNode,
::cpp_core::CastInto::<::cpp_core::Ref<crate::QVectorOfQNode>>::cast_into(other)
.as_raw_ptr() as *mut crate::QVectorOfQNode,
)
}
/// <p>Exchange the item at index position <i>i</i> with the item at index position <i>j</i>. This function assumes that both <i>i</i> and <i>j</i> are at least 0 but less than <a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>(). To avoid failure, test that both <i>i</i> and <i>j</i> are at least 0 and less than <a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>().</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QNode*>::swapItemsAt(int i, int j)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#swapItemsAt">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Exchange the item at index position <i>i</i> with the item at index position <i>j</i>. This function assumes that both <i>i</i> and <i>j</i> are at least 0 but less than <a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>(). To avoid failure, test that both <i>i</i> and <i>j</i> are at least 0 and less than <a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>().</p>
/// <p>This function was introduced in Qt 5.14.</p></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(cpp_lib_version = "5.14.0"))
)]
#[cfg(any(cpp_lib_version = "5.14.0", feature = "ritual_rustdoc"))]
pub unsafe fn swap_items_at(&self, i: ::std::os::raw::c_int, j: ::std::os::raw::c_int) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNode_ptr_swapItemsAt(
self as *const crate::QVectorOfQNode as *mut crate::QVectorOfQNode,
i,
j,
)
}
/// <p>Removes the element at index position <i>i</i> and returns it.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* QVector<Qt3DCore::QNode*>::takeAt(int i)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#takeAt">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Removes the element at index position <i>i</i> and returns it.</p>
/// <p>Equivalent to</p>
/// <pre class="cpp">
///
/// T t <span class="operator">=</span> at(i);
/// remove(i);
/// <span class="keyword">return</span> t;
///
/// </pre>
/// <p>Provided for compatibility with <a href="http://doc.qt.io/qt-5/qlist.html">QList</a>.</p>
/// <p>This function was introduced in Qt 5.2.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#takeFirst">takeFirst</a>(), <a href="http://doc.qt.io/qt-5/qvector.html#takeLast">takeLast</a>(), and <a href="http://doc.qt.io/qt-5/qlist.html#takeAt">QList::takeAt</a>().</p></div>
#[inline(always)]
pub unsafe fn take_at(&self, i: ::std::os::raw::c_int) -> ::qt_core::QPtr<crate::QNode> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNode_ptr_takeAt(
self as *const crate::QVectorOfQNode as *mut crate::QVectorOfQNode,
i,
)
};
::qt_core::QPtr::from_raw(ffi_result)
}
/// <p>Removes the first item in the vector and returns it. This function assumes the vector is not empty. To avoid failure, call <a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>() before calling this function.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* QVector<Qt3DCore::QNode*>::takeFirst()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#takeFirst">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Removes the first item in the vector and returns it. This function assumes the vector is not empty. To avoid failure, call <a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>() before calling this function.</p>
/// <p>This function was introduced in Qt 5.1.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#takeLast">takeLast</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#removeFirst">removeFirst</a>().</p></div>
#[inline(always)]
pub unsafe fn take_first(&self) -> ::qt_core::QPtr<crate::QNode> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNode_ptr_takeFirst(
self as *const crate::QVectorOfQNode as *mut crate::QVectorOfQNode,
)
};
::qt_core::QPtr::from_raw(ffi_result)
}
/// <p>Removes the last item in the list and returns it. This function assumes the vector is not empty. To avoid failure, call <a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>() before calling this function.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* QVector<Qt3DCore::QNode*>::takeLast()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#takeLast">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Removes the last item in the list and returns it. This function assumes the vector is not empty. To avoid failure, call <a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>() before calling this function.</p>
/// <p>If you don't use the return value, <a href="http://doc.qt.io/qt-5/qvector.html#removeLast">removeLast</a>() is more efficient.</p>
/// <p>This function was introduced in Qt 5.1.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#takeFirst">takeFirst</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#removeLast">removeLast</a>().</p></div>
#[inline(always)]
pub unsafe fn take_last(&self) -> ::qt_core::QPtr<crate::QNode> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNode_ptr_takeLast(
self as *const crate::QVectorOfQNode as *mut crate::QVectorOfQNode,
)
};
::qt_core::QPtr::from_raw(ffi_result)
}
/// <p>Returns the value at index position <i>i</i> in the vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* QVector<Qt3DCore::QNode*>::value(int i) const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#value">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the value at index position <i>i</i> in the vector.</p>
/// <p>If the index <i>i</i> is out of bounds, the function returns a <a href="http://doc.qt.io/qt-5/containers.html#default-constructed-value">default-constructed value</a>. If you are certain that <i>i</i> is within bounds, you can use <a href="http://doc.qt.io/qt-5/qvector.html#at">at</a>() instead, which is slightly faster.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#at">at</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#operator-5b-5d">operator[]</a>().</p></div>
#[inline(always)]
pub unsafe fn value_1a(&self, i: ::std::os::raw::c_int) -> ::qt_core::QPtr<crate::QNode> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNode_ptr_value(
self as *const crate::QVectorOfQNode,
i,
)
};
::qt_core::QPtr::from_raw(ffi_result)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* QVector<Qt3DCore::QNode*>::value(int i, const Qt3DCore::QNode*& defaultValue) const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#value-1">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This is an overloaded function.</p>
/// <p>If the index <i>i</i> is out of bounds, the function returns <i>defaultValue</i>.</p></div>
#[inline(always)]
pub unsafe fn value_2a(
&self,
i: ::std::os::raw::c_int,
default_value: *const *mut crate::QNode,
) -> ::qt_core::QPtr<crate::QNode> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNode_ptr_value1(
self as *const crate::QVectorOfQNode,
i,
default_value,
)
};
::qt_core::QPtr::from_raw(ffi_result)
}
}
/// <p>The <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> class is a template class that provides a dynamic array.</p>
///
/// C++ class: <span style='color: green;'>```QVector<Qt3DCore::QNodeId>```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>The <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> class is a template class that provides a dynamic array.</p>
/// <p><a href="http://doc.qt.io/qt-5/qvector.html">QVector</a><T> is one of Qt's generic <a href="http://doc.qt.io/qt-5/containers.html">container classes</a>. It stores its items in adjacent memory locations and provides fast index-based access.</p>
/// <p><a href="http://doc.qt.io/qt-5/qlist.html">QList</a><T>, <a href="http://doc.qt.io/qt-5/qlinkedlist.html">QLinkedList</a><T>, <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a><T>, and <a href="http://doc.qt.io/qt-5/qvarlengtharray.html">QVarLengthArray</a><T> provide similar APIs and functionality. They are often interchangeable, but there are performance consequences. Here is an overview of use cases:</p>
/// <ul>
/// <li><a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> should be your default first choice. <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a><T> will usually give better performance than <a href="http://doc.qt.io/qt-5/qlist.html">QList</a><T>, because <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a><T> always stores its items sequentially in memory, where <a href="http://doc.qt.io/qt-5/qlist.html">QList</a><T> will allocate its items on the heap unless <code>sizeof(T) <= sizeof(void*)</code> and T has been declared to be either a <code>Q_MOVABLE_TYPE</code> or a <code>Q_PRIMITIVE_TYPE</code> using <a href="http://doc.qt.io/qt-5/qtglobal.html#Q_DECLARE_TYPEINFO">Q_DECLARE_TYPEINFO</a>. See the <a href="http://marcmutz.wordpress.com/effective-qt/containers/#containers-qlist">Pros and Cons of Using QList</a> for an explanation.</li>
/// <li>However, <a href="http://doc.qt.io/qt-5/qlist.html">QList</a> is used throughout the Qt APIs for passing parameters and for returning values. Use <a href="http://doc.qt.io/qt-5/qlist.html">QList</a> to interface with those APIs.</li>
/// <li>If you need a real linked list, which guarantees <a href="http://doc.qt.io/qt-5/containers.html#algorithmic-complexity">constant time</a> insertions mid-list and uses iterators to items rather than indexes, use <a href="http://doc.qt.io/qt-5/qlinkedlist.html">QLinkedList</a>.</li>
/// </ul>
/// <p><b>Note: </b><a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> and <a href="http://doc.qt.io/qt-5/qvarlengtharray.html">QVarLengthArray</a> both guarantee C-compatible array layout. <a href="http://doc.qt.io/qt-5/qlist.html">QList</a> does not. This might be important if your application must interface with a C API.</p><p><b>Note: </b>Iterators into a <a href="http://doc.qt.io/qt-5/qlinkedlist.html">QLinkedList</a> and references into heap-allocating QLists remain valid as long as the referenced items remain in the container. This is not true for iterators and references into a <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> and non-heap-allocating QLists.</p><p>Here's an example of a <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> that stores integers and a <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> that stores <a href="http://doc.qt.io/qt-5/qstring.html">QString</a> values:</p>
/// <pre class="cpp">
///
/// <span class="type"><a href="http://doc.qt.io/qt-5/qvector.html#QVector">QVector</a></span><span class="operator"><</span><span class="type">int</span><span class="operator">></span> integerVector;
/// <span class="type"><a href="http://doc.qt.io/qt-5/qvector.html#QVector">QVector</a></span><span class="operator"><</span><span class="type"><a href="http://doc.qt.io/qt-5/qstring.html">QString</a></span><span class="operator">></span> stringVector;
///
/// </pre>
/// <p><a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> stores its items in a vector (array). Typically, vectors are created with an initial size. For example, the following code constructs a <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> with 200 elements:</p>
/// <pre class="cpp">
///
/// <span class="type"><a href="http://doc.qt.io/qt-5/qvector.html#QVector">QVector</a></span><span class="operator"><</span><span class="type"><a href="http://doc.qt.io/qt-5/qstring.html">QString</a></span><span class="operator">></span> vector(<span class="number">200</span>);
///
/// </pre>
/// <p>The elements are automatically initialized with a <a href="http://doc.qt.io/qt-5/containers.html#default-constructed-value">default-constructed value</a>. If you want to initialize the vector with a different value, pass that value as the second argument to the constructor:</p>
/// <pre class="cpp">
///
/// <span class="type"><a href="http://doc.qt.io/qt-5/qvector.html#QVector">QVector</a></span><span class="operator"><</span><span class="type"><a href="http://doc.qt.io/qt-5/qstring.html">QString</a></span><span class="operator">></span> vector(<span class="number">200</span><span class="operator">,</span> <span class="string">"Pass"</span>);
///
/// </pre>
/// <p>You can also call <a href="http://doc.qt.io/qt-5/qvector.html#fill">fill</a>() at any time to fill the vector with a value.</p>
/// <p><a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> uses 0-based indexes, just like C++ arrays. To access the item at a particular index position, you can use operator[](). On non-const vectors, operator[]() returns a reference to the item that can be used on the left side of an assignment:</p>
/// <pre class="cpp">
///
/// <span class="keyword">if</span> (vector<span class="operator">[</span><span class="number">0</span><span class="operator">]</span> <span class="operator">=</span><span class="operator">=</span> <span class="string">"Liz"</span>)
///   vector<span class="operator">[</span><span class="number">0</span><span class="operator">]</span> <span class="operator">=</span> <span class="string">"Elizabeth"</span>;
///
/// </pre>
/// <p>For read-only access, an alternative syntax is to use <a href="http://doc.qt.io/qt-5/qvector.html#at">at</a>():</p>
/// <pre class="cpp">
///
/// <span class="keyword">for</span> (<span class="type">int</span> i <span class="operator">=</span> <span class="number">0</span>; i <span class="operator"><</span> vector<span class="operator">.</span>size(); <span class="operator">+</span><span class="operator">+</span>i) {
///   <span class="keyword">if</span> (vector<span class="operator">.</span>at(i) <span class="operator">=</span><span class="operator">=</span> <span class="string">"Alfonso"</span>)
///     cout <span class="operator"><</span><span class="operator"><</span> <span class="string">"Found Alfonso at position "</span> <span class="operator"><</span><span class="operator"><</span> i <span class="operator"><</span><span class="operator"><</span> endl;
/// }
///
/// </pre>
/// <p><a href="http://doc.qt.io/qt-5/qvector.html#at">at</a>() can be faster than operator[](), because it never causes a <a href="http://doc.qt.io/qt-5/implicit-sharing.html#deep-copy">deep copy</a> to occur.</p>
/// <p>Another way to access the data stored in a <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> is to call <a href="http://doc.qt.io/qt-5/qvector.html#data">data</a>(). The function returns a pointer to the first item in the vector. You can use the pointer to directly access and modify the elements stored in the vector. The pointer is also useful if you need to pass a <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> to a function that accepts a plain C++ array.</p>
/// <p>If you want to find all occurrences of a particular value in a vector, use <a href="http://doc.qt.io/qt-5/qvector.html#indexOf">indexOf</a>() or <a href="http://doc.qt.io/qt-5/qvector.html#lastIndexOf">lastIndexOf</a>(). The former searches forward starting from a given index position, the latter searches backward. Both return the index of the matching item if they found one; otherwise, they return -1. For example:</p>
/// <pre class="cpp">
///
/// <span class="type">int</span> i <span class="operator">=</span> vector<span class="operator">.</span>indexOf(<span class="string">"Harumi"</span>);
/// <span class="keyword">if</span> (i <span class="operator">!</span><span class="operator">=</span> <span class="operator">-</span><span class="number">1</span>)
///   cout <span class="operator"><</span><span class="operator"><</span> <span class="string">"First occurrence of Harumi is at position "</span> <span class="operator"><</span><span class="operator"><</span> i <span class="operator"><</span><span class="operator"><</span> endl;
///
/// </pre>
/// <p>If you simply want to check whether a vector contains a particular value, use <a href="http://doc.qt.io/qt-5/qvector.html#contains">contains</a>(). If you want to find out how many times a particular value occurs in the vector, use <a href="http://doc.qt.io/qt-5/qvector.html#count-1">count</a>().</p>
/// <p><a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> provides these basic functions to add, move, and remove items: <a href="http://doc.qt.io/qt-5/qvector.html#insert">insert</a>(), <a href="http://doc.qt.io/qt-5/qvector.html#replace">replace</a>(), <a href="http://doc.qt.io/qt-5/qvector.html#remove">remove</a>(), <a href="http://doc.qt.io/qt-5/qvector.html#prepend">prepend</a>(), <a href="http://doc.qt.io/qt-5/qvector.html#append">append</a>(). With the exception of <a href="http://doc.qt.io/qt-5/qvector.html#append">append</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#replace">replace</a>(), these functions can be slow (<a href="http://doc.qt.io/qt-5/containers.html#linear-time">linear time</a>) for large vectors, because they require moving many items in the vector by one position in memory. If you want a container class that provides fast insertion/removal in the middle, use <a href="http://doc.qt.io/qt-5/qlist.html">QList</a> or <a href="http://doc.qt.io/qt-5/qlinkedlist.html">QLinkedList</a> instead.</p>
/// <p>Unlike plain C++ arrays, QVectors can be resized at any time by calling <a href="http://doc.qt.io/qt-5/qvector.html#resize">resize</a>(). If the new size is larger than the old size, <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> might need to reallocate the whole vector. <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> tries to reduce the number of reallocations by preallocating up to twice as much memory as the actual data needs.</p>
/// <p>If you know in advance approximately how many items the <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> will contain, you can call <a href="http://doc.qt.io/qt-5/qvector.html#reserve">reserve</a>(), asking <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> to preallocate a certain amount of memory. You can also call <a href="http://doc.qt.io/qt-5/qvector.html#capacity">capacity</a>() to find out how much memory <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> actually allocated.</p>
/// <p>Note that using non-const operators and functions can cause <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> to do a deep copy of the data. This is due to <a href="http://doc.qt.io/qt-5/implicit-sharing.html">implicit sharing</a>.</p>
/// <p><a href="http://doc.qt.io/qt-5/qvector.html">QVector</a>'s value type must be an <a href="http://doc.qt.io/qt-5/containers.html#assignable-data-type">assignable data type</a>. This covers most data types that are commonly used, but the compiler won't let you, for example, store a <a href="http://doc.qt.io/qt-5/qwidget.html">QWidget</a> as a value; instead, store a <a href="http://doc.qt.io/qt-5/qwidget.html">QWidget</a> *. A few functions have additional requirements; for example, <a href="http://doc.qt.io/qt-5/qvector.html#indexOf">indexOf</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#lastIndexOf">lastIndexOf</a>() expect the value type to support <code>operator==()</code>. These requirements are documented on a per-function basis.</p>
/// <p>Like the other container classes, <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> provides <a href="http://doc.qt.io/qt-5/containers.html#java-style-iterators">Java-style iterators</a> (<a href="http://doc.qt.io/qt-5/qvectoriterator.html">QVectorIterator</a> and <a href="http://doc.qt.io/qt-5/qmutablevectoriterator.html">QMutableVectorIterator</a>) and <a href="http://doc.qt.io/qt-5/containers.html#stl-style-iterators">STL-style iterators</a> (<a href="http://doc.qt.io/qt-5/qvector.html#const_iterator-typedef">QVector::const_iterator</a> and <a href="http://doc.qt.io/qt-5/qvector.html#iterator-typedefx">QVector::iterator</a>). In practice, these are rarely used, because you can use indexes into the <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a>.</p>
/// <p>In addition to <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a>, Qt also provides <a href="http://doc.qt.io/qt-5/qvarlengtharray.html">QVarLengthArray</a>, a very low-level class with little functionality that is optimized for speed.</p>
/// <p><a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> does <i>not</i> support inserting, prepending, appending or replacing with references to its own values. Doing so will cause your application to abort with an error message.</p>
/// <a name="more-information-on-using-qt-containers"></a>
/// <h4>More Information on Using Qt Containers</h4>
/// <p>For a detailed discussion comparing Qt containers with each other and with STL containers, see <a href="http://marcmutz.wordpress.com/effective-qt/containers/">Understand the Qt Containers</a>.</p></div>
#[repr(C)]
pub struct QVectorOfQNodeId {
_unused: u8,
}
impl QVectorOfQNodeId {
/// <p>Appends the items of the <i>other</i> vector to this vector and returns a reference to this vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```QVector<Qt3DCore::QNodeId>& QVector<Qt3DCore::QNodeId>::operator+=(const QVector<Qt3DCore::QNodeId>& l)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#operator-2b-eq">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Appends the items of the <i>other</i> vector to this vector and returns a reference to this vector.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#operator-2b">operator+</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#append">append</a>().</p></div>
#[inline(always)]
pub unsafe fn add_assign_q_vector_of_q_node_id(
&self,
l: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QVectorOfQNodeId>>,
) -> ::cpp_core::Ref<crate::QVectorOfQNodeId> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeId_operator__4(
self as *const crate::QVectorOfQNodeId as *mut crate::QVectorOfQNodeId,
::cpp_core::CastInto::<::cpp_core::Ref<crate::QVectorOfQNodeId>>::cast_into(l)
.as_raw_ptr(),
)
};
::cpp_core::Ref::from_raw(ffi_result).expect("attempted to construct a null Ref")
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```QVector<Qt3DCore::QNodeId>& QVector<Qt3DCore::QNodeId>::operator+=(const Qt3DCore::QNodeId& t)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#operator-2b-eq-1">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This is an overloaded function.</p>
/// <p>Appends <i>value</i> to the vector.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#append">append</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#operator-lt-lt">operator<<</a>().</p></div>
#[inline(always)]
pub unsafe fn add_assign_q_node_id(
&self,
t: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QNodeId>>,
) -> ::cpp_core::Ref<crate::QVectorOfQNodeId> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeId_operator__5(
self as *const crate::QVectorOfQNodeId as *mut crate::QVectorOfQNodeId,
::cpp_core::CastInto::<::cpp_core::Ref<crate::QNodeId>>::cast_into(t).as_raw_ptr(),
)
};
::cpp_core::Ref::from_raw(ffi_result).expect("attempted to construct a null Ref")
}
/// <p>Inserts <i>value</i> at the end of the vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QNodeId>::append(const Qt3DCore::QNodeId& t)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#append">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Inserts <i>value</i> at the end of the vector.</p>
/// <p>Example:</p>
/// <pre class="cpp">
///
/// <span class="type"><a href="http://doc.qt.io/qt-5/qvector.html#QVector">QVector</a></span><span class="operator"><</span><span class="type"><a href="http://doc.qt.io/qt-5/qstring.html">QString</a></span><span class="operator">></span> vector;
/// vector<span class="operator">.</span>append(<span class="string">"one"</span>);
/// vector<span class="operator">.</span>append(<span class="string">"two"</span>);
/// <span class="type"><a href="http://doc.qt.io/qt-5/qstring.html">QString</a></span> three <span class="operator">=</span> <span class="string">"three"</span>;
/// vector<span class="operator">.</span>append(three);
/// <span class="comment">// vector: ["one", "two", "three"]</span>
/// <span class="comment">// three: "three"</span>
///
/// </pre>
/// <p>This is the same as calling resize(<a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>() + 1) and assigning <i>value</i> to the new last element in the vector.</p>
/// <p>This operation is relatively fast, because <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> typically allocates more memory than necessary, so it can grow without reallocating the entire vector each time.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#operator-lt-lt">operator<<</a>(), <a href="http://doc.qt.io/qt-5/qvector.html#prepend">prepend</a>(), and <a href="http://doc.qt.io/qt-5/qvector.html#insert">insert</a>().</p></div>
#[inline(always)]
pub unsafe fn append_q_node_id(
&self,
t: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QNodeId>>,
) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeId_append(
self as *const crate::QVectorOfQNodeId as *mut crate::QVectorOfQNodeId,
::cpp_core::CastInto::<::cpp_core::Ref<crate::QNodeId>>::cast_into(t).as_raw_ptr(),
)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QNodeId>::append(const QVector<Qt3DCore::QNodeId>& l)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#append-2">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This is an overloaded function.</p>
/// <p>Appends the items of the <i>value</i> vector to this vector.</p>
/// <p>This function was introduced in Qt 5.5.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#operator-lt-lt">operator<<</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#operator-2b-eq">operator+=</a>().</p></div>
#[inline(always)]
pub unsafe fn append_q_vector_of_q_node_id(
&self,
l: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QVectorOfQNodeId>>,
) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeId_append2(
self as *const crate::QVectorOfQNodeId as *mut crate::QVectorOfQNodeId,
::cpp_core::CastInto::<::cpp_core::Ref<crate::QVectorOfQNodeId>>::cast_into(l)
.as_raw_ptr(),
)
}
/// <p>Returns the item at index position <i>i</i> in the vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```const Qt3DCore::QNodeId& QVector<Qt3DCore::QNodeId>::at(int i) const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#at">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the item at index position <i>i</i> in the vector.</p>
/// <p><i>i</i> must be a valid index position in the vector (i.e., 0 <= <i>i</i> < <a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>()).</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#value">value</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#operator-5b-5d">operator[]</a>().</p></div>
#[inline(always)]
pub unsafe fn at(&self, i: ::std::os::raw::c_int) -> ::cpp_core::Ref<crate::QNodeId> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeId_at(
self as *const crate::QVectorOfQNodeId,
i,
)
};
::cpp_core::Ref::from_raw(ffi_result as *mut crate::QNodeId)
.expect("attempted to construct a null Ref")
}
/// <p>This function is provided for STL compatibility. It is equivalent to <a href="http://doc.qt.io/qt-5/qvector.html#last">last</a>().</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNodeId& QVector<Qt3DCore::QNodeId>::back()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#back">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This function is provided for STL compatibility. It is equivalent to <a href="http://doc.qt.io/qt-5/qvector.html#last">last</a>().</p></div>
#[inline(always)]
pub unsafe fn back_mut(&self) -> ::cpp_core::Ref<crate::QNodeId> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeId_back(
self as *const crate::QVectorOfQNodeId as *mut crate::QVectorOfQNodeId,
)
};
::cpp_core::Ref::from_raw(ffi_result).expect("attempted to construct a null Ref")
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```const Qt3DCore::QNodeId& QVector<Qt3DCore::QNodeId>::back() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#back-1">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This is an overloaded function.</p></div>
#[inline(always)]
pub unsafe fn back(&self) -> ::cpp_core::Ref<crate::QNodeId> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeId_back1(
self as *const crate::QVectorOfQNodeId,
)
};
::cpp_core::Ref::from_raw(ffi_result as *mut crate::QNodeId)
.expect("attempted to construct a null Ref")
}
/// <p>Returns the maximum number of items that can be stored in the vector without forcing a reallocation.</p>
///
/// Calls C++ function: <span style='color: green;'>```int QVector<Qt3DCore::QNodeId>::capacity() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#capacity">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the maximum number of items that can be stored in the vector without forcing a reallocation.</p>
/// <p>The sole purpose of this function is to provide a means of fine tuning <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a>'s memory usage. In general, you will rarely ever need to call this function. If you want to know how many items are in the vector, call <a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>().</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#reserve">reserve</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#squeeze">squeeze</a>().</p></div>
#[inline(always)]
pub unsafe fn capacity(&self) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeId_capacity(
self as *const crate::QVectorOfQNodeId,
)
}
/// <p>Removes all the elements from the vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QNodeId>::clear()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#clear">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Removes all the elements from the vector.</p>
/// <p><b>Note: </b>Until Qt 5.6, this also released the memory used by the vector. From Qt 5.7, the capacity is preserved. To shed all capacity, swap with a default-constructed vector:</p><pre class="cpp">
///
/// <span class="type"><a href="http://doc.qt.io/qt-5/qvector.html#QVector">QVector</a></span><span class="operator"><</span>T<span class="operator">></span> v <span class="operator">.</span><span class="operator">.</span><span class="operator">.</span>;
/// <span class="type"><a href="http://doc.qt.io/qt-5/qvector.html#QVector">QVector</a></span><span class="operator"><</span>T<span class="operator">></span>()<span class="operator">.</span>swap(v);
/// Q_ASSERT(v<span class="operator">.</span>capacity() <span class="operator">=</span><span class="operator">=</span> <span class="number">0</span>);
///
/// </pre>
/// <p>or call <a href="http://doc.qt.io/qt-5/qvector.html#squeeze">squeeze</a>().</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#squeeze">squeeze</a>().</p></div>
#[inline(always)]
pub unsafe fn clear(&self) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeId_clear(
self as *const crate::QVectorOfQNodeId as *mut crate::QVectorOfQNodeId,
)
}
/// <p>Returns a const pointer to the data stored in the vector. The pointer can be used to access the items in the vector. The pointer remains valid as long as the vector isn't reallocated.</p>
///
/// Calls C++ function: <span style='color: green;'>```const Qt3DCore::QNodeId* QVector<Qt3DCore::QNodeId>::constData() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#constData">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns a const pointer to the data stored in the vector. The pointer can be used to access the items in the vector. The pointer remains valid as long as the vector isn't reallocated.</p>
/// <p>This function is mostly useful to pass a vector to a function that accepts a plain C++ array.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#data">data</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#operator-5b-5d">operator[]</a>().</p></div>
#[inline(always)]
pub unsafe fn const_data(&self) -> ::cpp_core::Ptr<crate::QNodeId> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeId_constData(
self as *const crate::QVectorOfQNodeId,
)
};
::cpp_core::Ptr::from_raw(ffi_result as *mut crate::QNodeId)
}
/// <p>Returns a const reference to the first item in the vector. This function assumes that the vector isn't empty.</p>
///
/// Calls C++ function: <span style='color: green;'>```const Qt3DCore::QNodeId& QVector<Qt3DCore::QNodeId>::constFirst() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#constFirst">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns a const reference to the first item in the vector. This function assumes that the vector isn't empty.</p>
/// <p>This function was introduced in Qt 5.6.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#constLast">constLast</a>(), <a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>(), and <a href="http://doc.qt.io/qt-5/qvector.html#first">first</a>().</p></div>
#[inline(always)]
pub unsafe fn const_first(&self) -> ::cpp_core::Ref<crate::QNodeId> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeId_constFirst(
self as *const crate::QVectorOfQNodeId,
)
};
::cpp_core::Ref::from_raw(ffi_result as *mut crate::QNodeId)
.expect("attempted to construct a null Ref")
}
/// <p>Returns a const reference to the last item in the vector. This function assumes that the vector isn't empty.</p>
///
/// Calls C++ function: <span style='color: green;'>```const Qt3DCore::QNodeId& QVector<Qt3DCore::QNodeId>::constLast() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#constLast">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns a const reference to the last item in the vector. This function assumes that the vector isn't empty.</p>
/// <p>This function was introduced in Qt 5.6.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#constFirst">constFirst</a>(), <a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>(), and <a href="http://doc.qt.io/qt-5/qvector.html#last">last</a>().</p></div>
#[inline(always)]
pub unsafe fn const_last(&self) -> ::cpp_core::Ref<crate::QNodeId> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeId_constLast(
self as *const crate::QVectorOfQNodeId,
)
};
::cpp_core::Ref::from_raw(ffi_result as *mut crate::QNodeId)
.expect("attempted to construct a null Ref")
}
/// <p>Returns <code>true</code> if the vector contains an occurrence of <i>value</i>; otherwise returns <code>false</code>.</p>
///
/// Calls C++ function: <span style='color: green;'>```bool QVector<Qt3DCore::QNodeId>::contains(const Qt3DCore::QNodeId& t) const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#contains">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns <code>true</code> if the vector contains an occurrence of <i>value</i>; otherwise returns <code>false</code>.</p>
/// <p>This function requires the value type to have an implementation of <code>operator==()</code>.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#indexOf">indexOf</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#count-1">count</a>().</p></div>
#[inline(always)]
pub unsafe fn contains(
&self,
t: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QNodeId>>,
) -> bool {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeId_contains(
self as *const crate::QVectorOfQNodeId,
::cpp_core::CastInto::<::cpp_core::Ref<crate::QNodeId>>::cast_into(t).as_raw_ptr(),
)
}
/// <p>Assigns <i>other</i> to this vector and returns a reference to this vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```QVector<Qt3DCore::QNodeId>& QVector<Qt3DCore::QNodeId>::operator=(const QVector<Qt3DCore::QNodeId>& v)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#operator-eq">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Assigns <i>other</i> to this vector and returns a reference to this vector.</p></div>
#[inline(always)]
pub unsafe fn copy_from(
&self,
v: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QVectorOfQNodeId>>,
) -> ::cpp_core::Ref<crate::QVectorOfQNodeId> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeId_operator_(
self as *const crate::QVectorOfQNodeId as *mut crate::QVectorOfQNodeId,
::cpp_core::CastInto::<::cpp_core::Ref<crate::QVectorOfQNodeId>>::cast_into(v)
.as_raw_ptr(),
)
};
::cpp_core::Ref::from_raw(ffi_result).expect("attempted to construct a null Ref")
}
/// <p>Returns the number of occurrences of <i>value</i> in the vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```int QVector<Qt3DCore::QNodeId>::count(const Qt3DCore::QNodeId& t) const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#count">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the number of occurrences of <i>value</i> in the vector.</p>
/// <p>This function requires the value type to have an implementation of <code>operator==()</code>.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#contains">contains</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#indexOf">indexOf</a>().</p></div>
#[inline(always)]
pub unsafe fn count_1a(
&self,
t: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QNodeId>>,
) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeId_count(
self as *const crate::QVectorOfQNodeId,
::cpp_core::CastInto::<::cpp_core::Ref<crate::QNodeId>>::cast_into(t).as_raw_ptr(),
)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```int QVector<Qt3DCore::QNodeId>::count() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#count-1">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This is an overloaded function.</p>
/// <p>Same as <a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>().</p></div>
#[inline(always)]
pub unsafe fn count_0a(&self) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeId_count1(
self as *const crate::QVectorOfQNodeId,
)
}
/// <p>Returns a pointer to the data stored in the vector. The pointer can be used to access and modify the items in the vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNodeId* QVector<Qt3DCore::QNodeId>::data()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#data">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns a pointer to the data stored in the vector. The pointer can be used to access and modify the items in the vector.</p>
/// <p>Example:</p>
/// <pre class="cpp">
///
/// <span class="type"><a href="http://doc.qt.io/qt-5/qvector.html#QVector">QVector</a></span><span class="operator"><</span><span class="type">int</span><span class="operator">></span> vector(<span class="number">10</span>);
/// <span class="type">int</span> <span class="operator">*</span>data <span class="operator">=</span> vector<span class="operator">.</span>data();
/// <span class="keyword">for</span> (<span class="type">int</span> i <span class="operator">=</span> <span class="number">0</span>; i <span class="operator"><</span> <span class="number">10</span>; <span class="operator">+</span><span class="operator">+</span>i)
///   data<span class="operator">[</span>i<span class="operator">]</span> <span class="operator">=</span> <span class="number">2</span> <span class="operator">*</span> i;
///
/// </pre>
/// <p>The pointer remains valid as long as the vector isn't reallocated.</p>
/// <p>This function is mostly useful to pass a vector to a function that accepts a plain C++ array.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#constData">constData</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#operator-5b-5d">operator[]</a>().</p></div>
#[inline(always)]
pub unsafe fn data_mut(&self) -> ::cpp_core::Ptr<crate::QNodeId> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeId_data(
self as *const crate::QVectorOfQNodeId as *mut crate::QVectorOfQNodeId,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```const Qt3DCore::QNodeId* QVector<Qt3DCore::QNodeId>::data() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#data-1">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This is an overloaded function.</p></div>
#[inline(always)]
pub unsafe fn data(&self) -> ::cpp_core::Ptr<crate::QNodeId> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeId_data1(
self as *const crate::QVectorOfQNodeId,
)
};
::cpp_core::Ptr::from_raw(ffi_result as *mut crate::QNodeId)
}
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QNodeId>::detach()```</span>.
#[inline(always)]
pub unsafe fn detach(&self) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeId_detach(
self as *const crate::QVectorOfQNodeId as *mut crate::QVectorOfQNodeId,
)
}
/// <p>This function is provided for STL compatibility. It is equivalent to <a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>(), returning <code>true</code> if the vector is empty; otherwise returns <code>false</code>.</p>
///
/// Calls C++ function: <span style='color: green;'>```bool QVector<Qt3DCore::QNodeId>::empty() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#empty">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This function is provided for STL compatibility. It is equivalent to <a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>(), returning <code>true</code> if the vector is empty; otherwise returns <code>false</code>.</p></div>
#[inline(always)]
pub unsafe fn empty(&self) -> bool {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeId_empty(
self as *const crate::QVectorOfQNodeId,
)
}
/// <p>Returns <code>true</code> if this vector is not empty and its last item is equal to <i>value</i>; otherwise returns <code>false</code>.</p>
///
/// Calls C++ function: <span style='color: green;'>```bool QVector<Qt3DCore::QNodeId>::endsWith(const Qt3DCore::QNodeId& t) const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#endsWith">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns <code>true</code> if this vector is not empty and its last item is equal to <i>value</i>; otherwise returns <code>false</code>.</p>
/// <p>This function was introduced in Qt 4.5.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#last">last</a>().</p></div>
#[inline(always)]
pub unsafe fn ends_with(
&self,
t: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QNodeId>>,
) -> bool {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeId_endsWith(
self as *const crate::QVectorOfQNodeId,
::cpp_core::CastInto::<::cpp_core::Ref<crate::QNodeId>>::cast_into(t).as_raw_ptr(),
)
}
/// <p>Assigns <i>value</i> to all items in the vector. If <i>size</i> is different from -1 (the default), the vector is resized to size <i>size</i> beforehand.</p>
///
/// Calls C++ function: <span style='color: green;'>```QVector<Qt3DCore::QNodeId>& QVector<Qt3DCore::QNodeId>::fill(const Qt3DCore::QNodeId& t, int size = …)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#fill">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Assigns <i>value</i> to all items in the vector. If <i>size</i> is different from -1 (the default), the vector is resized to size <i>size</i> beforehand.</p>
/// <p>Example:</p>
/// <pre class="cpp">
///
/// <span class="type"><a href="http://doc.qt.io/qt-5/qvector.html#QVector">QVector</a></span><span class="operator"><</span><span class="type"><a href="http://doc.qt.io/qt-5/qstring.html">QString</a></span><span class="operator">></span> vector(<span class="number">3</span>);
/// vector<span class="operator">.</span>fill(<span class="string">"Yes"</span>);
/// <span class="comment">// vector: ["Yes", "Yes", "Yes"]</span>
///
/// vector<span class="operator">.</span>fill(<span class="string">"oh"</span><span class="operator">,</span> <span class="number">5</span>);
/// <span class="comment">// vector: ["oh", "oh", "oh", "oh", "oh"]</span>
///
/// </pre>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#resize">resize</a>().</p></div>
#[inline(always)]
pub unsafe fn fill_2a(
&self,
t: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QNodeId>>,
size: ::std::os::raw::c_int,
) -> ::cpp_core::Ref<crate::QVectorOfQNodeId> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeId_fill(
self as *const crate::QVectorOfQNodeId as *mut crate::QVectorOfQNodeId,
::cpp_core::CastInto::<::cpp_core::Ref<crate::QNodeId>>::cast_into(t).as_raw_ptr(),
size,
)
};
::cpp_core::Ref::from_raw(ffi_result).expect("attempted to construct a null Ref")
}
/// <p>Assigns <i>value</i> to all items in the vector. If <i>size</i> is different from -1 (the default), the vector is resized to size <i>size</i> beforehand.</p>
///
/// Calls C++ function: <span style='color: green;'>```QVector<Qt3DCore::QNodeId>& QVector<Qt3DCore::QNodeId>::fill(const Qt3DCore::QNodeId& t)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#fill">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Assigns <i>value</i> to all items in the vector. If <i>size</i> is different from -1 (the default), the vector is resized to size <i>size</i> beforehand.</p>
/// <p>Example:</p>
/// <pre class="cpp">
///
/// <span class="type"><a href="http://doc.qt.io/qt-5/qvector.html#QVector">QVector</a></span><span class="operator"><</span><span class="type"><a href="http://doc.qt.io/qt-5/qstring.html">QString</a></span><span class="operator">></span> vector(<span class="number">3</span>);
/// vector<span class="operator">.</span>fill(<span class="string">"Yes"</span>);
/// <span class="comment">// vector: ["Yes", "Yes", "Yes"]</span>
///
/// vector<span class="operator">.</span>fill(<span class="string">"oh"</span><span class="operator">,</span> <span class="number">5</span>);
/// <span class="comment">// vector: ["oh", "oh", "oh", "oh", "oh"]</span>
///
/// </pre>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#resize">resize</a>().</p></div>
#[inline(always)]
pub unsafe fn fill_1a(
&self,
t: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QNodeId>>,
) -> ::cpp_core::Ref<crate::QVectorOfQNodeId> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeId_fill1(
self as *const crate::QVectorOfQNodeId as *mut crate::QVectorOfQNodeId,
::cpp_core::CastInto::<::cpp_core::Ref<crate::QNodeId>>::cast_into(t).as_raw_ptr(),
)
};
::cpp_core::Ref::from_raw(ffi_result).expect("attempted to construct a null Ref")
}
/// <p>Returns a reference to the first item in the vector. This function assumes that the vector isn't empty.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNodeId& QVector<Qt3DCore::QNodeId>::first()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#first">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns a reference to the first item in the vector. This function assumes that the vector isn't empty.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#last">last</a>(), <a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>(), and <a href="http://doc.qt.io/qt-5/qvector.html#constFirst">constFirst</a>().</p></div>
#[inline(always)]
pub unsafe fn first_mut(&self) -> ::cpp_core::Ref<crate::QNodeId> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeId_first(
self as *const crate::QVectorOfQNodeId as *mut crate::QVectorOfQNodeId,
)
};
::cpp_core::Ref::from_raw(ffi_result).expect("attempted to construct a null Ref")
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```const Qt3DCore::QNodeId& QVector<Qt3DCore::QNodeId>::first() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#first-1">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This is an overloaded function.</p></div>
#[inline(always)]
pub unsafe fn first(&self) -> ::cpp_core::Ref<crate::QNodeId> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeId_first1(
self as *const crate::QVectorOfQNodeId,
)
};
::cpp_core::Ref::from_raw(ffi_result as *mut crate::QNodeId)
.expect("attempted to construct a null Ref")
}
/// <p>This function is provided for STL compatibility. It is equivalent to <a href="http://doc.qt.io/qt-5/qvector.html#first">first</a>().</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNodeId& QVector<Qt3DCore::QNodeId>::front()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#front">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This function is provided for STL compatibility. It is equivalent to <a href="http://doc.qt.io/qt-5/qvector.html#first">first</a>().</p></div>
#[inline(always)]
pub unsafe fn front_mut(&self) -> ::cpp_core::Ref<crate::QNodeId> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeId_front(
self as *const crate::QVectorOfQNodeId as *mut crate::QVectorOfQNodeId,
)
};
::cpp_core::Ref::from_raw(ffi_result).expect("attempted to construct a null Ref")
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```const Qt3DCore::QNodeId& QVector<Qt3DCore::QNodeId>::front() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#front-1">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This is an overloaded function.</p></div>
#[inline(always)]
pub unsafe fn front(&self) -> ::cpp_core::Ref<crate::QNodeId> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeId_front1(
self as *const crate::QVectorOfQNodeId,
)
};
::cpp_core::Ref::from_raw(ffi_result as *mut crate::QNodeId)
.expect("attempted to construct a null Ref")
}
/// <p>Returns the item at index position <i>i</i> as a modifiable reference.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNodeId& QVector<Qt3DCore::QNodeId>::operator[](int i)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#operator-5b-5d">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the item at index position <i>i</i> as a modifiable reference.</p>
/// <p><i>i</i> must be a valid index position in the vector (i.e., 0 <= <i>i</i> < <a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>()).</p>
/// <p>Note that using non-const operators can cause <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> to do a deep copy.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#at">at</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#value">value</a>().</p></div>
#[inline(always)]
pub unsafe fn index_mut(&self, i: ::std::os::raw::c_int) -> ::cpp_core::Ref<crate::QNodeId> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeId_operator__2(
self as *const crate::QVectorOfQNodeId as *mut crate::QVectorOfQNodeId,
i,
)
};
::cpp_core::Ref::from_raw(ffi_result).expect("attempted to construct a null Ref")
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```const Qt3DCore::QNodeId& QVector<Qt3DCore::QNodeId>::operator[](int i) const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#operator-5b-5d-1">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This is an overloaded function.</p>
/// <p>Same as at(<i>i</i>).</p></div>
#[inline(always)]
pub unsafe fn index(&self, i: ::std::os::raw::c_int) -> ::cpp_core::Ref<crate::QNodeId> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeId_operator__3(
self as *const crate::QVectorOfQNodeId,
i,
)
};
::cpp_core::Ref::from_raw(ffi_result as *mut crate::QNodeId)
.expect("attempted to construct a null Ref")
}
/// <p>Returns the index position of the first occurrence of <i>value</i> in the vector, searching forward from index position <i>from</i>. Returns -1 if no item matched.</p>
///
/// Calls C++ function: <span style='color: green;'>```int QVector<Qt3DCore::QNodeId>::indexOf(const Qt3DCore::QNodeId& t, int from = …) const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#indexOf">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the index position of the first occurrence of <i>value</i> in the vector, searching forward from index position <i>from</i>. Returns -1 if no item matched.</p>
/// <p>Example:</p>
/// <pre class="cpp">
///
/// <span class="type"><a href="http://doc.qt.io/qt-5/qvector.html#QVector">QVector</a></span><span class="operator"><</span><span class="type"><a href="http://doc.qt.io/qt-5/qstring.html">QString</a></span><span class="operator">></span> vector;
/// vector <span class="operator"><</span><span class="operator"><</span> <span class="string">"A"</span> <span class="operator"><</span><span class="operator"><</span> <span class="string">"B"</span> <span class="operator"><</span><span class="operator"><</span> <span class="string">"C"</span> <span class="operator"><</span><span class="operator"><</span> <span class="string">"B"</span> <span class="operator"><</span><span class="operator"><</span> <span class="string">"A"</span>;
/// vector<span class="operator">.</span>indexOf(<span class="string">"B"</span>); <span class="comment">// returns 1</span>
/// vector<span class="operator">.</span>indexOf(<span class="string">"B"</span><span class="operator">,</span> <span class="number">1</span>); <span class="comment">// returns 1</span>
/// vector<span class="operator">.</span>indexOf(<span class="string">"B"</span><span class="operator">,</span> <span class="number">2</span>); <span class="comment">// returns 3</span>
/// vector<span class="operator">.</span>indexOf(<span class="string">"X"</span>); <span class="comment">// returns -1</span>
///
/// </pre>
/// <p>This function requires the value type to have an implementation of <code>operator==()</code>.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#lastIndexOf">lastIndexOf</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#contains">contains</a>().</p></div>
#[inline(always)]
pub unsafe fn index_of_2a(
&self,
t: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QNodeId>>,
from: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeId_indexOf(
self as *const crate::QVectorOfQNodeId,
::cpp_core::CastInto::<::cpp_core::Ref<crate::QNodeId>>::cast_into(t).as_raw_ptr(),
from,
)
}
/// <p>Returns the index position of the first occurrence of <i>value</i> in the vector, searching forward from index position <i>from</i>. Returns -1 if no item matched.</p>
///
/// Calls C++ function: <span style='color: green;'>```int QVector<Qt3DCore::QNodeId>::indexOf(const Qt3DCore::QNodeId& t) const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#indexOf">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the index position of the first occurrence of <i>value</i> in the vector, searching forward from index position <i>from</i>. Returns -1 if no item matched.</p>
/// <p>Example:</p>
/// <pre class="cpp">
///
/// <span class="type"><a href="http://doc.qt.io/qt-5/qvector.html#QVector">QVector</a></span><span class="operator"><</span><span class="type"><a href="http://doc.qt.io/qt-5/qstring.html">QString</a></span><span class="operator">></span> vector;
/// vector <span class="operator"><</span><span class="operator"><</span> <span class="string">"A"</span> <span class="operator"><</span><span class="operator"><</span> <span class="string">"B"</span> <span class="operator"><</span><span class="operator"><</span> <span class="string">"C"</span> <span class="operator"><</span><span class="operator"><</span> <span class="string">"B"</span> <span class="operator"><</span><span class="operator"><</span> <span class="string">"A"</span>;
/// vector<span class="operator">.</span>indexOf(<span class="string">"B"</span>); <span class="comment">// returns 1</span>
/// vector<span class="operator">.</span>indexOf(<span class="string">"B"</span><span class="operator">,</span> <span class="number">1</span>); <span class="comment">// returns 1</span>
/// vector<span class="operator">.</span>indexOf(<span class="string">"B"</span><span class="operator">,</span> <span class="number">2</span>); <span class="comment">// returns 3</span>
/// vector<span class="operator">.</span>indexOf(<span class="string">"X"</span>); <span class="comment">// returns -1</span>
///
/// </pre>
/// <p>This function requires the value type to have an implementation of <code>operator==()</code>.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#lastIndexOf">lastIndexOf</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#contains">contains</a>().</p></div>
#[inline(always)]
pub unsafe fn index_of_1a(
&self,
t: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QNodeId>>,
) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeId_indexOf1(
self as *const crate::QVectorOfQNodeId,
::cpp_core::CastInto::<::cpp_core::Ref<crate::QNodeId>>::cast_into(t).as_raw_ptr(),
)
}
/// <p>Inserts <i>value</i> at index position <i>i</i> in the vector. If <i>i</i> is 0, the value is prepended to the vector. If <i>i</i> is <a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>(), the value is appended to the vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QNodeId>::insert(int i, const Qt3DCore::QNodeId& t)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#insert">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Inserts <i>value</i> at index position <i>i</i> in the vector. If <i>i</i> is 0, the value is prepended to the vector. If <i>i</i> is <a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>(), the value is appended to the vector.</p>
/// <p>Example:</p>
/// <pre class="cpp">
///
/// <span class="type"><a href="http://doc.qt.io/qt-5/qvector.html#QVector">QVector</a></span><span class="operator"><</span><span class="type"><a href="http://doc.qt.io/qt-5/qstring.html">QString</a></span><span class="operator">></span> vector;
/// vector <span class="operator"><</span><span class="operator"><</span> <span class="string">"alpha"</span> <span class="operator"><</span><span class="operator"><</span> <span class="string">"beta"</span> <span class="operator"><</span><span class="operator"><</span> <span class="string">"delta"</span>;
/// vector<span class="operator">.</span>insert(<span class="number">2</span><span class="operator">,</span> <span class="string">"gamma"</span>);
/// <span class="comment">// vector: ["alpha", "beta", "gamma", "delta"]</span>
///
/// </pre>
/// <p>For large vectors, this operation can be slow (<a href="http://doc.qt.io/qt-5/containers.html#linear-time">linear time</a>), because it requires moving all the items at indexes <i>i</i> and above by one position further in memory. If you want a container class that provides a fast insert() function, use <a href="http://doc.qt.io/qt-5/qlinkedlist.html">QLinkedList</a> instead.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#append">append</a>(), <a href="http://doc.qt.io/qt-5/qvector.html#prepend">prepend</a>(), and <a href="http://doc.qt.io/qt-5/qvector.html#remove">remove</a>().</p></div>
#[inline(always)]
pub unsafe fn insert_2a(
&self,
i: ::std::os::raw::c_int,
t: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QNodeId>>,
) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeId_insert(
self as *const crate::QVectorOfQNodeId as *mut crate::QVectorOfQNodeId,
i,
::cpp_core::CastInto::<::cpp_core::Ref<crate::QNodeId>>::cast_into(t).as_raw_ptr(),
)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QNodeId>::insert(int i, int n, const Qt3DCore::QNodeId& t)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#insert-1">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This is an overloaded function.</p>
/// <p>Inserts <i>count</i> copies of <i>value</i> at index position <i>i</i> in the vector.</p>
/// <p>Example:</p>
/// <pre class="cpp">
///
/// <span class="type"><a href="http://doc.qt.io/qt-5/qvector.html#QVector">QVector</a></span><span class="operator"><</span><span class="type">double</span><span class="operator">></span> vector;
/// vector <span class="operator"><</span><span class="operator"><</span> <span class="number">2.718</span> <span class="operator"><</span><span class="operator"><</span> <span class="number">1.442</span> <span class="operator"><</span><span class="operator"><</span> <span class="number">0.4342</span>;
/// vector<span class="operator">.</span>insert(<span class="number">1</span><span class="operator">,</span> <span class="number">3</span><span class="operator">,</span> <span class="number">9.9</span>);
/// <span class="comment">// vector: [2.718, 9.9, 9.9, 9.9, 1.442, 0.4342]</span>
///
/// </pre></div>
#[inline(always)]
pub unsafe fn insert_3a(
&self,
i: ::std::os::raw::c_int,
n: ::std::os::raw::c_int,
t: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QNodeId>>,
) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeId_insert1(
self as *const crate::QVectorOfQNodeId as *mut crate::QVectorOfQNodeId,
i,
n,
::cpp_core::CastInto::<::cpp_core::Ref<crate::QNodeId>>::cast_into(t).as_raw_ptr(),
)
}
/// Calls C++ function: <span style='color: green;'>```bool QVector<Qt3DCore::QNodeId>::isDetached() const```</span>.
#[inline(always)]
pub unsafe fn is_detached(&self) -> bool {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeId_isDetached(
self as *const crate::QVectorOfQNodeId,
)
}
/// <p>Returns <code>true</code> if the vector has size 0; otherwise returns <code>false</code>.</p>
///
/// Calls C++ function: <span style='color: green;'>```bool QVector<Qt3DCore::QNodeId>::isEmpty() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns <code>true</code> if the vector has size 0; otherwise returns <code>false</code>.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#resize">resize</a>().</p></div>
#[inline(always)]
pub unsafe fn is_empty(&self) -> bool {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeId_isEmpty(
self as *const crate::QVectorOfQNodeId,
)
}
/// Calls C++ function: <span style='color: green;'>```bool QVector<Qt3DCore::QNodeId>::isSharedWith(const QVector<Qt3DCore::QNodeId>& other) const```</span>.
#[inline(always)]
pub unsafe fn is_shared_with(
&self,
other: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QVectorOfQNodeId>>,
) -> bool {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeId_isSharedWith(
self as *const crate::QVectorOfQNodeId,
::cpp_core::CastInto::<::cpp_core::Ref<crate::QVectorOfQNodeId>>::cast_into(other)
.as_raw_ptr(),
)
}
/// <p>Returns a reference to the last item in the vector. This function assumes that the vector isn't empty.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNodeId& QVector<Qt3DCore::QNodeId>::last()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#last">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns a reference to the last item in the vector. This function assumes that the vector isn't empty.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#first">first</a>(), <a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>(), and <a href="http://doc.qt.io/qt-5/qvector.html#constLast">constLast</a>().</p></div>
#[inline(always)]
pub unsafe fn last_mut(&self) -> ::cpp_core::Ref<crate::QNodeId> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeId_last(
self as *const crate::QVectorOfQNodeId as *mut crate::QVectorOfQNodeId,
)
};
::cpp_core::Ref::from_raw(ffi_result).expect("attempted to construct a null Ref")
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```const Qt3DCore::QNodeId& QVector<Qt3DCore::QNodeId>::last() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#last-1">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This is an overloaded function.</p></div>
#[inline(always)]
pub unsafe fn last(&self) -> ::cpp_core::Ref<crate::QNodeId> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeId_last1(
self as *const crate::QVectorOfQNodeId,
)
};
::cpp_core::Ref::from_raw(ffi_result as *mut crate::QNodeId)
.expect("attempted to construct a null Ref")
}
/// <p>Returns the index position of the last occurrence of the value <i>value</i> in the vector, searching backward from index position <i>from</i>. If <i>from</i> is -1 (the default), the search starts at the last item. Returns -1 if no item matched.</p>
///
/// Calls C++ function: <span style='color: green;'>```int QVector<Qt3DCore::QNodeId>::lastIndexOf(const Qt3DCore::QNodeId& t, int from = …) const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#lastIndexOf">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the index position of the last occurrence of the value <i>value</i> in the vector, searching backward from index position <i>from</i>. If <i>from</i> is -1 (the default), the search starts at the last item. Returns -1 if no item matched.</p>
/// <p>Example:</p>
/// <pre class="cpp">
///
/// <span class="type"><a href="http://doc.qt.io/qt-5/qlist.html">QList</a></span><span class="operator"><</span><span class="type"><a href="http://doc.qt.io/qt-5/qstring.html">QString</a></span><span class="operator">></span> vector;
/// vector <span class="operator"><</span><span class="operator"><</span> <span class="string">"A"</span> <span class="operator"><</span><span class="operator"><</span> <span class="string">"B"</span> <span class="operator"><</span><span class="operator"><</span> <span class="string">"C"</span> <span class="operator"><</span><span class="operator"><</span> <span class="string">"B"</span> <span class="operator"><</span><span class="operator"><</span> <span class="string">"A"</span>;
/// vector<span class="operator">.</span>lastIndexOf(<span class="string">"B"</span>); <span class="comment">// returns 3</span>
/// vector<span class="operator">.</span>lastIndexOf(<span class="string">"B"</span><span class="operator">,</span> <span class="number">3</span>); <span class="comment">// returns 3</span>
/// vector<span class="operator">.</span>lastIndexOf(<span class="string">"B"</span><span class="operator">,</span> <span class="number">2</span>); <span class="comment">// returns 1</span>
/// vector<span class="operator">.</span>lastIndexOf(<span class="string">"X"</span>); <span class="comment">// returns -1</span>
///
/// </pre>
/// <p>This function requires the value type to have an implementation of <code>operator==()</code>.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#indexOf">indexOf</a>().</p></div>
#[inline(always)]
pub unsafe fn last_index_of_2a(
&self,
t: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QNodeId>>,
from: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeId_lastIndexOf(
self as *const crate::QVectorOfQNodeId,
::cpp_core::CastInto::<::cpp_core::Ref<crate::QNodeId>>::cast_into(t).as_raw_ptr(),
from,
)
}
/// <p>Returns the index position of the last occurrence of the value <i>value</i> in the vector, searching backward from index position <i>from</i>. If <i>from</i> is -1 (the default), the search starts at the last item. Returns -1 if no item matched.</p>
///
/// Calls C++ function: <span style='color: green;'>```int QVector<Qt3DCore::QNodeId>::lastIndexOf(const Qt3DCore::QNodeId& t) const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#lastIndexOf">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the index position of the last occurrence of the value <i>value</i> in the vector, searching backward from index position <i>from</i>. If <i>from</i> is -1 (the default), the search starts at the last item. Returns -1 if no item matched.</p>
/// <p>Example:</p>
/// <pre class="cpp">
///
/// <span class="type"><a href="http://doc.qt.io/qt-5/qlist.html">QList</a></span><span class="operator"><</span><span class="type"><a href="http://doc.qt.io/qt-5/qstring.html">QString</a></span><span class="operator">></span> vector;
/// vector <span class="operator"><</span><span class="operator"><</span> <span class="string">"A"</span> <span class="operator"><</span><span class="operator"><</span> <span class="string">"B"</span> <span class="operator"><</span><span class="operator"><</span> <span class="string">"C"</span> <span class="operator"><</span><span class="operator"><</span> <span class="string">"B"</span> <span class="operator"><</span><span class="operator"><</span> <span class="string">"A"</span>;
/// vector<span class="operator">.</span>lastIndexOf(<span class="string">"B"</span>); <span class="comment">// returns 3</span>
/// vector<span class="operator">.</span>lastIndexOf(<span class="string">"B"</span><span class="operator">,</span> <span class="number">3</span>); <span class="comment">// returns 3</span>
/// vector<span class="operator">.</span>lastIndexOf(<span class="string">"B"</span><span class="operator">,</span> <span class="number">2</span>); <span class="comment">// returns 1</span>
/// vector<span class="operator">.</span>lastIndexOf(<span class="string">"X"</span>); <span class="comment">// returns -1</span>
///
/// </pre>
/// <p>This function requires the value type to have an implementation of <code>operator==()</code>.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#indexOf">indexOf</a>().</p></div>
#[inline(always)]
pub unsafe fn last_index_of_1a(
&self,
t: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QNodeId>>,
) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeId_lastIndexOf1(
self as *const crate::QVectorOfQNodeId,
::cpp_core::CastInto::<::cpp_core::Ref<crate::QNodeId>>::cast_into(t).as_raw_ptr(),
)
}
/// <p>Same as <a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#count-1">count</a>().</p>
///
/// Calls C++ function: <span style='color: green;'>```int QVector<Qt3DCore::QNodeId>::length() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#length">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Same as <a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#count-1">count</a>().</p>
/// <p>Provided for compatibility with <a href="http://doc.qt.io/qt-5/qlist.html">QList</a>.</p>
/// <p>This function was introduced in Qt 5.2.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>(), <a href="http://doc.qt.io/qt-5/qvector.html#count-1">count</a>(), and <a href="http://doc.qt.io/qt-5/qlist.html#length">QList::length</a>().</p></div>
#[inline(always)]
pub unsafe fn length(&self) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeId_length(
self as *const crate::QVectorOfQNodeId,
)
}
/// <p>Returns a sub-vector which contains elements from this vector, starting at position <i>pos</i>. If <i>length</i> is -1 (the default), all elements after <i>pos</i> are included; otherwise <i>length</i> elements (or all remaining elements if there are less than <i>length</i> elements) are included.</p>
///
/// Calls C++ function: <span style='color: green;'>```QVector<Qt3DCore::QNodeId> QVector<Qt3DCore::QNodeId>::mid(int pos, int len = …) const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#mid">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns a sub-vector which contains elements from this vector, starting at position <i>pos</i>. If <i>length</i> is -1 (the default), all elements after <i>pos</i> are included; otherwise <i>length</i> elements (or all remaining elements if there are less than <i>length</i> elements) are included.</p></div>
#[inline(always)]
pub unsafe fn mid_2a(
&self,
pos: ::std::os::raw::c_int,
len: ::std::os::raw::c_int,
) -> ::cpp_core::CppBox<crate::QVectorOfQNodeId> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeId_mid(
self as *const crate::QVectorOfQNodeId,
pos,
len,
)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Returns a sub-vector which contains elements from this vector, starting at position <i>pos</i>. If <i>length</i> is -1 (the default), all elements after <i>pos</i> are included; otherwise <i>length</i> elements (or all remaining elements if there are less than <i>length</i> elements) are included.</p>
///
/// Calls C++ function: <span style='color: green;'>```QVector<Qt3DCore::QNodeId> QVector<Qt3DCore::QNodeId>::mid(int pos) const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#mid">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns a sub-vector which contains elements from this vector, starting at position <i>pos</i>. If <i>length</i> is -1 (the default), all elements after <i>pos</i> are included; otherwise <i>length</i> elements (or all remaining elements if there are less than <i>length</i> elements) are included.</p></div>
#[inline(always)]
pub unsafe fn mid_1a(
&self,
pos: ::std::os::raw::c_int,
) -> ::cpp_core::CppBox<crate::QVectorOfQNodeId> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeId_mid1(
self as *const crate::QVectorOfQNodeId,
pos,
)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Moves the item at index position <i>from</i> to index position <i>to</i>.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QNodeId>::move(int from, int to)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#move">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Moves the item at index position <i>from</i> to index position <i>to</i>.</p>
/// <p>Provided for compatibility with <a href="http://doc.qt.io/qt-5/qlist.html">QList</a>.</p>
/// <p>This function was introduced in Qt 5.6.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qlist.html#move">QList::move</a>().</p></div>
#[inline(always)]
pub unsafe fn move_(&self, from: ::std::os::raw::c_int, to: ::std::os::raw::c_int) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeId_move(
self as *const crate::QVectorOfQNodeId as *mut crate::QVectorOfQNodeId,
from,
to,
)
}
/// <p>Constructs an empty vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void QVector<Qt3DCore::QNodeId>::QVector()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#QVector">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Constructs an empty vector.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#resize">resize</a>().</p></div>
#[inline(always)]
pub unsafe fn new_0a() -> ::cpp_core::CppBox<crate::QVectorOfQNodeId> {
let ffi_result = { crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeId_QVector() };
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Constructs a vector with an initial size of <i>size</i> elements.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void QVector<Qt3DCore::QNodeId>::QVector(int size)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#QVector-1">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Constructs a vector with an initial size of <i>size</i> elements.</p>
/// <p>The elements are initialized with a <a href="http://doc.qt.io/qt-5/containers.html#default-constructed-value">default-constructed value</a>.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#resize">resize</a>().</p></div>
#[inline(always)]
pub unsafe fn new_1a(
size: ::std::os::raw::c_int,
) -> ::cpp_core::CppBox<crate::QVectorOfQNodeId> {
let ffi_result =
{ crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeId_QVector1(size) };
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Constructs a vector with an initial size of <i>size</i> elements. Each element is initialized with <i>value</i>.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void QVector<Qt3DCore::QNodeId>::QVector(int size, const Qt3DCore::QNodeId& t)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#QVector-2">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Constructs a vector with an initial size of <i>size</i> elements. Each element is initialized with <i>value</i>.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#resize">resize</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#fill">fill</a>().</p></div>
#[inline(always)]
pub unsafe fn new_2a(
size: ::std::os::raw::c_int,
t: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QNodeId>>,
) -> ::cpp_core::CppBox<crate::QVectorOfQNodeId> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeId_QVector2(
size,
::cpp_core::CastInto::<::cpp_core::Ref<crate::QNodeId>>::cast_into(t).as_raw_ptr(),
)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Constructs a copy of <i>other</i>.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void QVector<Qt3DCore::QNodeId>::QVector(const QVector<Qt3DCore::QNodeId>& v)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#QVector-3">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Constructs a copy of <i>other</i>.</p>
/// <p>This operation takes <a href="http://doc.qt.io/qt-5/containers.html#algorithmic-complexity">constant time</a>, because <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> is <a href="http://doc.qt.io/qt-5/implicit-sharing.html">implicitly shared</a>. This makes returning a <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> from a function very fast. If a shared instance is modified, it will be copied (copy-on-write), and that takes <a href="http://doc.qt.io/qt-5/containers.html#algorithmic-complexity">linear time</a>.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#operator-eq">operator=</a>().</p></div>
#[inline(always)]
pub unsafe fn new_copy(
v: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QVectorOfQNodeId>>,
) -> ::cpp_core::CppBox<crate::QVectorOfQNodeId> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeId_QVector3(
::cpp_core::CastInto::<::cpp_core::Ref<crate::QVectorOfQNodeId>>::cast_into(v)
.as_raw_ptr(),
)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>This function is provided for STL compatibility. It is equivalent to <a href="http://doc.qt.io/qt-5/qvector.html#removeLast">removeLast</a>().</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QNodeId>::pop_back()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#pop_back">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This function is provided for STL compatibility. It is equivalent to <a href="http://doc.qt.io/qt-5/qvector.html#removeLast">removeLast</a>().</p></div>
#[inline(always)]
pub unsafe fn pop_back(&self) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeId_pop_back(
self as *const crate::QVectorOfQNodeId as *mut crate::QVectorOfQNodeId,
)
}
/// <p>This function is provided for STL compatibility. It is equivalent to <a href="http://doc.qt.io/qt-5/qvector.html#removeFirst">removeFirst</a>().</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QNodeId>::pop_front()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#pop_front">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This function is provided for STL compatibility. It is equivalent to <a href="http://doc.qt.io/qt-5/qvector.html#removeFirst">removeFirst</a>().</p></div>
#[inline(always)]
pub unsafe fn pop_front(&self) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeId_pop_front(
self as *const crate::QVectorOfQNodeId as *mut crate::QVectorOfQNodeId,
)
}
/// <p>Inserts <i>value</i> at the beginning of the vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QNodeId>::prepend(const Qt3DCore::QNodeId& t)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#prepend">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Inserts <i>value</i> at the beginning of the vector.</p>
/// <p>Example:</p>
/// <pre class="cpp">
///
/// <span class="type"><a href="http://doc.qt.io/qt-5/qvector.html#QVector">QVector</a></span><span class="operator"><</span><span class="type"><a href="http://doc.qt.io/qt-5/qstring.html">QString</a></span><span class="operator">></span> vector;
/// vector<span class="operator">.</span>prepend(<span class="string">"one"</span>);
/// vector<span class="operator">.</span>prepend(<span class="string">"two"</span>);
/// vector<span class="operator">.</span>prepend(<span class="string">"three"</span>);
/// <span class="comment">// vector: ["three", "two", "one"]</span>
///
/// </pre>
/// <p>This is the same as vector.insert(0, <i>value</i>).</p>
/// <p>For large vectors, this operation can be slow (<a href="http://doc.qt.io/qt-5/containers.html#linear-time">linear time</a>), because it requires moving all the items in the vector by one position further in memory. If you want a container class that provides a fast prepend() function, use <a href="http://doc.qt.io/qt-5/qlist.html">QList</a> or <a href="http://doc.qt.io/qt-5/qlinkedlist.html">QLinkedList</a> instead.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#append">append</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#insert">insert</a>().</p></div>
#[inline(always)]
pub unsafe fn prepend(&self, t: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QNodeId>>) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeId_prepend(
self as *const crate::QVectorOfQNodeId as *mut crate::QVectorOfQNodeId,
::cpp_core::CastInto::<::cpp_core::Ref<crate::QNodeId>>::cast_into(t).as_raw_ptr(),
)
}
/// <p>This function is provided for STL compatibility. It is equivalent to append(<i>value</i>).</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QNodeId>::push_back(const Qt3DCore::QNodeId& t)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#push_back">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This function is provided for STL compatibility. It is equivalent to append(<i>value</i>).</p></div>
#[inline(always)]
pub unsafe fn push_back(&self, t: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QNodeId>>) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeId_push_back(
self as *const crate::QVectorOfQNodeId as *mut crate::QVectorOfQNodeId,
::cpp_core::CastInto::<::cpp_core::Ref<crate::QNodeId>>::cast_into(t).as_raw_ptr(),
)
}
/// <p>This function is provided for STL compatibility. It is equivalent to prepend(<i>value</i>).</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QNodeId>::push_front(const Qt3DCore::QNodeId& t)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#push_front">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This function is provided for STL compatibility. It is equivalent to prepend(<i>value</i>).</p></div>
#[inline(always)]
pub unsafe fn push_front(&self, t: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QNodeId>>) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeId_push_front(
self as *const crate::QVectorOfQNodeId as *mut crate::QVectorOfQNodeId,
::cpp_core::CastInto::<::cpp_core::Ref<crate::QNodeId>>::cast_into(t).as_raw_ptr(),
)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QNodeId>::remove(int i)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#remove">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This is an overloaded function.</p>
/// <p>Removes the element at index position <i>i</i>.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#insert">insert</a>(), <a href="http://doc.qt.io/qt-5/qvector.html#replace">replace</a>(), and <a href="http://doc.qt.io/qt-5/qvector.html#fill">fill</a>().</p></div>
#[inline(always)]
pub unsafe fn remove_1a(&self, i: ::std::os::raw::c_int) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeId_remove(
self as *const crate::QVectorOfQNodeId as *mut crate::QVectorOfQNodeId,
i,
)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QNodeId>::remove(int i, int n)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#remove-1">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This is an overloaded function.</p>
/// <p>Removes <i>count</i> elements from the middle of the vector, starting at index position <i>i</i>.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#insert">insert</a>(), <a href="http://doc.qt.io/qt-5/qvector.html#replace">replace</a>(), and <a href="http://doc.qt.io/qt-5/qvector.html#fill">fill</a>().</p></div>
#[inline(always)]
pub unsafe fn remove_2a(&self, i: ::std::os::raw::c_int, n: ::std::os::raw::c_int) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeId_remove1(
self as *const crate::QVectorOfQNodeId as *mut crate::QVectorOfQNodeId,
i,
n,
)
}
/// <p>Removes all elements that compare equal to <i>t</i> from the vector. Returns the number of elements removed, if any.</p>
///
/// Calls C++ function: <span style='color: green;'>```int QVector<Qt3DCore::QNodeId>::removeAll(const Qt3DCore::QNodeId& t)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#removeAll">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Removes all elements that compare equal to <i>t</i> from the vector. Returns the number of elements removed, if any.</p>
/// <p>Provided for compatibility with <a href="http://doc.qt.io/qt-5/qlist.html">QList</a>.</p>
/// <p>This function was introduced in Qt 5.4.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#removeOne">removeOne</a>() and <a href="http://doc.qt.io/qt-5/qlist.html#removeAll">QList::removeAll</a>().</p></div>
#[inline(always)]
pub unsafe fn remove_all(
&self,
t: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QNodeId>>,
) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeId_removeAll(
self as *const crate::QVectorOfQNodeId as *mut crate::QVectorOfQNodeId,
::cpp_core::CastInto::<::cpp_core::Ref<crate::QNodeId>>::cast_into(t).as_raw_ptr(),
)
}
/// <p>Removes the element at index position <i>i</i>. Equivalent to</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QNodeId>::removeAt(int i)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#removeAt">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Removes the element at index position <i>i</i>. Equivalent to</p>
/// <pre class="cpp">
///
/// remove(i);
///
/// </pre>
/// <p>Provided for compatibility with <a href="http://doc.qt.io/qt-5/qlist.html">QList</a>.</p>
/// <p>This function was introduced in Qt 5.2.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#remove">remove</a>() and <a href="http://doc.qt.io/qt-5/qlist.html#removeAt">QList::removeAt</a>().</p></div>
#[inline(always)]
pub unsafe fn remove_at(&self, i: ::std::os::raw::c_int) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeId_removeAt(
self as *const crate::QVectorOfQNodeId as *mut crate::QVectorOfQNodeId,
i,
)
}
/// <p>Removes the first item in the vector. Calling this function is equivalent to calling remove(0). The vector must not be empty. If the vector can be empty, call <a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>() before calling this function.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QNodeId>::removeFirst()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#removeFirst">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Removes the first item in the vector. Calling this function is equivalent to calling remove(0). The vector must not be empty. If the vector can be empty, call <a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>() before calling this function.</p>
/// <p>This function was introduced in Qt 5.1.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#remove">remove</a>(), <a href="http://doc.qt.io/qt-5/qvector.html#takeFirst">takeFirst</a>(), and <a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>().</p></div>
#[inline(always)]
pub unsafe fn remove_first(&self) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeId_removeFirst(
self as *const crate::QVectorOfQNodeId as *mut crate::QVectorOfQNodeId,
)
}
/// <p>Removes the last item in the vector. Calling this function is equivalent to calling remove(<a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>() - 1). The vector must not be empty. If the vector can be empty, call <a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>() before calling this function.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QNodeId>::removeLast()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#removeLast">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Removes the last item in the vector. Calling this function is equivalent to calling remove(<a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>() - 1). The vector must not be empty. If the vector can be empty, call <a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>() before calling this function.</p>
/// <p>This function was introduced in Qt 5.1.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#remove">remove</a>(), <a href="http://doc.qt.io/qt-5/qvector.html#takeLast">takeLast</a>(), <a href="http://doc.qt.io/qt-5/qvector.html#removeFirst">removeFirst</a>(), and <a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>().</p></div>
#[inline(always)]
pub unsafe fn remove_last(&self) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeId_removeLast(
self as *const crate::QVectorOfQNodeId as *mut crate::QVectorOfQNodeId,
)
}
/// <p>Removes the first element that compares equal to <i>t</i> from the vector. Returns whether an element was, in fact, removed.</p>
///
/// Calls C++ function: <span style='color: green;'>```bool QVector<Qt3DCore::QNodeId>::removeOne(const Qt3DCore::QNodeId& t)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#removeOne">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Removes the first element that compares equal to <i>t</i> from the vector. Returns whether an element was, in fact, removed.</p>
/// <p>Provided for compatibility with <a href="http://doc.qt.io/qt-5/qlist.html">QList</a>.</p>
/// <p>This function was introduced in Qt 5.4.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#removeAll">removeAll</a>() and <a href="http://doc.qt.io/qt-5/qlist.html#removeOne">QList::removeOne</a>().</p></div>
#[inline(always)]
pub unsafe fn remove_one(
&self,
t: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QNodeId>>,
) -> bool {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeId_removeOne(
self as *const crate::QVectorOfQNodeId as *mut crate::QVectorOfQNodeId,
::cpp_core::CastInto::<::cpp_core::Ref<crate::QNodeId>>::cast_into(t).as_raw_ptr(),
)
}
/// <p>Replaces the item at index position <i>i</i> with <i>value</i>.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QNodeId>::replace(int i, const Qt3DCore::QNodeId& t)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#replace">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Replaces the item at index position <i>i</i> with <i>value</i>.</p>
/// <p><i>i</i> must be a valid index position in the vector (i.e., 0 <= <i>i</i> < <a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>()).</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#operator-5b-5d">operator[]</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#remove">remove</a>().</p></div>
#[inline(always)]
pub unsafe fn replace(
&self,
i: ::std::os::raw::c_int,
t: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QNodeId>>,
) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeId_replace(
self as *const crate::QVectorOfQNodeId as *mut crate::QVectorOfQNodeId,
i,
::cpp_core::CastInto::<::cpp_core::Ref<crate::QNodeId>>::cast_into(t).as_raw_ptr(),
)
}
/// <p>Attempts to allocate memory for at least <i>size</i> elements. If you know in advance how large the vector will be, you should call this function to prevent reallocations and memory fragmentation.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QNodeId>::reserve(int size)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#reserve">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Attempts to allocate memory for at least <i>size</i> elements. If you know in advance how large the vector will be, you should call this function to prevent reallocations and memory fragmentation.</p>
/// <p>If <i>size</i> is an underestimate, the worst that will happen is that the <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> will be a bit slower. If <i>size</i> is an overestimate, you may have used more memory than the normal <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> growth strategy would have allocated—or you may have used less.</p>
/// <p>An alternative to reserve() is calling <a href="http://doc.qt.io/qt-5/qvector.html#resize">resize</a>(). Whether or not that is faster than reserve() depends on the element type, because <a href="http://doc.qt.io/qt-5/qvector.html#resize">resize</a>() default-constructs all elements, and requires assignment to existing entries rather than calling <a href="http://doc.qt.io/qt-5/qvector.html#append">append</a>(), which copy- or move-constructs. For simple types, like <code>int</code> or <code>double</code>, <a href="http://doc.qt.io/qt-5/qvector.html#resize">resize</a>() is typically faster, but for anything more complex, you should prefer reserve().</p>
/// <p><b>Warning:</b> If the size passed to <a href="http://doc.qt.io/qt-5/qvector.html#resize">resize</a>() was underestimated, you run out of allocated space and into undefined behavior. This problem does not exist with reserve(), because it treats the size as just a hint.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#squeeze">squeeze</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#capacity">capacity</a>().</p></div>
#[inline(always)]
pub unsafe fn reserve(&self, size: ::std::os::raw::c_int) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeId_reserve(
self as *const crate::QVectorOfQNodeId as *mut crate::QVectorOfQNodeId,
size,
)
}
/// <p>Sets the size of the vector to <i>size</i>. If <i>size</i> is greater than the current size, elements are added to the end; the new elements are initialized with a <a href="http://doc.qt.io/qt-5/containers.html#default-constructed-value">default-constructed value</a>. If <i>size</i> is less than the current size, elements are removed from the end.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QNodeId>::resize(int size)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#resize">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Sets the size of the vector to <i>size</i>. If <i>size</i> is greater than the current size, elements are added to the end; the new elements are initialized with a <a href="http://doc.qt.io/qt-5/containers.html#default-constructed-value">default-constructed value</a>. If <i>size</i> is less than the current size, elements are removed from the end.</p>
/// <p>Since Qt 5.6, resize() doesn't shrink the capacity anymore. To shed excess capacity, use <a href="http://doc.qt.io/qt-5/qvector.html#squeeze">squeeze</a>().</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>().</p></div>
#[inline(always)]
pub unsafe fn resize(&self, size: ::std::os::raw::c_int) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeId_resize(
self as *const crate::QVectorOfQNodeId as *mut crate::QVectorOfQNodeId,
size,
)
}
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QNodeId>::setSharable(bool sharable)```</span>.
#[inline(always)]
pub unsafe fn set_sharable(&self, sharable: bool) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeId_setSharable(
self as *const crate::QVectorOfQNodeId as *mut crate::QVectorOfQNodeId,
sharable,
)
}
/// <p>This function is provided for STL compatibility. It is equivalent to <a href="http://doc.qt.io/qt-5/qvector.html#squeeze">squeeze</a>().</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QNodeId>::shrink_to_fit()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#shrink_to_fit">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This function is provided for STL compatibility. It is equivalent to <a href="http://doc.qt.io/qt-5/qvector.html#squeeze">squeeze</a>().</p>
/// <p>This function was introduced in Qt 5.10.</p></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn shrink_to_fit(&self) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeId_shrink_to_fit(
self as *const crate::QVectorOfQNodeId as *mut crate::QVectorOfQNodeId,
)
}
/// <p>Returns the number of items in the vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```int QVector<Qt3DCore::QNodeId>::size() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#size">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the number of items in the vector.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#resize">resize</a>().</p></div>
#[inline(always)]
pub unsafe fn size(&self) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeId_size(
self as *const crate::QVectorOfQNodeId,
)
}
/// <p>Releases any memory not required to store the items.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QNodeId>::squeeze()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#squeeze">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Releases any memory not required to store the items.</p>
/// <p>The sole purpose of this function is to provide a means of fine tuning <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a>'s memory usage. In general, you will rarely ever need to call this function.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#reserve">reserve</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#capacity">capacity</a>().</p></div>
#[inline(always)]
pub unsafe fn squeeze(&self) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeId_squeeze(
self as *const crate::QVectorOfQNodeId as *mut crate::QVectorOfQNodeId,
)
}
/// <p>Returns <code>true</code> if this vector is not empty and its first item is equal to <i>value</i>; otherwise returns <code>false</code>.</p>
///
/// Calls C++ function: <span style='color: green;'>```bool QVector<Qt3DCore::QNodeId>::startsWith(const Qt3DCore::QNodeId& t) const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#startsWith">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns <code>true</code> if this vector is not empty and its first item is equal to <i>value</i>; otherwise returns <code>false</code>.</p>
/// <p>This function was introduced in Qt 4.5.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#first">first</a>().</p></div>
#[inline(always)]
pub unsafe fn starts_with(
&self,
t: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QNodeId>>,
) -> bool {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeId_startsWith(
self as *const crate::QVectorOfQNodeId,
::cpp_core::CastInto::<::cpp_core::Ref<crate::QNodeId>>::cast_into(t).as_raw_ptr(),
)
}
/// <p>Swaps vector <i>other</i> with this vector. This operation is very fast and never fails.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QNodeId>::swap(QVector<Qt3DCore::QNodeId>& other)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#swap">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Swaps vector <i>other</i> with this vector. This operation is very fast and never fails.</p>
/// <p>This function was introduced in Qt 4.8.</p></div>
#[inline(always)]
pub unsafe fn swap(
&self,
other: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QVectorOfQNodeId>>,
) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeId_swap(
self as *const crate::QVectorOfQNodeId as *mut crate::QVectorOfQNodeId,
::cpp_core::CastInto::<::cpp_core::Ref<crate::QVectorOfQNodeId>>::cast_into(other)
.as_raw_ptr() as *mut crate::QVectorOfQNodeId,
)
}
/// <p>Exchange the item at index position <i>i</i> with the item at index position <i>j</i>. This function assumes that both <i>i</i> and <i>j</i> are at least 0 but less than <a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>(). To avoid failure, test that both <i>i</i> and <i>j</i> are at least 0 and less than <a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>().</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QNodeId>::swapItemsAt(int i, int j)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#swapItemsAt">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Exchange the item at index position <i>i</i> with the item at index position <i>j</i>. This function assumes that both <i>i</i> and <i>j</i> are at least 0 but less than <a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>(). To avoid failure, test that both <i>i</i> and <i>j</i> are at least 0 and less than <a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>().</p>
/// <p>This function was introduced in Qt 5.14.</p></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(cpp_lib_version = "5.14.0"))
)]
#[cfg(any(cpp_lib_version = "5.14.0", feature = "ritual_rustdoc"))]
pub unsafe fn swap_items_at(&self, i: ::std::os::raw::c_int, j: ::std::os::raw::c_int) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeId_swapItemsAt(
self as *const crate::QVectorOfQNodeId as *mut crate::QVectorOfQNodeId,
i,
j,
)
}
/// <p>Removes the element at index position <i>i</i> and returns it.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNodeId QVector<Qt3DCore::QNodeId>::takeAt(int i)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#takeAt">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Removes the element at index position <i>i</i> and returns it.</p>
/// <p>Equivalent to</p>
/// <pre class="cpp">
///
/// T t <span class="operator">=</span> at(i);
/// remove(i);
/// <span class="keyword">return</span> t;
///
/// </pre>
/// <p>Provided for compatibility with <a href="http://doc.qt.io/qt-5/qlist.html">QList</a>.</p>
/// <p>This function was introduced in Qt 5.2.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#takeFirst">takeFirst</a>(), <a href="http://doc.qt.io/qt-5/qvector.html#takeLast">takeLast</a>(), and <a href="http://doc.qt.io/qt-5/qlist.html#takeAt">QList::takeAt</a>().</p></div>
#[inline(always)]
pub unsafe fn take_at(&self, i: ::std::os::raw::c_int) -> ::cpp_core::CppBox<crate::QNodeId> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeId_takeAt(
self as *const crate::QVectorOfQNodeId as *mut crate::QVectorOfQNodeId,
i,
)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Removes the first item in the vector and returns it. This function assumes the vector is not empty. To avoid failure, call <a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>() before calling this function.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNodeId QVector<Qt3DCore::QNodeId>::takeFirst()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#takeFirst">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Removes the first item in the vector and returns it. This function assumes the vector is not empty. To avoid failure, call <a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>() before calling this function.</p>
/// <p>This function was introduced in Qt 5.1.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#takeLast">takeLast</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#removeFirst">removeFirst</a>().</p></div>
#[inline(always)]
pub unsafe fn take_first(&self) -> ::cpp_core::CppBox<crate::QNodeId> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeId_takeFirst(
self as *const crate::QVectorOfQNodeId as *mut crate::QVectorOfQNodeId,
)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Removes the last item in the list and returns it. This function assumes the vector is not empty. To avoid failure, call <a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>() before calling this function.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNodeId QVector<Qt3DCore::QNodeId>::takeLast()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#takeLast">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Removes the last item in the list and returns it. This function assumes the vector is not empty. To avoid failure, call <a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>() before calling this function.</p>
/// <p>If you don't use the return value, <a href="http://doc.qt.io/qt-5/qvector.html#removeLast">removeLast</a>() is more efficient.</p>
/// <p>This function was introduced in Qt 5.1.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#takeFirst">takeFirst</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#removeLast">removeLast</a>().</p></div>
#[inline(always)]
pub unsafe fn take_last(&self) -> ::cpp_core::CppBox<crate::QNodeId> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeId_takeLast(
self as *const crate::QVectorOfQNodeId as *mut crate::QVectorOfQNodeId,
)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Returns the value at index position <i>i</i> in the vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNodeId QVector<Qt3DCore::QNodeId>::value(int i) const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#value">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the value at index position <i>i</i> in the vector.</p>
/// <p>If the index <i>i</i> is out of bounds, the function returns a <a href="http://doc.qt.io/qt-5/containers.html#default-constructed-value">default-constructed value</a>. If you are certain that <i>i</i> is within bounds, you can use <a href="http://doc.qt.io/qt-5/qvector.html#at">at</a>() instead, which is slightly faster.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#at">at</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#operator-5b-5d">operator[]</a>().</p></div>
#[inline(always)]
pub unsafe fn value_1a(&self, i: ::std::os::raw::c_int) -> ::cpp_core::CppBox<crate::QNodeId> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeId_value(
self as *const crate::QVectorOfQNodeId,
i,
)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNodeId QVector<Qt3DCore::QNodeId>::value(int i, const Qt3DCore::QNodeId& defaultValue) const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#value-1">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This is an overloaded function.</p>
/// <p>If the index <i>i</i> is out of bounds, the function returns <i>defaultValue</i>.</p></div>
#[inline(always)]
pub unsafe fn value_2a(
&self,
i: ::std::os::raw::c_int,
default_value: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QNodeId>>,
) -> ::cpp_core::CppBox<crate::QNodeId> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeId_value1(
self as *const crate::QVectorOfQNodeId,
i,
::cpp_core::CastInto::<::cpp_core::Ref<crate::QNodeId>>::cast_into(default_value)
.as_raw_ptr(),
)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
}
/// <p>The <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> class is a template class that provides a dynamic array.</p>
///
/// C++ class: <span style='color: green;'>```QVector<Qt3DCore::QEntity*>```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>The <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> class is a template class that provides a dynamic array.</p>
/// <p><a href="http://doc.qt.io/qt-5/qvector.html">QVector</a><T> is one of Qt's generic <a href="http://doc.qt.io/qt-5/containers.html">container classes</a>. It stores its items in adjacent memory locations and provides fast index-based access.</p>
/// <p><a href="http://doc.qt.io/qt-5/qlist.html">QList</a><T>, <a href="http://doc.qt.io/qt-5/qlinkedlist.html">QLinkedList</a><T>, <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a><T>, and <a href="http://doc.qt.io/qt-5/qvarlengtharray.html">QVarLengthArray</a><T> provide similar APIs and functionality. They are often interchangeable, but there are performance consequences. Here is an overview of use cases:</p>
/// <ul>
/// <li><a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> should be your default first choice. <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a><T> will usually give better performance than <a href="http://doc.qt.io/qt-5/qlist.html">QList</a><T>, because <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a><T> always stores its items sequentially in memory, where <a href="http://doc.qt.io/qt-5/qlist.html">QList</a><T> will allocate its items on the heap unless <code>sizeof(T) <= sizeof(void*)</code> and T has been declared to be either a <code>Q_MOVABLE_TYPE</code> or a <code>Q_PRIMITIVE_TYPE</code> using <a href="http://doc.qt.io/qt-5/qtglobal.html#Q_DECLARE_TYPEINFO">Q_DECLARE_TYPEINFO</a>. See the <a href="http://marcmutz.wordpress.com/effective-qt/containers/#containers-qlist">Pros and Cons of Using QList</a> for an explanation.</li>
/// <li>However, <a href="http://doc.qt.io/qt-5/qlist.html">QList</a> is used throughout the Qt APIs for passing parameters and for returning values. Use <a href="http://doc.qt.io/qt-5/qlist.html">QList</a> to interface with those APIs.</li>
/// <li>If you need a real linked list, which guarantees <a href="http://doc.qt.io/qt-5/containers.html#algorithmic-complexity">constant time</a> insertions mid-list and uses iterators to items rather than indexes, use <a href="http://doc.qt.io/qt-5/qlinkedlist.html">QLinkedList</a>.</li>
/// </ul>
/// <p><b>Note: </b><a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> and <a href="http://doc.qt.io/qt-5/qvarlengtharray.html">QVarLengthArray</a> both guarantee C-compatible array layout. <a href="http://doc.qt.io/qt-5/qlist.html">QList</a> does not. This might be important if your application must interface with a C API.</p><p><b>Note: </b>Iterators into a <a href="http://doc.qt.io/qt-5/qlinkedlist.html">QLinkedList</a> and references into heap-allocating QLists remain valid as long as the referenced items remain in the container. This is not true for iterators and references into a <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> and non-heap-allocating QLists.</p><p>Here's an example of a <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> that stores integers and a <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> that stores <a href="http://doc.qt.io/qt-5/qstring.html">QString</a> values:</p>
/// <pre class="cpp">
///
/// <span class="type"><a href="http://doc.qt.io/qt-5/qvector.html#QVector">QVector</a></span><span class="operator"><</span><span class="type">int</span><span class="operator">></span> integerVector;
/// <span class="type"><a href="http://doc.qt.io/qt-5/qvector.html#QVector">QVector</a></span><span class="operator"><</span><span class="type"><a href="http://doc.qt.io/qt-5/qstring.html">QString</a></span><span class="operator">></span> stringVector;
///
/// </pre>
/// <p><a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> stores its items in a vector (array). Typically, vectors are created with an initial size. For example, the following code constructs a <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> with 200 elements:</p>
/// <pre class="cpp">
///
/// <span class="type"><a href="http://doc.qt.io/qt-5/qvector.html#QVector">QVector</a></span><span class="operator"><</span><span class="type"><a href="http://doc.qt.io/qt-5/qstring.html">QString</a></span><span class="operator">></span> vector(<span class="number">200</span>);
///
/// </pre>
/// <p>The elements are automatically initialized with a <a href="http://doc.qt.io/qt-5/containers.html#default-constructed-value">default-constructed value</a>. If you want to initialize the vector with a different value, pass that value as the second argument to the constructor:</p>
/// <pre class="cpp">
///
/// <span class="type"><a href="http://doc.qt.io/qt-5/qvector.html#QVector">QVector</a></span><span class="operator"><</span><span class="type"><a href="http://doc.qt.io/qt-5/qstring.html">QString</a></span><span class="operator">></span> vector(<span class="number">200</span><span class="operator">,</span> <span class="string">"Pass"</span>);
///
/// </pre>
/// <p>You can also call <a href="http://doc.qt.io/qt-5/qvector.html#fill">fill</a>() at any time to fill the vector with a value.</p>
/// <p><a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> uses 0-based indexes, just like C++ arrays. To access the item at a particular index position, you can use operator[](). On non-const vectors, operator[]() returns a reference to the item that can be used on the left side of an assignment:</p>
/// <pre class="cpp">
///
/// <span class="keyword">if</span> (vector<span class="operator">[</span><span class="number">0</span><span class="operator">]</span> <span class="operator">=</span><span class="operator">=</span> <span class="string">"Liz"</span>)
///   vector<span class="operator">[</span><span class="number">0</span><span class="operator">]</span> <span class="operator">=</span> <span class="string">"Elizabeth"</span>;
///
/// </pre>
/// <p>For read-only access, an alternative syntax is to use <a href="http://doc.qt.io/qt-5/qvector.html#at">at</a>():</p>
/// <pre class="cpp">
///
/// <span class="keyword">for</span> (<span class="type">int</span> i <span class="operator">=</span> <span class="number">0</span>; i <span class="operator"><</span> vector<span class="operator">.</span>size(); <span class="operator">+</span><span class="operator">+</span>i) {
///   <span class="keyword">if</span> (vector<span class="operator">.</span>at(i) <span class="operator">=</span><span class="operator">=</span> <span class="string">"Alfonso"</span>)
///     cout <span class="operator"><</span><span class="operator"><</span> <span class="string">"Found Alfonso at position "</span> <span class="operator"><</span><span class="operator"><</span> i <span class="operator"><</span><span class="operator"><</span> endl;
/// }
///
/// </pre>
/// <p><a href="http://doc.qt.io/qt-5/qvector.html#at">at</a>() can be faster than operator[](), because it never causes a <a href="http://doc.qt.io/qt-5/implicit-sharing.html#deep-copy">deep copy</a> to occur.</p>
/// <p>Another way to access the data stored in a <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> is to call <a href="http://doc.qt.io/qt-5/qvector.html#data">data</a>(). The function returns a pointer to the first item in the vector. You can use the pointer to directly access and modify the elements stored in the vector. The pointer is also useful if you need to pass a <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> to a function that accepts a plain C++ array.</p>
/// <p>If you want to find all occurrences of a particular value in a vector, use <a href="http://doc.qt.io/qt-5/qvector.html#indexOf">indexOf</a>() or <a href="http://doc.qt.io/qt-5/qvector.html#lastIndexOf">lastIndexOf</a>(). The former searches forward starting from a given index position, the latter searches backward. Both return the index of the matching item if they found one; otherwise, they return -1. For example:</p>
/// <pre class="cpp">
///
/// <span class="type">int</span> i <span class="operator">=</span> vector<span class="operator">.</span>indexOf(<span class="string">"Harumi"</span>);
/// <span class="keyword">if</span> (i <span class="operator">!</span><span class="operator">=</span> <span class="operator">-</span><span class="number">1</span>)
///   cout <span class="operator"><</span><span class="operator"><</span> <span class="string">"First occurrence of Harumi is at position "</span> <span class="operator"><</span><span class="operator"><</span> i <span class="operator"><</span><span class="operator"><</span> endl;
///
/// </pre>
/// <p>If you simply want to check whether a vector contains a particular value, use <a href="http://doc.qt.io/qt-5/qvector.html#contains">contains</a>(). If you want to find out how many times a particular value occurs in the vector, use <a href="http://doc.qt.io/qt-5/qvector.html#count-1">count</a>().</p>
/// <p><a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> provides these basic functions to add, move, and remove items: <a href="http://doc.qt.io/qt-5/qvector.html#insert">insert</a>(), <a href="http://doc.qt.io/qt-5/qvector.html#replace">replace</a>(), <a href="http://doc.qt.io/qt-5/qvector.html#remove">remove</a>(), <a href="http://doc.qt.io/qt-5/qvector.html#prepend">prepend</a>(), <a href="http://doc.qt.io/qt-5/qvector.html#append">append</a>(). With the exception of <a href="http://doc.qt.io/qt-5/qvector.html#append">append</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#replace">replace</a>(), these functions can be slow (<a href="http://doc.qt.io/qt-5/containers.html#linear-time">linear time</a>) for large vectors, because they require moving many items in the vector by one position in memory. If you want a container class that provides fast insertion/removal in the middle, use <a href="http://doc.qt.io/qt-5/qlist.html">QList</a> or <a href="http://doc.qt.io/qt-5/qlinkedlist.html">QLinkedList</a> instead.</p>
/// <p>Unlike plain C++ arrays, QVectors can be resized at any time by calling <a href="http://doc.qt.io/qt-5/qvector.html#resize">resize</a>(). If the new size is larger than the old size, <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> might need to reallocate the whole vector. <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> tries to reduce the number of reallocations by preallocating up to twice as much memory as the actual data needs.</p>
/// <p>If you know in advance approximately how many items the <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> will contain, you can call <a href="http://doc.qt.io/qt-5/qvector.html#reserve">reserve</a>(), asking <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> to preallocate a certain amount of memory. You can also call <a href="http://doc.qt.io/qt-5/qvector.html#capacity">capacity</a>() to find out how much memory <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> actually allocated.</p>
/// <p>Note that using non-const operators and functions can cause <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> to do a deep copy of the data. This is due to <a href="http://doc.qt.io/qt-5/implicit-sharing.html">implicit sharing</a>.</p>
/// <p><a href="http://doc.qt.io/qt-5/qvector.html">QVector</a>'s value type must be an <a href="http://doc.qt.io/qt-5/containers.html#assignable-data-type">assignable data type</a>. This covers most data types that are commonly used, but the compiler won't let you, for example, store a <a href="http://doc.qt.io/qt-5/qwidget.html">QWidget</a> as a value; instead, store a <a href="http://doc.qt.io/qt-5/qwidget.html">QWidget</a> *. A few functions have additional requirements; for example, <a href="http://doc.qt.io/qt-5/qvector.html#indexOf">indexOf</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#lastIndexOf">lastIndexOf</a>() expect the value type to support <code>operator==()</code>. These requirements are documented on a per-function basis.</p>
/// <p>Like the other container classes, <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> provides <a href="http://doc.qt.io/qt-5/containers.html#java-style-iterators">Java-style iterators</a> (<a href="http://doc.qt.io/qt-5/qvectoriterator.html">QVectorIterator</a> and <a href="http://doc.qt.io/qt-5/qmutablevectoriterator.html">QMutableVectorIterator</a>) and <a href="http://doc.qt.io/qt-5/containers.html#stl-style-iterators">STL-style iterators</a> (<a href="http://doc.qt.io/qt-5/qvector.html#const_iterator-typedef">QVector::const_iterator</a> and <a href="http://doc.qt.io/qt-5/qvector.html#iterator-typedefx">QVector::iterator</a>). In practice, these are rarely used, because you can use indexes into the <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a>.</p>
/// <p>In addition to <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a>, Qt also provides <a href="http://doc.qt.io/qt-5/qvarlengtharray.html">QVarLengthArray</a>, a very low-level class with little functionality that is optimized for speed.</p>
/// <p><a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> does <i>not</i> support inserting, prepending, appending or replacing with references to its own values. Doing so will cause your application to abort with an error message.</p>
/// <a name="more-information-on-using-qt-containers"></a>
/// <h4>More Information on Using Qt Containers</h4>
/// <p>For a detailed discussion comparing Qt containers with each other and with STL containers, see <a href="http://marcmutz.wordpress.com/effective-qt/containers/">Understand the Qt Containers</a>.</p></div>
#[repr(C)]
pub struct QVectorOfQEntity {
_unused: u8,
}
impl QVectorOfQEntity {
/// <p>Appends the items of the <i>other</i> vector to this vector and returns a reference to this vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```QVector<Qt3DCore::QEntity*>& QVector<Qt3DCore::QEntity*>::operator+=(const QVector<Qt3DCore::QEntity*>& l)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#operator-2b-eq">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Appends the items of the <i>other</i> vector to this vector and returns a reference to this vector.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#operator-2b">operator+</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#append">append</a>().</p></div>
#[inline(always)]
pub unsafe fn add_assign_q_vector_of_q_entity(
&self,
l: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QVectorOfQEntity>>,
) -> ::cpp_core::Ref<crate::QVectorOfQEntity> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QEntity_ptr_operator__4(
self as *const crate::QVectorOfQEntity as *mut crate::QVectorOfQEntity,
::cpp_core::CastInto::<::cpp_core::Ref<crate::QVectorOfQEntity>>::cast_into(l)
.as_raw_ptr(),
)
};
::cpp_core::Ref::from_raw(ffi_result).expect("attempted to construct a null Ref")
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```QVector<Qt3DCore::QEntity*>& QVector<Qt3DCore::QEntity*>::operator+=(const Qt3DCore::QEntity*& t)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#operator-2b-eq-1">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This is an overloaded function.</p>
/// <p>Appends <i>value</i> to the vector.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#append">append</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#operator-lt-lt">operator<<</a>().</p></div>
#[inline(always)]
pub unsafe fn add_assign_q_entity(
&self,
t: *const *mut crate::QEntity,
) -> ::cpp_core::Ref<crate::QVectorOfQEntity> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QEntity_ptr_operator__5(
self as *const crate::QVectorOfQEntity as *mut crate::QVectorOfQEntity,
t,
)
};
::cpp_core::Ref::from_raw(ffi_result).expect("attempted to construct a null Ref")
}
/// <p>Inserts <i>value</i> at the end of the vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QEntity*>::append(const Qt3DCore::QEntity*& t)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#append">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Inserts <i>value</i> at the end of the vector.</p>
/// <p>Example:</p>
/// <pre class="cpp">
///
/// <span class="type"><a href="http://doc.qt.io/qt-5/qvector.html#QVector">QVector</a></span><span class="operator"><</span><span class="type"><a href="http://doc.qt.io/qt-5/qstring.html">QString</a></span><span class="operator">></span> vector;
/// vector<span class="operator">.</span>append(<span class="string">"one"</span>);
/// vector<span class="operator">.</span>append(<span class="string">"two"</span>);
/// <span class="type"><a href="http://doc.qt.io/qt-5/qstring.html">QString</a></span> three <span class="operator">=</span> <span class="string">"three"</span>;
/// vector<span class="operator">.</span>append(three);
/// <span class="comment">// vector: ["one", "two", "three"]</span>
/// <span class="comment">// three: "three"</span>
///
/// </pre>
/// <p>This is the same as calling resize(<a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>() + 1) and assigning <i>value</i> to the new last element in the vector.</p>
/// <p>This operation is relatively fast, because <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> typically allocates more memory than necessary, so it can grow without reallocating the entire vector each time.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#operator-lt-lt">operator<<</a>(), <a href="http://doc.qt.io/qt-5/qvector.html#prepend">prepend</a>(), and <a href="http://doc.qt.io/qt-5/qvector.html#insert">insert</a>().</p></div>
#[inline(always)]
pub unsafe fn append_q_entity(&self, t: *const *mut crate::QEntity) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QEntity_ptr_append(
self as *const crate::QVectorOfQEntity as *mut crate::QVectorOfQEntity,
t,
)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QEntity*>::append(const QVector<Qt3DCore::QEntity*>& l)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#append-2">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This is an overloaded function.</p>
/// <p>Appends the items of the <i>value</i> vector to this vector.</p>
/// <p>This function was introduced in Qt 5.5.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#operator-lt-lt">operator<<</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#operator-2b-eq">operator+=</a>().</p></div>
#[inline(always)]
pub unsafe fn append_q_vector_of_q_entity(
&self,
l: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QVectorOfQEntity>>,
) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QEntity_ptr_append2(
self as *const crate::QVectorOfQEntity as *mut crate::QVectorOfQEntity,
::cpp_core::CastInto::<::cpp_core::Ref<crate::QVectorOfQEntity>>::cast_into(l)
.as_raw_ptr(),
)
}
/// <p>Returns the item at index position <i>i</i> in the vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```const Qt3DCore::QEntity*& QVector<Qt3DCore::QEntity*>::at(int i) const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#at">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the item at index position <i>i</i> in the vector.</p>
/// <p><i>i</i> must be a valid index position in the vector (i.e., 0 <= <i>i</i> < <a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>()).</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#value">value</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#operator-5b-5d">operator[]</a>().</p></div>
#[inline(always)]
pub unsafe fn at(&self, i: ::std::os::raw::c_int) -> *const *mut crate::QEntity {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QEntity_ptr_at(
self as *const crate::QVectorOfQEntity,
i,
)
}
/// <p>This function is provided for STL compatibility. It is equivalent to <a href="http://doc.qt.io/qt-5/qvector.html#last">last</a>().</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QEntity*& QVector<Qt3DCore::QEntity*>::back()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#back">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This function is provided for STL compatibility. It is equivalent to <a href="http://doc.qt.io/qt-5/qvector.html#last">last</a>().</p></div>
#[inline(always)]
pub unsafe fn back_mut(&self) -> *mut *mut crate::QEntity {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QEntity_ptr_back(
self as *const crate::QVectorOfQEntity as *mut crate::QVectorOfQEntity,
)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```const Qt3DCore::QEntity*& QVector<Qt3DCore::QEntity*>::back() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#back-1">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This is an overloaded function.</p></div>
#[inline(always)]
pub unsafe fn back(&self) -> *const *mut crate::QEntity {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QEntity_ptr_back1(
self as *const crate::QVectorOfQEntity,
)
}
/// <p>Returns the maximum number of items that can be stored in the vector without forcing a reallocation.</p>
///
/// Calls C++ function: <span style='color: green;'>```int QVector<Qt3DCore::QEntity*>::capacity() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#capacity">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the maximum number of items that can be stored in the vector without forcing a reallocation.</p>
/// <p>The sole purpose of this function is to provide a means of fine tuning <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a>'s memory usage. In general, you will rarely ever need to call this function. If you want to know how many items are in the vector, call <a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>().</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#reserve">reserve</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#squeeze">squeeze</a>().</p></div>
#[inline(always)]
pub unsafe fn capacity(&self) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QEntity_ptr_capacity(
self as *const crate::QVectorOfQEntity,
)
}
/// <p>Removes all the elements from the vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QEntity*>::clear()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#clear">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Removes all the elements from the vector.</p>
/// <p><b>Note: </b>Until Qt 5.6, this also released the memory used by the vector. From Qt 5.7, the capacity is preserved. To shed all capacity, swap with a default-constructed vector:</p><pre class="cpp">
///
/// <span class="type"><a href="http://doc.qt.io/qt-5/qvector.html#QVector">QVector</a></span><span class="operator"><</span>T<span class="operator">></span> v <span class="operator">.</span><span class="operator">.</span><span class="operator">.</span>;
/// <span class="type"><a href="http://doc.qt.io/qt-5/qvector.html#QVector">QVector</a></span><span class="operator"><</span>T<span class="operator">></span>()<span class="operator">.</span>swap(v);
/// Q_ASSERT(v<span class="operator">.</span>capacity() <span class="operator">=</span><span class="operator">=</span> <span class="number">0</span>);
///
/// </pre>
/// <p>or call <a href="http://doc.qt.io/qt-5/qvector.html#squeeze">squeeze</a>().</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#squeeze">squeeze</a>().</p></div>
#[inline(always)]
pub unsafe fn clear(&self) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QEntity_ptr_clear(
self as *const crate::QVectorOfQEntity as *mut crate::QVectorOfQEntity,
)
}
/// <p>Returns a const pointer to the data stored in the vector. The pointer can be used to access the items in the vector. The pointer remains valid as long as the vector isn't reallocated.</p>
///
/// Calls C++ function: <span style='color: green;'>```const Qt3DCore::QEntity** QVector<Qt3DCore::QEntity*>::constData() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#constData">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns a const pointer to the data stored in the vector. The pointer can be used to access the items in the vector. The pointer remains valid as long as the vector isn't reallocated.</p>
/// <p>This function is mostly useful to pass a vector to a function that accepts a plain C++ array.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#data">data</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#operator-5b-5d">operator[]</a>().</p></div>
#[inline(always)]
pub unsafe fn const_data(&self) -> *const *mut crate::QEntity {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QEntity_ptr_constData(
self as *const crate::QVectorOfQEntity,
)
}
/// <p>Returns a const reference to the first item in the vector. This function assumes that the vector isn't empty.</p>
///
/// Calls C++ function: <span style='color: green;'>```const Qt3DCore::QEntity*& QVector<Qt3DCore::QEntity*>::constFirst() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#constFirst">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns a const reference to the first item in the vector. This function assumes that the vector isn't empty.</p>
/// <p>This function was introduced in Qt 5.6.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#constLast">constLast</a>(), <a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>(), and <a href="http://doc.qt.io/qt-5/qvector.html#first">first</a>().</p></div>
#[inline(always)]
pub unsafe fn const_first(&self) -> *const *mut crate::QEntity {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QEntity_ptr_constFirst(
self as *const crate::QVectorOfQEntity,
)
}
/// <p>Returns a const reference to the last item in the vector. This function assumes that the vector isn't empty.</p>
///
/// Calls C++ function: <span style='color: green;'>```const Qt3DCore::QEntity*& QVector<Qt3DCore::QEntity*>::constLast() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#constLast">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns a const reference to the last item in the vector. This function assumes that the vector isn't empty.</p>
/// <p>This function was introduced in Qt 5.6.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#constFirst">constFirst</a>(), <a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>(), and <a href="http://doc.qt.io/qt-5/qvector.html#last">last</a>().</p></div>
#[inline(always)]
pub unsafe fn const_last(&self) -> *const *mut crate::QEntity {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QEntity_ptr_constLast(
self as *const crate::QVectorOfQEntity,
)
}
/// <p>Returns <code>true</code> if the vector contains an occurrence of <i>value</i>; otherwise returns <code>false</code>.</p>
///
/// Calls C++ function: <span style='color: green;'>```bool QVector<Qt3DCore::QEntity*>::contains(const Qt3DCore::QEntity*& t) const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#contains">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns <code>true</code> if the vector contains an occurrence of <i>value</i>; otherwise returns <code>false</code>.</p>
/// <p>This function requires the value type to have an implementation of <code>operator==()</code>.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#indexOf">indexOf</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#count-1">count</a>().</p></div>
#[inline(always)]
pub unsafe fn contains(&self, t: *const *mut crate::QEntity) -> bool {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QEntity_ptr_contains(
self as *const crate::QVectorOfQEntity,
t,
)
}
/// <p>Assigns <i>other</i> to this vector and returns a reference to this vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```QVector<Qt3DCore::QEntity*>& QVector<Qt3DCore::QEntity*>::operator=(const QVector<Qt3DCore::QEntity*>& v)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#operator-eq">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Assigns <i>other</i> to this vector and returns a reference to this vector.</p></div>
#[inline(always)]
pub unsafe fn copy_from(
&self,
v: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QVectorOfQEntity>>,
) -> ::cpp_core::Ref<crate::QVectorOfQEntity> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QEntity_ptr_operator_(
self as *const crate::QVectorOfQEntity as *mut crate::QVectorOfQEntity,
::cpp_core::CastInto::<::cpp_core::Ref<crate::QVectorOfQEntity>>::cast_into(v)
.as_raw_ptr(),
)
};
::cpp_core::Ref::from_raw(ffi_result).expect("attempted to construct a null Ref")
}
/// <p>Returns the number of occurrences of <i>value</i> in the vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```int QVector<Qt3DCore::QEntity*>::count(const Qt3DCore::QEntity*& t) const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#count">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the number of occurrences of <i>value</i> in the vector.</p>
/// <p>This function requires the value type to have an implementation of <code>operator==()</code>.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#contains">contains</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#indexOf">indexOf</a>().</p></div>
#[inline(always)]
pub unsafe fn count_1a(&self, t: *const *mut crate::QEntity) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QEntity_ptr_count(
self as *const crate::QVectorOfQEntity,
t,
)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```int QVector<Qt3DCore::QEntity*>::count() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#count-1">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This is an overloaded function.</p>
/// <p>Same as <a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>().</p></div>
#[inline(always)]
pub unsafe fn count_0a(&self) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QEntity_ptr_count1(
self as *const crate::QVectorOfQEntity,
)
}
/// <p>Returns a pointer to the data stored in the vector. The pointer can be used to access and modify the items in the vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QEntity** QVector<Qt3DCore::QEntity*>::data()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#data">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns a pointer to the data stored in the vector. The pointer can be used to access and modify the items in the vector.</p>
/// <p>Example:</p>
/// <pre class="cpp">
///
/// <span class="type"><a href="http://doc.qt.io/qt-5/qvector.html#QVector">QVector</a></span><span class="operator"><</span><span class="type">int</span><span class="operator">></span> vector(<span class="number">10</span>);
/// <span class="type">int</span> <span class="operator">*</span>data <span class="operator">=</span> vector<span class="operator">.</span>data();
/// <span class="keyword">for</span> (<span class="type">int</span> i <span class="operator">=</span> <span class="number">0</span>; i <span class="operator"><</span> <span class="number">10</span>; <span class="operator">+</span><span class="operator">+</span>i)
///   data<span class="operator">[</span>i<span class="operator">]</span> <span class="operator">=</span> <span class="number">2</span> <span class="operator">*</span> i;
///
/// </pre>
/// <p>The pointer remains valid as long as the vector isn't reallocated.</p>
/// <p>This function is mostly useful to pass a vector to a function that accepts a plain C++ array.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#constData">constData</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#operator-5b-5d">operator[]</a>().</p></div>
#[inline(always)]
pub unsafe fn data_mut(&self) -> *mut *mut crate::QEntity {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QEntity_ptr_data(
self as *const crate::QVectorOfQEntity as *mut crate::QVectorOfQEntity,
)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```const Qt3DCore::QEntity** QVector<Qt3DCore::QEntity*>::data() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#data-1">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This is an overloaded function.</p></div>
#[inline(always)]
pub unsafe fn data(&self) -> *const *mut crate::QEntity {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QEntity_ptr_data1(
self as *const crate::QVectorOfQEntity,
)
}
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QEntity*>::detach()```</span>.
#[inline(always)]
pub unsafe fn detach(&self) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QEntity_ptr_detach(
self as *const crate::QVectorOfQEntity as *mut crate::QVectorOfQEntity,
)
}
/// <p>This function is provided for STL compatibility. It is equivalent to <a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>(), returning <code>true</code> if the vector is empty; otherwise returns <code>false</code>.</p>
///
/// Calls C++ function: <span style='color: green;'>```bool QVector<Qt3DCore::QEntity*>::empty() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#empty">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This function is provided for STL compatibility. It is equivalent to <a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>(), returning <code>true</code> if the vector is empty; otherwise returns <code>false</code>.</p></div>
#[inline(always)]
pub unsafe fn empty(&self) -> bool {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QEntity_ptr_empty(
self as *const crate::QVectorOfQEntity,
)
}
/// <p>Returns <code>true</code> if this vector is not empty and its last item is equal to <i>value</i>; otherwise returns <code>false</code>.</p>
///
/// Calls C++ function: <span style='color: green;'>```bool QVector<Qt3DCore::QEntity*>::endsWith(const Qt3DCore::QEntity*& t) const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#endsWith">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns <code>true</code> if this vector is not empty and its last item is equal to <i>value</i>; otherwise returns <code>false</code>.</p>
/// <p>This function was introduced in Qt 4.5.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#last">last</a>().</p></div>
#[inline(always)]
pub unsafe fn ends_with(&self, t: *const *mut crate::QEntity) -> bool {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QEntity_ptr_endsWith(
self as *const crate::QVectorOfQEntity,
t,
)
}
/// <p>Assigns <i>value</i> to all items in the vector. If <i>size</i> is different from -1 (the default), the vector is resized to size <i>size</i> beforehand.</p>
///
/// Calls C++ function: <span style='color: green;'>```QVector<Qt3DCore::QEntity*>& QVector<Qt3DCore::QEntity*>::fill(const Qt3DCore::QEntity*& t, int size = …)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#fill">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Assigns <i>value</i> to all items in the vector. If <i>size</i> is different from -1 (the default), the vector is resized to size <i>size</i> beforehand.</p>
/// <p>Example:</p>
/// <pre class="cpp">
///
/// <span class="type"><a href="http://doc.qt.io/qt-5/qvector.html#QVector">QVector</a></span><span class="operator"><</span><span class="type"><a href="http://doc.qt.io/qt-5/qstring.html">QString</a></span><span class="operator">></span> vector(<span class="number">3</span>);
/// vector<span class="operator">.</span>fill(<span class="string">"Yes"</span>);
/// <span class="comment">// vector: ["Yes", "Yes", "Yes"]</span>
///
/// vector<span class="operator">.</span>fill(<span class="string">"oh"</span><span class="operator">,</span> <span class="number">5</span>);
/// <span class="comment">// vector: ["oh", "oh", "oh", "oh", "oh"]</span>
///
/// </pre>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#resize">resize</a>().</p></div>
#[inline(always)]
pub unsafe fn fill_2a(
&self,
t: *const *mut crate::QEntity,
size: ::std::os::raw::c_int,
) -> ::cpp_core::Ref<crate::QVectorOfQEntity> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QEntity_ptr_fill(
self as *const crate::QVectorOfQEntity as *mut crate::QVectorOfQEntity,
t,
size,
)
};
::cpp_core::Ref::from_raw(ffi_result).expect("attempted to construct a null Ref")
}
/// <p>Assigns <i>value</i> to all items in the vector. If <i>size</i> is different from -1 (the default), the vector is resized to size <i>size</i> beforehand.</p>
///
/// Calls C++ function: <span style='color: green;'>```QVector<Qt3DCore::QEntity*>& QVector<Qt3DCore::QEntity*>::fill(const Qt3DCore::QEntity*& t)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#fill">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Assigns <i>value</i> to all items in the vector. If <i>size</i> is different from -1 (the default), the vector is resized to size <i>size</i> beforehand.</p>
/// <p>Example:</p>
/// <pre class="cpp">
///
/// <span class="type"><a href="http://doc.qt.io/qt-5/qvector.html#QVector">QVector</a></span><span class="operator"><</span><span class="type"><a href="http://doc.qt.io/qt-5/qstring.html">QString</a></span><span class="operator">></span> vector(<span class="number">3</span>);
/// vector<span class="operator">.</span>fill(<span class="string">"Yes"</span>);
/// <span class="comment">// vector: ["Yes", "Yes", "Yes"]</span>
///
/// vector<span class="operator">.</span>fill(<span class="string">"oh"</span><span class="operator">,</span> <span class="number">5</span>);
/// <span class="comment">// vector: ["oh", "oh", "oh", "oh", "oh"]</span>
///
/// </pre>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#resize">resize</a>().</p></div>
#[inline(always)]
pub unsafe fn fill_1a(
&self,
t: *const *mut crate::QEntity,
) -> ::cpp_core::Ref<crate::QVectorOfQEntity> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QEntity_ptr_fill1(
self as *const crate::QVectorOfQEntity as *mut crate::QVectorOfQEntity,
t,
)
};
::cpp_core::Ref::from_raw(ffi_result).expect("attempted to construct a null Ref")
}
/// <p>Returns a reference to the first item in the vector. This function assumes that the vector isn't empty.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QEntity*& QVector<Qt3DCore::QEntity*>::first()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#first">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns a reference to the first item in the vector. This function assumes that the vector isn't empty.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#last">last</a>(), <a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>(), and <a href="http://doc.qt.io/qt-5/qvector.html#constFirst">constFirst</a>().</p></div>
#[inline(always)]
pub unsafe fn first_mut(&self) -> *mut *mut crate::QEntity {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QEntity_ptr_first(
self as *const crate::QVectorOfQEntity as *mut crate::QVectorOfQEntity,
)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```const Qt3DCore::QEntity*& QVector<Qt3DCore::QEntity*>::first() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#first-1">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This is an overloaded function.</p></div>
#[inline(always)]
pub unsafe fn first(&self) -> *const *mut crate::QEntity {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QEntity_ptr_first1(
self as *const crate::QVectorOfQEntity,
)
}
/// <p>This function is provided for STL compatibility. It is equivalent to <a href="http://doc.qt.io/qt-5/qvector.html#first">first</a>().</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QEntity*& QVector<Qt3DCore::QEntity*>::front()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#front">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This function is provided for STL compatibility. It is equivalent to <a href="http://doc.qt.io/qt-5/qvector.html#first">first</a>().</p></div>
#[inline(always)]
pub unsafe fn front_mut(&self) -> *mut *mut crate::QEntity {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QEntity_ptr_front(
self as *const crate::QVectorOfQEntity as *mut crate::QVectorOfQEntity,
)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```const Qt3DCore::QEntity*& QVector<Qt3DCore::QEntity*>::front() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#front-1">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This is an overloaded function.</p></div>
#[inline(always)]
pub unsafe fn front(&self) -> *const *mut crate::QEntity {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QEntity_ptr_front1(
self as *const crate::QVectorOfQEntity,
)
}
/// <p>Returns the item at index position <i>i</i> as a modifiable reference.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QEntity*& QVector<Qt3DCore::QEntity*>::operator[](int i)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#operator-5b-5d">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the item at index position <i>i</i> as a modifiable reference.</p>
/// <p><i>i</i> must be a valid index position in the vector (i.e., 0 <= <i>i</i> < <a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>()).</p>
/// <p>Note that using non-const operators can cause <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> to do a deep copy.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#at">at</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#value">value</a>().</p></div>
#[inline(always)]
pub unsafe fn index_mut(&self, i: ::std::os::raw::c_int) -> *mut *mut crate::QEntity {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QEntity_ptr_operator__2(
self as *const crate::QVectorOfQEntity as *mut crate::QVectorOfQEntity,
i,
)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```const Qt3DCore::QEntity*& QVector<Qt3DCore::QEntity*>::operator[](int i) const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#operator-5b-5d-1">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This is an overloaded function.</p>
/// <p>Same as at(<i>i</i>).</p></div>
#[inline(always)]
pub unsafe fn index(&self, i: ::std::os::raw::c_int) -> *const *mut crate::QEntity {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QEntity_ptr_operator__3(
self as *const crate::QVectorOfQEntity,
i,
)
}
/// <p>Returns the index position of the first occurrence of <i>value</i> in the vector, searching forward from index position <i>from</i>. Returns -1 if no item matched.</p>
///
/// Calls C++ function: <span style='color: green;'>```int QVector<Qt3DCore::QEntity*>::indexOf(const Qt3DCore::QEntity*& t, int from = …) const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#indexOf">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the index position of the first occurrence of <i>value</i> in the vector, searching forward from index position <i>from</i>. Returns -1 if no item matched.</p>
/// <p>Example:</p>
/// <pre class="cpp">
///
/// <span class="type"><a href="http://doc.qt.io/qt-5/qvector.html#QVector">QVector</a></span><span class="operator"><</span><span class="type"><a href="http://doc.qt.io/qt-5/qstring.html">QString</a></span><span class="operator">></span> vector;
/// vector <span class="operator"><</span><span class="operator"><</span> <span class="string">"A"</span> <span class="operator"><</span><span class="operator"><</span> <span class="string">"B"</span> <span class="operator"><</span><span class="operator"><</span> <span class="string">"C"</span> <span class="operator"><</span><span class="operator"><</span> <span class="string">"B"</span> <span class="operator"><</span><span class="operator"><</span> <span class="string">"A"</span>;
/// vector<span class="operator">.</span>indexOf(<span class="string">"B"</span>); <span class="comment">// returns 1</span>
/// vector<span class="operator">.</span>indexOf(<span class="string">"B"</span><span class="operator">,</span> <span class="number">1</span>); <span class="comment">// returns 1</span>
/// vector<span class="operator">.</span>indexOf(<span class="string">"B"</span><span class="operator">,</span> <span class="number">2</span>); <span class="comment">// returns 3</span>
/// vector<span class="operator">.</span>indexOf(<span class="string">"X"</span>); <span class="comment">// returns -1</span>
///
/// </pre>
/// <p>This function requires the value type to have an implementation of <code>operator==()</code>.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#lastIndexOf">lastIndexOf</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#contains">contains</a>().</p></div>
#[inline(always)]
pub unsafe fn index_of_2a(
&self,
t: *const *mut crate::QEntity,
from: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QEntity_ptr_indexOf(
self as *const crate::QVectorOfQEntity,
t,
from,
)
}
/// <p>Returns the index position of the first occurrence of <i>value</i> in the vector, searching forward from index position <i>from</i>. Returns -1 if no item matched.</p>
///
/// Calls C++ function: <span style='color: green;'>```int QVector<Qt3DCore::QEntity*>::indexOf(const Qt3DCore::QEntity*& t) const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#indexOf">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the index position of the first occurrence of <i>value</i> in the vector, searching forward from index position <i>from</i>. Returns -1 if no item matched.</p>
/// <p>Example:</p>
/// <pre class="cpp">
///
/// <span class="type"><a href="http://doc.qt.io/qt-5/qvector.html#QVector">QVector</a></span><span class="operator"><</span><span class="type"><a href="http://doc.qt.io/qt-5/qstring.html">QString</a></span><span class="operator">></span> vector;
/// vector <span class="operator"><</span><span class="operator"><</span> <span class="string">"A"</span> <span class="operator"><</span><span class="operator"><</span> <span class="string">"B"</span> <span class="operator"><</span><span class="operator"><</span> <span class="string">"C"</span> <span class="operator"><</span><span class="operator"><</span> <span class="string">"B"</span> <span class="operator"><</span><span class="operator"><</span> <span class="string">"A"</span>;
/// vector<span class="operator">.</span>indexOf(<span class="string">"B"</span>); <span class="comment">// returns 1</span>
/// vector<span class="operator">.</span>indexOf(<span class="string">"B"</span><span class="operator">,</span> <span class="number">1</span>); <span class="comment">// returns 1</span>
/// vector<span class="operator">.</span>indexOf(<span class="string">"B"</span><span class="operator">,</span> <span class="number">2</span>); <span class="comment">// returns 3</span>
/// vector<span class="operator">.</span>indexOf(<span class="string">"X"</span>); <span class="comment">// returns -1</span>
///
/// </pre>
/// <p>This function requires the value type to have an implementation of <code>operator==()</code>.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#lastIndexOf">lastIndexOf</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#contains">contains</a>().</p></div>
#[inline(always)]
pub unsafe fn index_of_1a(&self, t: *const *mut crate::QEntity) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QEntity_ptr_indexOf1(
self as *const crate::QVectorOfQEntity,
t,
)
}
/// <p>Inserts <i>value</i> at index position <i>i</i> in the vector. If <i>i</i> is 0, the value is prepended to the vector. If <i>i</i> is <a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>(), the value is appended to the vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QEntity*>::insert(int i, const Qt3DCore::QEntity*& t)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#insert">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Inserts <i>value</i> at index position <i>i</i> in the vector. If <i>i</i> is 0, the value is prepended to the vector. If <i>i</i> is <a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>(), the value is appended to the vector.</p>
/// <p>Example:</p>
/// <pre class="cpp">
///
/// <span class="type"><a href="http://doc.qt.io/qt-5/qvector.html#QVector">QVector</a></span><span class="operator"><</span><span class="type"><a href="http://doc.qt.io/qt-5/qstring.html">QString</a></span><span class="operator">></span> vector;
/// vector <span class="operator"><</span><span class="operator"><</span> <span class="string">"alpha"</span> <span class="operator"><</span><span class="operator"><</span> <span class="string">"beta"</span> <span class="operator"><</span><span class="operator"><</span> <span class="string">"delta"</span>;
/// vector<span class="operator">.</span>insert(<span class="number">2</span><span class="operator">,</span> <span class="string">"gamma"</span>);
/// <span class="comment">// vector: ["alpha", "beta", "gamma", "delta"]</span>
///
/// </pre>
/// <p>For large vectors, this operation can be slow (<a href="http://doc.qt.io/qt-5/containers.html#linear-time">linear time</a>), because it requires moving all the items at indexes <i>i</i> and above by one position further in memory. If you want a container class that provides a fast insert() function, use <a href="http://doc.qt.io/qt-5/qlinkedlist.html">QLinkedList</a> instead.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#append">append</a>(), <a href="http://doc.qt.io/qt-5/qvector.html#prepend">prepend</a>(), and <a href="http://doc.qt.io/qt-5/qvector.html#remove">remove</a>().</p></div>
#[inline(always)]
pub unsafe fn insert_2a(&self, i: ::std::os::raw::c_int, t: *const *mut crate::QEntity) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QEntity_ptr_insert(
self as *const crate::QVectorOfQEntity as *mut crate::QVectorOfQEntity,
i,
t,
)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QEntity*>::insert(int i, int n, const Qt3DCore::QEntity*& t)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#insert-1">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This is an overloaded function.</p>
/// <p>Inserts <i>count</i> copies of <i>value</i> at index position <i>i</i> in the vector.</p>
/// <p>Example:</p>
/// <pre class="cpp">
///
/// <span class="type"><a href="http://doc.qt.io/qt-5/qvector.html#QVector">QVector</a></span><span class="operator"><</span><span class="type">double</span><span class="operator">></span> vector;
/// vector <span class="operator"><</span><span class="operator"><</span> <span class="number">2.718</span> <span class="operator"><</span><span class="operator"><</span> <span class="number">1.442</span> <span class="operator"><</span><span class="operator"><</span> <span class="number">0.4342</span>;
/// vector<span class="operator">.</span>insert(<span class="number">1</span><span class="operator">,</span> <span class="number">3</span><span class="operator">,</span> <span class="number">9.9</span>);
/// <span class="comment">// vector: [2.718, 9.9, 9.9, 9.9, 1.442, 0.4342]</span>
///
/// </pre></div>
#[inline(always)]
pub unsafe fn insert_3a(
&self,
i: ::std::os::raw::c_int,
n: ::std::os::raw::c_int,
t: *const *mut crate::QEntity,
) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QEntity_ptr_insert1(
self as *const crate::QVectorOfQEntity as *mut crate::QVectorOfQEntity,
i,
n,
t,
)
}
/// Calls C++ function: <span style='color: green;'>```bool QVector<Qt3DCore::QEntity*>::isDetached() const```</span>.
#[inline(always)]
pub unsafe fn is_detached(&self) -> bool {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QEntity_ptr_isDetached(
self as *const crate::QVectorOfQEntity,
)
}
/// <p>Returns <code>true</code> if the vector has size 0; otherwise returns <code>false</code>.</p>
///
/// Calls C++ function: <span style='color: green;'>```bool QVector<Qt3DCore::QEntity*>::isEmpty() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns <code>true</code> if the vector has size 0; otherwise returns <code>false</code>.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#resize">resize</a>().</p></div>
#[inline(always)]
pub unsafe fn is_empty(&self) -> bool {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QEntity_ptr_isEmpty(
self as *const crate::QVectorOfQEntity,
)
}
/// Calls C++ function: <span style='color: green;'>```bool QVector<Qt3DCore::QEntity*>::isSharedWith(const QVector<Qt3DCore::QEntity*>& other) const```</span>.
#[inline(always)]
pub unsafe fn is_shared_with(
&self,
other: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QVectorOfQEntity>>,
) -> bool {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QEntity_ptr_isSharedWith(
self as *const crate::QVectorOfQEntity,
::cpp_core::CastInto::<::cpp_core::Ref<crate::QVectorOfQEntity>>::cast_into(other)
.as_raw_ptr(),
)
}
/// <p>Returns a reference to the last item in the vector. This function assumes that the vector isn't empty.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QEntity*& QVector<Qt3DCore::QEntity*>::last()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#last">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns a reference to the last item in the vector. This function assumes that the vector isn't empty.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#first">first</a>(), <a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>(), and <a href="http://doc.qt.io/qt-5/qvector.html#constLast">constLast</a>().</p></div>
#[inline(always)]
pub unsafe fn last_mut(&self) -> *mut *mut crate::QEntity {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QEntity_ptr_last(
self as *const crate::QVectorOfQEntity as *mut crate::QVectorOfQEntity,
)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```const Qt3DCore::QEntity*& QVector<Qt3DCore::QEntity*>::last() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#last-1">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This is an overloaded function.</p></div>
#[inline(always)]
pub unsafe fn last(&self) -> *const *mut crate::QEntity {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QEntity_ptr_last1(
self as *const crate::QVectorOfQEntity,
)
}
/// <p>Returns the index position of the last occurrence of the value <i>value</i> in the vector, searching backward from index position <i>from</i>. If <i>from</i> is -1 (the default), the search starts at the last item. Returns -1 if no item matched.</p>
///
/// Calls C++ function: <span style='color: green;'>```int QVector<Qt3DCore::QEntity*>::lastIndexOf(const Qt3DCore::QEntity*& t, int from = …) const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#lastIndexOf">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the index position of the last occurrence of the value <i>value</i> in the vector, searching backward from index position <i>from</i>. If <i>from</i> is -1 (the default), the search starts at the last item. Returns -1 if no item matched.</p>
/// <p>Example:</p>
/// <pre class="cpp">
///
/// <span class="type"><a href="http://doc.qt.io/qt-5/qlist.html">QList</a></span><span class="operator"><</span><span class="type"><a href="http://doc.qt.io/qt-5/qstring.html">QString</a></span><span class="operator">></span> vector;
/// vector <span class="operator"><</span><span class="operator"><</span> <span class="string">"A"</span> <span class="operator"><</span><span class="operator"><</span> <span class="string">"B"</span> <span class="operator"><</span><span class="operator"><</span> <span class="string">"C"</span> <span class="operator"><</span><span class="operator"><</span> <span class="string">"B"</span> <span class="operator"><</span><span class="operator"><</span> <span class="string">"A"</span>;
/// vector<span class="operator">.</span>lastIndexOf(<span class="string">"B"</span>); <span class="comment">// returns 3</span>
/// vector<span class="operator">.</span>lastIndexOf(<span class="string">"B"</span><span class="operator">,</span> <span class="number">3</span>); <span class="comment">// returns 3</span>
/// vector<span class="operator">.</span>lastIndexOf(<span class="string">"B"</span><span class="operator">,</span> <span class="number">2</span>); <span class="comment">// returns 1</span>
/// vector<span class="operator">.</span>lastIndexOf(<span class="string">"X"</span>); <span class="comment">// returns -1</span>
///
/// </pre>
/// <p>This function requires the value type to have an implementation of <code>operator==()</code>.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#indexOf">indexOf</a>().</p></div>
#[inline(always)]
pub unsafe fn last_index_of_2a(
&self,
t: *const *mut crate::QEntity,
from: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QEntity_ptr_lastIndexOf(
self as *const crate::QVectorOfQEntity,
t,
from,
)
}
/// <p>Returns the index position of the last occurrence of the value <i>value</i> in the vector, searching backward from index position <i>from</i>. If <i>from</i> is -1 (the default), the search starts at the last item. Returns -1 if no item matched.</p>
///
/// Calls C++ function: <span style='color: green;'>```int QVector<Qt3DCore::QEntity*>::lastIndexOf(const Qt3DCore::QEntity*& t) const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#lastIndexOf">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the index position of the last occurrence of the value <i>value</i> in the vector, searching backward from index position <i>from</i>. If <i>from</i> is -1 (the default), the search starts at the last item. Returns -1 if no item matched.</p>
/// <p>Example:</p>
/// <pre class="cpp">
///
/// <span class="type"><a href="http://doc.qt.io/qt-5/qlist.html">QList</a></span><span class="operator"><</span><span class="type"><a href="http://doc.qt.io/qt-5/qstring.html">QString</a></span><span class="operator">></span> vector;
/// vector <span class="operator"><</span><span class="operator"><</span> <span class="string">"A"</span> <span class="operator"><</span><span class="operator"><</span> <span class="string">"B"</span> <span class="operator"><</span><span class="operator"><</span> <span class="string">"C"</span> <span class="operator"><</span><span class="operator"><</span> <span class="string">"B"</span> <span class="operator"><</span><span class="operator"><</span> <span class="string">"A"</span>;
/// vector<span class="operator">.</span>lastIndexOf(<span class="string">"B"</span>); <span class="comment">// returns 3</span>
/// vector<span class="operator">.</span>lastIndexOf(<span class="string">"B"</span><span class="operator">,</span> <span class="number">3</span>); <span class="comment">// returns 3</span>
/// vector<span class="operator">.</span>lastIndexOf(<span class="string">"B"</span><span class="operator">,</span> <span class="number">2</span>); <span class="comment">// returns 1</span>
/// vector<span class="operator">.</span>lastIndexOf(<span class="string">"X"</span>); <span class="comment">// returns -1</span>
///
/// </pre>
/// <p>This function requires the value type to have an implementation of <code>operator==()</code>.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#indexOf">indexOf</a>().</p></div>
#[inline(always)]
pub unsafe fn last_index_of_1a(&self, t: *const *mut crate::QEntity) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QEntity_ptr_lastIndexOf1(
self as *const crate::QVectorOfQEntity,
t,
)
}
/// <p>Same as <a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#count-1">count</a>().</p>
///
/// Calls C++ function: <span style='color: green;'>```int QVector<Qt3DCore::QEntity*>::length() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#length">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Same as <a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#count-1">count</a>().</p>
/// <p>Provided for compatibility with <a href="http://doc.qt.io/qt-5/qlist.html">QList</a>.</p>
/// <p>This function was introduced in Qt 5.2.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>(), <a href="http://doc.qt.io/qt-5/qvector.html#count-1">count</a>(), and <a href="http://doc.qt.io/qt-5/qlist.html#length">QList::length</a>().</p></div>
#[inline(always)]
pub unsafe fn length(&self) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QEntity_ptr_length(
self as *const crate::QVectorOfQEntity,
)
}
/// <p>Returns a sub-vector which contains elements from this vector, starting at position <i>pos</i>. If <i>length</i> is -1 (the default), all elements after <i>pos</i> are included; otherwise <i>length</i> elements (or all remaining elements if there are less than <i>length</i> elements) are included.</p>
///
/// Calls C++ function: <span style='color: green;'>```QVector<Qt3DCore::QEntity*> QVector<Qt3DCore::QEntity*>::mid(int pos, int len = …) const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#mid">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns a sub-vector which contains elements from this vector, starting at position <i>pos</i>. If <i>length</i> is -1 (the default), all elements after <i>pos</i> are included; otherwise <i>length</i> elements (or all remaining elements if there are less than <i>length</i> elements) are included.</p></div>
#[inline(always)]
pub unsafe fn mid_2a(
&self,
pos: ::std::os::raw::c_int,
len: ::std::os::raw::c_int,
) -> ::cpp_core::CppBox<crate::QVectorOfQEntity> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QEntity_ptr_mid(
self as *const crate::QVectorOfQEntity,
pos,
len,
)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Returns a sub-vector which contains elements from this vector, starting at position <i>pos</i>. If <i>length</i> is -1 (the default), all elements after <i>pos</i> are included; otherwise <i>length</i> elements (or all remaining elements if there are less than <i>length</i> elements) are included.</p>
///
/// Calls C++ function: <span style='color: green;'>```QVector<Qt3DCore::QEntity*> QVector<Qt3DCore::QEntity*>::mid(int pos) const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#mid">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns a sub-vector which contains elements from this vector, starting at position <i>pos</i>. If <i>length</i> is -1 (the default), all elements after <i>pos</i> are included; otherwise <i>length</i> elements (or all remaining elements if there are less than <i>length</i> elements) are included.</p></div>
#[inline(always)]
pub unsafe fn mid_1a(
&self,
pos: ::std::os::raw::c_int,
) -> ::cpp_core::CppBox<crate::QVectorOfQEntity> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QEntity_ptr_mid1(
self as *const crate::QVectorOfQEntity,
pos,
)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Moves the item at index position <i>from</i> to index position <i>to</i>.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QEntity*>::move(int from, int to)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#move">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Moves the item at index position <i>from</i> to index position <i>to</i>.</p>
/// <p>Provided for compatibility with <a href="http://doc.qt.io/qt-5/qlist.html">QList</a>.</p>
/// <p>This function was introduced in Qt 5.6.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qlist.html#move">QList::move</a>().</p></div>
#[inline(always)]
pub unsafe fn move_(&self, from: ::std::os::raw::c_int, to: ::std::os::raw::c_int) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QEntity_ptr_move(
self as *const crate::QVectorOfQEntity as *mut crate::QVectorOfQEntity,
from,
to,
)
}
/// <p>Constructs an empty vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void QVector<Qt3DCore::QEntity*>::QVector()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#QVector">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Constructs an empty vector.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#resize">resize</a>().</p></div>
#[inline(always)]
pub unsafe fn new_0a() -> ::cpp_core::CppBox<crate::QVectorOfQEntity> {
let ffi_result =
{ crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QEntity_ptr_QVector() };
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Constructs a vector with an initial size of <i>size</i> elements.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void QVector<Qt3DCore::QEntity*>::QVector(int size)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#QVector-1">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Constructs a vector with an initial size of <i>size</i> elements.</p>
/// <p>The elements are initialized with a <a href="http://doc.qt.io/qt-5/containers.html#default-constructed-value">default-constructed value</a>.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#resize">resize</a>().</p></div>
#[inline(always)]
pub unsafe fn new_1a(
size: ::std::os::raw::c_int,
) -> ::cpp_core::CppBox<crate::QVectorOfQEntity> {
let ffi_result =
{ crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QEntity_ptr_QVector1(size) };
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Constructs a vector with an initial size of <i>size</i> elements. Each element is initialized with <i>value</i>.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void QVector<Qt3DCore::QEntity*>::QVector(int size, const Qt3DCore::QEntity*& t)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#QVector-2">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Constructs a vector with an initial size of <i>size</i> elements. Each element is initialized with <i>value</i>.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#resize">resize</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#fill">fill</a>().</p></div>
#[inline(always)]
pub unsafe fn new_2a(
size: ::std::os::raw::c_int,
t: *const *mut crate::QEntity,
) -> ::cpp_core::CppBox<crate::QVectorOfQEntity> {
let ffi_result =
{ crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QEntity_ptr_QVector2(size, t) };
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Constructs a copy of <i>other</i>.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void QVector<Qt3DCore::QEntity*>::QVector(const QVector<Qt3DCore::QEntity*>& v)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#QVector-3">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Constructs a copy of <i>other</i>.</p>
/// <p>This operation takes <a href="http://doc.qt.io/qt-5/containers.html#algorithmic-complexity">constant time</a>, because <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> is <a href="http://doc.qt.io/qt-5/implicit-sharing.html">implicitly shared</a>. This makes returning a <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> from a function very fast. If a shared instance is modified, it will be copied (copy-on-write), and that takes <a href="http://doc.qt.io/qt-5/containers.html#algorithmic-complexity">linear time</a>.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#operator-eq">operator=</a>().</p></div>
#[inline(always)]
pub unsafe fn new_copy(
v: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QVectorOfQEntity>>,
) -> ::cpp_core::CppBox<crate::QVectorOfQEntity> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QEntity_ptr_QVector3(
::cpp_core::CastInto::<::cpp_core::Ref<crate::QVectorOfQEntity>>::cast_into(v)
.as_raw_ptr(),
)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>This function is provided for STL compatibility. It is equivalent to <a href="http://doc.qt.io/qt-5/qvector.html#removeLast">removeLast</a>().</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QEntity*>::pop_back()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#pop_back">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This function is provided for STL compatibility. It is equivalent to <a href="http://doc.qt.io/qt-5/qvector.html#removeLast">removeLast</a>().</p></div>
#[inline(always)]
pub unsafe fn pop_back(&self) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QEntity_ptr_pop_back(
self as *const crate::QVectorOfQEntity as *mut crate::QVectorOfQEntity,
)
}
/// <p>This function is provided for STL compatibility. It is equivalent to <a href="http://doc.qt.io/qt-5/qvector.html#removeFirst">removeFirst</a>().</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QEntity*>::pop_front()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#pop_front">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This function is provided for STL compatibility. It is equivalent to <a href="http://doc.qt.io/qt-5/qvector.html#removeFirst">removeFirst</a>().</p></div>
#[inline(always)]
pub unsafe fn pop_front(&self) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QEntity_ptr_pop_front(
self as *const crate::QVectorOfQEntity as *mut crate::QVectorOfQEntity,
)
}
/// <p>Inserts <i>value</i> at the beginning of the vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QEntity*>::prepend(const Qt3DCore::QEntity*& t)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#prepend">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Inserts <i>value</i> at the beginning of the vector.</p>
/// <p>Example:</p>
/// <pre class="cpp">
///
/// <span class="type"><a href="http://doc.qt.io/qt-5/qvector.html#QVector">QVector</a></span><span class="operator"><</span><span class="type"><a href="http://doc.qt.io/qt-5/qstring.html">QString</a></span><span class="operator">></span> vector;
/// vector<span class="operator">.</span>prepend(<span class="string">"one"</span>);
/// vector<span class="operator">.</span>prepend(<span class="string">"two"</span>);
/// vector<span class="operator">.</span>prepend(<span class="string">"three"</span>);
/// <span class="comment">// vector: ["three", "two", "one"]</span>
///
/// </pre>
/// <p>This is the same as vector.insert(0, <i>value</i>).</p>
/// <p>For large vectors, this operation can be slow (<a href="http://doc.qt.io/qt-5/containers.html#linear-time">linear time</a>), because it requires moving all the items in the vector by one position further in memory. If you want a container class that provides a fast prepend() function, use <a href="http://doc.qt.io/qt-5/qlist.html">QList</a> or <a href="http://doc.qt.io/qt-5/qlinkedlist.html">QLinkedList</a> instead.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#append">append</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#insert">insert</a>().</p></div>
#[inline(always)]
pub unsafe fn prepend(&self, t: *const *mut crate::QEntity) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QEntity_ptr_prepend(
self as *const crate::QVectorOfQEntity as *mut crate::QVectorOfQEntity,
t,
)
}
/// <p>This function is provided for STL compatibility. It is equivalent to append(<i>value</i>).</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QEntity*>::push_back(const Qt3DCore::QEntity*& t)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#push_back">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This function is provided for STL compatibility. It is equivalent to append(<i>value</i>).</p></div>
#[inline(always)]
pub unsafe fn push_back(&self, t: *const *mut crate::QEntity) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QEntity_ptr_push_back(
self as *const crate::QVectorOfQEntity as *mut crate::QVectorOfQEntity,
t,
)
}
/// <p>This function is provided for STL compatibility. It is equivalent to prepend(<i>value</i>).</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QEntity*>::push_front(const Qt3DCore::QEntity*& t)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#push_front">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This function is provided for STL compatibility. It is equivalent to prepend(<i>value</i>).</p></div>
#[inline(always)]
pub unsafe fn push_front(&self, t: *const *mut crate::QEntity) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QEntity_ptr_push_front(
self as *const crate::QVectorOfQEntity as *mut crate::QVectorOfQEntity,
t,
)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QEntity*>::remove(int i)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#remove">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This is an overloaded function.</p>
/// <p>Removes the element at index position <i>i</i>.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#insert">insert</a>(), <a href="http://doc.qt.io/qt-5/qvector.html#replace">replace</a>(), and <a href="http://doc.qt.io/qt-5/qvector.html#fill">fill</a>().</p></div>
#[inline(always)]
pub unsafe fn remove_1a(&self, i: ::std::os::raw::c_int) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QEntity_ptr_remove(
self as *const crate::QVectorOfQEntity as *mut crate::QVectorOfQEntity,
i,
)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QEntity*>::remove(int i, int n)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#remove-1">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This is an overloaded function.</p>
/// <p>Removes <i>count</i> elements from the middle of the vector, starting at index position <i>i</i>.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#insert">insert</a>(), <a href="http://doc.qt.io/qt-5/qvector.html#replace">replace</a>(), and <a href="http://doc.qt.io/qt-5/qvector.html#fill">fill</a>().</p></div>
#[inline(always)]
pub unsafe fn remove_2a(&self, i: ::std::os::raw::c_int, n: ::std::os::raw::c_int) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QEntity_ptr_remove1(
self as *const crate::QVectorOfQEntity as *mut crate::QVectorOfQEntity,
i,
n,
)
}
/// <p>Removes all elements that compare equal to <i>t</i> from the vector. Returns the number of elements removed, if any.</p>
///
/// Calls C++ function: <span style='color: green;'>```int QVector<Qt3DCore::QEntity*>::removeAll(const Qt3DCore::QEntity*& t)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#removeAll">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Removes all elements that compare equal to <i>t</i> from the vector. Returns the number of elements removed, if any.</p>
/// <p>Provided for compatibility with <a href="http://doc.qt.io/qt-5/qlist.html">QList</a>.</p>
/// <p>This function was introduced in Qt 5.4.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#removeOne">removeOne</a>() and <a href="http://doc.qt.io/qt-5/qlist.html#removeAll">QList::removeAll</a>().</p></div>
#[inline(always)]
pub unsafe fn remove_all(&self, t: *const *mut crate::QEntity) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QEntity_ptr_removeAll(
self as *const crate::QVectorOfQEntity as *mut crate::QVectorOfQEntity,
t,
)
}
/// <p>Removes the element at index position <i>i</i>. Equivalent to</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QEntity*>::removeAt(int i)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#removeAt">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Removes the element at index position <i>i</i>. Equivalent to</p>
/// <pre class="cpp">
///
/// remove(i);
///
/// </pre>
/// <p>Provided for compatibility with <a href="http://doc.qt.io/qt-5/qlist.html">QList</a>.</p>
/// <p>This function was introduced in Qt 5.2.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#remove">remove</a>() and <a href="http://doc.qt.io/qt-5/qlist.html#removeAt">QList::removeAt</a>().</p></div>
#[inline(always)]
pub unsafe fn remove_at(&self, i: ::std::os::raw::c_int) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QEntity_ptr_removeAt(
self as *const crate::QVectorOfQEntity as *mut crate::QVectorOfQEntity,
i,
)
}
/// <p>Removes the first item in the vector. Calling this function is equivalent to calling remove(0). The vector must not be empty. If the vector can be empty, call <a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>() before calling this function.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QEntity*>::removeFirst()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#removeFirst">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Removes the first item in the vector. Calling this function is equivalent to calling remove(0). The vector must not be empty. If the vector can be empty, call <a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>() before calling this function.</p>
/// <p>This function was introduced in Qt 5.1.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#remove">remove</a>(), <a href="http://doc.qt.io/qt-5/qvector.html#takeFirst">takeFirst</a>(), and <a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>().</p></div>
#[inline(always)]
pub unsafe fn remove_first(&self) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QEntity_ptr_removeFirst(
self as *const crate::QVectorOfQEntity as *mut crate::QVectorOfQEntity,
)
}
/// <p>Removes the last item in the vector. Calling this function is equivalent to calling remove(<a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>() - 1). The vector must not be empty. If the vector can be empty, call <a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>() before calling this function.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QEntity*>::removeLast()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#removeLast">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Removes the last item in the vector. Calling this function is equivalent to calling remove(<a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>() - 1). The vector must not be empty. If the vector can be empty, call <a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>() before calling this function.</p>
/// <p>This function was introduced in Qt 5.1.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#remove">remove</a>(), <a href="http://doc.qt.io/qt-5/qvector.html#takeLast">takeLast</a>(), <a href="http://doc.qt.io/qt-5/qvector.html#removeFirst">removeFirst</a>(), and <a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>().</p></div>
#[inline(always)]
pub unsafe fn remove_last(&self) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QEntity_ptr_removeLast(
self as *const crate::QVectorOfQEntity as *mut crate::QVectorOfQEntity,
)
}
/// <p>Removes the first element that compares equal to <i>t</i> from the vector. Returns whether an element was, in fact, removed.</p>
///
/// Calls C++ function: <span style='color: green;'>```bool QVector<Qt3DCore::QEntity*>::removeOne(const Qt3DCore::QEntity*& t)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#removeOne">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Removes the first element that compares equal to <i>t</i> from the vector. Returns whether an element was, in fact, removed.</p>
/// <p>Provided for compatibility with <a href="http://doc.qt.io/qt-5/qlist.html">QList</a>.</p>
/// <p>This function was introduced in Qt 5.4.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#removeAll">removeAll</a>() and <a href="http://doc.qt.io/qt-5/qlist.html#removeOne">QList::removeOne</a>().</p></div>
#[inline(always)]
pub unsafe fn remove_one(&self, t: *const *mut crate::QEntity) -> bool {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QEntity_ptr_removeOne(
self as *const crate::QVectorOfQEntity as *mut crate::QVectorOfQEntity,
t,
)
}
/// <p>Replaces the item at index position <i>i</i> with <i>value</i>.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QEntity*>::replace(int i, const Qt3DCore::QEntity*& t)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#replace">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Replaces the item at index position <i>i</i> with <i>value</i>.</p>
/// <p><i>i</i> must be a valid index position in the vector (i.e., 0 <= <i>i</i> < <a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>()).</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#operator-5b-5d">operator[]</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#remove">remove</a>().</p></div>
#[inline(always)]
pub unsafe fn replace(&self, i: ::std::os::raw::c_int, t: *const *mut crate::QEntity) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QEntity_ptr_replace(
self as *const crate::QVectorOfQEntity as *mut crate::QVectorOfQEntity,
i,
t,
)
}
/// <p>Attempts to allocate memory for at least <i>size</i> elements. If you know in advance how large the vector will be, you should call this function to prevent reallocations and memory fragmentation.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QEntity*>::reserve(int size)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#reserve">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Attempts to allocate memory for at least <i>size</i> elements. If you know in advance how large the vector will be, you should call this function to prevent reallocations and memory fragmentation.</p>
/// <p>If <i>size</i> is an underestimate, the worst that will happen is that the <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> will be a bit slower. If <i>size</i> is an overestimate, you may have used more memory than the normal <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> growth strategy would have allocated—or you may have used less.</p>
/// <p>An alternative to reserve() is calling <a href="http://doc.qt.io/qt-5/qvector.html#resize">resize</a>(). Whether or not that is faster than reserve() depends on the element type, because <a href="http://doc.qt.io/qt-5/qvector.html#resize">resize</a>() default-constructs all elements, and requires assignment to existing entries rather than calling <a href="http://doc.qt.io/qt-5/qvector.html#append">append</a>(), which copy- or move-constructs. For simple types, like <code>int</code> or <code>double</code>, <a href="http://doc.qt.io/qt-5/qvector.html#resize">resize</a>() is typically faster, but for anything more complex, you should prefer reserve().</p>
/// <p><b>Warning:</b> If the size passed to <a href="http://doc.qt.io/qt-5/qvector.html#resize">resize</a>() was underestimated, you run out of allocated space and into undefined behavior. This problem does not exist with reserve(), because it treats the size as just a hint.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#squeeze">squeeze</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#capacity">capacity</a>().</p></div>
#[inline(always)]
pub unsafe fn reserve(&self, size: ::std::os::raw::c_int) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QEntity_ptr_reserve(
self as *const crate::QVectorOfQEntity as *mut crate::QVectorOfQEntity,
size,
)
}
/// <p>Sets the size of the vector to <i>size</i>. If <i>size</i> is greater than the current size, elements are added to the end; the new elements are initialized with a <a href="http://doc.qt.io/qt-5/containers.html#default-constructed-value">default-constructed value</a>. If <i>size</i> is less than the current size, elements are removed from the end.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QEntity*>::resize(int size)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#resize">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Sets the size of the vector to <i>size</i>. If <i>size</i> is greater than the current size, elements are added to the end; the new elements are initialized with a <a href="http://doc.qt.io/qt-5/containers.html#default-constructed-value">default-constructed value</a>. If <i>size</i> is less than the current size, elements are removed from the end.</p>
/// <p>Since Qt 5.6, resize() doesn't shrink the capacity anymore. To shed excess capacity, use <a href="http://doc.qt.io/qt-5/qvector.html#squeeze">squeeze</a>().</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>().</p></div>
#[inline(always)]
pub unsafe fn resize(&self, size: ::std::os::raw::c_int) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QEntity_ptr_resize(
self as *const crate::QVectorOfQEntity as *mut crate::QVectorOfQEntity,
size,
)
}
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QEntity*>::setSharable(bool sharable)```</span>.
#[inline(always)]
pub unsafe fn set_sharable(&self, sharable: bool) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QEntity_ptr_setSharable(
self as *const crate::QVectorOfQEntity as *mut crate::QVectorOfQEntity,
sharable,
)
}
/// <p>This function is provided for STL compatibility. It is equivalent to <a href="http://doc.qt.io/qt-5/qvector.html#squeeze">squeeze</a>().</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QEntity*>::shrink_to_fit()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#shrink_to_fit">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This function is provided for STL compatibility. It is equivalent to <a href="http://doc.qt.io/qt-5/qvector.html#squeeze">squeeze</a>().</p>
/// <p>This function was introduced in Qt 5.10.</p></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn shrink_to_fit(&self) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QEntity_ptr_shrink_to_fit(
self as *const crate::QVectorOfQEntity as *mut crate::QVectorOfQEntity,
)
}
/// <p>Returns the number of items in the vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```int QVector<Qt3DCore::QEntity*>::size() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#size">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the number of items in the vector.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#resize">resize</a>().</p></div>
#[inline(always)]
pub unsafe fn size(&self) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QEntity_ptr_size(
self as *const crate::QVectorOfQEntity,
)
}
/// <p>Releases any memory not required to store the items.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QEntity*>::squeeze()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#squeeze">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Releases any memory not required to store the items.</p>
/// <p>The sole purpose of this function is to provide a means of fine tuning <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a>'s memory usage. In general, you will rarely ever need to call this function.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#reserve">reserve</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#capacity">capacity</a>().</p></div>
#[inline(always)]
pub unsafe fn squeeze(&self) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QEntity_ptr_squeeze(
self as *const crate::QVectorOfQEntity as *mut crate::QVectorOfQEntity,
)
}
/// <p>Returns <code>true</code> if this vector is not empty and its first item is equal to <i>value</i>; otherwise returns <code>false</code>.</p>
///
/// Calls C++ function: <span style='color: green;'>```bool QVector<Qt3DCore::QEntity*>::startsWith(const Qt3DCore::QEntity*& t) const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#startsWith">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns <code>true</code> if this vector is not empty and its first item is equal to <i>value</i>; otherwise returns <code>false</code>.</p>
/// <p>This function was introduced in Qt 4.5.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#first">first</a>().</p></div>
#[inline(always)]
pub unsafe fn starts_with(&self, t: *const *mut crate::QEntity) -> bool {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QEntity_ptr_startsWith(
self as *const crate::QVectorOfQEntity,
t,
)
}
/// <p>Swaps vector <i>other</i> with this vector. This operation is very fast and never fails.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QEntity*>::swap(QVector<Qt3DCore::QEntity*>& other)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#swap">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Swaps vector <i>other</i> with this vector. This operation is very fast and never fails.</p>
/// <p>This function was introduced in Qt 4.8.</p></div>
#[inline(always)]
pub unsafe fn swap(
&self,
other: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QVectorOfQEntity>>,
) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QEntity_ptr_swap(
self as *const crate::QVectorOfQEntity as *mut crate::QVectorOfQEntity,
::cpp_core::CastInto::<::cpp_core::Ref<crate::QVectorOfQEntity>>::cast_into(other)
.as_raw_ptr() as *mut crate::QVectorOfQEntity,
)
}
/// <p>Exchange the item at index position <i>i</i> with the item at index position <i>j</i>. This function assumes that both <i>i</i> and <i>j</i> are at least 0 but less than <a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>(). To avoid failure, test that both <i>i</i> and <i>j</i> are at least 0 and less than <a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>().</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QEntity*>::swapItemsAt(int i, int j)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#swapItemsAt">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Exchange the item at index position <i>i</i> with the item at index position <i>j</i>. This function assumes that both <i>i</i> and <i>j</i> are at least 0 but less than <a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>(). To avoid failure, test that both <i>i</i> and <i>j</i> are at least 0 and less than <a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>().</p>
/// <p>This function was introduced in Qt 5.14.</p></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(cpp_lib_version = "5.14.0"))
)]
#[cfg(any(cpp_lib_version = "5.14.0", feature = "ritual_rustdoc"))]
pub unsafe fn swap_items_at(&self, i: ::std::os::raw::c_int, j: ::std::os::raw::c_int) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QEntity_ptr_swapItemsAt(
self as *const crate::QVectorOfQEntity as *mut crate::QVectorOfQEntity,
i,
j,
)
}
/// <p>Removes the element at index position <i>i</i> and returns it.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QEntity* QVector<Qt3DCore::QEntity*>::takeAt(int i)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#takeAt">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Removes the element at index position <i>i</i> and returns it.</p>
/// <p>Equivalent to</p>
/// <pre class="cpp">
///
/// T t <span class="operator">=</span> at(i);
/// remove(i);
/// <span class="keyword">return</span> t;
///
/// </pre>
/// <p>Provided for compatibility with <a href="http://doc.qt.io/qt-5/qlist.html">QList</a>.</p>
/// <p>This function was introduced in Qt 5.2.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#takeFirst">takeFirst</a>(), <a href="http://doc.qt.io/qt-5/qvector.html#takeLast">takeLast</a>(), and <a href="http://doc.qt.io/qt-5/qlist.html#takeAt">QList::takeAt</a>().</p></div>
#[inline(always)]
pub unsafe fn take_at(&self, i: ::std::os::raw::c_int) -> ::qt_core::QPtr<crate::QEntity> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QEntity_ptr_takeAt(
self as *const crate::QVectorOfQEntity as *mut crate::QVectorOfQEntity,
i,
)
};
::qt_core::QPtr::from_raw(ffi_result)
}
/// <p>Removes the first item in the vector and returns it. This function assumes the vector is not empty. To avoid failure, call <a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>() before calling this function.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QEntity* QVector<Qt3DCore::QEntity*>::takeFirst()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#takeFirst">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Removes the first item in the vector and returns it. This function assumes the vector is not empty. To avoid failure, call <a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>() before calling this function.</p>
/// <p>This function was introduced in Qt 5.1.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#takeLast">takeLast</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#removeFirst">removeFirst</a>().</p></div>
#[inline(always)]
pub unsafe fn take_first(&self) -> ::qt_core::QPtr<crate::QEntity> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QEntity_ptr_takeFirst(
self as *const crate::QVectorOfQEntity as *mut crate::QVectorOfQEntity,
)
};
::qt_core::QPtr::from_raw(ffi_result)
}
/// <p>Removes the last item in the list and returns it. This function assumes the vector is not empty. To avoid failure, call <a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>() before calling this function.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QEntity* QVector<Qt3DCore::QEntity*>::takeLast()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#takeLast">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Removes the last item in the list and returns it. This function assumes the vector is not empty. To avoid failure, call <a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>() before calling this function.</p>
/// <p>If you don't use the return value, <a href="http://doc.qt.io/qt-5/qvector.html#removeLast">removeLast</a>() is more efficient.</p>
/// <p>This function was introduced in Qt 5.1.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#takeFirst">takeFirst</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#removeLast">removeLast</a>().</p></div>
#[inline(always)]
pub unsafe fn take_last(&self) -> ::qt_core::QPtr<crate::QEntity> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QEntity_ptr_takeLast(
self as *const crate::QVectorOfQEntity as *mut crate::QVectorOfQEntity,
)
};
::qt_core::QPtr::from_raw(ffi_result)
}
/// <p>Returns the value at index position <i>i</i> in the vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QEntity* QVector<Qt3DCore::QEntity*>::value(int i) const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#value">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the value at index position <i>i</i> in the vector.</p>
/// <p>If the index <i>i</i> is out of bounds, the function returns a <a href="http://doc.qt.io/qt-5/containers.html#default-constructed-value">default-constructed value</a>. If you are certain that <i>i</i> is within bounds, you can use <a href="http://doc.qt.io/qt-5/qvector.html#at">at</a>() instead, which is slightly faster.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#at">at</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#operator-5b-5d">operator[]</a>().</p></div>
#[inline(always)]
pub unsafe fn value_1a(&self, i: ::std::os::raw::c_int) -> ::qt_core::QPtr<crate::QEntity> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QEntity_ptr_value(
self as *const crate::QVectorOfQEntity,
i,
)
};
::qt_core::QPtr::from_raw(ffi_result)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QEntity* QVector<Qt3DCore::QEntity*>::value(int i, const Qt3DCore::QEntity*& defaultValue) const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#value-1">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This is an overloaded function.</p>
/// <p>If the index <i>i</i> is out of bounds, the function returns <i>defaultValue</i>.</p></div>
#[inline(always)]
pub unsafe fn value_2a(
&self,
i: ::std::os::raw::c_int,
default_value: *const *mut crate::QEntity,
) -> ::qt_core::QPtr<crate::QEntity> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QEntity_ptr_value1(
self as *const crate::QVectorOfQEntity,
i,
default_value,
)
};
::qt_core::QPtr::from_raw(ffi_result)
}
}
/// <p>The <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> class is a template class that provides a dynamic array.</p>
///
/// C++ class: <span style='color: green;'>```QVector<Qt3DCore::QComponent*>```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>The <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> class is a template class that provides a dynamic array.</p>
/// <p><a href="http://doc.qt.io/qt-5/qvector.html">QVector</a><T> is one of Qt's generic <a href="http://doc.qt.io/qt-5/containers.html">container classes</a>. It stores its items in adjacent memory locations and provides fast index-based access.</p>
/// <p><a href="http://doc.qt.io/qt-5/qlist.html">QList</a><T>, <a href="http://doc.qt.io/qt-5/qlinkedlist.html">QLinkedList</a><T>, <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a><T>, and <a href="http://doc.qt.io/qt-5/qvarlengtharray.html">QVarLengthArray</a><T> provide similar APIs and functionality. They are often interchangeable, but there are performance consequences. Here is an overview of use cases:</p>
/// <ul>
/// <li><a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> should be your default first choice. <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a><T> will usually give better performance than <a href="http://doc.qt.io/qt-5/qlist.html">QList</a><T>, because <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a><T> always stores its items sequentially in memory, where <a href="http://doc.qt.io/qt-5/qlist.html">QList</a><T> will allocate its items on the heap unless <code>sizeof(T) <= sizeof(void*)</code> and T has been declared to be either a <code>Q_MOVABLE_TYPE</code> or a <code>Q_PRIMITIVE_TYPE</code> using <a href="http://doc.qt.io/qt-5/qtglobal.html#Q_DECLARE_TYPEINFO">Q_DECLARE_TYPEINFO</a>. See the <a href="http://marcmutz.wordpress.com/effective-qt/containers/#containers-qlist">Pros and Cons of Using QList</a> for an explanation.</li>
/// <li>However, <a href="http://doc.qt.io/qt-5/qlist.html">QList</a> is used throughout the Qt APIs for passing parameters and for returning values. Use <a href="http://doc.qt.io/qt-5/qlist.html">QList</a> to interface with those APIs.</li>
/// <li>If you need a real linked list, which guarantees <a href="http://doc.qt.io/qt-5/containers.html#algorithmic-complexity">constant time</a> insertions mid-list and uses iterators to items rather than indexes, use <a href="http://doc.qt.io/qt-5/qlinkedlist.html">QLinkedList</a>.</li>
/// </ul>
/// <p><b>Note: </b><a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> and <a href="http://doc.qt.io/qt-5/qvarlengtharray.html">QVarLengthArray</a> both guarantee C-compatible array layout. <a href="http://doc.qt.io/qt-5/qlist.html">QList</a> does not. This might be important if your application must interface with a C API.</p><p><b>Note: </b>Iterators into a <a href="http://doc.qt.io/qt-5/qlinkedlist.html">QLinkedList</a> and references into heap-allocating QLists remain valid as long as the referenced items remain in the container. This is not true for iterators and references into a <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> and non-heap-allocating QLists.</p><p>Here's an example of a <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> that stores integers and a <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> that stores <a href="http://doc.qt.io/qt-5/qstring.html">QString</a> values:</p>
/// <pre class="cpp">
///
/// <span class="type"><a href="http://doc.qt.io/qt-5/qvector.html#QVector">QVector</a></span><span class="operator"><</span><span class="type">int</span><span class="operator">></span> integerVector;
/// <span class="type"><a href="http://doc.qt.io/qt-5/qvector.html#QVector">QVector</a></span><span class="operator"><</span><span class="type"><a href="http://doc.qt.io/qt-5/qstring.html">QString</a></span><span class="operator">></span> stringVector;
///
/// </pre>
/// <p><a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> stores its items in a vector (array). Typically, vectors are created with an initial size. For example, the following code constructs a <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> with 200 elements:</p>
/// <pre class="cpp">
///
/// <span class="type"><a href="http://doc.qt.io/qt-5/qvector.html#QVector">QVector</a></span><span class="operator"><</span><span class="type"><a href="http://doc.qt.io/qt-5/qstring.html">QString</a></span><span class="operator">></span> vector(<span class="number">200</span>);
///
/// </pre>
/// <p>The elements are automatically initialized with a <a href="http://doc.qt.io/qt-5/containers.html#default-constructed-value">default-constructed value</a>. If you want to initialize the vector with a different value, pass that value as the second argument to the constructor:</p>
/// <pre class="cpp">
///
/// <span class="type"><a href="http://doc.qt.io/qt-5/qvector.html#QVector">QVector</a></span><span class="operator"><</span><span class="type"><a href="http://doc.qt.io/qt-5/qstring.html">QString</a></span><span class="operator">></span> vector(<span class="number">200</span><span class="operator">,</span> <span class="string">"Pass"</span>);
///
/// </pre>
/// <p>You can also call <a href="http://doc.qt.io/qt-5/qvector.html#fill">fill</a>() at any time to fill the vector with a value.</p>
/// <p><a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> uses 0-based indexes, just like C++ arrays. To access the item at a particular index position, you can use operator[](). On non-const vectors, operator[]() returns a reference to the item that can be used on the left side of an assignment:</p>
/// <pre class="cpp">
///
/// <span class="keyword">if</span> (vector<span class="operator">[</span><span class="number">0</span><span class="operator">]</span> <span class="operator">=</span><span class="operator">=</span> <span class="string">"Liz"</span>)
///   vector<span class="operator">[</span><span class="number">0</span><span class="operator">]</span> <span class="operator">=</span> <span class="string">"Elizabeth"</span>;
///
/// </pre>
/// <p>For read-only access, an alternative syntax is to use <a href="http://doc.qt.io/qt-5/qvector.html#at">at</a>():</p>
/// <pre class="cpp">
///
/// <span class="keyword">for</span> (<span class="type">int</span> i <span class="operator">=</span> <span class="number">0</span>; i <span class="operator"><</span> vector<span class="operator">.</span>size(); <span class="operator">+</span><span class="operator">+</span>i) {
///   <span class="keyword">if</span> (vector<span class="operator">.</span>at(i) <span class="operator">=</span><span class="operator">=</span> <span class="string">"Alfonso"</span>)
///     cout <span class="operator"><</span><span class="operator"><</span> <span class="string">"Found Alfonso at position "</span> <span class="operator"><</span><span class="operator"><</span> i <span class="operator"><</span><span class="operator"><</span> endl;
/// }
///
/// </pre>
/// <p><a href="http://doc.qt.io/qt-5/qvector.html#at">at</a>() can be faster than operator[](), because it never causes a <a href="http://doc.qt.io/qt-5/implicit-sharing.html#deep-copy">deep copy</a> to occur.</p>
/// <p>Another way to access the data stored in a <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> is to call <a href="http://doc.qt.io/qt-5/qvector.html#data">data</a>(). The function returns a pointer to the first item in the vector. You can use the pointer to directly access and modify the elements stored in the vector. The pointer is also useful if you need to pass a <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> to a function that accepts a plain C++ array.</p>
/// <p>If you want to find all occurrences of a particular value in a vector, use <a href="http://doc.qt.io/qt-5/qvector.html#indexOf">indexOf</a>() or <a href="http://doc.qt.io/qt-5/qvector.html#lastIndexOf">lastIndexOf</a>(). The former searches forward starting from a given index position, the latter searches backward. Both return the index of the matching item if they found one; otherwise, they return -1. For example:</p>
/// <pre class="cpp">
///
/// <span class="type">int</span> i <span class="operator">=</span> vector<span class="operator">.</span>indexOf(<span class="string">"Harumi"</span>);
/// <span class="keyword">if</span> (i <span class="operator">!</span><span class="operator">=</span> <span class="operator">-</span><span class="number">1</span>)
///   cout <span class="operator"><</span><span class="operator"><</span> <span class="string">"First occurrence of Harumi is at position "</span> <span class="operator"><</span><span class="operator"><</span> i <span class="operator"><</span><span class="operator"><</span> endl;
///
/// </pre>
/// <p>If you simply want to check whether a vector contains a particular value, use <a href="http://doc.qt.io/qt-5/qvector.html#contains">contains</a>(). If you want to find out how many times a particular value occurs in the vector, use <a href="http://doc.qt.io/qt-5/qvector.html#count-1">count</a>().</p>
/// <p><a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> provides these basic functions to add, move, and remove items: <a href="http://doc.qt.io/qt-5/qvector.html#insert">insert</a>(), <a href="http://doc.qt.io/qt-5/qvector.html#replace">replace</a>(), <a href="http://doc.qt.io/qt-5/qvector.html#remove">remove</a>(), <a href="http://doc.qt.io/qt-5/qvector.html#prepend">prepend</a>(), <a href="http://doc.qt.io/qt-5/qvector.html#append">append</a>(). With the exception of <a href="http://doc.qt.io/qt-5/qvector.html#append">append</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#replace">replace</a>(), these functions can be slow (<a href="http://doc.qt.io/qt-5/containers.html#linear-time">linear time</a>) for large vectors, because they require moving many items in the vector by one position in memory. If you want a container class that provides fast insertion/removal in the middle, use <a href="http://doc.qt.io/qt-5/qlist.html">QList</a> or <a href="http://doc.qt.io/qt-5/qlinkedlist.html">QLinkedList</a> instead.</p>
/// <p>Unlike plain C++ arrays, QVectors can be resized at any time by calling <a href="http://doc.qt.io/qt-5/qvector.html#resize">resize</a>(). If the new size is larger than the old size, <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> might need to reallocate the whole vector. <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> tries to reduce the number of reallocations by preallocating up to twice as much memory as the actual data needs.</p>
/// <p>If you know in advance approximately how many items the <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> will contain, you can call <a href="http://doc.qt.io/qt-5/qvector.html#reserve">reserve</a>(), asking <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> to preallocate a certain amount of memory. You can also call <a href="http://doc.qt.io/qt-5/qvector.html#capacity">capacity</a>() to find out how much memory <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> actually allocated.</p>
/// <p>Note that using non-const operators and functions can cause <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> to do a deep copy of the data. This is due to <a href="http://doc.qt.io/qt-5/implicit-sharing.html">implicit sharing</a>.</p>
/// <p><a href="http://doc.qt.io/qt-5/qvector.html">QVector</a>'s value type must be an <a href="http://doc.qt.io/qt-5/containers.html#assignable-data-type">assignable data type</a>. This covers most data types that are commonly used, but the compiler won't let you, for example, store a <a href="http://doc.qt.io/qt-5/qwidget.html">QWidget</a> as a value; instead, store a <a href="http://doc.qt.io/qt-5/qwidget.html">QWidget</a> *. A few functions have additional requirements; for example, <a href="http://doc.qt.io/qt-5/qvector.html#indexOf">indexOf</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#lastIndexOf">lastIndexOf</a>() expect the value type to support <code>operator==()</code>. These requirements are documented on a per-function basis.</p>
/// <p>Like the other container classes, <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> provides <a href="http://doc.qt.io/qt-5/containers.html#java-style-iterators">Java-style iterators</a> (<a href="http://doc.qt.io/qt-5/qvectoriterator.html">QVectorIterator</a> and <a href="http://doc.qt.io/qt-5/qmutablevectoriterator.html">QMutableVectorIterator</a>) and <a href="http://doc.qt.io/qt-5/containers.html#stl-style-iterators">STL-style iterators</a> (<a href="http://doc.qt.io/qt-5/qvector.html#const_iterator-typedef">QVector::const_iterator</a> and <a href="http://doc.qt.io/qt-5/qvector.html#iterator-typedefx">QVector::iterator</a>). In practice, these are rarely used, because you can use indexes into the <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a>.</p>
/// <p>In addition to <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a>, Qt also provides <a href="http://doc.qt.io/qt-5/qvarlengtharray.html">QVarLengthArray</a>, a very low-level class with little functionality that is optimized for speed.</p>
/// <p><a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> does <i>not</i> support inserting, prepending, appending or replacing with references to its own values. Doing so will cause your application to abort with an error message.</p>
/// <a name="more-information-on-using-qt-containers"></a>
/// <h4>More Information on Using Qt Containers</h4>
/// <p>For a detailed discussion comparing Qt containers with each other and with STL containers, see <a href="http://marcmutz.wordpress.com/effective-qt/containers/">Understand the Qt Containers</a>.</p></div>
#[repr(C)]
pub struct QVectorOfQComponent {
_unused: u8,
}
impl QVectorOfQComponent {
/// <p>Appends the items of the <i>other</i> vector to this vector and returns a reference to this vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```QVector<Qt3DCore::QComponent*>& QVector<Qt3DCore::QComponent*>::operator+=(const QVector<Qt3DCore::QComponent*>& l)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#operator-2b-eq">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Appends the items of the <i>other</i> vector to this vector and returns a reference to this vector.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#operator-2b">operator+</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#append">append</a>().</p></div>
#[inline(always)]
pub unsafe fn add_assign_q_vector_of_q_component(
&self,
l: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QVectorOfQComponent>>,
) -> ::cpp_core::Ref<crate::QVectorOfQComponent> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QComponent_ptr_operator__4(
self as *const crate::QVectorOfQComponent as *mut crate::QVectorOfQComponent,
::cpp_core::CastInto::<::cpp_core::Ref<crate::QVectorOfQComponent>>::cast_into(l)
.as_raw_ptr(),
)
};
::cpp_core::Ref::from_raw(ffi_result).expect("attempted to construct a null Ref")
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```QVector<Qt3DCore::QComponent*>& QVector<Qt3DCore::QComponent*>::operator+=(const Qt3DCore::QComponent*& t)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#operator-2b-eq-1">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This is an overloaded function.</p>
/// <p>Appends <i>value</i> to the vector.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#append">append</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#operator-lt-lt">operator<<</a>().</p></div>
#[inline(always)]
pub unsafe fn add_assign_q_component(
&self,
t: *const *mut crate::QComponent,
) -> ::cpp_core::Ref<crate::QVectorOfQComponent> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QComponent_ptr_operator__5(
self as *const crate::QVectorOfQComponent as *mut crate::QVectorOfQComponent,
t,
)
};
::cpp_core::Ref::from_raw(ffi_result).expect("attempted to construct a null Ref")
}
/// <p>Inserts <i>value</i> at the end of the vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QComponent*>::append(const Qt3DCore::QComponent*& t)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#append">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Inserts <i>value</i> at the end of the vector.</p>
/// <p>Example:</p>
/// <pre class="cpp">
///
/// <span class="type"><a href="http://doc.qt.io/qt-5/qvector.html#QVector">QVector</a></span><span class="operator"><</span><span class="type"><a href="http://doc.qt.io/qt-5/qstring.html">QString</a></span><span class="operator">></span> vector;
/// vector<span class="operator">.</span>append(<span class="string">"one"</span>);
/// vector<span class="operator">.</span>append(<span class="string">"two"</span>);
/// <span class="type"><a href="http://doc.qt.io/qt-5/qstring.html">QString</a></span> three <span class="operator">=</span> <span class="string">"three"</span>;
/// vector<span class="operator">.</span>append(three);
/// <span class="comment">// vector: ["one", "two", "three"]</span>
/// <span class="comment">// three: "three"</span>
///
/// </pre>
/// <p>This is the same as calling resize(<a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>() + 1) and assigning <i>value</i> to the new last element in the vector.</p>
/// <p>This operation is relatively fast, because <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> typically allocates more memory than necessary, so it can grow without reallocating the entire vector each time.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#operator-lt-lt">operator<<</a>(), <a href="http://doc.qt.io/qt-5/qvector.html#prepend">prepend</a>(), and <a href="http://doc.qt.io/qt-5/qvector.html#insert">insert</a>().</p></div>
#[inline(always)]
pub unsafe fn append_q_component(&self, t: *const *mut crate::QComponent) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QComponent_ptr_append(
self as *const crate::QVectorOfQComponent as *mut crate::QVectorOfQComponent,
t,
)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QComponent*>::append(const QVector<Qt3DCore::QComponent*>& l)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#append-2">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This is an overloaded function.</p>
/// <p>Appends the items of the <i>value</i> vector to this vector.</p>
/// <p>This function was introduced in Qt 5.5.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#operator-lt-lt">operator<<</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#operator-2b-eq">operator+=</a>().</p></div>
#[inline(always)]
pub unsafe fn append_q_vector_of_q_component(
&self,
l: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QVectorOfQComponent>>,
) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QComponent_ptr_append2(
self as *const crate::QVectorOfQComponent as *mut crate::QVectorOfQComponent,
::cpp_core::CastInto::<::cpp_core::Ref<crate::QVectorOfQComponent>>::cast_into(l)
.as_raw_ptr(),
)
}
/// <p>Returns the item at index position <i>i</i> in the vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```const Qt3DCore::QComponent*& QVector<Qt3DCore::QComponent*>::at(int i) const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#at">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the item at index position <i>i</i> in the vector.</p>
/// <p><i>i</i> must be a valid index position in the vector (i.e., 0 <= <i>i</i> < <a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>()).</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#value">value</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#operator-5b-5d">operator[]</a>().</p></div>
#[inline(always)]
pub unsafe fn at(&self, i: ::std::os::raw::c_int) -> *const *mut crate::QComponent {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QComponent_ptr_at(
self as *const crate::QVectorOfQComponent,
i,
)
}
/// <p>This function is provided for STL compatibility. It is equivalent to <a href="http://doc.qt.io/qt-5/qvector.html#last">last</a>().</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QComponent*& QVector<Qt3DCore::QComponent*>::back()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#back">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This function is provided for STL compatibility. It is equivalent to <a href="http://doc.qt.io/qt-5/qvector.html#last">last</a>().</p></div>
#[inline(always)]
pub unsafe fn back_mut(&self) -> *mut *mut crate::QComponent {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QComponent_ptr_back(
self as *const crate::QVectorOfQComponent as *mut crate::QVectorOfQComponent,
)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```const Qt3DCore::QComponent*& QVector<Qt3DCore::QComponent*>::back() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#back-1">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This is an overloaded function.</p></div>
#[inline(always)]
pub unsafe fn back(&self) -> *const *mut crate::QComponent {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QComponent_ptr_back1(
self as *const crate::QVectorOfQComponent,
)
}
/// <p>Returns the maximum number of items that can be stored in the vector without forcing a reallocation.</p>
///
/// Calls C++ function: <span style='color: green;'>```int QVector<Qt3DCore::QComponent*>::capacity() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#capacity">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the maximum number of items that can be stored in the vector without forcing a reallocation.</p>
/// <p>The sole purpose of this function is to provide a means of fine tuning <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a>'s memory usage. In general, you will rarely ever need to call this function. If you want to know how many items are in the vector, call <a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>().</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#reserve">reserve</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#squeeze">squeeze</a>().</p></div>
#[inline(always)]
pub unsafe fn capacity(&self) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QComponent_ptr_capacity(
self as *const crate::QVectorOfQComponent,
)
}
/// <p>Removes all the elements from the vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QComponent*>::clear()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#clear">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Removes all the elements from the vector.</p>
/// <p><b>Note: </b>Until Qt 5.6, this also released the memory used by the vector. From Qt 5.7, the capacity is preserved. To shed all capacity, swap with a default-constructed vector:</p><pre class="cpp">
///
/// <span class="type"><a href="http://doc.qt.io/qt-5/qvector.html#QVector">QVector</a></span><span class="operator"><</span>T<span class="operator">></span> v <span class="operator">.</span><span class="operator">.</span><span class="operator">.</span>;
/// <span class="type"><a href="http://doc.qt.io/qt-5/qvector.html#QVector">QVector</a></span><span class="operator"><</span>T<span class="operator">></span>()<span class="operator">.</span>swap(v);
/// Q_ASSERT(v<span class="operator">.</span>capacity() <span class="operator">=</span><span class="operator">=</span> <span class="number">0</span>);
///
/// </pre>
/// <p>or call <a href="http://doc.qt.io/qt-5/qvector.html#squeeze">squeeze</a>().</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#squeeze">squeeze</a>().</p></div>
#[inline(always)]
pub unsafe fn clear(&self) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QComponent_ptr_clear(
self as *const crate::QVectorOfQComponent as *mut crate::QVectorOfQComponent,
)
}
/// <p>Returns a const pointer to the data stored in the vector. The pointer can be used to access the items in the vector. The pointer remains valid as long as the vector isn't reallocated.</p>
///
/// Calls C++ function: <span style='color: green;'>```const Qt3DCore::QComponent** QVector<Qt3DCore::QComponent*>::constData() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#constData">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns a const pointer to the data stored in the vector. The pointer can be used to access the items in the vector. The pointer remains valid as long as the vector isn't reallocated.</p>
/// <p>This function is mostly useful to pass a vector to a function that accepts a plain C++ array.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#data">data</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#operator-5b-5d">operator[]</a>().</p></div>
#[inline(always)]
pub unsafe fn const_data(&self) -> *const *mut crate::QComponent {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QComponent_ptr_constData(
self as *const crate::QVectorOfQComponent,
)
}
/// <p>Returns a const reference to the first item in the vector. This function assumes that the vector isn't empty.</p>
///
/// Calls C++ function: <span style='color: green;'>```const Qt3DCore::QComponent*& QVector<Qt3DCore::QComponent*>::constFirst() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#constFirst">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns a const reference to the first item in the vector. This function assumes that the vector isn't empty.</p>
/// <p>This function was introduced in Qt 5.6.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#constLast">constLast</a>(), <a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>(), and <a href="http://doc.qt.io/qt-5/qvector.html#first">first</a>().</p></div>
#[inline(always)]
pub unsafe fn const_first(&self) -> *const *mut crate::QComponent {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QComponent_ptr_constFirst(
self as *const crate::QVectorOfQComponent,
)
}
/// <p>Returns a const reference to the last item in the vector. This function assumes that the vector isn't empty.</p>
///
/// Calls C++ function: <span style='color: green;'>```const Qt3DCore::QComponent*& QVector<Qt3DCore::QComponent*>::constLast() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#constLast">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns a const reference to the last item in the vector. This function assumes that the vector isn't empty.</p>
/// <p>This function was introduced in Qt 5.6.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#constFirst">constFirst</a>(), <a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>(), and <a href="http://doc.qt.io/qt-5/qvector.html#last">last</a>().</p></div>
#[inline(always)]
pub unsafe fn const_last(&self) -> *const *mut crate::QComponent {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QComponent_ptr_constLast(
self as *const crate::QVectorOfQComponent,
)
}
/// <p>Returns <code>true</code> if the vector contains an occurrence of <i>value</i>; otherwise returns <code>false</code>.</p>
///
/// Calls C++ function: <span style='color: green;'>```bool QVector<Qt3DCore::QComponent*>::contains(const Qt3DCore::QComponent*& t) const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#contains">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns <code>true</code> if the vector contains an occurrence of <i>value</i>; otherwise returns <code>false</code>.</p>
/// <p>This function requires the value type to have an implementation of <code>operator==()</code>.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#indexOf">indexOf</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#count-1">count</a>().</p></div>
#[inline(always)]
pub unsafe fn contains(&self, t: *const *mut crate::QComponent) -> bool {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QComponent_ptr_contains(
self as *const crate::QVectorOfQComponent,
t,
)
}
/// <p>Assigns <i>other</i> to this vector and returns a reference to this vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```QVector<Qt3DCore::QComponent*>& QVector<Qt3DCore::QComponent*>::operator=(const QVector<Qt3DCore::QComponent*>& v)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#operator-eq">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Assigns <i>other</i> to this vector and returns a reference to this vector.</p></div>
#[inline(always)]
pub unsafe fn copy_from(
&self,
v: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QVectorOfQComponent>>,
) -> ::cpp_core::Ref<crate::QVectorOfQComponent> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QComponent_ptr_operator_(
self as *const crate::QVectorOfQComponent as *mut crate::QVectorOfQComponent,
::cpp_core::CastInto::<::cpp_core::Ref<crate::QVectorOfQComponent>>::cast_into(v)
.as_raw_ptr(),
)
};
::cpp_core::Ref::from_raw(ffi_result).expect("attempted to construct a null Ref")
}
/// <p>Returns the number of occurrences of <i>value</i> in the vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```int QVector<Qt3DCore::QComponent*>::count(const Qt3DCore::QComponent*& t) const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#count">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the number of occurrences of <i>value</i> in the vector.</p>
/// <p>This function requires the value type to have an implementation of <code>operator==()</code>.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#contains">contains</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#indexOf">indexOf</a>().</p></div>
#[inline(always)]
pub unsafe fn count_1a(&self, t: *const *mut crate::QComponent) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QComponent_ptr_count(
self as *const crate::QVectorOfQComponent,
t,
)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```int QVector<Qt3DCore::QComponent*>::count() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#count-1">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This is an overloaded function.</p>
/// <p>Same as <a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>().</p></div>
#[inline(always)]
pub unsafe fn count_0a(&self) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QComponent_ptr_count1(
self as *const crate::QVectorOfQComponent,
)
}
/// <p>Returns a pointer to the data stored in the vector. The pointer can be used to access and modify the items in the vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QComponent** QVector<Qt3DCore::QComponent*>::data()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#data">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns a pointer to the data stored in the vector. The pointer can be used to access and modify the items in the vector.</p>
/// <p>Example:</p>
/// <pre class="cpp">
///
/// <span class="type"><a href="http://doc.qt.io/qt-5/qvector.html#QVector">QVector</a></span><span class="operator"><</span><span class="type">int</span><span class="operator">></span> vector(<span class="number">10</span>);
/// <span class="type">int</span> <span class="operator">*</span>data <span class="operator">=</span> vector<span class="operator">.</span>data();
/// <span class="keyword">for</span> (<span class="type">int</span> i <span class="operator">=</span> <span class="number">0</span>; i <span class="operator"><</span> <span class="number">10</span>; <span class="operator">+</span><span class="operator">+</span>i)
///   data<span class="operator">[</span>i<span class="operator">]</span> <span class="operator">=</span> <span class="number">2</span> <span class="operator">*</span> i;
///
/// </pre>
/// <p>The pointer remains valid as long as the vector isn't reallocated.</p>
/// <p>This function is mostly useful to pass a vector to a function that accepts a plain C++ array.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#constData">constData</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#operator-5b-5d">operator[]</a>().</p></div>
#[inline(always)]
pub unsafe fn data_mut(&self) -> *mut *mut crate::QComponent {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QComponent_ptr_data(
self as *const crate::QVectorOfQComponent as *mut crate::QVectorOfQComponent,
)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```const Qt3DCore::QComponent** QVector<Qt3DCore::QComponent*>::data() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#data-1">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This is an overloaded function.</p></div>
#[inline(always)]
pub unsafe fn data(&self) -> *const *mut crate::QComponent {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QComponent_ptr_data1(
self as *const crate::QVectorOfQComponent,
)
}
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QComponent*>::detach()```</span>.
#[inline(always)]
pub unsafe fn detach(&self) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QComponent_ptr_detach(
self as *const crate::QVectorOfQComponent as *mut crate::QVectorOfQComponent,
)
}
/// <p>This function is provided for STL compatibility. It is equivalent to <a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>(), returning <code>true</code> if the vector is empty; otherwise returns <code>false</code>.</p>
///
/// Calls C++ function: <span style='color: green;'>```bool QVector<Qt3DCore::QComponent*>::empty() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#empty">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This function is provided for STL compatibility. It is equivalent to <a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>(), returning <code>true</code> if the vector is empty; otherwise returns <code>false</code>.</p></div>
#[inline(always)]
pub unsafe fn empty(&self) -> bool {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QComponent_ptr_empty(
self as *const crate::QVectorOfQComponent,
)
}
/// <p>Returns <code>true</code> if this vector is not empty and its last item is equal to <i>value</i>; otherwise returns <code>false</code>.</p>
///
/// Calls C++ function: <span style='color: green;'>```bool QVector<Qt3DCore::QComponent*>::endsWith(const Qt3DCore::QComponent*& t) const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#endsWith">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns <code>true</code> if this vector is not empty and its last item is equal to <i>value</i>; otherwise returns <code>false</code>.</p>
/// <p>This function was introduced in Qt 4.5.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#last">last</a>().</p></div>
#[inline(always)]
pub unsafe fn ends_with(&self, t: *const *mut crate::QComponent) -> bool {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QComponent_ptr_endsWith(
self as *const crate::QVectorOfQComponent,
t,
)
}
/// <p>Assigns <i>value</i> to all items in the vector. If <i>size</i> is different from -1 (the default), the vector is resized to size <i>size</i> beforehand.</p>
///
/// Calls C++ function: <span style='color: green;'>```QVector<Qt3DCore::QComponent*>& QVector<Qt3DCore::QComponent*>::fill(const Qt3DCore::QComponent*& t, int size = …)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#fill">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Assigns <i>value</i> to all items in the vector. If <i>size</i> is different from -1 (the default), the vector is resized to size <i>size</i> beforehand.</p>
/// <p>Example:</p>
/// <pre class="cpp">
///
/// <span class="type"><a href="http://doc.qt.io/qt-5/qvector.html#QVector">QVector</a></span><span class="operator"><</span><span class="type"><a href="http://doc.qt.io/qt-5/qstring.html">QString</a></span><span class="operator">></span> vector(<span class="number">3</span>);
/// vector<span class="operator">.</span>fill(<span class="string">"Yes"</span>);
/// <span class="comment">// vector: ["Yes", "Yes", "Yes"]</span>
///
/// vector<span class="operator">.</span>fill(<span class="string">"oh"</span><span class="operator">,</span> <span class="number">5</span>);
/// <span class="comment">// vector: ["oh", "oh", "oh", "oh", "oh"]</span>
///
/// </pre>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#resize">resize</a>().</p></div>
#[inline(always)]
pub unsafe fn fill_2a(
&self,
t: *const *mut crate::QComponent,
size: ::std::os::raw::c_int,
) -> ::cpp_core::Ref<crate::QVectorOfQComponent> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QComponent_ptr_fill(
self as *const crate::QVectorOfQComponent as *mut crate::QVectorOfQComponent,
t,
size,
)
};
::cpp_core::Ref::from_raw(ffi_result).expect("attempted to construct a null Ref")
}
/// <p>Assigns <i>value</i> to all items in the vector. If <i>size</i> is different from -1 (the default), the vector is resized to size <i>size</i> beforehand.</p>
///
/// Calls C++ function: <span style='color: green;'>```QVector<Qt3DCore::QComponent*>& QVector<Qt3DCore::QComponent*>::fill(const Qt3DCore::QComponent*& t)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#fill">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Assigns <i>value</i> to all items in the vector. If <i>size</i> is different from -1 (the default), the vector is resized to size <i>size</i> beforehand.</p>
/// <p>Example:</p>
/// <pre class="cpp">
///
/// <span class="type"><a href="http://doc.qt.io/qt-5/qvector.html#QVector">QVector</a></span><span class="operator"><</span><span class="type"><a href="http://doc.qt.io/qt-5/qstring.html">QString</a></span><span class="operator">></span> vector(<span class="number">3</span>);
/// vector<span class="operator">.</span>fill(<span class="string">"Yes"</span>);
/// <span class="comment">// vector: ["Yes", "Yes", "Yes"]</span>
///
/// vector<span class="operator">.</span>fill(<span class="string">"oh"</span><span class="operator">,</span> <span class="number">5</span>);
/// <span class="comment">// vector: ["oh", "oh", "oh", "oh", "oh"]</span>
///
/// </pre>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#resize">resize</a>().</p></div>
#[inline(always)]
pub unsafe fn fill_1a(
&self,
t: *const *mut crate::QComponent,
) -> ::cpp_core::Ref<crate::QVectorOfQComponent> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QComponent_ptr_fill1(
self as *const crate::QVectorOfQComponent as *mut crate::QVectorOfQComponent,
t,
)
};
::cpp_core::Ref::from_raw(ffi_result).expect("attempted to construct a null Ref")
}
/// <p>Returns a reference to the first item in the vector. This function assumes that the vector isn't empty.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QComponent*& QVector<Qt3DCore::QComponent*>::first()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#first">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns a reference to the first item in the vector. This function assumes that the vector isn't empty.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#last">last</a>(), <a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>(), and <a href="http://doc.qt.io/qt-5/qvector.html#constFirst">constFirst</a>().</p></div>
#[inline(always)]
pub unsafe fn first_mut(&self) -> *mut *mut crate::QComponent {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QComponent_ptr_first(
self as *const crate::QVectorOfQComponent as *mut crate::QVectorOfQComponent,
)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```const Qt3DCore::QComponent*& QVector<Qt3DCore::QComponent*>::first() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#first-1">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This is an overloaded function.</p></div>
#[inline(always)]
pub unsafe fn first(&self) -> *const *mut crate::QComponent {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QComponent_ptr_first1(
self as *const crate::QVectorOfQComponent,
)
}
/// <p>This function is provided for STL compatibility. It is equivalent to <a href="http://doc.qt.io/qt-5/qvector.html#first">first</a>().</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QComponent*& QVector<Qt3DCore::QComponent*>::front()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#front">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This function is provided for STL compatibility. It is equivalent to <a href="http://doc.qt.io/qt-5/qvector.html#first">first</a>().</p></div>
#[inline(always)]
pub unsafe fn front_mut(&self) -> *mut *mut crate::QComponent {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QComponent_ptr_front(
self as *const crate::QVectorOfQComponent as *mut crate::QVectorOfQComponent,
)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```const Qt3DCore::QComponent*& QVector<Qt3DCore::QComponent*>::front() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#front-1">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This is an overloaded function.</p></div>
#[inline(always)]
pub unsafe fn front(&self) -> *const *mut crate::QComponent {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QComponent_ptr_front1(
self as *const crate::QVectorOfQComponent,
)
}
/// <p>Returns the item at index position <i>i</i> as a modifiable reference.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QComponent*& QVector<Qt3DCore::QComponent*>::operator[](int i)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#operator-5b-5d">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the item at index position <i>i</i> as a modifiable reference.</p>
/// <p><i>i</i> must be a valid index position in the vector (i.e., 0 <= <i>i</i> < <a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>()).</p>
/// <p>Note that using non-const operators can cause <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> to do a deep copy.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#at">at</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#value">value</a>().</p></div>
#[inline(always)]
pub unsafe fn index_mut(&self, i: ::std::os::raw::c_int) -> *mut *mut crate::QComponent {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QComponent_ptr_operator__2(
self as *const crate::QVectorOfQComponent as *mut crate::QVectorOfQComponent,
i,
)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```const Qt3DCore::QComponent*& QVector<Qt3DCore::QComponent*>::operator[](int i) const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#operator-5b-5d-1">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This is an overloaded function.</p>
/// <p>Same as at(<i>i</i>).</p></div>
#[inline(always)]
pub unsafe fn index(&self, i: ::std::os::raw::c_int) -> *const *mut crate::QComponent {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QComponent_ptr_operator__3(
self as *const crate::QVectorOfQComponent,
i,
)
}
/// <p>Returns the index position of the first occurrence of <i>value</i> in the vector, searching forward from index position <i>from</i>. Returns -1 if no item matched.</p>
///
/// Calls C++ function: <span style='color: green;'>```int QVector<Qt3DCore::QComponent*>::indexOf(const Qt3DCore::QComponent*& t, int from = …) const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#indexOf">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the index position of the first occurrence of <i>value</i> in the vector, searching forward from index position <i>from</i>. Returns -1 if no item matched.</p>
/// <p>Example:</p>
/// <pre class="cpp">
///
/// <span class="type"><a href="http://doc.qt.io/qt-5/qvector.html#QVector">QVector</a></span><span class="operator"><</span><span class="type"><a href="http://doc.qt.io/qt-5/qstring.html">QString</a></span><span class="operator">></span> vector;
/// vector <span class="operator"><</span><span class="operator"><</span> <span class="string">"A"</span> <span class="operator"><</span><span class="operator"><</span> <span class="string">"B"</span> <span class="operator"><</span><span class="operator"><</span> <span class="string">"C"</span> <span class="operator"><</span><span class="operator"><</span> <span class="string">"B"</span> <span class="operator"><</span><span class="operator"><</span> <span class="string">"A"</span>;
/// vector<span class="operator">.</span>indexOf(<span class="string">"B"</span>); <span class="comment">// returns 1</span>
/// vector<span class="operator">.</span>indexOf(<span class="string">"B"</span><span class="operator">,</span> <span class="number">1</span>); <span class="comment">// returns 1</span>
/// vector<span class="operator">.</span>indexOf(<span class="string">"B"</span><span class="operator">,</span> <span class="number">2</span>); <span class="comment">// returns 3</span>
/// vector<span class="operator">.</span>indexOf(<span class="string">"X"</span>); <span class="comment">// returns -1</span>
///
/// </pre>
/// <p>This function requires the value type to have an implementation of <code>operator==()</code>.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#lastIndexOf">lastIndexOf</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#contains">contains</a>().</p></div>
#[inline(always)]
pub unsafe fn index_of_2a(
&self,
t: *const *mut crate::QComponent,
from: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QComponent_ptr_indexOf(
self as *const crate::QVectorOfQComponent,
t,
from,
)
}
/// <p>Returns the index position of the first occurrence of <i>value</i> in the vector, searching forward from index position <i>from</i>. Returns -1 if no item matched.</p>
///
/// Calls C++ function: <span style='color: green;'>```int QVector<Qt3DCore::QComponent*>::indexOf(const Qt3DCore::QComponent*& t) const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#indexOf">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the index position of the first occurrence of <i>value</i> in the vector, searching forward from index position <i>from</i>. Returns -1 if no item matched.</p>
/// <p>Example:</p>
/// <pre class="cpp">
///
/// <span class="type"><a href="http://doc.qt.io/qt-5/qvector.html#QVector">QVector</a></span><span class="operator"><</span><span class="type"><a href="http://doc.qt.io/qt-5/qstring.html">QString</a></span><span class="operator">></span> vector;
/// vector <span class="operator"><</span><span class="operator"><</span> <span class="string">"A"</span> <span class="operator"><</span><span class="operator"><</span> <span class="string">"B"</span> <span class="operator"><</span><span class="operator"><</span> <span class="string">"C"</span> <span class="operator"><</span><span class="operator"><</span> <span class="string">"B"</span> <span class="operator"><</span><span class="operator"><</span> <span class="string">"A"</span>;
/// vector<span class="operator">.</span>indexOf(<span class="string">"B"</span>); <span class="comment">// returns 1</span>
/// vector<span class="operator">.</span>indexOf(<span class="string">"B"</span><span class="operator">,</span> <span class="number">1</span>); <span class="comment">// returns 1</span>
/// vector<span class="operator">.</span>indexOf(<span class="string">"B"</span><span class="operator">,</span> <span class="number">2</span>); <span class="comment">// returns 3</span>
/// vector<span class="operator">.</span>indexOf(<span class="string">"X"</span>); <span class="comment">// returns -1</span>
///
/// </pre>
/// <p>This function requires the value type to have an implementation of <code>operator==()</code>.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#lastIndexOf">lastIndexOf</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#contains">contains</a>().</p></div>
#[inline(always)]
pub unsafe fn index_of_1a(&self, t: *const *mut crate::QComponent) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QComponent_ptr_indexOf1(
self as *const crate::QVectorOfQComponent,
t,
)
}
/// <p>Inserts <i>value</i> at index position <i>i</i> in the vector. If <i>i</i> is 0, the value is prepended to the vector. If <i>i</i> is <a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>(), the value is appended to the vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QComponent*>::insert(int i, const Qt3DCore::QComponent*& t)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#insert">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Inserts <i>value</i> at index position <i>i</i> in the vector. If <i>i</i> is 0, the value is prepended to the vector. If <i>i</i> is <a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>(), the value is appended to the vector.</p>
/// <p>Example:</p>
/// <pre class="cpp">
///
/// <span class="type"><a href="http://doc.qt.io/qt-5/qvector.html#QVector">QVector</a></span><span class="operator"><</span><span class="type"><a href="http://doc.qt.io/qt-5/qstring.html">QString</a></span><span class="operator">></span> vector;
/// vector <span class="operator"><</span><span class="operator"><</span> <span class="string">"alpha"</span> <span class="operator"><</span><span class="operator"><</span> <span class="string">"beta"</span> <span class="operator"><</span><span class="operator"><</span> <span class="string">"delta"</span>;
/// vector<span class="operator">.</span>insert(<span class="number">2</span><span class="operator">,</span> <span class="string">"gamma"</span>);
/// <span class="comment">// vector: ["alpha", "beta", "gamma", "delta"]</span>
///
/// </pre>
/// <p>For large vectors, this operation can be slow (<a href="http://doc.qt.io/qt-5/containers.html#linear-time">linear time</a>), because it requires moving all the items at indexes <i>i</i> and above by one position further in memory. If you want a container class that provides a fast insert() function, use <a href="http://doc.qt.io/qt-5/qlinkedlist.html">QLinkedList</a> instead.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#append">append</a>(), <a href="http://doc.qt.io/qt-5/qvector.html#prepend">prepend</a>(), and <a href="http://doc.qt.io/qt-5/qvector.html#remove">remove</a>().</p></div>
#[inline(always)]
pub unsafe fn insert_2a(&self, i: ::std::os::raw::c_int, t: *const *mut crate::QComponent) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QComponent_ptr_insert(
self as *const crate::QVectorOfQComponent as *mut crate::QVectorOfQComponent,
i,
t,
)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QComponent*>::insert(int i, int n, const Qt3DCore::QComponent*& t)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#insert-1">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This is an overloaded function.</p>
/// <p>Inserts <i>count</i> copies of <i>value</i> at index position <i>i</i> in the vector.</p>
/// <p>Example:</p>
/// <pre class="cpp">
///
/// <span class="type"><a href="http://doc.qt.io/qt-5/qvector.html#QVector">QVector</a></span><span class="operator"><</span><span class="type">double</span><span class="operator">></span> vector;
/// vector <span class="operator"><</span><span class="operator"><</span> <span class="number">2.718</span> <span class="operator"><</span><span class="operator"><</span> <span class="number">1.442</span> <span class="operator"><</span><span class="operator"><</span> <span class="number">0.4342</span>;
/// vector<span class="operator">.</span>insert(<span class="number">1</span><span class="operator">,</span> <span class="number">3</span><span class="operator">,</span> <span class="number">9.9</span>);
/// <span class="comment">// vector: [2.718, 9.9, 9.9, 9.9, 1.442, 0.4342]</span>
///
/// </pre></div>
#[inline(always)]
pub unsafe fn insert_3a(
&self,
i: ::std::os::raw::c_int,
n: ::std::os::raw::c_int,
t: *const *mut crate::QComponent,
) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QComponent_ptr_insert1(
self as *const crate::QVectorOfQComponent as *mut crate::QVectorOfQComponent,
i,
n,
t,
)
}
/// Calls C++ function: <span style='color: green;'>```bool QVector<Qt3DCore::QComponent*>::isDetached() const```</span>.
#[inline(always)]
pub unsafe fn is_detached(&self) -> bool {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QComponent_ptr_isDetached(
self as *const crate::QVectorOfQComponent,
)
}
/// <p>Returns <code>true</code> if the vector has size 0; otherwise returns <code>false</code>.</p>
///
/// Calls C++ function: <span style='color: green;'>```bool QVector<Qt3DCore::QComponent*>::isEmpty() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns <code>true</code> if the vector has size 0; otherwise returns <code>false</code>.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#resize">resize</a>().</p></div>
#[inline(always)]
pub unsafe fn is_empty(&self) -> bool {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QComponent_ptr_isEmpty(
self as *const crate::QVectorOfQComponent,
)
}
/// Calls C++ function: <span style='color: green;'>```bool QVector<Qt3DCore::QComponent*>::isSharedWith(const QVector<Qt3DCore::QComponent*>& other) const```</span>.
#[inline(always)]
pub unsafe fn is_shared_with(
&self,
other: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QVectorOfQComponent>>,
) -> bool {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QComponent_ptr_isSharedWith(
self as *const crate::QVectorOfQComponent,
::cpp_core::CastInto::<::cpp_core::Ref<crate::QVectorOfQComponent>>::cast_into(other)
.as_raw_ptr(),
)
}
/// <p>Returns a reference to the last item in the vector. This function assumes that the vector isn't empty.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QComponent*& QVector<Qt3DCore::QComponent*>::last()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#last">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns a reference to the last item in the vector. This function assumes that the vector isn't empty.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#first">first</a>(), <a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>(), and <a href="http://doc.qt.io/qt-5/qvector.html#constLast">constLast</a>().</p></div>
#[inline(always)]
pub unsafe fn last_mut(&self) -> *mut *mut crate::QComponent {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QComponent_ptr_last(
self as *const crate::QVectorOfQComponent as *mut crate::QVectorOfQComponent,
)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```const Qt3DCore::QComponent*& QVector<Qt3DCore::QComponent*>::last() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#last-1">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This is an overloaded function.</p></div>
#[inline(always)]
pub unsafe fn last(&self) -> *const *mut crate::QComponent {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QComponent_ptr_last1(
self as *const crate::QVectorOfQComponent,
)
}
/// <p>Returns the index position of the last occurrence of the value <i>value</i> in the vector, searching backward from index position <i>from</i>. If <i>from</i> is -1 (the default), the search starts at the last item. Returns -1 if no item matched.</p>
///
/// Calls C++ function: <span style='color: green;'>```int QVector<Qt3DCore::QComponent*>::lastIndexOf(const Qt3DCore::QComponent*& t, int from = …) const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#lastIndexOf">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the index position of the last occurrence of the value <i>value</i> in the vector, searching backward from index position <i>from</i>. If <i>from</i> is -1 (the default), the search starts at the last item. Returns -1 if no item matched.</p>
/// <p>Example:</p>
/// <pre class="cpp">
///
/// <span class="type"><a href="http://doc.qt.io/qt-5/qlist.html">QList</a></span><span class="operator"><</span><span class="type"><a href="http://doc.qt.io/qt-5/qstring.html">QString</a></span><span class="operator">></span> vector;
/// vector <span class="operator"><</span><span class="operator"><</span> <span class="string">"A"</span> <span class="operator"><</span><span class="operator"><</span> <span class="string">"B"</span> <span class="operator"><</span><span class="operator"><</span> <span class="string">"C"</span> <span class="operator"><</span><span class="operator"><</span> <span class="string">"B"</span> <span class="operator"><</span><span class="operator"><</span> <span class="string">"A"</span>;
/// vector<span class="operator">.</span>lastIndexOf(<span class="string">"B"</span>); <span class="comment">// returns 3</span>
/// vector<span class="operator">.</span>lastIndexOf(<span class="string">"B"</span><span class="operator">,</span> <span class="number">3</span>); <span class="comment">// returns 3</span>
/// vector<span class="operator">.</span>lastIndexOf(<span class="string">"B"</span><span class="operator">,</span> <span class="number">2</span>); <span class="comment">// returns 1</span>
/// vector<span class="operator">.</span>lastIndexOf(<span class="string">"X"</span>); <span class="comment">// returns -1</span>
///
/// </pre>
/// <p>This function requires the value type to have an implementation of <code>operator==()</code>.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#indexOf">indexOf</a>().</p></div>
#[inline(always)]
pub unsafe fn last_index_of_2a(
&self,
t: *const *mut crate::QComponent,
from: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QComponent_ptr_lastIndexOf(
self as *const crate::QVectorOfQComponent,
t,
from,
)
}
/// <p>Returns the index position of the last occurrence of the value <i>value</i> in the vector, searching backward from index position <i>from</i>. If <i>from</i> is -1 (the default), the search starts at the last item. Returns -1 if no item matched.</p>
///
/// Calls C++ function: <span style='color: green;'>```int QVector<Qt3DCore::QComponent*>::lastIndexOf(const Qt3DCore::QComponent*& t) const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#lastIndexOf">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the index position of the last occurrence of the value <i>value</i> in the vector, searching backward from index position <i>from</i>. If <i>from</i> is -1 (the default), the search starts at the last item. Returns -1 if no item matched.</p>
/// <p>Example:</p>
/// <pre class="cpp">
///
/// <span class="type"><a href="http://doc.qt.io/qt-5/qlist.html">QList</a></span><span class="operator"><</span><span class="type"><a href="http://doc.qt.io/qt-5/qstring.html">QString</a></span><span class="operator">></span> vector;
/// vector <span class="operator"><</span><span class="operator"><</span> <span class="string">"A"</span> <span class="operator"><</span><span class="operator"><</span> <span class="string">"B"</span> <span class="operator"><</span><span class="operator"><</span> <span class="string">"C"</span> <span class="operator"><</span><span class="operator"><</span> <span class="string">"B"</span> <span class="operator"><</span><span class="operator"><</span> <span class="string">"A"</span>;
/// vector<span class="operator">.</span>lastIndexOf(<span class="string">"B"</span>); <span class="comment">// returns 3</span>
/// vector<span class="operator">.</span>lastIndexOf(<span class="string">"B"</span><span class="operator">,</span> <span class="number">3</span>); <span class="comment">// returns 3</span>
/// vector<span class="operator">.</span>lastIndexOf(<span class="string">"B"</span><span class="operator">,</span> <span class="number">2</span>); <span class="comment">// returns 1</span>
/// vector<span class="operator">.</span>lastIndexOf(<span class="string">"X"</span>); <span class="comment">// returns -1</span>
///
/// </pre>
/// <p>This function requires the value type to have an implementation of <code>operator==()</code>.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#indexOf">indexOf</a>().</p></div>
#[inline(always)]
pub unsafe fn last_index_of_1a(
&self,
t: *const *mut crate::QComponent,
) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QComponent_ptr_lastIndexOf1(
self as *const crate::QVectorOfQComponent,
t,
)
}
/// <p>Same as <a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#count-1">count</a>().</p>
///
/// Calls C++ function: <span style='color: green;'>```int QVector<Qt3DCore::QComponent*>::length() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#length">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Same as <a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#count-1">count</a>().</p>
/// <p>Provided for compatibility with <a href="http://doc.qt.io/qt-5/qlist.html">QList</a>.</p>
/// <p>This function was introduced in Qt 5.2.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>(), <a href="http://doc.qt.io/qt-5/qvector.html#count-1">count</a>(), and <a href="http://doc.qt.io/qt-5/qlist.html#length">QList::length</a>().</p></div>
#[inline(always)]
pub unsafe fn length(&self) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QComponent_ptr_length(
self as *const crate::QVectorOfQComponent,
)
}
/// <p>Returns a sub-vector which contains elements from this vector, starting at position <i>pos</i>. If <i>length</i> is -1 (the default), all elements after <i>pos</i> are included; otherwise <i>length</i> elements (or all remaining elements if there are less than <i>length</i> elements) are included.</p>
///
/// Calls C++ function: <span style='color: green;'>```QVector<Qt3DCore::QComponent*> QVector<Qt3DCore::QComponent*>::mid(int pos, int len = …) const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#mid">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns a sub-vector which contains elements from this vector, starting at position <i>pos</i>. If <i>length</i> is -1 (the default), all elements after <i>pos</i> are included; otherwise <i>length</i> elements (or all remaining elements if there are less than <i>length</i> elements) are included.</p></div>
#[inline(always)]
pub unsafe fn mid_2a(
&self,
pos: ::std::os::raw::c_int,
len: ::std::os::raw::c_int,
) -> ::cpp_core::CppBox<crate::QVectorOfQComponent> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QComponent_ptr_mid(
self as *const crate::QVectorOfQComponent,
pos,
len,
)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Returns a sub-vector which contains elements from this vector, starting at position <i>pos</i>. If <i>length</i> is -1 (the default), all elements after <i>pos</i> are included; otherwise <i>length</i> elements (or all remaining elements if there are less than <i>length</i> elements) are included.</p>
///
/// Calls C++ function: <span style='color: green;'>```QVector<Qt3DCore::QComponent*> QVector<Qt3DCore::QComponent*>::mid(int pos) const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#mid">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns a sub-vector which contains elements from this vector, starting at position <i>pos</i>. If <i>length</i> is -1 (the default), all elements after <i>pos</i> are included; otherwise <i>length</i> elements (or all remaining elements if there are less than <i>length</i> elements) are included.</p></div>
#[inline(always)]
pub unsafe fn mid_1a(
&self,
pos: ::std::os::raw::c_int,
) -> ::cpp_core::CppBox<crate::QVectorOfQComponent> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QComponent_ptr_mid1(
self as *const crate::QVectorOfQComponent,
pos,
)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Moves the item at index position <i>from</i> to index position <i>to</i>.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QComponent*>::move(int from, int to)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#move">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Moves the item at index position <i>from</i> to index position <i>to</i>.</p>
/// <p>Provided for compatibility with <a href="http://doc.qt.io/qt-5/qlist.html">QList</a>.</p>
/// <p>This function was introduced in Qt 5.6.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qlist.html#move">QList::move</a>().</p></div>
#[inline(always)]
pub unsafe fn move_(&self, from: ::std::os::raw::c_int, to: ::std::os::raw::c_int) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QComponent_ptr_move(
self as *const crate::QVectorOfQComponent as *mut crate::QVectorOfQComponent,
from,
to,
)
}
/// <p>Constructs an empty vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void QVector<Qt3DCore::QComponent*>::QVector()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#QVector">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Constructs an empty vector.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#resize">resize</a>().</p></div>
#[inline(always)]
pub unsafe fn new_0a() -> ::cpp_core::CppBox<crate::QVectorOfQComponent> {
let ffi_result =
{ crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QComponent_ptr_QVector() };
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Constructs a vector with an initial size of <i>size</i> elements.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void QVector<Qt3DCore::QComponent*>::QVector(int size)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#QVector-1">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Constructs a vector with an initial size of <i>size</i> elements.</p>
/// <p>The elements are initialized with a <a href="http://doc.qt.io/qt-5/containers.html#default-constructed-value">default-constructed value</a>.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#resize">resize</a>().</p></div>
#[inline(always)]
pub unsafe fn new_1a(
size: ::std::os::raw::c_int,
) -> ::cpp_core::CppBox<crate::QVectorOfQComponent> {
let ffi_result =
{ crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QComponent_ptr_QVector1(size) };
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Constructs a vector with an initial size of <i>size</i> elements. Each element is initialized with <i>value</i>.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void QVector<Qt3DCore::QComponent*>::QVector(int size, const Qt3DCore::QComponent*& t)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#QVector-2">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Constructs a vector with an initial size of <i>size</i> elements. Each element is initialized with <i>value</i>.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#resize">resize</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#fill">fill</a>().</p></div>
#[inline(always)]
pub unsafe fn new_2a(
size: ::std::os::raw::c_int,
t: *const *mut crate::QComponent,
) -> ::cpp_core::CppBox<crate::QVectorOfQComponent> {
let ffi_result =
{ crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QComponent_ptr_QVector2(size, t) };
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Constructs a copy of <i>other</i>.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void QVector<Qt3DCore::QComponent*>::QVector(const QVector<Qt3DCore::QComponent*>& v)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#QVector-3">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Constructs a copy of <i>other</i>.</p>
/// <p>This operation takes <a href="http://doc.qt.io/qt-5/containers.html#algorithmic-complexity">constant time</a>, because <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> is <a href="http://doc.qt.io/qt-5/implicit-sharing.html">implicitly shared</a>. This makes returning a <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> from a function very fast. If a shared instance is modified, it will be copied (copy-on-write), and that takes <a href="http://doc.qt.io/qt-5/containers.html#algorithmic-complexity">linear time</a>.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#operator-eq">operator=</a>().</p></div>
#[inline(always)]
pub unsafe fn new_copy(
v: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QVectorOfQComponent>>,
) -> ::cpp_core::CppBox<crate::QVectorOfQComponent> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QComponent_ptr_QVector3(
::cpp_core::CastInto::<::cpp_core::Ref<crate::QVectorOfQComponent>>::cast_into(v)
.as_raw_ptr(),
)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>This function is provided for STL compatibility. It is equivalent to <a href="http://doc.qt.io/qt-5/qvector.html#removeLast">removeLast</a>().</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QComponent*>::pop_back()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#pop_back">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This function is provided for STL compatibility. It is equivalent to <a href="http://doc.qt.io/qt-5/qvector.html#removeLast">removeLast</a>().</p></div>
#[inline(always)]
pub unsafe fn pop_back(&self) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QComponent_ptr_pop_back(
self as *const crate::QVectorOfQComponent as *mut crate::QVectorOfQComponent,
)
}
/// <p>This function is provided for STL compatibility. It is equivalent to <a href="http://doc.qt.io/qt-5/qvector.html#removeFirst">removeFirst</a>().</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QComponent*>::pop_front()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#pop_front">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This function is provided for STL compatibility. It is equivalent to <a href="http://doc.qt.io/qt-5/qvector.html#removeFirst">removeFirst</a>().</p></div>
#[inline(always)]
pub unsafe fn pop_front(&self) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QComponent_ptr_pop_front(
self as *const crate::QVectorOfQComponent as *mut crate::QVectorOfQComponent,
)
}
/// <p>Inserts <i>value</i> at the beginning of the vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QComponent*>::prepend(const Qt3DCore::QComponent*& t)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#prepend">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Inserts <i>value</i> at the beginning of the vector.</p>
/// <p>Example:</p>
/// <pre class="cpp">
///
/// <span class="type"><a href="http://doc.qt.io/qt-5/qvector.html#QVector">QVector</a></span><span class="operator"><</span><span class="type"><a href="http://doc.qt.io/qt-5/qstring.html">QString</a></span><span class="operator">></span> vector;
/// vector<span class="operator">.</span>prepend(<span class="string">"one"</span>);
/// vector<span class="operator">.</span>prepend(<span class="string">"two"</span>);
/// vector<span class="operator">.</span>prepend(<span class="string">"three"</span>);
/// <span class="comment">// vector: ["three", "two", "one"]</span>
///
/// </pre>
/// <p>This is the same as vector.insert(0, <i>value</i>).</p>
/// <p>For large vectors, this operation can be slow (<a href="http://doc.qt.io/qt-5/containers.html#linear-time">linear time</a>), because it requires moving all the items in the vector by one position further in memory. If you want a container class that provides a fast prepend() function, use <a href="http://doc.qt.io/qt-5/qlist.html">QList</a> or <a href="http://doc.qt.io/qt-5/qlinkedlist.html">QLinkedList</a> instead.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#append">append</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#insert">insert</a>().</p></div>
#[inline(always)]
pub unsafe fn prepend(&self, t: *const *mut crate::QComponent) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QComponent_ptr_prepend(
self as *const crate::QVectorOfQComponent as *mut crate::QVectorOfQComponent,
t,
)
}
/// <p>This function is provided for STL compatibility. It is equivalent to append(<i>value</i>).</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QComponent*>::push_back(const Qt3DCore::QComponent*& t)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#push_back">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This function is provided for STL compatibility. It is equivalent to append(<i>value</i>).</p></div>
#[inline(always)]
pub unsafe fn push_back(&self, t: *const *mut crate::QComponent) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QComponent_ptr_push_back(
self as *const crate::QVectorOfQComponent as *mut crate::QVectorOfQComponent,
t,
)
}
/// <p>This function is provided for STL compatibility. It is equivalent to prepend(<i>value</i>).</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QComponent*>::push_front(const Qt3DCore::QComponent*& t)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#push_front">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This function is provided for STL compatibility. It is equivalent to prepend(<i>value</i>).</p></div>
#[inline(always)]
pub unsafe fn push_front(&self, t: *const *mut crate::QComponent) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QComponent_ptr_push_front(
self as *const crate::QVectorOfQComponent as *mut crate::QVectorOfQComponent,
t,
)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QComponent*>::remove(int i)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#remove">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This is an overloaded function.</p>
/// <p>Removes the element at index position <i>i</i>.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#insert">insert</a>(), <a href="http://doc.qt.io/qt-5/qvector.html#replace">replace</a>(), and <a href="http://doc.qt.io/qt-5/qvector.html#fill">fill</a>().</p></div>
#[inline(always)]
pub unsafe fn remove_1a(&self, i: ::std::os::raw::c_int) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QComponent_ptr_remove(
self as *const crate::QVectorOfQComponent as *mut crate::QVectorOfQComponent,
i,
)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QComponent*>::remove(int i, int n)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#remove-1">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This is an overloaded function.</p>
/// <p>Removes <i>count</i> elements from the middle of the vector, starting at index position <i>i</i>.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#insert">insert</a>(), <a href="http://doc.qt.io/qt-5/qvector.html#replace">replace</a>(), and <a href="http://doc.qt.io/qt-5/qvector.html#fill">fill</a>().</p></div>
#[inline(always)]
pub unsafe fn remove_2a(&self, i: ::std::os::raw::c_int, n: ::std::os::raw::c_int) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QComponent_ptr_remove1(
self as *const crate::QVectorOfQComponent as *mut crate::QVectorOfQComponent,
i,
n,
)
}
/// <p>Removes all elements that compare equal to <i>t</i> from the vector. Returns the number of elements removed, if any.</p>
///
/// Calls C++ function: <span style='color: green;'>```int QVector<Qt3DCore::QComponent*>::removeAll(const Qt3DCore::QComponent*& t)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#removeAll">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Removes all elements that compare equal to <i>t</i> from the vector. Returns the number of elements removed, if any.</p>
/// <p>Provided for compatibility with <a href="http://doc.qt.io/qt-5/qlist.html">QList</a>.</p>
/// <p>This function was introduced in Qt 5.4.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#removeOne">removeOne</a>() and <a href="http://doc.qt.io/qt-5/qlist.html#removeAll">QList::removeAll</a>().</p></div>
#[inline(always)]
pub unsafe fn remove_all(&self, t: *const *mut crate::QComponent) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QComponent_ptr_removeAll(
self as *const crate::QVectorOfQComponent as *mut crate::QVectorOfQComponent,
t,
)
}
/// <p>Removes the element at index position <i>i</i>. Equivalent to</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QComponent*>::removeAt(int i)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#removeAt">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Removes the element at index position <i>i</i>. Equivalent to</p>
/// <pre class="cpp">
///
/// remove(i);
///
/// </pre>
/// <p>Provided for compatibility with <a href="http://doc.qt.io/qt-5/qlist.html">QList</a>.</p>
/// <p>This function was introduced in Qt 5.2.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#remove">remove</a>() and <a href="http://doc.qt.io/qt-5/qlist.html#removeAt">QList::removeAt</a>().</p></div>
#[inline(always)]
pub unsafe fn remove_at(&self, i: ::std::os::raw::c_int) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QComponent_ptr_removeAt(
self as *const crate::QVectorOfQComponent as *mut crate::QVectorOfQComponent,
i,
)
}
/// <p>Removes the first item in the vector. Calling this function is equivalent to calling remove(0). The vector must not be empty. If the vector can be empty, call <a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>() before calling this function.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QComponent*>::removeFirst()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#removeFirst">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Removes the first item in the vector. Calling this function is equivalent to calling remove(0). The vector must not be empty. If the vector can be empty, call <a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>() before calling this function.</p>
/// <p>This function was introduced in Qt 5.1.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#remove">remove</a>(), <a href="http://doc.qt.io/qt-5/qvector.html#takeFirst">takeFirst</a>(), and <a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>().</p></div>
#[inline(always)]
pub unsafe fn remove_first(&self) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QComponent_ptr_removeFirst(
self as *const crate::QVectorOfQComponent as *mut crate::QVectorOfQComponent,
)
}
/// <p>Removes the last item in the vector. Calling this function is equivalent to calling remove(<a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>() - 1). The vector must not be empty. If the vector can be empty, call <a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>() before calling this function.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QComponent*>::removeLast()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#removeLast">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Removes the last item in the vector. Calling this function is equivalent to calling remove(<a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>() - 1). The vector must not be empty. If the vector can be empty, call <a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>() before calling this function.</p>
/// <p>This function was introduced in Qt 5.1.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#remove">remove</a>(), <a href="http://doc.qt.io/qt-5/qvector.html#takeLast">takeLast</a>(), <a href="http://doc.qt.io/qt-5/qvector.html#removeFirst">removeFirst</a>(), and <a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>().</p></div>
#[inline(always)]
pub unsafe fn remove_last(&self) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QComponent_ptr_removeLast(
self as *const crate::QVectorOfQComponent as *mut crate::QVectorOfQComponent,
)
}
/// <p>Removes the first element that compares equal to <i>t</i> from the vector. Returns whether an element was, in fact, removed.</p>
///
/// Calls C++ function: <span style='color: green;'>```bool QVector<Qt3DCore::QComponent*>::removeOne(const Qt3DCore::QComponent*& t)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#removeOne">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Removes the first element that compares equal to <i>t</i> from the vector. Returns whether an element was, in fact, removed.</p>
/// <p>Provided for compatibility with <a href="http://doc.qt.io/qt-5/qlist.html">QList</a>.</p>
/// <p>This function was introduced in Qt 5.4.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#removeAll">removeAll</a>() and <a href="http://doc.qt.io/qt-5/qlist.html#removeOne">QList::removeOne</a>().</p></div>
#[inline(always)]
pub unsafe fn remove_one(&self, t: *const *mut crate::QComponent) -> bool {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QComponent_ptr_removeOne(
self as *const crate::QVectorOfQComponent as *mut crate::QVectorOfQComponent,
t,
)
}
/// <p>Replaces the item at index position <i>i</i> with <i>value</i>.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QComponent*>::replace(int i, const Qt3DCore::QComponent*& t)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#replace">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Replaces the item at index position <i>i</i> with <i>value</i>.</p>
/// <p><i>i</i> must be a valid index position in the vector (i.e., 0 <= <i>i</i> < <a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>()).</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#operator-5b-5d">operator[]</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#remove">remove</a>().</p></div>
#[inline(always)]
pub unsafe fn replace(&self, i: ::std::os::raw::c_int, t: *const *mut crate::QComponent) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QComponent_ptr_replace(
self as *const crate::QVectorOfQComponent as *mut crate::QVectorOfQComponent,
i,
t,
)
}
/// <p>Attempts to allocate memory for at least <i>size</i> elements. If you know in advance how large the vector will be, you should call this function to prevent reallocations and memory fragmentation.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QComponent*>::reserve(int size)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#reserve">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Attempts to allocate memory for at least <i>size</i> elements. If you know in advance how large the vector will be, you should call this function to prevent reallocations and memory fragmentation.</p>
/// <p>If <i>size</i> is an underestimate, the worst that will happen is that the <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> will be a bit slower. If <i>size</i> is an overestimate, you may have used more memory than the normal <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> growth strategy would have allocated—or you may have used less.</p>
/// <p>An alternative to reserve() is calling <a href="http://doc.qt.io/qt-5/qvector.html#resize">resize</a>(). Whether or not that is faster than reserve() depends on the element type, because <a href="http://doc.qt.io/qt-5/qvector.html#resize">resize</a>() default-constructs all elements, and requires assignment to existing entries rather than calling <a href="http://doc.qt.io/qt-5/qvector.html#append">append</a>(), which copy- or move-constructs. For simple types, like <code>int</code> or <code>double</code>, <a href="http://doc.qt.io/qt-5/qvector.html#resize">resize</a>() is typically faster, but for anything more complex, you should prefer reserve().</p>
/// <p><b>Warning:</b> If the size passed to <a href="http://doc.qt.io/qt-5/qvector.html#resize">resize</a>() was underestimated, you run out of allocated space and into undefined behavior. This problem does not exist with reserve(), because it treats the size as just a hint.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#squeeze">squeeze</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#capacity">capacity</a>().</p></div>
#[inline(always)]
pub unsafe fn reserve(&self, size: ::std::os::raw::c_int) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QComponent_ptr_reserve(
self as *const crate::QVectorOfQComponent as *mut crate::QVectorOfQComponent,
size,
)
}
/// <p>Sets the size of the vector to <i>size</i>. If <i>size</i> is greater than the current size, elements are added to the end; the new elements are initialized with a <a href="http://doc.qt.io/qt-5/containers.html#default-constructed-value">default-constructed value</a>. If <i>size</i> is less than the current size, elements are removed from the end.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QComponent*>::resize(int size)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#resize">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Sets the size of the vector to <i>size</i>. If <i>size</i> is greater than the current size, elements are added to the end; the new elements are initialized with a <a href="http://doc.qt.io/qt-5/containers.html#default-constructed-value">default-constructed value</a>. If <i>size</i> is less than the current size, elements are removed from the end.</p>
/// <p>Since Qt 5.6, resize() doesn't shrink the capacity anymore. To shed excess capacity, use <a href="http://doc.qt.io/qt-5/qvector.html#squeeze">squeeze</a>().</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>().</p></div>
#[inline(always)]
pub unsafe fn resize(&self, size: ::std::os::raw::c_int) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QComponent_ptr_resize(
self as *const crate::QVectorOfQComponent as *mut crate::QVectorOfQComponent,
size,
)
}
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QComponent*>::setSharable(bool sharable)```</span>.
#[inline(always)]
pub unsafe fn set_sharable(&self, sharable: bool) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QComponent_ptr_setSharable(
self as *const crate::QVectorOfQComponent as *mut crate::QVectorOfQComponent,
sharable,
)
}
/// <p>This function is provided for STL compatibility. It is equivalent to <a href="http://doc.qt.io/qt-5/qvector.html#squeeze">squeeze</a>().</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QComponent*>::shrink_to_fit()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#shrink_to_fit">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This function is provided for STL compatibility. It is equivalent to <a href="http://doc.qt.io/qt-5/qvector.html#squeeze">squeeze</a>().</p>
/// <p>This function was introduced in Qt 5.10.</p></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn shrink_to_fit(&self) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QComponent_ptr_shrink_to_fit(
self as *const crate::QVectorOfQComponent as *mut crate::QVectorOfQComponent,
)
}
/// <p>Returns the number of items in the vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```int QVector<Qt3DCore::QComponent*>::size() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#size">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the number of items in the vector.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#resize">resize</a>().</p></div>
#[inline(always)]
pub unsafe fn size(&self) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QComponent_ptr_size(
self as *const crate::QVectorOfQComponent,
)
}
/// <p>Releases any memory not required to store the items.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QComponent*>::squeeze()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#squeeze">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Releases any memory not required to store the items.</p>
/// <p>The sole purpose of this function is to provide a means of fine tuning <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a>'s memory usage. In general, you will rarely ever need to call this function.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#reserve">reserve</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#capacity">capacity</a>().</p></div>
#[inline(always)]
pub unsafe fn squeeze(&self) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QComponent_ptr_squeeze(
self as *const crate::QVectorOfQComponent as *mut crate::QVectorOfQComponent,
)
}
/// <p>Returns <code>true</code> if this vector is not empty and its first item is equal to <i>value</i>; otherwise returns <code>false</code>.</p>
///
/// Calls C++ function: <span style='color: green;'>```bool QVector<Qt3DCore::QComponent*>::startsWith(const Qt3DCore::QComponent*& t) const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#startsWith">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns <code>true</code> if this vector is not empty and its first item is equal to <i>value</i>; otherwise returns <code>false</code>.</p>
/// <p>This function was introduced in Qt 4.5.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#first">first</a>().</p></div>
#[inline(always)]
pub unsafe fn starts_with(&self, t: *const *mut crate::QComponent) -> bool {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QComponent_ptr_startsWith(
self as *const crate::QVectorOfQComponent,
t,
)
}
/// <p>Swaps vector <i>other</i> with this vector. This operation is very fast and never fails.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QComponent*>::swap(QVector<Qt3DCore::QComponent*>& other)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#swap">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Swaps vector <i>other</i> with this vector. This operation is very fast and never fails.</p>
/// <p>This function was introduced in Qt 4.8.</p></div>
#[inline(always)]
pub unsafe fn swap(
&self,
other: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QVectorOfQComponent>>,
) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QComponent_ptr_swap(
self as *const crate::QVectorOfQComponent as *mut crate::QVectorOfQComponent,
::cpp_core::CastInto::<::cpp_core::Ref<crate::QVectorOfQComponent>>::cast_into(other)
.as_raw_ptr() as *mut crate::QVectorOfQComponent,
)
}
/// <p>Exchange the item at index position <i>i</i> with the item at index position <i>j</i>. This function assumes that both <i>i</i> and <i>j</i> are at least 0 but less than <a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>(). To avoid failure, test that both <i>i</i> and <i>j</i> are at least 0 and less than <a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>().</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QComponent*>::swapItemsAt(int i, int j)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#swapItemsAt">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Exchange the item at index position <i>i</i> with the item at index position <i>j</i>. This function assumes that both <i>i</i> and <i>j</i> are at least 0 but less than <a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>(). To avoid failure, test that both <i>i</i> and <i>j</i> are at least 0 and less than <a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>().</p>
/// <p>This function was introduced in Qt 5.14.</p></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(cpp_lib_version = "5.14.0"))
)]
#[cfg(any(cpp_lib_version = "5.14.0", feature = "ritual_rustdoc"))]
pub unsafe fn swap_items_at(&self, i: ::std::os::raw::c_int, j: ::std::os::raw::c_int) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QComponent_ptr_swapItemsAt(
self as *const crate::QVectorOfQComponent as *mut crate::QVectorOfQComponent,
i,
j,
)
}
/// <p>Removes the element at index position <i>i</i> and returns it.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QComponent* QVector<Qt3DCore::QComponent*>::takeAt(int i)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#takeAt">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Removes the element at index position <i>i</i> and returns it.</p>
/// <p>Equivalent to</p>
/// <pre class="cpp">
///
/// T t <span class="operator">=</span> at(i);
/// remove(i);
/// <span class="keyword">return</span> t;
///
/// </pre>
/// <p>Provided for compatibility with <a href="http://doc.qt.io/qt-5/qlist.html">QList</a>.</p>
/// <p>This function was introduced in Qt 5.2.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#takeFirst">takeFirst</a>(), <a href="http://doc.qt.io/qt-5/qvector.html#takeLast">takeLast</a>(), and <a href="http://doc.qt.io/qt-5/qlist.html#takeAt">QList::takeAt</a>().</p></div>
#[inline(always)]
pub unsafe fn take_at(&self, i: ::std::os::raw::c_int) -> ::qt_core::QPtr<crate::QComponent> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QComponent_ptr_takeAt(
self as *const crate::QVectorOfQComponent as *mut crate::QVectorOfQComponent,
i,
)
};
::qt_core::QPtr::from_raw(ffi_result)
}
/// <p>Removes the first item in the vector and returns it. This function assumes the vector is not empty. To avoid failure, call <a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>() before calling this function.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QComponent* QVector<Qt3DCore::QComponent*>::takeFirst()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#takeFirst">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Removes the first item in the vector and returns it. This function assumes the vector is not empty. To avoid failure, call <a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>() before calling this function.</p>
/// <p>This function was introduced in Qt 5.1.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#takeLast">takeLast</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#removeFirst">removeFirst</a>().</p></div>
#[inline(always)]
pub unsafe fn take_first(&self) -> ::qt_core::QPtr<crate::QComponent> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QComponent_ptr_takeFirst(
self as *const crate::QVectorOfQComponent as *mut crate::QVectorOfQComponent,
)
};
::qt_core::QPtr::from_raw(ffi_result)
}
/// <p>Removes the last item in the list and returns it. This function assumes the vector is not empty. To avoid failure, call <a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>() before calling this function.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QComponent* QVector<Qt3DCore::QComponent*>::takeLast()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#takeLast">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Removes the last item in the list and returns it. This function assumes the vector is not empty. To avoid failure, call <a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>() before calling this function.</p>
/// <p>If you don't use the return value, <a href="http://doc.qt.io/qt-5/qvector.html#removeLast">removeLast</a>() is more efficient.</p>
/// <p>This function was introduced in Qt 5.1.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#takeFirst">takeFirst</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#removeLast">removeLast</a>().</p></div>
#[inline(always)]
pub unsafe fn take_last(&self) -> ::qt_core::QPtr<crate::QComponent> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QComponent_ptr_takeLast(
self as *const crate::QVectorOfQComponent as *mut crate::QVectorOfQComponent,
)
};
::qt_core::QPtr::from_raw(ffi_result)
}
/// <p>Returns the value at index position <i>i</i> in the vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QComponent* QVector<Qt3DCore::QComponent*>::value(int i) const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#value">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the value at index position <i>i</i> in the vector.</p>
/// <p>If the index <i>i</i> is out of bounds, the function returns a <a href="http://doc.qt.io/qt-5/containers.html#default-constructed-value">default-constructed value</a>. If you are certain that <i>i</i> is within bounds, you can use <a href="http://doc.qt.io/qt-5/qvector.html#at">at</a>() instead, which is slightly faster.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#at">at</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#operator-5b-5d">operator[]</a>().</p></div>
#[inline(always)]
pub unsafe fn value_1a(&self, i: ::std::os::raw::c_int) -> ::qt_core::QPtr<crate::QComponent> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QComponent_ptr_value(
self as *const crate::QVectorOfQComponent,
i,
)
};
::qt_core::QPtr::from_raw(ffi_result)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QComponent* QVector<Qt3DCore::QComponent*>::value(int i, const Qt3DCore::QComponent*& defaultValue) const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#value-1">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This is an overloaded function.</p>
/// <p>If the index <i>i</i> is out of bounds, the function returns <i>defaultValue</i>.</p></div>
#[inline(always)]
pub unsafe fn value_2a(
&self,
i: ::std::os::raw::c_int,
default_value: *const *mut crate::QComponent,
) -> ::qt_core::QPtr<crate::QComponent> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QComponent_ptr_value1(
self as *const crate::QVectorOfQComponent,
i,
default_value,
)
};
::qt_core::QPtr::from_raw(ffi_result)
}
}
/// <p>The <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> class is a template class that provides a dynamic array.</p>
///
/// C++ class: <span style='color: green;'>```QVector<Qt3DCore::QNodeIdTypePair>```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>The <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> class is a template class that provides a dynamic array.</p>
/// <p><a href="http://doc.qt.io/qt-5/qvector.html">QVector</a><T> is one of Qt's generic <a href="http://doc.qt.io/qt-5/containers.html">container classes</a>. It stores its items in adjacent memory locations and provides fast index-based access.</p>
/// <p><a href="http://doc.qt.io/qt-5/qlist.html">QList</a><T>, <a href="http://doc.qt.io/qt-5/qlinkedlist.html">QLinkedList</a><T>, <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a><T>, and <a href="http://doc.qt.io/qt-5/qvarlengtharray.html">QVarLengthArray</a><T> provide similar APIs and functionality. They are often interchangeable, but there are performance consequences. Here is an overview of use cases:</p>
/// <ul>
/// <li><a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> should be your default first choice. <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a><T> will usually give better performance than <a href="http://doc.qt.io/qt-5/qlist.html">QList</a><T>, because <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a><T> always stores its items sequentially in memory, where <a href="http://doc.qt.io/qt-5/qlist.html">QList</a><T> will allocate its items on the heap unless <code>sizeof(T) <= sizeof(void*)</code> and T has been declared to be either a <code>Q_MOVABLE_TYPE</code> or a <code>Q_PRIMITIVE_TYPE</code> using <a href="http://doc.qt.io/qt-5/qtglobal.html#Q_DECLARE_TYPEINFO">Q_DECLARE_TYPEINFO</a>. See the <a href="http://marcmutz.wordpress.com/effective-qt/containers/#containers-qlist">Pros and Cons of Using QList</a> for an explanation.</li>
/// <li>However, <a href="http://doc.qt.io/qt-5/qlist.html">QList</a> is used throughout the Qt APIs for passing parameters and for returning values. Use <a href="http://doc.qt.io/qt-5/qlist.html">QList</a> to interface with those APIs.</li>
/// <li>If you need a real linked list, which guarantees <a href="http://doc.qt.io/qt-5/containers.html#algorithmic-complexity">constant time</a> insertions mid-list and uses iterators to items rather than indexes, use <a href="http://doc.qt.io/qt-5/qlinkedlist.html">QLinkedList</a>.</li>
/// </ul>
/// <p><b>Note: </b><a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> and <a href="http://doc.qt.io/qt-5/qvarlengtharray.html">QVarLengthArray</a> both guarantee C-compatible array layout. <a href="http://doc.qt.io/qt-5/qlist.html">QList</a> does not. This might be important if your application must interface with a C API.</p><p><b>Note: </b>Iterators into a <a href="http://doc.qt.io/qt-5/qlinkedlist.html">QLinkedList</a> and references into heap-allocating QLists remain valid as long as the referenced items remain in the container. This is not true for iterators and references into a <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> and non-heap-allocating QLists.</p><p>Here's an example of a <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> that stores integers and a <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> that stores <a href="http://doc.qt.io/qt-5/qstring.html">QString</a> values:</p>
/// <pre class="cpp">
///
/// <span class="type"><a href="http://doc.qt.io/qt-5/qvector.html#QVector">QVector</a></span><span class="operator"><</span><span class="type">int</span><span class="operator">></span> integerVector;
/// <span class="type"><a href="http://doc.qt.io/qt-5/qvector.html#QVector">QVector</a></span><span class="operator"><</span><span class="type"><a href="http://doc.qt.io/qt-5/qstring.html">QString</a></span><span class="operator">></span> stringVector;
///
/// </pre>
/// <p><a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> stores its items in a vector (array). Typically, vectors are created with an initial size. For example, the following code constructs a <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> with 200 elements:</p>
/// <pre class="cpp">
///
/// <span class="type"><a href="http://doc.qt.io/qt-5/qvector.html#QVector">QVector</a></span><span class="operator"><</span><span class="type"><a href="http://doc.qt.io/qt-5/qstring.html">QString</a></span><span class="operator">></span> vector(<span class="number">200</span>);
///
/// </pre>
/// <p>The elements are automatically initialized with a <a href="http://doc.qt.io/qt-5/containers.html#default-constructed-value">default-constructed value</a>. If you want to initialize the vector with a different value, pass that value as the second argument to the constructor:</p>
/// <pre class="cpp">
///
/// <span class="type"><a href="http://doc.qt.io/qt-5/qvector.html#QVector">QVector</a></span><span class="operator"><</span><span class="type"><a href="http://doc.qt.io/qt-5/qstring.html">QString</a></span><span class="operator">></span> vector(<span class="number">200</span><span class="operator">,</span> <span class="string">"Pass"</span>);
///
/// </pre>
/// <p>You can also call <a href="http://doc.qt.io/qt-5/qvector.html#fill">fill</a>() at any time to fill the vector with a value.</p>
/// <p><a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> uses 0-based indexes, just like C++ arrays. To access the item at a particular index position, you can use operator[](). On non-const vectors, operator[]() returns a reference to the item that can be used on the left side of an assignment:</p>
/// <pre class="cpp">
///
/// <span class="keyword">if</span> (vector<span class="operator">[</span><span class="number">0</span><span class="operator">]</span> <span class="operator">=</span><span class="operator">=</span> <span class="string">"Liz"</span>)
///   vector<span class="operator">[</span><span class="number">0</span><span class="operator">]</span> <span class="operator">=</span> <span class="string">"Elizabeth"</span>;
///
/// </pre>
/// <p>For read-only access, an alternative syntax is to use <a href="http://doc.qt.io/qt-5/qvector.html#at">at</a>():</p>
/// <pre class="cpp">
///
/// <span class="keyword">for</span> (<span class="type">int</span> i <span class="operator">=</span> <span class="number">0</span>; i <span class="operator"><</span> vector<span class="operator">.</span>size(); <span class="operator">+</span><span class="operator">+</span>i) {
///   <span class="keyword">if</span> (vector<span class="operator">.</span>at(i) <span class="operator">=</span><span class="operator">=</span> <span class="string">"Alfonso"</span>)
///     cout <span class="operator"><</span><span class="operator"><</span> <span class="string">"Found Alfonso at position "</span> <span class="operator"><</span><span class="operator"><</span> i <span class="operator"><</span><span class="operator"><</span> endl;
/// }
///
/// </pre>
/// <p><a href="http://doc.qt.io/qt-5/qvector.html#at">at</a>() can be faster than operator[](), because it never causes a <a href="http://doc.qt.io/qt-5/implicit-sharing.html#deep-copy">deep copy</a> to occur.</p>
/// <p>Another way to access the data stored in a <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> is to call <a href="http://doc.qt.io/qt-5/qvector.html#data">data</a>(). The function returns a pointer to the first item in the vector. You can use the pointer to directly access and modify the elements stored in the vector. The pointer is also useful if you need to pass a <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> to a function that accepts a plain C++ array.</p>
/// <p>If you want to find all occurrences of a particular value in a vector, use <a href="http://doc.qt.io/qt-5/qvector.html#indexOf">indexOf</a>() or <a href="http://doc.qt.io/qt-5/qvector.html#lastIndexOf">lastIndexOf</a>(). The former searches forward starting from a given index position, the latter searches backward. Both return the index of the matching item if they found one; otherwise, they return -1. For example:</p>
/// <pre class="cpp">
///
/// <span class="type">int</span> i <span class="operator">=</span> vector<span class="operator">.</span>indexOf(<span class="string">"Harumi"</span>);
/// <span class="keyword">if</span> (i <span class="operator">!</span><span class="operator">=</span> <span class="operator">-</span><span class="number">1</span>)
///   cout <span class="operator"><</span><span class="operator"><</span> <span class="string">"First occurrence of Harumi is at position "</span> <span class="operator"><</span><span class="operator"><</span> i <span class="operator"><</span><span class="operator"><</span> endl;
///
/// </pre>
/// <p>If you simply want to check whether a vector contains a particular value, use <a href="http://doc.qt.io/qt-5/qvector.html#contains">contains</a>(). If you want to find out how many times a particular value occurs in the vector, use <a href="http://doc.qt.io/qt-5/qvector.html#count-1">count</a>().</p>
/// <p><a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> provides these basic functions to add, move, and remove items: <a href="http://doc.qt.io/qt-5/qvector.html#insert">insert</a>(), <a href="http://doc.qt.io/qt-5/qvector.html#replace">replace</a>(), <a href="http://doc.qt.io/qt-5/qvector.html#remove">remove</a>(), <a href="http://doc.qt.io/qt-5/qvector.html#prepend">prepend</a>(), <a href="http://doc.qt.io/qt-5/qvector.html#append">append</a>(). With the exception of <a href="http://doc.qt.io/qt-5/qvector.html#append">append</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#replace">replace</a>(), these functions can be slow (<a href="http://doc.qt.io/qt-5/containers.html#linear-time">linear time</a>) for large vectors, because they require moving many items in the vector by one position in memory. If you want a container class that provides fast insertion/removal in the middle, use <a href="http://doc.qt.io/qt-5/qlist.html">QList</a> or <a href="http://doc.qt.io/qt-5/qlinkedlist.html">QLinkedList</a> instead.</p>
/// <p>Unlike plain C++ arrays, QVectors can be resized at any time by calling <a href="http://doc.qt.io/qt-5/qvector.html#resize">resize</a>(). If the new size is larger than the old size, <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> might need to reallocate the whole vector. <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> tries to reduce the number of reallocations by preallocating up to twice as much memory as the actual data needs.</p>
/// <p>If you know in advance approximately how many items the <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> will contain, you can call <a href="http://doc.qt.io/qt-5/qvector.html#reserve">reserve</a>(), asking <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> to preallocate a certain amount of memory. You can also call <a href="http://doc.qt.io/qt-5/qvector.html#capacity">capacity</a>() to find out how much memory <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> actually allocated.</p>
/// <p>Note that using non-const operators and functions can cause <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> to do a deep copy of the data. This is due to <a href="http://doc.qt.io/qt-5/implicit-sharing.html">implicit sharing</a>.</p>
/// <p><a href="http://doc.qt.io/qt-5/qvector.html">QVector</a>'s value type must be an <a href="http://doc.qt.io/qt-5/containers.html#assignable-data-type">assignable data type</a>. This covers most data types that are commonly used, but the compiler won't let you, for example, store a <a href="http://doc.qt.io/qt-5/qwidget.html">QWidget</a> as a value; instead, store a <a href="http://doc.qt.io/qt-5/qwidget.html">QWidget</a> *. A few functions have additional requirements; for example, <a href="http://doc.qt.io/qt-5/qvector.html#indexOf">indexOf</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#lastIndexOf">lastIndexOf</a>() expect the value type to support <code>operator==()</code>. These requirements are documented on a per-function basis.</p>
/// <p>Like the other container classes, <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> provides <a href="http://doc.qt.io/qt-5/containers.html#java-style-iterators">Java-style iterators</a> (<a href="http://doc.qt.io/qt-5/qvectoriterator.html">QVectorIterator</a> and <a href="http://doc.qt.io/qt-5/qmutablevectoriterator.html">QMutableVectorIterator</a>) and <a href="http://doc.qt.io/qt-5/containers.html#stl-style-iterators">STL-style iterators</a> (<a href="http://doc.qt.io/qt-5/qvector.html#const_iterator-typedef">QVector::const_iterator</a> and <a href="http://doc.qt.io/qt-5/qvector.html#iterator-typedefx">QVector::iterator</a>). In practice, these are rarely used, because you can use indexes into the <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a>.</p>
/// <p>In addition to <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a>, Qt also provides <a href="http://doc.qt.io/qt-5/qvarlengtharray.html">QVarLengthArray</a>, a very low-level class with little functionality that is optimized for speed.</p>
/// <p><a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> does <i>not</i> support inserting, prepending, appending or replacing with references to its own values. Doing so will cause your application to abort with an error message.</p>
/// <a name="more-information-on-using-qt-containers"></a>
/// <h4>More Information on Using Qt Containers</h4>
/// <p>For a detailed discussion comparing Qt containers with each other and with STL containers, see <a href="http://marcmutz.wordpress.com/effective-qt/containers/">Understand the Qt Containers</a>.</p></div>
#[repr(C)]
pub struct QVectorOfQNodeIdTypePair {
_unused: u8,
}
impl QVectorOfQNodeIdTypePair {
/// <p>Appends the items of the <i>other</i> vector to this vector and returns a reference to this vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```QVector<Qt3DCore::QNodeIdTypePair>& QVector<Qt3DCore::QNodeIdTypePair>::operator+=(const QVector<Qt3DCore::QNodeIdTypePair>& l)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#operator-2b-eq">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Appends the items of the <i>other</i> vector to this vector and returns a reference to this vector.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#operator-2b">operator+</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#append">append</a>().</p></div>
#[inline(always)]
pub unsafe fn add_assign_q_vector_of_q_node_id_type_pair(
&self,
l: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QVectorOfQNodeIdTypePair>>,
) -> ::cpp_core::Ref<crate::QVectorOfQNodeIdTypePair> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeIdTypePair_operator__4(self as *const crate::QVectorOfQNodeIdTypePair as *mut crate::QVectorOfQNodeIdTypePair, ::cpp_core::CastInto::<::cpp_core::Ref<crate::QVectorOfQNodeIdTypePair>>::cast_into(l).as_raw_ptr())
};
::cpp_core::Ref::from_raw(ffi_result).expect("attempted to construct a null Ref")
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```QVector<Qt3DCore::QNodeIdTypePair>& QVector<Qt3DCore::QNodeIdTypePair>::operator+=(const Qt3DCore::QNodeIdTypePair& t)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#operator-2b-eq-1">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This is an overloaded function.</p>
/// <p>Appends <i>value</i> to the vector.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#append">append</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#operator-lt-lt">operator<<</a>().</p></div>
#[inline(always)]
pub unsafe fn add_assign_q_node_id_type_pair(
&self,
t: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QNodeIdTypePair>>,
) -> ::cpp_core::Ref<crate::QVectorOfQNodeIdTypePair> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeIdTypePair_operator__5(
self as *const crate::QVectorOfQNodeIdTypePair
as *mut crate::QVectorOfQNodeIdTypePair,
::cpp_core::CastInto::<::cpp_core::Ref<crate::QNodeIdTypePair>>::cast_into(t)
.as_raw_ptr(),
)
};
::cpp_core::Ref::from_raw(ffi_result).expect("attempted to construct a null Ref")
}
/// <p>Inserts <i>value</i> at the end of the vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QNodeIdTypePair>::append(const Qt3DCore::QNodeIdTypePair& t)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#append">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Inserts <i>value</i> at the end of the vector.</p>
/// <p>Example:</p>
/// <pre class="cpp">
///
/// <span class="type"><a href="http://doc.qt.io/qt-5/qvector.html#QVector">QVector</a></span><span class="operator"><</span><span class="type"><a href="http://doc.qt.io/qt-5/qstring.html">QString</a></span><span class="operator">></span> vector;
/// vector<span class="operator">.</span>append(<span class="string">"one"</span>);
/// vector<span class="operator">.</span>append(<span class="string">"two"</span>);
/// <span class="type"><a href="http://doc.qt.io/qt-5/qstring.html">QString</a></span> three <span class="operator">=</span> <span class="string">"three"</span>;
/// vector<span class="operator">.</span>append(three);
/// <span class="comment">// vector: ["one", "two", "three"]</span>
/// <span class="comment">// three: "three"</span>
///
/// </pre>
/// <p>This is the same as calling resize(<a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>() + 1) and assigning <i>value</i> to the new last element in the vector.</p>
/// <p>This operation is relatively fast, because <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> typically allocates more memory than necessary, so it can grow without reallocating the entire vector each time.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#operator-lt-lt">operator<<</a>(), <a href="http://doc.qt.io/qt-5/qvector.html#prepend">prepend</a>(), and <a href="http://doc.qt.io/qt-5/qvector.html#insert">insert</a>().</p></div>
#[inline(always)]
pub unsafe fn append_q_node_id_type_pair(
&self,
t: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QNodeIdTypePair>>,
) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeIdTypePair_append(
self as *const crate::QVectorOfQNodeIdTypePair as *mut crate::QVectorOfQNodeIdTypePair,
::cpp_core::CastInto::<::cpp_core::Ref<crate::QNodeIdTypePair>>::cast_into(t)
.as_raw_ptr(),
)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QNodeIdTypePair>::append(const QVector<Qt3DCore::QNodeIdTypePair>& l)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#append-2">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This is an overloaded function.</p>
/// <p>Appends the items of the <i>value</i> vector to this vector.</p>
/// <p>This function was introduced in Qt 5.5.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#operator-lt-lt">operator<<</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#operator-2b-eq">operator+=</a>().</p></div>
#[inline(always)]
pub unsafe fn append_q_vector_of_q_node_id_type_pair(
&self,
l: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QVectorOfQNodeIdTypePair>>,
) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeIdTypePair_append2(
self as *const crate::QVectorOfQNodeIdTypePair as *mut crate::QVectorOfQNodeIdTypePair,
::cpp_core::CastInto::<::cpp_core::Ref<crate::QVectorOfQNodeIdTypePair>>::cast_into(l)
.as_raw_ptr(),
)
}
/// <p>Returns the item at index position <i>i</i> in the vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```const Qt3DCore::QNodeIdTypePair& QVector<Qt3DCore::QNodeIdTypePair>::at(int i) const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#at">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the item at index position <i>i</i> in the vector.</p>
/// <p><i>i</i> must be a valid index position in the vector (i.e., 0 <= <i>i</i> < <a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>()).</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#value">value</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#operator-5b-5d">operator[]</a>().</p></div>
#[inline(always)]
pub unsafe fn at(&self, i: ::std::os::raw::c_int) -> ::cpp_core::Ref<crate::QNodeIdTypePair> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeIdTypePair_at(
self as *const crate::QVectorOfQNodeIdTypePair,
i,
)
};
::cpp_core::Ref::from_raw(ffi_result as *mut crate::QNodeIdTypePair)
.expect("attempted to construct a null Ref")
}
/// <p>This function is provided for STL compatibility. It is equivalent to <a href="http://doc.qt.io/qt-5/qvector.html#last">last</a>().</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNodeIdTypePair& QVector<Qt3DCore::QNodeIdTypePair>::back()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#back">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This function is provided for STL compatibility. It is equivalent to <a href="http://doc.qt.io/qt-5/qvector.html#last">last</a>().</p></div>
#[inline(always)]
pub unsafe fn back_mut(&self) -> ::cpp_core::Ref<crate::QNodeIdTypePair> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeIdTypePair_back(
self as *const crate::QVectorOfQNodeIdTypePair
as *mut crate::QVectorOfQNodeIdTypePair,
)
};
::cpp_core::Ref::from_raw(ffi_result).expect("attempted to construct a null Ref")
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```const Qt3DCore::QNodeIdTypePair& QVector<Qt3DCore::QNodeIdTypePair>::back() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#back-1">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This is an overloaded function.</p></div>
#[inline(always)]
pub unsafe fn back(&self) -> ::cpp_core::Ref<crate::QNodeIdTypePair> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeIdTypePair_back1(
self as *const crate::QVectorOfQNodeIdTypePair,
)
};
::cpp_core::Ref::from_raw(ffi_result as *mut crate::QNodeIdTypePair)
.expect("attempted to construct a null Ref")
}
/// <p>Returns the maximum number of items that can be stored in the vector without forcing a reallocation.</p>
///
/// Calls C++ function: <span style='color: green;'>```int QVector<Qt3DCore::QNodeIdTypePair>::capacity() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#capacity">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the maximum number of items that can be stored in the vector without forcing a reallocation.</p>
/// <p>The sole purpose of this function is to provide a means of fine tuning <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a>'s memory usage. In general, you will rarely ever need to call this function. If you want to know how many items are in the vector, call <a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>().</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#reserve">reserve</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#squeeze">squeeze</a>().</p></div>
#[inline(always)]
pub unsafe fn capacity(&self) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeIdTypePair_capacity(
self as *const crate::QVectorOfQNodeIdTypePair,
)
}
/// <p>Removes all the elements from the vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QNodeIdTypePair>::clear()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#clear">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Removes all the elements from the vector.</p>
/// <p><b>Note: </b>Until Qt 5.6, this also released the memory used by the vector. From Qt 5.7, the capacity is preserved. To shed all capacity, swap with a default-constructed vector:</p><pre class="cpp">
///
/// <span class="type"><a href="http://doc.qt.io/qt-5/qvector.html#QVector">QVector</a></span><span class="operator"><</span>T<span class="operator">></span> v <span class="operator">.</span><span class="operator">.</span><span class="operator">.</span>;
/// <span class="type"><a href="http://doc.qt.io/qt-5/qvector.html#QVector">QVector</a></span><span class="operator"><</span>T<span class="operator">></span>()<span class="operator">.</span>swap(v);
/// Q_ASSERT(v<span class="operator">.</span>capacity() <span class="operator">=</span><span class="operator">=</span> <span class="number">0</span>);
///
/// </pre>
/// <p>or call <a href="http://doc.qt.io/qt-5/qvector.html#squeeze">squeeze</a>().</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#squeeze">squeeze</a>().</p></div>
#[inline(always)]
pub unsafe fn clear(&self) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeIdTypePair_clear(
self as *const crate::QVectorOfQNodeIdTypePair as *mut crate::QVectorOfQNodeIdTypePair,
)
}
/// <p>Returns a const pointer to the data stored in the vector. The pointer can be used to access the items in the vector. The pointer remains valid as long as the vector isn't reallocated.</p>
///
/// Calls C++ function: <span style='color: green;'>```const Qt3DCore::QNodeIdTypePair* QVector<Qt3DCore::QNodeIdTypePair>::constData() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#constData">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns a const pointer to the data stored in the vector. The pointer can be used to access the items in the vector. The pointer remains valid as long as the vector isn't reallocated.</p>
/// <p>This function is mostly useful to pass a vector to a function that accepts a plain C++ array.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#data">data</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#operator-5b-5d">operator[]</a>().</p></div>
#[inline(always)]
pub unsafe fn const_data(&self) -> ::cpp_core::Ptr<crate::QNodeIdTypePair> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeIdTypePair_constData(
self as *const crate::QVectorOfQNodeIdTypePair,
)
};
::cpp_core::Ptr::from_raw(ffi_result as *mut crate::QNodeIdTypePair)
}
/// <p>Returns a const reference to the first item in the vector. This function assumes that the vector isn't empty.</p>
///
/// Calls C++ function: <span style='color: green;'>```const Qt3DCore::QNodeIdTypePair& QVector<Qt3DCore::QNodeIdTypePair>::constFirst() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#constFirst">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns a const reference to the first item in the vector. This function assumes that the vector isn't empty.</p>
/// <p>This function was introduced in Qt 5.6.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#constLast">constLast</a>(), <a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>(), and <a href="http://doc.qt.io/qt-5/qvector.html#first">first</a>().</p></div>
#[inline(always)]
pub unsafe fn const_first(&self) -> ::cpp_core::Ref<crate::QNodeIdTypePair> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeIdTypePair_constFirst(
self as *const crate::QVectorOfQNodeIdTypePair,
)
};
::cpp_core::Ref::from_raw(ffi_result as *mut crate::QNodeIdTypePair)
.expect("attempted to construct a null Ref")
}
/// <p>Returns a const reference to the last item in the vector. This function assumes that the vector isn't empty.</p>
///
/// Calls C++ function: <span style='color: green;'>```const Qt3DCore::QNodeIdTypePair& QVector<Qt3DCore::QNodeIdTypePair>::constLast() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#constLast">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns a const reference to the last item in the vector. This function assumes that the vector isn't empty.</p>
/// <p>This function was introduced in Qt 5.6.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#constFirst">constFirst</a>(), <a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>(), and <a href="http://doc.qt.io/qt-5/qvector.html#last">last</a>().</p></div>
#[inline(always)]
pub unsafe fn const_last(&self) -> ::cpp_core::Ref<crate::QNodeIdTypePair> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeIdTypePair_constLast(
self as *const crate::QVectorOfQNodeIdTypePair,
)
};
::cpp_core::Ref::from_raw(ffi_result as *mut crate::QNodeIdTypePair)
.expect("attempted to construct a null Ref")
}
/// <p>Assigns <i>other</i> to this vector and returns a reference to this vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```QVector<Qt3DCore::QNodeIdTypePair>& QVector<Qt3DCore::QNodeIdTypePair>::operator=(const QVector<Qt3DCore::QNodeIdTypePair>& v)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#operator-eq">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Assigns <i>other</i> to this vector and returns a reference to this vector.</p></div>
#[inline(always)]
pub unsafe fn copy_from(
&self,
v: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QVectorOfQNodeIdTypePair>>,
) -> ::cpp_core::Ref<crate::QVectorOfQNodeIdTypePair> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeIdTypePair_operator_(self as *const crate::QVectorOfQNodeIdTypePair as *mut crate::QVectorOfQNodeIdTypePair, ::cpp_core::CastInto::<::cpp_core::Ref<crate::QVectorOfQNodeIdTypePair>>::cast_into(v).as_raw_ptr())
};
::cpp_core::Ref::from_raw(ffi_result).expect("attempted to construct a null Ref")
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```int QVector<Qt3DCore::QNodeIdTypePair>::count() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#count-1">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This is an overloaded function.</p>
/// <p>Same as <a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>().</p></div>
#[inline(always)]
pub unsafe fn count(&self) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeIdTypePair_count1(
self as *const crate::QVectorOfQNodeIdTypePair,
)
}
/// <p>Returns a pointer to the data stored in the vector. The pointer can be used to access and modify the items in the vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNodeIdTypePair* QVector<Qt3DCore::QNodeIdTypePair>::data()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#data">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns a pointer to the data stored in the vector. The pointer can be used to access and modify the items in the vector.</p>
/// <p>Example:</p>
/// <pre class="cpp">
///
/// <span class="type"><a href="http://doc.qt.io/qt-5/qvector.html#QVector">QVector</a></span><span class="operator"><</span><span class="type">int</span><span class="operator">></span> vector(<span class="number">10</span>);
/// <span class="type">int</span> <span class="operator">*</span>data <span class="operator">=</span> vector<span class="operator">.</span>data();
/// <span class="keyword">for</span> (<span class="type">int</span> i <span class="operator">=</span> <span class="number">0</span>; i <span class="operator"><</span> <span class="number">10</span>; <span class="operator">+</span><span class="operator">+</span>i)
///   data<span class="operator">[</span>i<span class="operator">]</span> <span class="operator">=</span> <span class="number">2</span> <span class="operator">*</span> i;
///
/// </pre>
/// <p>The pointer remains valid as long as the vector isn't reallocated.</p>
/// <p>This function is mostly useful to pass a vector to a function that accepts a plain C++ array.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#constData">constData</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#operator-5b-5d">operator[]</a>().</p></div>
#[inline(always)]
pub unsafe fn data_mut(&self) -> ::cpp_core::Ptr<crate::QNodeIdTypePair> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeIdTypePair_data(
self as *const crate::QVectorOfQNodeIdTypePair
as *mut crate::QVectorOfQNodeIdTypePair,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```const Qt3DCore::QNodeIdTypePair* QVector<Qt3DCore::QNodeIdTypePair>::data() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#data-1">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This is an overloaded function.</p></div>
#[inline(always)]
pub unsafe fn data(&self) -> ::cpp_core::Ptr<crate::QNodeIdTypePair> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeIdTypePair_data1(
self as *const crate::QVectorOfQNodeIdTypePair,
)
};
::cpp_core::Ptr::from_raw(ffi_result as *mut crate::QNodeIdTypePair)
}
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QNodeIdTypePair>::detach()```</span>.
#[inline(always)]
pub unsafe fn detach(&self) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeIdTypePair_detach(
self as *const crate::QVectorOfQNodeIdTypePair as *mut crate::QVectorOfQNodeIdTypePair,
)
}
/// <p>This function is provided for STL compatibility. It is equivalent to <a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>(), returning <code>true</code> if the vector is empty; otherwise returns <code>false</code>.</p>
///
/// Calls C++ function: <span style='color: green;'>```bool QVector<Qt3DCore::QNodeIdTypePair>::empty() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#empty">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This function is provided for STL compatibility. It is equivalent to <a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>(), returning <code>true</code> if the vector is empty; otherwise returns <code>false</code>.</p></div>
#[inline(always)]
pub unsafe fn empty(&self) -> bool {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeIdTypePair_empty(
self as *const crate::QVectorOfQNodeIdTypePair,
)
}
/// <p>Assigns <i>value</i> to all items in the vector. If <i>size</i> is different from -1 (the default), the vector is resized to size <i>size</i> beforehand.</p>
///
/// Calls C++ function: <span style='color: green;'>```QVector<Qt3DCore::QNodeIdTypePair>& QVector<Qt3DCore::QNodeIdTypePair>::fill(const Qt3DCore::QNodeIdTypePair& t, int size = …)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#fill">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Assigns <i>value</i> to all items in the vector. If <i>size</i> is different from -1 (the default), the vector is resized to size <i>size</i> beforehand.</p>
/// <p>Example:</p>
/// <pre class="cpp">
///
/// <span class="type"><a href="http://doc.qt.io/qt-5/qvector.html#QVector">QVector</a></span><span class="operator"><</span><span class="type"><a href="http://doc.qt.io/qt-5/qstring.html">QString</a></span><span class="operator">></span> vector(<span class="number">3</span>);
/// vector<span class="operator">.</span>fill(<span class="string">"Yes"</span>);
/// <span class="comment">// vector: ["Yes", "Yes", "Yes"]</span>
///
/// vector<span class="operator">.</span>fill(<span class="string">"oh"</span><span class="operator">,</span> <span class="number">5</span>);
/// <span class="comment">// vector: ["oh", "oh", "oh", "oh", "oh"]</span>
///
/// </pre>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#resize">resize</a>().</p></div>
#[inline(always)]
pub unsafe fn fill_2a(
&self,
t: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QNodeIdTypePair>>,
size: ::std::os::raw::c_int,
) -> ::cpp_core::Ref<crate::QVectorOfQNodeIdTypePair> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeIdTypePair_fill(
self as *const crate::QVectorOfQNodeIdTypePair
as *mut crate::QVectorOfQNodeIdTypePair,
::cpp_core::CastInto::<::cpp_core::Ref<crate::QNodeIdTypePair>>::cast_into(t)
.as_raw_ptr(),
size,
)
};
::cpp_core::Ref::from_raw(ffi_result).expect("attempted to construct a null Ref")
}
/// <p>Assigns <i>value</i> to all items in the vector. If <i>size</i> is different from -1 (the default), the vector is resized to size <i>size</i> beforehand.</p>
///
/// Calls C++ function: <span style='color: green;'>```QVector<Qt3DCore::QNodeIdTypePair>& QVector<Qt3DCore::QNodeIdTypePair>::fill(const Qt3DCore::QNodeIdTypePair& t)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#fill">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Assigns <i>value</i> to all items in the vector. If <i>size</i> is different from -1 (the default), the vector is resized to size <i>size</i> beforehand.</p>
/// <p>Example:</p>
/// <pre class="cpp">
///
/// <span class="type"><a href="http://doc.qt.io/qt-5/qvector.html#QVector">QVector</a></span><span class="operator"><</span><span class="type"><a href="http://doc.qt.io/qt-5/qstring.html">QString</a></span><span class="operator">></span> vector(<span class="number">3</span>);
/// vector<span class="operator">.</span>fill(<span class="string">"Yes"</span>);
/// <span class="comment">// vector: ["Yes", "Yes", "Yes"]</span>
///
/// vector<span class="operator">.</span>fill(<span class="string">"oh"</span><span class="operator">,</span> <span class="number">5</span>);
/// <span class="comment">// vector: ["oh", "oh", "oh", "oh", "oh"]</span>
///
/// </pre>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#resize">resize</a>().</p></div>
#[inline(always)]
pub unsafe fn fill_1a(
&self,
t: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QNodeIdTypePair>>,
) -> ::cpp_core::Ref<crate::QVectorOfQNodeIdTypePair> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeIdTypePair_fill1(
self as *const crate::QVectorOfQNodeIdTypePair
as *mut crate::QVectorOfQNodeIdTypePair,
::cpp_core::CastInto::<::cpp_core::Ref<crate::QNodeIdTypePair>>::cast_into(t)
.as_raw_ptr(),
)
};
::cpp_core::Ref::from_raw(ffi_result).expect("attempted to construct a null Ref")
}
/// <p>Returns a reference to the first item in the vector. This function assumes that the vector isn't empty.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNodeIdTypePair& QVector<Qt3DCore::QNodeIdTypePair>::first()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#first">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns a reference to the first item in the vector. This function assumes that the vector isn't empty.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#last">last</a>(), <a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>(), and <a href="http://doc.qt.io/qt-5/qvector.html#constFirst">constFirst</a>().</p></div>
#[inline(always)]
pub unsafe fn first_mut(&self) -> ::cpp_core::Ref<crate::QNodeIdTypePair> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeIdTypePair_first(
self as *const crate::QVectorOfQNodeIdTypePair
as *mut crate::QVectorOfQNodeIdTypePair,
)
};
::cpp_core::Ref::from_raw(ffi_result).expect("attempted to construct a null Ref")
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```const Qt3DCore::QNodeIdTypePair& QVector<Qt3DCore::QNodeIdTypePair>::first() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#first-1">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This is an overloaded function.</p></div>
#[inline(always)]
pub unsafe fn first(&self) -> ::cpp_core::Ref<crate::QNodeIdTypePair> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeIdTypePair_first1(
self as *const crate::QVectorOfQNodeIdTypePair,
)
};
::cpp_core::Ref::from_raw(ffi_result as *mut crate::QNodeIdTypePair)
.expect("attempted to construct a null Ref")
}
/// <p>This function is provided for STL compatibility. It is equivalent to <a href="http://doc.qt.io/qt-5/qvector.html#first">first</a>().</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNodeIdTypePair& QVector<Qt3DCore::QNodeIdTypePair>::front()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#front">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This function is provided for STL compatibility. It is equivalent to <a href="http://doc.qt.io/qt-5/qvector.html#first">first</a>().</p></div>
#[inline(always)]
pub unsafe fn front_mut(&self) -> ::cpp_core::Ref<crate::QNodeIdTypePair> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeIdTypePair_front(
self as *const crate::QVectorOfQNodeIdTypePair
as *mut crate::QVectorOfQNodeIdTypePair,
)
};
::cpp_core::Ref::from_raw(ffi_result).expect("attempted to construct a null Ref")
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```const Qt3DCore::QNodeIdTypePair& QVector<Qt3DCore::QNodeIdTypePair>::front() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#front-1">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This is an overloaded function.</p></div>
#[inline(always)]
pub unsafe fn front(&self) -> ::cpp_core::Ref<crate::QNodeIdTypePair> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeIdTypePair_front1(
self as *const crate::QVectorOfQNodeIdTypePair,
)
};
::cpp_core::Ref::from_raw(ffi_result as *mut crate::QNodeIdTypePair)
.expect("attempted to construct a null Ref")
}
/// <p>Returns the item at index position <i>i</i> as a modifiable reference.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNodeIdTypePair& QVector<Qt3DCore::QNodeIdTypePair>::operator[](int i)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#operator-5b-5d">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the item at index position <i>i</i> as a modifiable reference.</p>
/// <p><i>i</i> must be a valid index position in the vector (i.e., 0 <= <i>i</i> < <a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>()).</p>
/// <p>Note that using non-const operators can cause <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> to do a deep copy.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#at">at</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#value">value</a>().</p></div>
#[inline(always)]
pub unsafe fn index_mut(
&self,
i: ::std::os::raw::c_int,
) -> ::cpp_core::Ref<crate::QNodeIdTypePair> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeIdTypePair_operator__2(
self as *const crate::QVectorOfQNodeIdTypePair
as *mut crate::QVectorOfQNodeIdTypePair,
i,
)
};
::cpp_core::Ref::from_raw(ffi_result).expect("attempted to construct a null Ref")
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```const Qt3DCore::QNodeIdTypePair& QVector<Qt3DCore::QNodeIdTypePair>::operator[](int i) const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#operator-5b-5d-1">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This is an overloaded function.</p>
/// <p>Same as at(<i>i</i>).</p></div>
#[inline(always)]
pub unsafe fn index(
&self,
i: ::std::os::raw::c_int,
) -> ::cpp_core::Ref<crate::QNodeIdTypePair> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeIdTypePair_operator__3(
self as *const crate::QVectorOfQNodeIdTypePair,
i,
)
};
::cpp_core::Ref::from_raw(ffi_result as *mut crate::QNodeIdTypePair)
.expect("attempted to construct a null Ref")
}
/// <p>Inserts <i>value</i> at index position <i>i</i> in the vector. If <i>i</i> is 0, the value is prepended to the vector. If <i>i</i> is <a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>(), the value is appended to the vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QNodeIdTypePair>::insert(int i, const Qt3DCore::QNodeIdTypePair& t)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#insert">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Inserts <i>value</i> at index position <i>i</i> in the vector. If <i>i</i> is 0, the value is prepended to the vector. If <i>i</i> is <a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>(), the value is appended to the vector.</p>
/// <p>Example:</p>
/// <pre class="cpp">
///
/// <span class="type"><a href="http://doc.qt.io/qt-5/qvector.html#QVector">QVector</a></span><span class="operator"><</span><span class="type"><a href="http://doc.qt.io/qt-5/qstring.html">QString</a></span><span class="operator">></span> vector;
/// vector <span class="operator"><</span><span class="operator"><</span> <span class="string">"alpha"</span> <span class="operator"><</span><span class="operator"><</span> <span class="string">"beta"</span> <span class="operator"><</span><span class="operator"><</span> <span class="string">"delta"</span>;
/// vector<span class="operator">.</span>insert(<span class="number">2</span><span class="operator">,</span> <span class="string">"gamma"</span>);
/// <span class="comment">// vector: ["alpha", "beta", "gamma", "delta"]</span>
///
/// </pre>
/// <p>For large vectors, this operation can be slow (<a href="http://doc.qt.io/qt-5/containers.html#linear-time">linear time</a>), because it requires moving all the items at indexes <i>i</i> and above by one position further in memory. If you want a container class that provides a fast insert() function, use <a href="http://doc.qt.io/qt-5/qlinkedlist.html">QLinkedList</a> instead.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#append">append</a>(), <a href="http://doc.qt.io/qt-5/qvector.html#prepend">prepend</a>(), and <a href="http://doc.qt.io/qt-5/qvector.html#remove">remove</a>().</p></div>
#[inline(always)]
pub unsafe fn insert_2a(
&self,
i: ::std::os::raw::c_int,
t: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QNodeIdTypePair>>,
) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeIdTypePair_insert(
self as *const crate::QVectorOfQNodeIdTypePair as *mut crate::QVectorOfQNodeIdTypePair,
i,
::cpp_core::CastInto::<::cpp_core::Ref<crate::QNodeIdTypePair>>::cast_into(t)
.as_raw_ptr(),
)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QNodeIdTypePair>::insert(int i, int n, const Qt3DCore::QNodeIdTypePair& t)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#insert-1">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This is an overloaded function.</p>
/// <p>Inserts <i>count</i> copies of <i>value</i> at index position <i>i</i> in the vector.</p>
/// <p>Example:</p>
/// <pre class="cpp">
///
/// <span class="type"><a href="http://doc.qt.io/qt-5/qvector.html#QVector">QVector</a></span><span class="operator"><</span><span class="type">double</span><span class="operator">></span> vector;
/// vector <span class="operator"><</span><span class="operator"><</span> <span class="number">2.718</span> <span class="operator"><</span><span class="operator"><</span> <span class="number">1.442</span> <span class="operator"><</span><span class="operator"><</span> <span class="number">0.4342</span>;
/// vector<span class="operator">.</span>insert(<span class="number">1</span><span class="operator">,</span> <span class="number">3</span><span class="operator">,</span> <span class="number">9.9</span>);
/// <span class="comment">// vector: [2.718, 9.9, 9.9, 9.9, 1.442, 0.4342]</span>
///
/// </pre></div>
#[inline(always)]
pub unsafe fn insert_3a(
&self,
i: ::std::os::raw::c_int,
n: ::std::os::raw::c_int,
t: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QNodeIdTypePair>>,
) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeIdTypePair_insert1(
self as *const crate::QVectorOfQNodeIdTypePair as *mut crate::QVectorOfQNodeIdTypePair,
i,
n,
::cpp_core::CastInto::<::cpp_core::Ref<crate::QNodeIdTypePair>>::cast_into(t)
.as_raw_ptr(),
)
}
/// Calls C++ function: <span style='color: green;'>```bool QVector<Qt3DCore::QNodeIdTypePair>::isDetached() const```</span>.
#[inline(always)]
pub unsafe fn is_detached(&self) -> bool {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeIdTypePair_isDetached(
self as *const crate::QVectorOfQNodeIdTypePair,
)
}
/// <p>Returns <code>true</code> if the vector has size 0; otherwise returns <code>false</code>.</p>
///
/// Calls C++ function: <span style='color: green;'>```bool QVector<Qt3DCore::QNodeIdTypePair>::isEmpty() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns <code>true</code> if the vector has size 0; otherwise returns <code>false</code>.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#resize">resize</a>().</p></div>
#[inline(always)]
pub unsafe fn is_empty(&self) -> bool {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeIdTypePair_isEmpty(
self as *const crate::QVectorOfQNodeIdTypePair,
)
}
/// Calls C++ function: <span style='color: green;'>```bool QVector<Qt3DCore::QNodeIdTypePair>::isSharedWith(const QVector<Qt3DCore::QNodeIdTypePair>& other) const```</span>.
#[inline(always)]
pub unsafe fn is_shared_with(
&self,
other: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QVectorOfQNodeIdTypePair>>,
) -> bool {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeIdTypePair_isSharedWith(
self as *const crate::QVectorOfQNodeIdTypePair,
::cpp_core::CastInto::<::cpp_core::Ref<crate::QVectorOfQNodeIdTypePair>>::cast_into(
other,
)
.as_raw_ptr(),
)
}
/// <p>Returns a reference to the last item in the vector. This function assumes that the vector isn't empty.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNodeIdTypePair& QVector<Qt3DCore::QNodeIdTypePair>::last()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#last">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns a reference to the last item in the vector. This function assumes that the vector isn't empty.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#first">first</a>(), <a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>(), and <a href="http://doc.qt.io/qt-5/qvector.html#constLast">constLast</a>().</p></div>
#[inline(always)]
pub unsafe fn last_mut(&self) -> ::cpp_core::Ref<crate::QNodeIdTypePair> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeIdTypePair_last(
self as *const crate::QVectorOfQNodeIdTypePair
as *mut crate::QVectorOfQNodeIdTypePair,
)
};
::cpp_core::Ref::from_raw(ffi_result).expect("attempted to construct a null Ref")
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```const Qt3DCore::QNodeIdTypePair& QVector<Qt3DCore::QNodeIdTypePair>::last() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#last-1">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This is an overloaded function.</p></div>
#[inline(always)]
pub unsafe fn last(&self) -> ::cpp_core::Ref<crate::QNodeIdTypePair> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeIdTypePair_last1(
self as *const crate::QVectorOfQNodeIdTypePair,
)
};
::cpp_core::Ref::from_raw(ffi_result as *mut crate::QNodeIdTypePair)
.expect("attempted to construct a null Ref")
}
/// <p>Same as <a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#count-1">count</a>().</p>
///
/// Calls C++ function: <span style='color: green;'>```int QVector<Qt3DCore::QNodeIdTypePair>::length() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#length">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Same as <a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#count-1">count</a>().</p>
/// <p>Provided for compatibility with <a href="http://doc.qt.io/qt-5/qlist.html">QList</a>.</p>
/// <p>This function was introduced in Qt 5.2.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>(), <a href="http://doc.qt.io/qt-5/qvector.html#count-1">count</a>(), and <a href="http://doc.qt.io/qt-5/qlist.html#length">QList::length</a>().</p></div>
#[inline(always)]
pub unsafe fn length(&self) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeIdTypePair_length(
self as *const crate::QVectorOfQNodeIdTypePair,
)
}
/// <p>Returns a sub-vector which contains elements from this vector, starting at position <i>pos</i>. If <i>length</i> is -1 (the default), all elements after <i>pos</i> are included; otherwise <i>length</i> elements (or all remaining elements if there are less than <i>length</i> elements) are included.</p>
///
/// Calls C++ function: <span style='color: green;'>```QVector<Qt3DCore::QNodeIdTypePair> QVector<Qt3DCore::QNodeIdTypePair>::mid(int pos, int len = …) const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#mid">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns a sub-vector which contains elements from this vector, starting at position <i>pos</i>. If <i>length</i> is -1 (the default), all elements after <i>pos</i> are included; otherwise <i>length</i> elements (or all remaining elements if there are less than <i>length</i> elements) are included.</p></div>
#[inline(always)]
pub unsafe fn mid_2a(
&self,
pos: ::std::os::raw::c_int,
len: ::std::os::raw::c_int,
) -> ::cpp_core::CppBox<crate::QVectorOfQNodeIdTypePair> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeIdTypePair_mid(
self as *const crate::QVectorOfQNodeIdTypePair,
pos,
len,
)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Returns a sub-vector which contains elements from this vector, starting at position <i>pos</i>. If <i>length</i> is -1 (the default), all elements after <i>pos</i> are included; otherwise <i>length</i> elements (or all remaining elements if there are less than <i>length</i> elements) are included.</p>
///
/// Calls C++ function: <span style='color: green;'>```QVector<Qt3DCore::QNodeIdTypePair> QVector<Qt3DCore::QNodeIdTypePair>::mid(int pos) const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#mid">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns a sub-vector which contains elements from this vector, starting at position <i>pos</i>. If <i>length</i> is -1 (the default), all elements after <i>pos</i> are included; otherwise <i>length</i> elements (or all remaining elements if there are less than <i>length</i> elements) are included.</p></div>
#[inline(always)]
pub unsafe fn mid_1a(
&self,
pos: ::std::os::raw::c_int,
) -> ::cpp_core::CppBox<crate::QVectorOfQNodeIdTypePair> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeIdTypePair_mid1(
self as *const crate::QVectorOfQNodeIdTypePair,
pos,
)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Moves the item at index position <i>from</i> to index position <i>to</i>.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QNodeIdTypePair>::move(int from, int to)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#move">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Moves the item at index position <i>from</i> to index position <i>to</i>.</p>
/// <p>Provided for compatibility with <a href="http://doc.qt.io/qt-5/qlist.html">QList</a>.</p>
/// <p>This function was introduced in Qt 5.6.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qlist.html#move">QList::move</a>().</p></div>
#[inline(always)]
pub unsafe fn move_(&self, from: ::std::os::raw::c_int, to: ::std::os::raw::c_int) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeIdTypePair_move(
self as *const crate::QVectorOfQNodeIdTypePair as *mut crate::QVectorOfQNodeIdTypePair,
from,
to,
)
}
/// <p>Constructs an empty vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void QVector<Qt3DCore::QNodeIdTypePair>::QVector()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#QVector">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Constructs an empty vector.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#resize">resize</a>().</p></div>
#[inline(always)]
pub unsafe fn new_0a() -> ::cpp_core::CppBox<crate::QVectorOfQNodeIdTypePair> {
let ffi_result =
{ crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeIdTypePair_QVector() };
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Constructs a vector with an initial size of <i>size</i> elements.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void QVector<Qt3DCore::QNodeIdTypePair>::QVector(int size)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#QVector-1">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Constructs a vector with an initial size of <i>size</i> elements.</p>
/// <p>The elements are initialized with a <a href="http://doc.qt.io/qt-5/containers.html#default-constructed-value">default-constructed value</a>.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#resize">resize</a>().</p></div>
#[inline(always)]
pub unsafe fn new_1a(
size: ::std::os::raw::c_int,
) -> ::cpp_core::CppBox<crate::QVectorOfQNodeIdTypePair> {
let ffi_result =
{ crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeIdTypePair_QVector1(size) };
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Constructs a vector with an initial size of <i>size</i> elements. Each element is initialized with <i>value</i>.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void QVector<Qt3DCore::QNodeIdTypePair>::QVector(int size, const Qt3DCore::QNodeIdTypePair& t)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#QVector-2">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Constructs a vector with an initial size of <i>size</i> elements. Each element is initialized with <i>value</i>.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#resize">resize</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#fill">fill</a>().</p></div>
#[inline(always)]
pub unsafe fn new_2a(
size: ::std::os::raw::c_int,
t: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QNodeIdTypePair>>,
) -> ::cpp_core::CppBox<crate::QVectorOfQNodeIdTypePair> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeIdTypePair_QVector2(
size,
::cpp_core::CastInto::<::cpp_core::Ref<crate::QNodeIdTypePair>>::cast_into(t)
.as_raw_ptr(),
)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Constructs a copy of <i>other</i>.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void QVector<Qt3DCore::QNodeIdTypePair>::QVector(const QVector<Qt3DCore::QNodeIdTypePair>& v)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#QVector-3">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Constructs a copy of <i>other</i>.</p>
/// <p>This operation takes <a href="http://doc.qt.io/qt-5/containers.html#algorithmic-complexity">constant time</a>, because <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> is <a href="http://doc.qt.io/qt-5/implicit-sharing.html">implicitly shared</a>. This makes returning a <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> from a function very fast. If a shared instance is modified, it will be copied (copy-on-write), and that takes <a href="http://doc.qt.io/qt-5/containers.html#algorithmic-complexity">linear time</a>.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#operator-eq">operator=</a>().</p></div>
#[inline(always)]
pub unsafe fn new_copy(
v: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QVectorOfQNodeIdTypePair>>,
) -> ::cpp_core::CppBox<crate::QVectorOfQNodeIdTypePair> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeIdTypePair_QVector3(::cpp_core::CastInto::<::cpp_core::Ref<crate::QVectorOfQNodeIdTypePair>>::cast_into(v).as_raw_ptr())
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>This function is provided for STL compatibility. It is equivalent to <a href="http://doc.qt.io/qt-5/qvector.html#removeLast">removeLast</a>().</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QNodeIdTypePair>::pop_back()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#pop_back">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This function is provided for STL compatibility. It is equivalent to <a href="http://doc.qt.io/qt-5/qvector.html#removeLast">removeLast</a>().</p></div>
#[inline(always)]
pub unsafe fn pop_back(&self) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeIdTypePair_pop_back(
self as *const crate::QVectorOfQNodeIdTypePair as *mut crate::QVectorOfQNodeIdTypePair,
)
}
/// <p>This function is provided for STL compatibility. It is equivalent to <a href="http://doc.qt.io/qt-5/qvector.html#removeFirst">removeFirst</a>().</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QNodeIdTypePair>::pop_front()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#pop_front">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This function is provided for STL compatibility. It is equivalent to <a href="http://doc.qt.io/qt-5/qvector.html#removeFirst">removeFirst</a>().</p></div>
#[inline(always)]
pub unsafe fn pop_front(&self) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeIdTypePair_pop_front(
self as *const crate::QVectorOfQNodeIdTypePair as *mut crate::QVectorOfQNodeIdTypePair,
)
}
/// <p>Inserts <i>value</i> at the beginning of the vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QNodeIdTypePair>::prepend(const Qt3DCore::QNodeIdTypePair& t)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#prepend">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Inserts <i>value</i> at the beginning of the vector.</p>
/// <p>Example:</p>
/// <pre class="cpp">
///
/// <span class="type"><a href="http://doc.qt.io/qt-5/qvector.html#QVector">QVector</a></span><span class="operator"><</span><span class="type"><a href="http://doc.qt.io/qt-5/qstring.html">QString</a></span><span class="operator">></span> vector;
/// vector<span class="operator">.</span>prepend(<span class="string">"one"</span>);
/// vector<span class="operator">.</span>prepend(<span class="string">"two"</span>);
/// vector<span class="operator">.</span>prepend(<span class="string">"three"</span>);
/// <span class="comment">// vector: ["three", "two", "one"]</span>
///
/// </pre>
/// <p>This is the same as vector.insert(0, <i>value</i>).</p>
/// <p>For large vectors, this operation can be slow (<a href="http://doc.qt.io/qt-5/containers.html#linear-time">linear time</a>), because it requires moving all the items in the vector by one position further in memory. If you want a container class that provides a fast prepend() function, use <a href="http://doc.qt.io/qt-5/qlist.html">QList</a> or <a href="http://doc.qt.io/qt-5/qlinkedlist.html">QLinkedList</a> instead.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#append">append</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#insert">insert</a>().</p></div>
#[inline(always)]
pub unsafe fn prepend(
&self,
t: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QNodeIdTypePair>>,
) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeIdTypePair_prepend(
self as *const crate::QVectorOfQNodeIdTypePair as *mut crate::QVectorOfQNodeIdTypePair,
::cpp_core::CastInto::<::cpp_core::Ref<crate::QNodeIdTypePair>>::cast_into(t)
.as_raw_ptr(),
)
}
/// <p>This function is provided for STL compatibility. It is equivalent to append(<i>value</i>).</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QNodeIdTypePair>::push_back(const Qt3DCore::QNodeIdTypePair& t)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#push_back">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This function is provided for STL compatibility. It is equivalent to append(<i>value</i>).</p></div>
#[inline(always)]
pub unsafe fn push_back(
&self,
t: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QNodeIdTypePair>>,
) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeIdTypePair_push_back(
self as *const crate::QVectorOfQNodeIdTypePair as *mut crate::QVectorOfQNodeIdTypePair,
::cpp_core::CastInto::<::cpp_core::Ref<crate::QNodeIdTypePair>>::cast_into(t)
.as_raw_ptr(),
)
}
/// <p>This function is provided for STL compatibility. It is equivalent to prepend(<i>value</i>).</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QNodeIdTypePair>::push_front(const Qt3DCore::QNodeIdTypePair& t)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#push_front">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This function is provided for STL compatibility. It is equivalent to prepend(<i>value</i>).</p></div>
#[inline(always)]
pub unsafe fn push_front(
&self,
t: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QNodeIdTypePair>>,
) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeIdTypePair_push_front(
self as *const crate::QVectorOfQNodeIdTypePair as *mut crate::QVectorOfQNodeIdTypePair,
::cpp_core::CastInto::<::cpp_core::Ref<crate::QNodeIdTypePair>>::cast_into(t)
.as_raw_ptr(),
)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QNodeIdTypePair>::remove(int i)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#remove">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This is an overloaded function.</p>
/// <p>Removes the element at index position <i>i</i>.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#insert">insert</a>(), <a href="http://doc.qt.io/qt-5/qvector.html#replace">replace</a>(), and <a href="http://doc.qt.io/qt-5/qvector.html#fill">fill</a>().</p></div>
#[inline(always)]
pub unsafe fn remove_1a(&self, i: ::std::os::raw::c_int) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeIdTypePair_remove(
self as *const crate::QVectorOfQNodeIdTypePair as *mut crate::QVectorOfQNodeIdTypePair,
i,
)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QNodeIdTypePair>::remove(int i, int n)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#remove-1">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This is an overloaded function.</p>
/// <p>Removes <i>count</i> elements from the middle of the vector, starting at index position <i>i</i>.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#insert">insert</a>(), <a href="http://doc.qt.io/qt-5/qvector.html#replace">replace</a>(), and <a href="http://doc.qt.io/qt-5/qvector.html#fill">fill</a>().</p></div>
#[inline(always)]
pub unsafe fn remove_2a(&self, i: ::std::os::raw::c_int, n: ::std::os::raw::c_int) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeIdTypePair_remove1(
self as *const crate::QVectorOfQNodeIdTypePair as *mut crate::QVectorOfQNodeIdTypePair,
i,
n,
)
}
/// <p>Removes the element at index position <i>i</i>. Equivalent to</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QNodeIdTypePair>::removeAt(int i)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#removeAt">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Removes the element at index position <i>i</i>. Equivalent to</p>
/// <pre class="cpp">
///
/// remove(i);
///
/// </pre>
/// <p>Provided for compatibility with <a href="http://doc.qt.io/qt-5/qlist.html">QList</a>.</p>
/// <p>This function was introduced in Qt 5.2.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#remove">remove</a>() and <a href="http://doc.qt.io/qt-5/qlist.html#removeAt">QList::removeAt</a>().</p></div>
#[inline(always)]
pub unsafe fn remove_at(&self, i: ::std::os::raw::c_int) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeIdTypePair_removeAt(
self as *const crate::QVectorOfQNodeIdTypePair as *mut crate::QVectorOfQNodeIdTypePair,
i,
)
}
/// <p>Removes the first item in the vector. Calling this function is equivalent to calling remove(0). The vector must not be empty. If the vector can be empty, call <a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>() before calling this function.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QNodeIdTypePair>::removeFirst()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#removeFirst">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Removes the first item in the vector. Calling this function is equivalent to calling remove(0). The vector must not be empty. If the vector can be empty, call <a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>() before calling this function.</p>
/// <p>This function was introduced in Qt 5.1.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#remove">remove</a>(), <a href="http://doc.qt.io/qt-5/qvector.html#takeFirst">takeFirst</a>(), and <a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>().</p></div>
#[inline(always)]
pub unsafe fn remove_first(&self) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeIdTypePair_removeFirst(
self as *const crate::QVectorOfQNodeIdTypePair as *mut crate::QVectorOfQNodeIdTypePair,
)
}
/// <p>Removes the last item in the vector. Calling this function is equivalent to calling remove(<a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>() - 1). The vector must not be empty. If the vector can be empty, call <a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>() before calling this function.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QNodeIdTypePair>::removeLast()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#removeLast">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Removes the last item in the vector. Calling this function is equivalent to calling remove(<a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>() - 1). The vector must not be empty. If the vector can be empty, call <a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>() before calling this function.</p>
/// <p>This function was introduced in Qt 5.1.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#remove">remove</a>(), <a href="http://doc.qt.io/qt-5/qvector.html#takeLast">takeLast</a>(), <a href="http://doc.qt.io/qt-5/qvector.html#removeFirst">removeFirst</a>(), and <a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>().</p></div>
#[inline(always)]
pub unsafe fn remove_last(&self) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeIdTypePair_removeLast(
self as *const crate::QVectorOfQNodeIdTypePair as *mut crate::QVectorOfQNodeIdTypePair,
)
}
/// <p>Replaces the item at index position <i>i</i> with <i>value</i>.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QNodeIdTypePair>::replace(int i, const Qt3DCore::QNodeIdTypePair& t)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#replace">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Replaces the item at index position <i>i</i> with <i>value</i>.</p>
/// <p><i>i</i> must be a valid index position in the vector (i.e., 0 <= <i>i</i> < <a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>()).</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#operator-5b-5d">operator[]</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#remove">remove</a>().</p></div>
#[inline(always)]
pub unsafe fn replace(
&self,
i: ::std::os::raw::c_int,
t: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QNodeIdTypePair>>,
) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeIdTypePair_replace(
self as *const crate::QVectorOfQNodeIdTypePair as *mut crate::QVectorOfQNodeIdTypePair,
i,
::cpp_core::CastInto::<::cpp_core::Ref<crate::QNodeIdTypePair>>::cast_into(t)
.as_raw_ptr(),
)
}
/// <p>Attempts to allocate memory for at least <i>size</i> elements. If you know in advance how large the vector will be, you should call this function to prevent reallocations and memory fragmentation.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QNodeIdTypePair>::reserve(int size)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#reserve">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Attempts to allocate memory for at least <i>size</i> elements. If you know in advance how large the vector will be, you should call this function to prevent reallocations and memory fragmentation.</p>
/// <p>If <i>size</i> is an underestimate, the worst that will happen is that the <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> will be a bit slower. If <i>size</i> is an overestimate, you may have used more memory than the normal <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> growth strategy would have allocated—or you may have used less.</p>
/// <p>An alternative to reserve() is calling <a href="http://doc.qt.io/qt-5/qvector.html#resize">resize</a>(). Whether or not that is faster than reserve() depends on the element type, because <a href="http://doc.qt.io/qt-5/qvector.html#resize">resize</a>() default-constructs all elements, and requires assignment to existing entries rather than calling <a href="http://doc.qt.io/qt-5/qvector.html#append">append</a>(), which copy- or move-constructs. For simple types, like <code>int</code> or <code>double</code>, <a href="http://doc.qt.io/qt-5/qvector.html#resize">resize</a>() is typically faster, but for anything more complex, you should prefer reserve().</p>
/// <p><b>Warning:</b> If the size passed to <a href="http://doc.qt.io/qt-5/qvector.html#resize">resize</a>() was underestimated, you run out of allocated space and into undefined behavior. This problem does not exist with reserve(), because it treats the size as just a hint.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#squeeze">squeeze</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#capacity">capacity</a>().</p></div>
#[inline(always)]
pub unsafe fn reserve(&self, size: ::std::os::raw::c_int) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeIdTypePair_reserve(
self as *const crate::QVectorOfQNodeIdTypePair as *mut crate::QVectorOfQNodeIdTypePair,
size,
)
}
/// <p>Sets the size of the vector to <i>size</i>. If <i>size</i> is greater than the current size, elements are added to the end; the new elements are initialized with a <a href="http://doc.qt.io/qt-5/containers.html#default-constructed-value">default-constructed value</a>. If <i>size</i> is less than the current size, elements are removed from the end.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QNodeIdTypePair>::resize(int size)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#resize">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Sets the size of the vector to <i>size</i>. If <i>size</i> is greater than the current size, elements are added to the end; the new elements are initialized with a <a href="http://doc.qt.io/qt-5/containers.html#default-constructed-value">default-constructed value</a>. If <i>size</i> is less than the current size, elements are removed from the end.</p>
/// <p>Since Qt 5.6, resize() doesn't shrink the capacity anymore. To shed excess capacity, use <a href="http://doc.qt.io/qt-5/qvector.html#squeeze">squeeze</a>().</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>().</p></div>
#[inline(always)]
pub unsafe fn resize(&self, size: ::std::os::raw::c_int) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeIdTypePair_resize(
self as *const crate::QVectorOfQNodeIdTypePair as *mut crate::QVectorOfQNodeIdTypePair,
size,
)
}
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QNodeIdTypePair>::setSharable(bool sharable)```</span>.
#[inline(always)]
pub unsafe fn set_sharable(&self, sharable: bool) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeIdTypePair_setSharable(
self as *const crate::QVectorOfQNodeIdTypePair as *mut crate::QVectorOfQNodeIdTypePair,
sharable,
)
}
/// <p>This function is provided for STL compatibility. It is equivalent to <a href="http://doc.qt.io/qt-5/qvector.html#squeeze">squeeze</a>().</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QNodeIdTypePair>::shrink_to_fit()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#shrink_to_fit">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This function is provided for STL compatibility. It is equivalent to <a href="http://doc.qt.io/qt-5/qvector.html#squeeze">squeeze</a>().</p>
/// <p>This function was introduced in Qt 5.10.</p></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn shrink_to_fit(&self) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeIdTypePair_shrink_to_fit(
self as *const crate::QVectorOfQNodeIdTypePair as *mut crate::QVectorOfQNodeIdTypePair,
)
}
/// <p>Returns the number of items in the vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```int QVector<Qt3DCore::QNodeIdTypePair>::size() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#size">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the number of items in the vector.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#resize">resize</a>().</p></div>
#[inline(always)]
pub unsafe fn size(&self) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeIdTypePair_size(
self as *const crate::QVectorOfQNodeIdTypePair,
)
}
/// <p>Releases any memory not required to store the items.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QNodeIdTypePair>::squeeze()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#squeeze">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Releases any memory not required to store the items.</p>
/// <p>The sole purpose of this function is to provide a means of fine tuning <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a>'s memory usage. In general, you will rarely ever need to call this function.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#reserve">reserve</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#capacity">capacity</a>().</p></div>
#[inline(always)]
pub unsafe fn squeeze(&self) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeIdTypePair_squeeze(
self as *const crate::QVectorOfQNodeIdTypePair as *mut crate::QVectorOfQNodeIdTypePair,
)
}
/// <p>Swaps vector <i>other</i> with this vector. This operation is very fast and never fails.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QNodeIdTypePair>::swap(QVector<Qt3DCore::QNodeIdTypePair>& other)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#swap">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Swaps vector <i>other</i> with this vector. This operation is very fast and never fails.</p>
/// <p>This function was introduced in Qt 4.8.</p></div>
#[inline(always)]
pub unsafe fn swap(
&self,
other: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QVectorOfQNodeIdTypePair>>,
) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeIdTypePair_swap(
self as *const crate::QVectorOfQNodeIdTypePair as *mut crate::QVectorOfQNodeIdTypePair,
::cpp_core::CastInto::<::cpp_core::Ref<crate::QVectorOfQNodeIdTypePair>>::cast_into(
other,
)
.as_raw_ptr() as *mut crate::QVectorOfQNodeIdTypePair,
)
}
/// <p>Exchange the item at index position <i>i</i> with the item at index position <i>j</i>. This function assumes that both <i>i</i> and <i>j</i> are at least 0 but less than <a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>(). To avoid failure, test that both <i>i</i> and <i>j</i> are at least 0 and less than <a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>().</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QNodeIdTypePair>::swapItemsAt(int i, int j)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#swapItemsAt">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Exchange the item at index position <i>i</i> with the item at index position <i>j</i>. This function assumes that both <i>i</i> and <i>j</i> are at least 0 but less than <a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>(). To avoid failure, test that both <i>i</i> and <i>j</i> are at least 0 and less than <a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>().</p>
/// <p>This function was introduced in Qt 5.14.</p></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(cpp_lib_version = "5.14.0"))
)]
#[cfg(any(cpp_lib_version = "5.14.0", feature = "ritual_rustdoc"))]
pub unsafe fn swap_items_at(&self, i: ::std::os::raw::c_int, j: ::std::os::raw::c_int) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeIdTypePair_swapItemsAt(
self as *const crate::QVectorOfQNodeIdTypePair as *mut crate::QVectorOfQNodeIdTypePair,
i,
j,
)
}
/// <p>Removes the element at index position <i>i</i> and returns it.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNodeIdTypePair QVector<Qt3DCore::QNodeIdTypePair>::takeAt(int i)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#takeAt">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Removes the element at index position <i>i</i> and returns it.</p>
/// <p>Equivalent to</p>
/// <pre class="cpp">
///
/// T t <span class="operator">=</span> at(i);
/// remove(i);
/// <span class="keyword">return</span> t;
///
/// </pre>
/// <p>Provided for compatibility with <a href="http://doc.qt.io/qt-5/qlist.html">QList</a>.</p>
/// <p>This function was introduced in Qt 5.2.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#takeFirst">takeFirst</a>(), <a href="http://doc.qt.io/qt-5/qvector.html#takeLast">takeLast</a>(), and <a href="http://doc.qt.io/qt-5/qlist.html#takeAt">QList::takeAt</a>().</p></div>
#[inline(always)]
pub unsafe fn take_at(
&self,
i: ::std::os::raw::c_int,
) -> ::cpp_core::CppBox<crate::QNodeIdTypePair> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeIdTypePair_takeAt(
self as *const crate::QVectorOfQNodeIdTypePair
as *mut crate::QVectorOfQNodeIdTypePair,
i,
)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Removes the first item in the vector and returns it. This function assumes the vector is not empty. To avoid failure, call <a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>() before calling this function.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNodeIdTypePair QVector<Qt3DCore::QNodeIdTypePair>::takeFirst()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#takeFirst">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Removes the first item in the vector and returns it. This function assumes the vector is not empty. To avoid failure, call <a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>() before calling this function.</p>
/// <p>This function was introduced in Qt 5.1.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#takeLast">takeLast</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#removeFirst">removeFirst</a>().</p></div>
#[inline(always)]
pub unsafe fn take_first(&self) -> ::cpp_core::CppBox<crate::QNodeIdTypePair> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeIdTypePair_takeFirst(
self as *const crate::QVectorOfQNodeIdTypePair
as *mut crate::QVectorOfQNodeIdTypePair,
)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Removes the last item in the list and returns it. This function assumes the vector is not empty. To avoid failure, call <a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>() before calling this function.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNodeIdTypePair QVector<Qt3DCore::QNodeIdTypePair>::takeLast()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#takeLast">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Removes the last item in the list and returns it. This function assumes the vector is not empty. To avoid failure, call <a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>() before calling this function.</p>
/// <p>If you don't use the return value, <a href="http://doc.qt.io/qt-5/qvector.html#removeLast">removeLast</a>() is more efficient.</p>
/// <p>This function was introduced in Qt 5.1.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#takeFirst">takeFirst</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#removeLast">removeLast</a>().</p></div>
#[inline(always)]
pub unsafe fn take_last(&self) -> ::cpp_core::CppBox<crate::QNodeIdTypePair> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeIdTypePair_takeLast(
self as *const crate::QVectorOfQNodeIdTypePair
as *mut crate::QVectorOfQNodeIdTypePair,
)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Returns the value at index position <i>i</i> in the vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNodeIdTypePair QVector<Qt3DCore::QNodeIdTypePair>::value(int i) const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#value">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the value at index position <i>i</i> in the vector.</p>
/// <p>If the index <i>i</i> is out of bounds, the function returns a <a href="http://doc.qt.io/qt-5/containers.html#default-constructed-value">default-constructed value</a>. If you are certain that <i>i</i> is within bounds, you can use <a href="http://doc.qt.io/qt-5/qvector.html#at">at</a>() instead, which is slightly faster.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#at">at</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#operator-5b-5d">operator[]</a>().</p></div>
#[inline(always)]
pub unsafe fn value_1a(
&self,
i: ::std::os::raw::c_int,
) -> ::cpp_core::CppBox<crate::QNodeIdTypePair> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeIdTypePair_value(
self as *const crate::QVectorOfQNodeIdTypePair,
i,
)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNodeIdTypePair QVector<Qt3DCore::QNodeIdTypePair>::value(int i, const Qt3DCore::QNodeIdTypePair& defaultValue) const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#value-1">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This is an overloaded function.</p>
/// <p>If the index <i>i</i> is out of bounds, the function returns <i>defaultValue</i>.</p></div>
#[inline(always)]
pub unsafe fn value_2a(
&self,
i: ::std::os::raw::c_int,
default_value: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QNodeIdTypePair>>,
) -> ::cpp_core::CppBox<crate::QNodeIdTypePair> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeIdTypePair_value1(
self as *const crate::QVectorOfQNodeIdTypePair,
i,
::cpp_core::CastInto::<::cpp_core::Ref<crate::QNodeIdTypePair>>::cast_into(
default_value,
)
.as_raw_ptr(),
)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
}
/// <p>The <a href="http://doc.qt.io/qt-5/qt3dcore-qnodecommand.html">QNodeCommand</a> class is the base class for all <a href="http://doc.qt.io/qt-5/qt3dcore-qscenechange.html#ChangeFlag-enum">CommandRequested</a> <a href="http://doc.qt.io/qt-5/qt3dcore-qscenechange.html">QSceneChange</a> events.</p>
///
/// C++ class: <span style='color: green;'>```Qt3DCore::QNodeCommand```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qnodecommand.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>The <a href="http://doc.qt.io/qt-5/qt3dcore-qnodecommand.html">QNodeCommand</a> class is the base class for all <a href="http://doc.qt.io/qt-5/qt3dcore-qscenechange.html#ChangeFlag-enum">CommandRequested</a> <a href="http://doc.qt.io/qt-5/qt3dcore-qscenechange.html">QSceneChange</a> events.</p>
/// <p>The <a href="http://doc.qt.io/qt-5/qt3dcore-qnodecommand.html">QNodeCommand</a> class is the base class for all <a href="http://doc.qt.io/qt-5/qt3dcore-qscenechange.html">QSceneChange</a> events that have the changeType() <a href="http://doc.qt.io/qt-5/qt3dcore-qscenechange.html#ChangeFlag-enum">CommandRequested</a>.</p>
/// <p>You can subclass this to create your own node update types for communication between your <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html">QNode</a> and <a href="http://doc.qt.io/qt-5/qt3dcore-qbackendnode.html">QBackendNode</a> subclasses when writing your own aspects.</p></div>
#[repr(C)]
pub struct QNodeCommand {
_unused: u8,
}
impl QNodeCommand {
/// <p>Returns commandId.</p>
///
/// Calls C++ function: <span style='color: green;'>```unsigned long long Qt3DCore::QNodeCommand::commandId() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qnodecommand.html#commandId">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns commandId.</p></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn command_id(&self) -> ::std::os::raw::c_ulonglong {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QNodeCommand_commandId(
self as *const crate::QNodeCommand,
)
}
/// <p>Returns data.</p>
///
/// Calls C++ function: <span style='color: green;'>```QVariant Qt3DCore::QNodeCommand::data() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qnodecommand.html#data">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns data.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qt3dcore-qnodecommand.html#setData">setData</a>().</p></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn data(&self) -> ::cpp_core::CppBox<::qt_core::QVariant> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QNodeCommand_data(
self as *const crate::QNodeCommand,
)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Returns the id of the original <a href="http://doc.qt.io/qt-5/qt3dcore-qnodecommand.html">QNodeCommand</a> message that was sent to the backend.</p>
///
/// Calls C++ function: <span style='color: green;'>```unsigned long long Qt3DCore::QNodeCommand::inReplyTo() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qnodecommand.html#inReplyTo">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the id of the original <a href="http://doc.qt.io/qt-5/qt3dcore-qnodecommand.html">QNodeCommand</a> message that was sent to the backend.</p></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn in_reply_to(&self) -> ::std::os::raw::c_ulonglong {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QNodeCommand_inReplyTo(
self as *const crate::QNodeCommand,
)
}
/// <p>Returns name.</p>
///
/// Calls C++ function: <span style='color: green;'>```QString Qt3DCore::QNodeCommand::name() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qnodecommand.html#name">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns name.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qt3dcore-qnodecommand.html#setName">setName</a>().</p></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn name(&self) -> ::cpp_core::CppBox<::qt_core::QString> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QNodeCommand_name(
self as *const crate::QNodeCommand,
)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Constructs a new <a href="http://doc.qt.io/qt-5/qt3dcore-qnodecommand.html">QNodeCommand</a> with <i>id</i>.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DCore::QNodeCommand::QNodeCommand(Qt3DCore::QNodeId id)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qnodecommand.html#QNodeCommand">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/qt3dcore-qnodecommand.html">QNodeCommand</a> with <i>id</i>.</p></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn new(
id: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QNodeId>>,
) -> ::cpp_core::CppBox<crate::QNodeCommand> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QNodeCommand_QNodeCommand(
::cpp_core::CastInto::<::cpp_core::Ref<crate::QNodeId>>::cast_into(id).as_raw_ptr(),
)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qt3dcore-qnodecommand.html#data">data</a>().</p>
///
/// Calls C++ function: <span style='color: green;'>```void Qt3DCore::QNodeCommand::setData(const QVariant& data)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qnodecommand.html#setData">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p><b>See also </b><a href="http://doc.qt.io/qt-5/qt3dcore-qnodecommand.html#data">data</a>().</p></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn set_data(
&self,
data: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_core::QVariant>>,
) {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QNodeCommand_setData(
self as *const crate::QNodeCommand as *mut crate::QNodeCommand,
::cpp_core::CastInto::<::cpp_core::Ref<::qt_core::QVariant>>::cast_into(data)
.as_raw_ptr(),
)
}
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qt3dcore-qnodecommand.html#name">name</a>().</p>
///
/// Calls C++ function: <span style='color: green;'>```void Qt3DCore::QNodeCommand::setName(const QString& name)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qnodecommand.html#setName">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p><b>See also </b><a href="http://doc.qt.io/qt-5/qt3dcore-qnodecommand.html#name">name</a>().</p></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn set_name(
&self,
name: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_core::QString>>,
) {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QNodeCommand_setName(
self as *const crate::QNodeCommand as *mut crate::QNodeCommand,
::cpp_core::CastInto::<::cpp_core::Ref<::qt_core::QString>>::cast_into(name)
.as_raw_ptr(),
)
}
/// <p>Sets the command <i>id</i> to which the message is a reply.</p>
///
/// Calls C++ function: <span style='color: green;'>```void Qt3DCore::QNodeCommand::setReplyToCommandId(unsigned long long id)```</span>.
///
/// Warning: no exact match found in C++ documentation. Below is the <a href="http://doc.qt.io/qt-5/qt3dcore-qnodecommand.html#setReplyToCommandId">C++ documentation</a> for <span style='color: green;'>```void QNodeCommand::setReplyToCommandId(Qt3DCore::QNodeCommand::CommandId id)```</span>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Sets the command <i>id</i> to which the message is a reply.</p></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn set_reply_to_command_id(&self, id: ::std::os::raw::c_ulonglong) {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QNodeCommand_setReplyToCommandId(
self as *const crate::QNodeCommand as *mut crate::QNodeCommand,
id,
)
}
}
/// <p>A skeleton contains the joints for a skinned mesh.</p>
///
/// C++ class: <span style='color: green;'>```Qt3DCore::QAbstractSkeleton```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qabstractskeleton.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>A skeleton contains the joints for a skinned mesh.</p>
/// <p>Do not use this class directly. You should use <a href="http://doc.qt.io/qt-5/qt3dcore-qskeletonloader.html">QSkeletonLoader</a> if loading skeleton data from a file (most likely) or <a href="http://doc.qt.io/qt-5/qt3dcore-qskeleton.html">QSkeleton</a> if creating the skeleton and skinned mesh data yourself (mainly for people creating editors or tooling).</p></div>
#[repr(C)]
pub struct QAbstractSkeleton {
_unused: u8,
}
impl QAbstractSkeleton {
/// <p>Holds the number of joints contained in the skeleton</p>
///
/// Returns a built-in Qt signal `Qt3DCore::QAbstractSkeleton::jointCountChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qabstractskeleton.html#jointCount-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the number of joints contained in the skeleton</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> int </td><td class="memItemRight bottomAlign"><span class="name"><b>jointCount</b></span>() const</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>jointCountChanged</b></span>(int <i>jointCount</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub fn joint_count_changed(&self) -> ::qt_core::Signal<(::std::os::raw::c_int,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw(self).expect("attempted to construct a null Ref"),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2jointCountChanged(int)\0"),
)
}
}
/// <p>Holds the number of joints contained in the skeleton</p>
///
/// Calls C++ function: <span style='color: green;'>```int Qt3DCore::QAbstractSkeleton::jointCount() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qabstractskeleton.html#jointCount-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the number of joints contained in the skeleton</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> int </td><td class="memItemRight bottomAlign"><span class="name"><b>jointCount</b></span>() const</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>jointCountChanged</b></span>(int <i>jointCount</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn joint_count(&self) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QAbstractSkeleton_jointCount(
self as *const crate::QAbstractSkeleton,
)
}
/// Calls C++ function: <span style='color: green;'>```virtual const QMetaObject* Qt3DCore::QAbstractSkeleton::metaObject() const```</span>.
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn meta_object(&self) -> ::cpp_core::Ptr<::qt_core::QMetaObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QAbstractSkeleton_metaObject(
self as *const crate::QAbstractSkeleton,
)
};
::cpp_core::Ptr::from_raw(ffi_result as *mut ::qt_core::QMetaObject)
}
/// Calls C++ function: <span style='color: green;'>```virtual int Qt3DCore::QAbstractSkeleton::qt_metacall(QMetaObject::Call arg1, int arg2, void** arg3)```</span>.
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn qt_metacall(
&self,
arg1: ::qt_core::q_meta_object::Call,
arg2: ::std::os::raw::c_int,
arg3: *mut *mut ::std::ffi::c_void,
) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QAbstractSkeleton_qt_metacall(
self as *const crate::QAbstractSkeleton as *mut crate::QAbstractSkeleton,
arg1,
arg2,
arg3,
)
}
/// Calls C++ function: <span style='color: green;'>```virtual void* Qt3DCore::QAbstractSkeleton::qt_metacast(const char* arg1)```</span>.
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn qt_metacast(
&self,
arg1: *const ::std::os::raw::c_char,
) -> *mut ::std::ffi::c_void {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QAbstractSkeleton_qt_metacast(
self as *const crate::QAbstractSkeleton as *mut crate::QAbstractSkeleton,
arg1,
)
}
/// Returns a reference to the <span style='color: green;'>```staticMetaObject```</span> field.
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn static_meta_object() -> ::cpp_core::Ref<::qt_core::QMetaObject> {
let ffi_result =
{ crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QAbstractSkeleton_staticMetaObject() };
::cpp_core::Ref::from_raw(ffi_result as *mut ::qt_core::QMetaObject)
.expect("attempted to construct a null Ref")
}
/// Calls C++ function: <span style='color: green;'>```static QString Qt3DCore::QAbstractSkeleton::tr(const char* s, const char* c, int n)```</span>.
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn tr(
s: *const ::std::os::raw::c_char,
c: *const ::std::os::raw::c_char,
n: ::std::os::raw::c_int,
) -> ::cpp_core::CppBox<::qt_core::QString> {
let ffi_result =
{ crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QAbstractSkeleton_tr(s, c, n) };
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// Calls C++ function: <span style='color: green;'>```static QString Qt3DCore::QAbstractSkeleton::trUtf8(const char* s, const char* c, int n)```</span>.
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn tr_utf8(
s: *const ::std::os::raw::c_char,
c: *const ::std::os::raw::c_char,
n: ::std::os::raw::c_int,
) -> ::cpp_core::CppBox<::qt_core::QString> {
let ffi_result =
{ crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QAbstractSkeleton_trUtf8(s, c, n) };
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
}
/// <p>Used to calculate skinning transform matrices and set them on shaders.</p>
///
/// C++ class: <span style='color: green;'>```Qt3DCore::QArmature```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qarmature.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Used to calculate skinning transform matrices and set them on shaders.</p>
/// <p>The Armature component is aggregated by entities to give them the ability to calculate the palette of skinning transform matrices needed to properly render skinned meshes.</p>
/// <p>Each vertex in a skinned mesh is associated (bound) to up to 4 joints in a skeleton. For each joint affecting a vertex the mesh also provides a weight which determines the level of influence of the corresponding joint. The skinning palette used for performing the transformation of skinned vertices is provided by the Armature and is calculated from the joints contained in the referenced skeleton.</p>
/// <p>Updating the local transform of a joint results in the skinning matrices being recalculated and the skinned mesh vertices bound to that joint moving accordingly.</p></div>
#[repr(C)]
pub struct QArmature {
_unused: u8,
}
impl QArmature {
/// <p>Holds the skeleton used to calculate the skinning transform matrix palette.</p>
///
/// Returns a built-in Qt slot `Qt3DCore::QArmature::setSkeleton` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qarmature.html#skeleton-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the skeleton used to calculate the skinning transform matrix palette.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DCore::QAbstractSkeleton *</td><td class="memItemRight bottomAlign"><span class="name"><b>skeleton</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setSkeleton</b></span>(Qt3DCore::QAbstractSkeleton *<i>skeleton</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>skeletonChanged</b></span>(Qt3DCore::QAbstractSkeleton *<i>skeleton</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub fn slot_set_skeleton(&self) -> ::qt_core::Receiver<(*mut crate::QAbstractSkeleton,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw(self).expect("attempted to construct a null Ref"),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"1setSkeleton(Qt3DCore::QAbstractSkeleton *)\0",
),
)
}
}
/// <p>Holds the skeleton used to calculate the skinning transform matrix palette.</p>
///
/// Returns a built-in Qt signal `Qt3DCore::QArmature::skeletonChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qarmature.html#skeleton-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the skeleton used to calculate the skinning transform matrix palette.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DCore::QAbstractSkeleton *</td><td class="memItemRight bottomAlign"><span class="name"><b>skeleton</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setSkeleton</b></span>(Qt3DCore::QAbstractSkeleton *<i>skeleton</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>skeletonChanged</b></span>(Qt3DCore::QAbstractSkeleton *<i>skeleton</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub fn skeleton_changed(&self) -> ::qt_core::Signal<(*mut crate::QAbstractSkeleton,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw(self).expect("attempted to construct a null Ref"),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"2skeletonChanged(Qt3DCore::QAbstractSkeleton *)\0",
),
)
}
}
/// Calls C++ function: <span style='color: green;'>```virtual const QMetaObject* Qt3DCore::QArmature::metaObject() const```</span>.
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn meta_object(&self) -> ::cpp_core::Ptr<::qt_core::QMetaObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QArmature_metaObject(
self as *const crate::QArmature,
)
};
::cpp_core::Ptr::from_raw(ffi_result as *mut ::qt_core::QMetaObject)
}
/// <p>Constructs a new <a href="http://doc.qt.io/qt-5/qt3dcore-qarmature.html">QArmature</a> with <i>parent</i>.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DCore::QArmature::QArmature(Qt3DCore::QNode* parent = …)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qarmature.html#QArmature">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/qt3dcore-qarmature.html">QArmature</a> with <i>parent</i>.</p></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn new_1a(
parent: impl ::cpp_core::CastInto<::cpp_core::Ptr<crate::QNode>>,
) -> ::qt_core::QBox<crate::QArmature> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QArmature_QArmature(
::cpp_core::CastInto::<::cpp_core::Ptr<crate::QNode>>::cast_into(parent)
.as_raw_ptr() as *mut crate::QNode,
)
};
::qt_core::QBox::from_raw(ffi_result)
}
/// <p>Used to calculate skinning transform matrices and set them on shaders.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DCore::QArmature::QArmature()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qarmature.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Used to calculate skinning transform matrices and set them on shaders.</p>
/// <p>The Armature component is aggregated by entities to give them the ability to calculate the palette of skinning transform matrices needed to properly render skinned meshes.</p>
/// <p>Each vertex in a skinned mesh is associated (bound) to up to 4 joints in a skeleton. For each joint affecting a vertex the mesh also provides a weight which determines the level of influence of the corresponding joint. The skinning palette used for performing the transformation of skinned vertices is provided by the Armature and is calculated from the joints contained in the referenced skeleton.</p>
/// <p>Updating the local transform of a joint results in the skinning matrices being recalculated and the skinned mesh vertices bound to that joint moving accordingly.</p></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn new_0a() -> ::qt_core::QBox<crate::QArmature> {
let ffi_result = { crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QArmature_QArmature1() };
::qt_core::QBox::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```virtual int Qt3DCore::QArmature::qt_metacall(QMetaObject::Call arg1, int arg2, void** arg3)```</span>.
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn qt_metacall(
&self,
arg1: ::qt_core::q_meta_object::Call,
arg2: ::std::os::raw::c_int,
arg3: *mut *mut ::std::ffi::c_void,
) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QArmature_qt_metacall(
self as *const crate::QArmature as *mut crate::QArmature,
arg1,
arg2,
arg3,
)
}
/// Calls C++ function: <span style='color: green;'>```virtual void* Qt3DCore::QArmature::qt_metacast(const char* arg1)```</span>.
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn qt_metacast(
&self,
arg1: *const ::std::os::raw::c_char,
) -> *mut ::std::ffi::c_void {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QArmature_qt_metacast(
self as *const crate::QArmature as *mut crate::QArmature,
arg1,
)
}
/// <p>Holds the skeleton used to calculate the skinning transform matrix palette.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DCore::QArmature::setSkeleton(Qt3DCore::QAbstractSkeleton* skeleton)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qarmature.html#skeleton-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the skeleton used to calculate the skinning transform matrix palette.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DCore::QAbstractSkeleton *</td><td class="memItemRight bottomAlign"><span class="name"><b>skeleton</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setSkeleton</b></span>(Qt3DCore::QAbstractSkeleton *<i>skeleton</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>skeletonChanged</b></span>(Qt3DCore::QAbstractSkeleton *<i>skeleton</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn set_skeleton(
&self,
skeleton: impl ::cpp_core::CastInto<::cpp_core::Ptr<crate::QAbstractSkeleton>>,
) {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QArmature_setSkeleton(
self as *const crate::QArmature as *mut crate::QArmature,
::cpp_core::CastInto::<::cpp_core::Ptr<crate::QAbstractSkeleton>>::cast_into(skeleton)
.as_raw_ptr() as *mut crate::QAbstractSkeleton,
)
}
/// <p>Holds the skeleton used to calculate the skinning transform matrix palette.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QAbstractSkeleton* Qt3DCore::QArmature::skeleton() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qarmature.html#skeleton-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the skeleton used to calculate the skinning transform matrix palette.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DCore::QAbstractSkeleton *</td><td class="memItemRight bottomAlign"><span class="name"><b>skeleton</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setSkeleton</b></span>(Qt3DCore::QAbstractSkeleton *<i>skeleton</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>skeletonChanged</b></span>(Qt3DCore::QAbstractSkeleton *<i>skeleton</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn skeleton(&self) -> ::qt_core::QPtr<crate::QAbstractSkeleton> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QArmature_skeleton(
self as *const crate::QArmature,
)
};
::qt_core::QPtr::from_raw(ffi_result)
}
/// Returns a reference to the <span style='color: green;'>```staticMetaObject```</span> field.
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn static_meta_object() -> ::cpp_core::Ref<::qt_core::QMetaObject> {
let ffi_result = { crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QArmature_staticMetaObject() };
::cpp_core::Ref::from_raw(ffi_result as *mut ::qt_core::QMetaObject)
.expect("attempted to construct a null Ref")
}
/// Calls C++ function: <span style='color: green;'>```static QString Qt3DCore::QArmature::tr(const char* s, const char* c, int n)```</span>.
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn tr(
s: *const ::std::os::raw::c_char,
c: *const ::std::os::raw::c_char,
n: ::std::os::raw::c_int,
) -> ::cpp_core::CppBox<::qt_core::QString> {
let ffi_result = { crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QArmature_tr(s, c, n) };
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// Calls C++ function: <span style='color: green;'>```static QString Qt3DCore::QArmature::trUtf8(const char* s, const char* c, int n)```</span>.
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn tr_utf8(
s: *const ::std::os::raw::c_char,
c: *const ::std::os::raw::c_char,
n: ::std::os::raw::c_int,
) -> ::cpp_core::CppBox<::qt_core::QString> {
let ffi_result = { crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QArmature_trUtf8(s, c, n) };
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
}
/// <p>Used to transforms parts of skinned meshes.</p>
///
/// C++ class: <span style='color: green;'>```Qt3DCore::QJoint```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qjoint.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Used to transforms parts of skinned meshes.</p>
/// <p>The <a href="http://doc.qt.io/qt-5/qt3dcore-qjoint.html">QJoint</a> node is used to build skeletons as part of the skinned mesh support in Qt 3D. A joint can be transformed by way of its scale, rotation and translation properties. Any mesh vertices that are bound to the joint will have their transformations updated accordingly.</p></div>
#[repr(C)]
pub struct QJoint {
_unused: u8,
}
impl QJoint {
/// <p>Holds the scale of the joint.</p>
///
/// Returns a built-in Qt slot `Qt3DCore::QJoint::setScale` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qjoint.html#scale-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the scale of the joint.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QVector3D </td><td class="memItemRight bottomAlign"><span class="name"><b>scale</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setScale</b></span>(const QVector3D &<i>scale</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>scaleChanged</b></span>(const QVector3D &<i>scale</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub fn slot_set_scale(&self) -> ::qt_core::Receiver<(*const ::qt_gui::QVector3D,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw(self).expect("attempted to construct a null Ref"),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setScale(QVector3D const &)\0"),
)
}
}
/// <p>Holds the rotation of the joint as <a href="http://doc.qt.io/qt-5/qquaternion.html">QQuaternion</a>.</p>
///
/// Returns a built-in Qt slot `Qt3DCore::QJoint::setRotation` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qjoint.html#rotation-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the rotation of the joint as <a href="http://doc.qt.io/qt-5/qquaternion.html">QQuaternion</a>.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QQuaternion </td><td class="memItemRight bottomAlign"><span class="name"><b>rotation</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setRotation</b></span>(const QQuaternion &<i>rotation</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>rotationChanged</b></span>(const QQuaternion &<i>rotation</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub fn slot_set_rotation(&self) -> ::qt_core::Receiver<(*const ::qt_gui::QQuaternion,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw(self).expect("attempted to construct a null Ref"),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"1setRotation(QQuaternion const &)\0",
),
)
}
}
/// <p>Holds the translation of the joint as <a href="http://doc.qt.io/qt-5/qvector3d.html">QVector3D</a>.</p>
///
/// Returns a built-in Qt slot `Qt3DCore::QJoint::setTranslation` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qjoint.html#translation-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the translation of the joint as <a href="http://doc.qt.io/qt-5/qvector3d.html">QVector3D</a>.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QVector3D </td><td class="memItemRight bottomAlign"><span class="name"><b>translation</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setTranslation</b></span>(const QVector3D &<i>translation</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>translationChanged</b></span>(const QVector3D &<i>translation</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub fn slot_set_translation(&self) -> ::qt_core::Receiver<(*const ::qt_gui::QVector3D,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw(self).expect("attempted to construct a null Ref"),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"1setTranslation(QVector3D const &)\0",
),
)
}
}
/// <p>Holds the inverse bind matrix of the joint. This is used to transform vertices from model space into the space of this joint so they can subsequently be multiplied by the joint's global transform to perform the skinning operation.</p>
///
/// Returns a built-in Qt slot `Qt3DCore::QJoint::setInverseBindMatrix` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qjoint.html#inverseBindMatrix-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the inverse bind matrix of the joint. This is used to transform vertices from model space into the space of this joint so they can subsequently be multiplied by the joint's global transform to perform the skinning operation.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QMatrix4x4 </td><td class="memItemRight bottomAlign"><span class="name"><b>inverseBindMatrix</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setInverseBindMatrix</b></span>(const QMatrix4x4 &<i>inverseBindMatrix</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>inverseBindMatrixChanged</b></span>(const QMatrix4x4 &<i>inverseBindMatrix</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub fn slot_set_inverse_bind_matrix(
&self,
) -> ::qt_core::Receiver<(*const ::qt_gui::QMatrix4X4,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw(self).expect("attempted to construct a null Ref"),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"1setInverseBindMatrix(QMatrix4x4 const &)\0",
),
)
}
}
/// <p>Holds the x rotation of the joint as an Euler angle.</p>
///
/// Returns a built-in Qt slot `Qt3DCore::QJoint::setRotationX` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qjoint.html#rotationX-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the x rotation of the joint as an Euler angle.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> float </td><td class="memItemRight bottomAlign"><span class="name"><b>rotationX</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setRotationX</b></span>(float <i>rotationX</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>rotationXChanged</b></span>(float <i>rotationX</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub fn slot_set_rotation_x(&self) -> ::qt_core::Receiver<(::std::os::raw::c_float,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw(self).expect("attempted to construct a null Ref"),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setRotationX(float)\0"),
)
}
}
/// <p>Holds the y rotation of the joint as an Euler angle.</p>
///
/// Returns a built-in Qt slot `Qt3DCore::QJoint::setRotationY` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qjoint.html#rotationY-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the y rotation of the joint as an Euler angle.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> float </td><td class="memItemRight bottomAlign"><span class="name"><b>rotationY</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setRotationY</b></span>(float <i>rotationY</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>rotationYChanged</b></span>(float <i>rotationY</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub fn slot_set_rotation_y(&self) -> ::qt_core::Receiver<(::std::os::raw::c_float,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw(self).expect("attempted to construct a null Ref"),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setRotationY(float)\0"),
)
}
}
/// <p>Holds the z rotation of the joint as an Euler angle.</p>
///
/// Returns a built-in Qt slot `Qt3DCore::QJoint::setRotationZ` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qjoint.html#rotationZ-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the z rotation of the joint as an Euler angle.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> float </td><td class="memItemRight bottomAlign"><span class="name"><b>rotationZ</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setRotationZ</b></span>(float <i>rotationZ</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>rotationZChanged</b></span>(float <i>rotationZ</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub fn slot_set_rotation_z(&self) -> ::qt_core::Receiver<(::std::os::raw::c_float,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw(self).expect("attempted to construct a null Ref"),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setRotationZ(float)\0"),
)
}
}
/// <p><b>Access functions:</b></p>
///
/// Returns a built-in Qt slot `Qt3DCore::QJoint::setName` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qjoint.html#name-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QString </td><td class="memItemRight bottomAlign"><span class="name"><b>name</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setName</b></span>(const QString &<i>name</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>nameChanged</b></span>(const QString &<i>name</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub fn slot_set_name(&self) -> ::qt_core::Receiver<(*const ::qt_core::QString,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw(self).expect("attempted to construct a null Ref"),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setName(QString const &)\0"),
)
}
}
/// <p>Sets the transform matrix for this joint to the identity matrix.</p>
///
/// Returns a built-in Qt slot `Qt3DCore::QJoint::setToIdentity` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qjoint.html#setToIdentity">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Sets the transform matrix for this joint to the identity matrix.</p></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub fn slot_set_to_identity(&self) -> ::qt_core::Receiver<()> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw(self).expect("attempted to construct a null Ref"),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setToIdentity()\0"),
)
}
}
/// <p>Holds the scale of the joint.</p>
///
/// Returns a built-in Qt signal `Qt3DCore::QJoint::scaleChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qjoint.html#scale-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the scale of the joint.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QVector3D </td><td class="memItemRight bottomAlign"><span class="name"><b>scale</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setScale</b></span>(const QVector3D &<i>scale</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>scaleChanged</b></span>(const QVector3D &<i>scale</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub fn scale_changed(&self) -> ::qt_core::Signal<(*const ::qt_gui::QVector3D,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw(self).expect("attempted to construct a null Ref"),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"2scaleChanged(QVector3D const &)\0",
),
)
}
}
/// <p>Holds the rotation of the joint as <a href="http://doc.qt.io/qt-5/qquaternion.html">QQuaternion</a>.</p>
///
/// Returns a built-in Qt signal `Qt3DCore::QJoint::rotationChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qjoint.html#rotation-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the rotation of the joint as <a href="http://doc.qt.io/qt-5/qquaternion.html">QQuaternion</a>.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QQuaternion </td><td class="memItemRight bottomAlign"><span class="name"><b>rotation</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setRotation</b></span>(const QQuaternion &<i>rotation</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>rotationChanged</b></span>(const QQuaternion &<i>rotation</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub fn rotation_changed(&self) -> ::qt_core::Signal<(*const ::qt_gui::QQuaternion,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw(self).expect("attempted to construct a null Ref"),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"2rotationChanged(QQuaternion const &)\0",
),
)
}
}
/// <p>Holds the translation of the joint as <a href="http://doc.qt.io/qt-5/qvector3d.html">QVector3D</a>.</p>
///
/// Returns a built-in Qt signal `Qt3DCore::QJoint::translationChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qjoint.html#translation-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the translation of the joint as <a href="http://doc.qt.io/qt-5/qvector3d.html">QVector3D</a>.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QVector3D </td><td class="memItemRight bottomAlign"><span class="name"><b>translation</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setTranslation</b></span>(const QVector3D &<i>translation</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>translationChanged</b></span>(const QVector3D &<i>translation</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub fn translation_changed(&self) -> ::qt_core::Signal<(*const ::qt_gui::QVector3D,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw(self).expect("attempted to construct a null Ref"),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"2translationChanged(QVector3D const &)\0",
),
)
}
}
/// <p>Holds the inverse bind matrix of the joint. This is used to transform vertices from model space into the space of this joint so they can subsequently be multiplied by the joint's global transform to perform the skinning operation.</p>
///
/// Returns a built-in Qt signal `Qt3DCore::QJoint::inverseBindMatrixChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qjoint.html#inverseBindMatrix-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the inverse bind matrix of the joint. This is used to transform vertices from model space into the space of this joint so they can subsequently be multiplied by the joint's global transform to perform the skinning operation.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QMatrix4x4 </td><td class="memItemRight bottomAlign"><span class="name"><b>inverseBindMatrix</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setInverseBindMatrix</b></span>(const QMatrix4x4 &<i>inverseBindMatrix</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>inverseBindMatrixChanged</b></span>(const QMatrix4x4 &<i>inverseBindMatrix</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub fn inverse_bind_matrix_changed(&self) -> ::qt_core::Signal<(*const ::qt_gui::QMatrix4X4,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw(self).expect("attempted to construct a null Ref"),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"2inverseBindMatrixChanged(QMatrix4x4 const &)\0",
),
)
}
}
/// <p>Holds the x rotation of the joint as an Euler angle.</p>
///
/// Returns a built-in Qt signal `Qt3DCore::QJoint::rotationXChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qjoint.html#rotationX-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the x rotation of the joint as an Euler angle.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> float </td><td class="memItemRight bottomAlign"><span class="name"><b>rotationX</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setRotationX</b></span>(float <i>rotationX</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>rotationXChanged</b></span>(float <i>rotationX</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub fn rotation_x_changed(&self) -> ::qt_core::Signal<(::std::os::raw::c_float,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw(self).expect("attempted to construct a null Ref"),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2rotationXChanged(float)\0"),
)
}
}
/// <p>Holds the y rotation of the joint as an Euler angle.</p>
///
/// Returns a built-in Qt signal `Qt3DCore::QJoint::rotationYChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qjoint.html#rotationY-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the y rotation of the joint as an Euler angle.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> float </td><td class="memItemRight bottomAlign"><span class="name"><b>rotationY</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setRotationY</b></span>(float <i>rotationY</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>rotationYChanged</b></span>(float <i>rotationY</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub fn rotation_y_changed(&self) -> ::qt_core::Signal<(::std::os::raw::c_float,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw(self).expect("attempted to construct a null Ref"),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2rotationYChanged(float)\0"),
)
}
}
/// <p>Holds the z rotation of the joint as an Euler angle.</p>
///
/// Returns a built-in Qt signal `Qt3DCore::QJoint::rotationZChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qjoint.html#rotationZ-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the z rotation of the joint as an Euler angle.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> float </td><td class="memItemRight bottomAlign"><span class="name"><b>rotationZ</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setRotationZ</b></span>(float <i>rotationZ</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>rotationZChanged</b></span>(float <i>rotationZ</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub fn rotation_z_changed(&self) -> ::qt_core::Signal<(::std::os::raw::c_float,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw(self).expect("attempted to construct a null Ref"),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2rotationZChanged(float)\0"),
)
}
}
/// <p><b>Access functions:</b></p>
///
/// Returns a built-in Qt signal `Qt3DCore::QJoint::nameChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qjoint.html#name-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QString </td><td class="memItemRight bottomAlign"><span class="name"><b>name</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setName</b></span>(const QString &<i>name</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>nameChanged</b></span>(const QString &<i>name</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub fn name_changed(&self) -> ::qt_core::Signal<(*const ::qt_core::QString,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw(self).expect("attempted to construct a null Ref"),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2nameChanged(QString const &)\0"),
)
}
}
/// <p>Adds <i>joint</i> as a child of this joint. If <i>joint</i> has no parent, then this joint takes ownership of it. Child joints are in the coordinate system of their parent joint.</p>
///
/// Calls C++ function: <span style='color: green;'>```void Qt3DCore::QJoint::addChildJoint(Qt3DCore::QJoint* joint)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qjoint.html#addChildJoint">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Adds <i>joint</i> as a child of this joint. If <i>joint</i> has no parent, then this joint takes ownership of it. Child joints are in the coordinate system of their parent joint.</p></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn add_child_joint(
&self,
joint: impl ::cpp_core::CastInto<::cpp_core::Ptr<crate::QJoint>>,
) {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QJoint_addChildJoint(
self as *const crate::QJoint as *mut crate::QJoint,
::cpp_core::CastInto::<::cpp_core::Ptr<crate::QJoint>>::cast_into(joint).as_raw_ptr()
as *mut crate::QJoint,
)
}
/// <p>The vector of joints this joint has as children.</p>
///
/// Calls C++ function: <span style='color: green;'>```QVector<Qt3DCore::QJoint*> Qt3DCore::QJoint::childJoints() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qjoint.html#childJoints">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>The vector of joints this joint has as children.</p></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn child_joints(&self) -> ::cpp_core::CppBox<crate::QVectorOfQJoint> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QJoint_childJoints(
self as *const crate::QJoint,
)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Holds the inverse bind matrix of the joint. This is used to transform vertices from model space into the space of this joint so they can subsequently be multiplied by the joint's global transform to perform the skinning operation.</p>
///
/// Calls C++ function: <span style='color: green;'>```QMatrix4x4 Qt3DCore::QJoint::inverseBindMatrix() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qjoint.html#inverseBindMatrix-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the inverse bind matrix of the joint. This is used to transform vertices from model space into the space of this joint so they can subsequently be multiplied by the joint's global transform to perform the skinning operation.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QMatrix4x4 </td><td class="memItemRight bottomAlign"><span class="name"><b>inverseBindMatrix</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setInverseBindMatrix</b></span>(const QMatrix4x4 &<i>inverseBindMatrix</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>inverseBindMatrixChanged</b></span>(const QMatrix4x4 &<i>inverseBindMatrix</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn inverse_bind_matrix(&self) -> ::cpp_core::CppBox<::qt_gui::QMatrix4X4> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QJoint_inverseBindMatrix(
self as *const crate::QJoint,
)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// Calls C++ function: <span style='color: green;'>```virtual const QMetaObject* Qt3DCore::QJoint::metaObject() const```</span>.
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn meta_object(&self) -> ::cpp_core::Ptr<::qt_core::QMetaObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QJoint_metaObject(
self as *const crate::QJoint,
)
};
::cpp_core::Ptr::from_raw(ffi_result as *mut ::qt_core::QMetaObject)
}
/// <p><b>Access functions:</b></p>
///
/// Calls C++ function: <span style='color: green;'>```QString Qt3DCore::QJoint::name() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qjoint.html#name-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QString </td><td class="memItemRight bottomAlign"><span class="name"><b>name</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setName</b></span>(const QString &<i>name</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>nameChanged</b></span>(const QString &<i>name</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn name(&self) -> ::cpp_core::CppBox<::qt_core::QString> {
let ffi_result =
{ crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QJoint_name(self as *const crate::QJoint) };
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Constructs a new <a href="http://doc.qt.io/qt-5/qt3dcore-qjoint.html">QJoint</a> with <i>parent</i>.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DCore::QJoint::QJoint(Qt3DCore::QNode* parent = …)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qjoint.html#QJoint">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/qt3dcore-qjoint.html">QJoint</a> with <i>parent</i>.</p></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn new_1a(
parent: impl ::cpp_core::CastInto<::cpp_core::Ptr<crate::QNode>>,
) -> ::qt_core::QBox<crate::QJoint> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QJoint_QJoint(
::cpp_core::CastInto::<::cpp_core::Ptr<crate::QNode>>::cast_into(parent)
.as_raw_ptr() as *mut crate::QNode,
)
};
::qt_core::QBox::from_raw(ffi_result)
}
/// <p>Used to transforms parts of skinned meshes.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DCore::QJoint::QJoint()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qjoint.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Used to transforms parts of skinned meshes.</p>
/// <p>The <a href="http://doc.qt.io/qt-5/qt3dcore-qjoint.html">QJoint</a> node is used to build skeletons as part of the skinned mesh support in Qt 3D. A joint can be transformed by way of its scale, rotation and translation properties. Any mesh vertices that are bound to the joint will have their transformations updated accordingly.</p></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn new_0a() -> ::qt_core::QBox<crate::QJoint> {
let ffi_result = { crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QJoint_QJoint1() };
::qt_core::QBox::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```virtual int Qt3DCore::QJoint::qt_metacall(QMetaObject::Call arg1, int arg2, void** arg3)```</span>.
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn qt_metacall(
&self,
arg1: ::qt_core::q_meta_object::Call,
arg2: ::std::os::raw::c_int,
arg3: *mut *mut ::std::ffi::c_void,
) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QJoint_qt_metacall(
self as *const crate::QJoint as *mut crate::QJoint,
arg1,
arg2,
arg3,
)
}
/// Calls C++ function: <span style='color: green;'>```virtual void* Qt3DCore::QJoint::qt_metacast(const char* arg1)```</span>.
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn qt_metacast(
&self,
arg1: *const ::std::os::raw::c_char,
) -> *mut ::std::ffi::c_void {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QJoint_qt_metacast(
self as *const crate::QJoint as *mut crate::QJoint,
arg1,
)
}
/// <p>Removes <i>joint</i> from this joint's list of children. The child joint is not destroyed.</p>
///
/// Calls C++ function: <span style='color: green;'>```void Qt3DCore::QJoint::removeChildJoint(Qt3DCore::QJoint* joint)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qjoint.html#removeChildJoint">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Removes <i>joint</i> from this joint's list of children. The child joint is not destroyed.</p></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn remove_child_joint(
&self,
joint: impl ::cpp_core::CastInto<::cpp_core::Ptr<crate::QJoint>>,
) {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QJoint_removeChildJoint(
self as *const crate::QJoint as *mut crate::QJoint,
::cpp_core::CastInto::<::cpp_core::Ptr<crate::QJoint>>::cast_into(joint).as_raw_ptr()
as *mut crate::QJoint,
)
}
/// <p>Holds the rotation of the joint as <a href="http://doc.qt.io/qt-5/qquaternion.html">QQuaternion</a>.</p>
///
/// Calls C++ function: <span style='color: green;'>```QQuaternion Qt3DCore::QJoint::rotation() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qjoint.html#rotation-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the rotation of the joint as <a href="http://doc.qt.io/qt-5/qquaternion.html">QQuaternion</a>.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QQuaternion </td><td class="memItemRight bottomAlign"><span class="name"><b>rotation</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setRotation</b></span>(const QQuaternion &<i>rotation</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>rotationChanged</b></span>(const QQuaternion &<i>rotation</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn rotation(&self) -> ::cpp_core::CppBox<::qt_gui::QQuaternion> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QJoint_rotation(self as *const crate::QJoint)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Holds the x rotation of the joint as an Euler angle.</p>
///
/// Calls C++ function: <span style='color: green;'>```float Qt3DCore::QJoint::rotationX() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qjoint.html#rotationX-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the x rotation of the joint as an Euler angle.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> float </td><td class="memItemRight bottomAlign"><span class="name"><b>rotationX</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setRotationX</b></span>(float <i>rotationX</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>rotationXChanged</b></span>(float <i>rotationX</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn rotation_x(&self) -> ::std::os::raw::c_float {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QJoint_rotationX(self as *const crate::QJoint)
}
/// <p>Holds the y rotation of the joint as an Euler angle.</p>
///
/// Calls C++ function: <span style='color: green;'>```float Qt3DCore::QJoint::rotationY() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qjoint.html#rotationY-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the y rotation of the joint as an Euler angle.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> float </td><td class="memItemRight bottomAlign"><span class="name"><b>rotationY</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setRotationY</b></span>(float <i>rotationY</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>rotationYChanged</b></span>(float <i>rotationY</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn rotation_y(&self) -> ::std::os::raw::c_float {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QJoint_rotationY(self as *const crate::QJoint)
}
/// <p>Holds the z rotation of the joint as an Euler angle.</p>
///
/// Calls C++ function: <span style='color: green;'>```float Qt3DCore::QJoint::rotationZ() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qjoint.html#rotationZ-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the z rotation of the joint as an Euler angle.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> float </td><td class="memItemRight bottomAlign"><span class="name"><b>rotationZ</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setRotationZ</b></span>(float <i>rotationZ</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>rotationZChanged</b></span>(float <i>rotationZ</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn rotation_z(&self) -> ::std::os::raw::c_float {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QJoint_rotationZ(self as *const crate::QJoint)
}
/// <p>Holds the scale of the joint.</p>
///
/// Calls C++ function: <span style='color: green;'>```QVector3D Qt3DCore::QJoint::scale() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qjoint.html#scale-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the scale of the joint.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QVector3D </td><td class="memItemRight bottomAlign"><span class="name"><b>scale</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setScale</b></span>(const QVector3D &<i>scale</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>scaleChanged</b></span>(const QVector3D &<i>scale</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn scale(&self) -> ::cpp_core::CppBox<::qt_gui::QVector3D> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QJoint_scale(self as *const crate::QJoint)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Holds the inverse bind matrix of the joint. This is used to transform vertices from model space into the space of this joint so they can subsequently be multiplied by the joint's global transform to perform the skinning operation.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DCore::QJoint::setInverseBindMatrix(const QMatrix4x4& inverseBindMatrix)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qjoint.html#inverseBindMatrix-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the inverse bind matrix of the joint. This is used to transform vertices from model space into the space of this joint so they can subsequently be multiplied by the joint's global transform to perform the skinning operation.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QMatrix4x4 </td><td class="memItemRight bottomAlign"><span class="name"><b>inverseBindMatrix</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setInverseBindMatrix</b></span>(const QMatrix4x4 &<i>inverseBindMatrix</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>inverseBindMatrixChanged</b></span>(const QMatrix4x4 &<i>inverseBindMatrix</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn set_inverse_bind_matrix(
&self,
inverse_bind_matrix: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_gui::QMatrix4X4>>,
) {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QJoint_setInverseBindMatrix(
self as *const crate::QJoint as *mut crate::QJoint,
::cpp_core::CastInto::<::cpp_core::Ref<::qt_gui::QMatrix4X4>>::cast_into(
inverse_bind_matrix,
)
.as_raw_ptr(),
)
}
/// <p><b>Access functions:</b></p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DCore::QJoint::setName(const QString& name)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qjoint.html#name-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QString </td><td class="memItemRight bottomAlign"><span class="name"><b>name</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setName</b></span>(const QString &<i>name</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>nameChanged</b></span>(const QString &<i>name</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn set_name(
&self,
name: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_core::QString>>,
) {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QJoint_setName(
self as *const crate::QJoint as *mut crate::QJoint,
::cpp_core::CastInto::<::cpp_core::Ref<::qt_core::QString>>::cast_into(name)
.as_raw_ptr(),
)
}
/// <p>Holds the rotation of the joint as <a href="http://doc.qt.io/qt-5/qquaternion.html">QQuaternion</a>.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DCore::QJoint::setRotation(const QQuaternion& rotation)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qjoint.html#rotation-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the rotation of the joint as <a href="http://doc.qt.io/qt-5/qquaternion.html">QQuaternion</a>.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QQuaternion </td><td class="memItemRight bottomAlign"><span class="name"><b>rotation</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setRotation</b></span>(const QQuaternion &<i>rotation</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>rotationChanged</b></span>(const QQuaternion &<i>rotation</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn set_rotation(
&self,
rotation: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_gui::QQuaternion>>,
) {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QJoint_setRotation(
self as *const crate::QJoint as *mut crate::QJoint,
::cpp_core::CastInto::<::cpp_core::Ref<::qt_gui::QQuaternion>>::cast_into(rotation)
.as_raw_ptr(),
)
}
/// <p>Holds the x rotation of the joint as an Euler angle.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DCore::QJoint::setRotationX(float rotationX)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qjoint.html#rotationX-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the x rotation of the joint as an Euler angle.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> float </td><td class="memItemRight bottomAlign"><span class="name"><b>rotationX</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setRotationX</b></span>(float <i>rotationX</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>rotationXChanged</b></span>(float <i>rotationX</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn set_rotation_x(&self, rotation_x: ::std::os::raw::c_float) {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QJoint_setRotationX(
self as *const crate::QJoint as *mut crate::QJoint,
rotation_x,
)
}
/// <p>Holds the y rotation of the joint as an Euler angle.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DCore::QJoint::setRotationY(float rotationY)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qjoint.html#rotationY-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the y rotation of the joint as an Euler angle.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> float </td><td class="memItemRight bottomAlign"><span class="name"><b>rotationY</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setRotationY</b></span>(float <i>rotationY</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>rotationYChanged</b></span>(float <i>rotationY</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn set_rotation_y(&self, rotation_y: ::std::os::raw::c_float) {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QJoint_setRotationY(
self as *const crate::QJoint as *mut crate::QJoint,
rotation_y,
)
}
/// <p>Holds the z rotation of the joint as an Euler angle.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DCore::QJoint::setRotationZ(float rotationZ)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qjoint.html#rotationZ-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the z rotation of the joint as an Euler angle.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> float </td><td class="memItemRight bottomAlign"><span class="name"><b>rotationZ</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setRotationZ</b></span>(float <i>rotationZ</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>rotationZChanged</b></span>(float <i>rotationZ</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn set_rotation_z(&self, rotation_z: ::std::os::raw::c_float) {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QJoint_setRotationZ(
self as *const crate::QJoint as *mut crate::QJoint,
rotation_z,
)
}
/// <p>Holds the scale of the joint.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DCore::QJoint::setScale(const QVector3D& scale)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qjoint.html#scale-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the scale of the joint.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QVector3D </td><td class="memItemRight bottomAlign"><span class="name"><b>scale</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setScale</b></span>(const QVector3D &<i>scale</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>scaleChanged</b></span>(const QVector3D &<i>scale</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn set_scale(
&self,
scale: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_gui::QVector3D>>,
) {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QJoint_setScale(
self as *const crate::QJoint as *mut crate::QJoint,
::cpp_core::CastInto::<::cpp_core::Ref<::qt_gui::QVector3D>>::cast_into(scale)
.as_raw_ptr(),
)
}
/// <p>Sets the transform matrix for this joint to the identity matrix.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DCore::QJoint::setToIdentity()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qjoint.html#setToIdentity">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Sets the transform matrix for this joint to the identity matrix.</p></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn set_to_identity(&self) {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QJoint_setToIdentity(
self as *const crate::QJoint as *mut crate::QJoint,
)
}
/// <p>Holds the translation of the joint as <a href="http://doc.qt.io/qt-5/qvector3d.html">QVector3D</a>.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DCore::QJoint::setTranslation(const QVector3D& translation)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qjoint.html#translation-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the translation of the joint as <a href="http://doc.qt.io/qt-5/qvector3d.html">QVector3D</a>.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QVector3D </td><td class="memItemRight bottomAlign"><span class="name"><b>translation</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setTranslation</b></span>(const QVector3D &<i>translation</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>translationChanged</b></span>(const QVector3D &<i>translation</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn set_translation(
&self,
translation: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_gui::QVector3D>>,
) {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QJoint_setTranslation(
self as *const crate::QJoint as *mut crate::QJoint,
::cpp_core::CastInto::<::cpp_core::Ref<::qt_gui::QVector3D>>::cast_into(translation)
.as_raw_ptr(),
)
}
/// Returns a reference to the <span style='color: green;'>```staticMetaObject```</span> field.
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn static_meta_object() -> ::cpp_core::Ref<::qt_core::QMetaObject> {
let ffi_result = { crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QJoint_staticMetaObject() };
::cpp_core::Ref::from_raw(ffi_result as *mut ::qt_core::QMetaObject)
.expect("attempted to construct a null Ref")
}
/// Calls C++ function: <span style='color: green;'>```static QString Qt3DCore::QJoint::tr(const char* s, const char* c, int n)```</span>.
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn tr(
s: *const ::std::os::raw::c_char,
c: *const ::std::os::raw::c_char,
n: ::std::os::raw::c_int,
) -> ::cpp_core::CppBox<::qt_core::QString> {
let ffi_result = { crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QJoint_tr(s, c, n) };
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// Calls C++ function: <span style='color: green;'>```static QString Qt3DCore::QJoint::trUtf8(const char* s, const char* c, int n)```</span>.
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn tr_utf8(
s: *const ::std::os::raw::c_char,
c: *const ::std::os::raw::c_char,
n: ::std::os::raw::c_int,
) -> ::cpp_core::CppBox<::qt_core::QString> {
let ffi_result = { crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QJoint_trUtf8(s, c, n) };
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Holds the translation of the joint as <a href="http://doc.qt.io/qt-5/qvector3d.html">QVector3D</a>.</p>
///
/// Calls C++ function: <span style='color: green;'>```QVector3D Qt3DCore::QJoint::translation() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qjoint.html#translation-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the translation of the joint as <a href="http://doc.qt.io/qt-5/qvector3d.html">QVector3D</a>.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QVector3D </td><td class="memItemRight bottomAlign"><span class="name"><b>translation</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setTranslation</b></span>(const QVector3D &<i>translation</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>translationChanged</b></span>(const QVector3D &<i>translation</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn translation(&self) -> ::cpp_core::CppBox<::qt_gui::QVector3D> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QJoint_translation(
self as *const crate::QJoint,
)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
}
/// <p>Holds the data for a skeleton to be used with skinned meshes.</p>
///
/// C++ class: <span style='color: green;'>```Qt3DCore::QSkeleton```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qskeleton.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the data for a skeleton to be used with skinned meshes.</p>
/// <p>Use <a href="http://doc.qt.io/qt-5/qt3dcore-qskeleton.html">QSkeleton</a> if you wish to manually create the joints of a skeleton for use with skinned meshes. This is mainly of use to people creating editors, tooling, or dynamic skeletons. It is more common that a Qt 3D application would simply consume an existing skeleton and skinned mesh as created in a digital content creation tool such as Blender. For this use case, please see <a href="http://doc.qt.io/qt-5/qt3dcore-qskeletonloader.html">QSkeletonLoader</a>.</p></div>
#[repr(C)]
pub struct QSkeleton {
_unused: u8,
}
impl QSkeleton {
/// <p>Holds the root joint of the hierarchy of joints forming the skeleton.</p>
///
/// Returns a built-in Qt slot `Qt3DCore::QSkeleton::setRootJoint` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qskeleton.html#rootJoint-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the root joint of the hierarchy of joints forming the skeleton.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DCore::QJoint *</td><td class="memItemRight bottomAlign"><span class="name"><b>rootJoint</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setRootJoint</b></span>(Qt3DCore::QJoint *<i>rootJoint</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>rootJointChanged</b></span>(Qt3DCore::QJoint *<i>rootJoint</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub fn slot_set_root_joint(&self) -> ::qt_core::Receiver<(*mut crate::QJoint,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw(self).expect("attempted to construct a null Ref"),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"1setRootJoint(Qt3DCore::QJoint *)\0",
),
)
}
}
/// <p>Holds the root joint of the hierarchy of joints forming the skeleton.</p>
///
/// Returns a built-in Qt signal `Qt3DCore::QSkeleton::rootJointChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qskeleton.html#rootJoint-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the root joint of the hierarchy of joints forming the skeleton.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DCore::QJoint *</td><td class="memItemRight bottomAlign"><span class="name"><b>rootJoint</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setRootJoint</b></span>(Qt3DCore::QJoint *<i>rootJoint</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>rootJointChanged</b></span>(Qt3DCore::QJoint *<i>rootJoint</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub fn root_joint_changed(&self) -> ::qt_core::Signal<(*mut crate::QJoint,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw(self).expect("attempted to construct a null Ref"),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"2rootJointChanged(Qt3DCore::QJoint *)\0",
),
)
}
}
/// Calls C++ function: <span style='color: green;'>```virtual const QMetaObject* Qt3DCore::QSkeleton::metaObject() const```</span>.
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn meta_object(&self) -> ::cpp_core::Ptr<::qt_core::QMetaObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QSkeleton_metaObject(
self as *const crate::QSkeleton,
)
};
::cpp_core::Ptr::from_raw(ffi_result as *mut ::qt_core::QMetaObject)
}
/// <p>Constructs a new <a href="http://doc.qt.io/qt-5/qt3dcore-qskeleton.html">QSkeleton</a> with <i>parent</i>.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DCore::QSkeleton::QSkeleton(Qt3DCore::QNode* parent = …)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qskeleton.html#QSkeleton">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/qt3dcore-qskeleton.html">QSkeleton</a> with <i>parent</i>.</p></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn new_1a(
parent: impl ::cpp_core::CastInto<::cpp_core::Ptr<crate::QNode>>,
) -> ::qt_core::QBox<crate::QSkeleton> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QSkeleton_QSkeleton(
::cpp_core::CastInto::<::cpp_core::Ptr<crate::QNode>>::cast_into(parent)
.as_raw_ptr() as *mut crate::QNode,
)
};
::qt_core::QBox::from_raw(ffi_result)
}
/// <p>Holds the data for a skeleton to be used with skinned meshes.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DCore::QSkeleton::QSkeleton()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qskeleton.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the data for a skeleton to be used with skinned meshes.</p>
/// <p>Use <a href="http://doc.qt.io/qt-5/qt3dcore-qskeleton.html">QSkeleton</a> if you wish to manually create the joints of a skeleton for use with skinned meshes. This is mainly of use to people creating editors, tooling, or dynamic skeletons. It is more common that a Qt 3D application would simply consume an existing skeleton and skinned mesh as created in a digital content creation tool such as Blender. For this use case, please see <a href="http://doc.qt.io/qt-5/qt3dcore-qskeletonloader.html">QSkeletonLoader</a>.</p></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn new_0a() -> ::qt_core::QBox<crate::QSkeleton> {
let ffi_result = { crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QSkeleton_QSkeleton1() };
::qt_core::QBox::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```virtual int Qt3DCore::QSkeleton::qt_metacall(QMetaObject::Call arg1, int arg2, void** arg3)```</span>.
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn qt_metacall(
&self,
arg1: ::qt_core::q_meta_object::Call,
arg2: ::std::os::raw::c_int,
arg3: *mut *mut ::std::ffi::c_void,
) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QSkeleton_qt_metacall(
self as *const crate::QSkeleton as *mut crate::QSkeleton,
arg1,
arg2,
arg3,
)
}
/// Calls C++ function: <span style='color: green;'>```virtual void* Qt3DCore::QSkeleton::qt_metacast(const char* arg1)```</span>.
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn qt_metacast(
&self,
arg1: *const ::std::os::raw::c_char,
) -> *mut ::std::ffi::c_void {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QSkeleton_qt_metacast(
self as *const crate::QSkeleton as *mut crate::QSkeleton,
arg1,
)
}
/// <p>Holds the root joint of the hierarchy of joints forming the skeleton.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QJoint* Qt3DCore::QSkeleton::rootJoint() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qskeleton.html#rootJoint-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the root joint of the hierarchy of joints forming the skeleton.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DCore::QJoint *</td><td class="memItemRight bottomAlign"><span class="name"><b>rootJoint</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setRootJoint</b></span>(Qt3DCore::QJoint *<i>rootJoint</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>rootJointChanged</b></span>(Qt3DCore::QJoint *<i>rootJoint</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn root_joint(&self) -> ::qt_core::QPtr<crate::QJoint> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QSkeleton_rootJoint(
self as *const crate::QSkeleton,
)
};
::qt_core::QPtr::from_raw(ffi_result)
}
/// <p>Holds the root joint of the hierarchy of joints forming the skeleton.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DCore::QSkeleton::setRootJoint(Qt3DCore::QJoint* rootJoint)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qskeleton.html#rootJoint-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the root joint of the hierarchy of joints forming the skeleton.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DCore::QJoint *</td><td class="memItemRight bottomAlign"><span class="name"><b>rootJoint</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setRootJoint</b></span>(Qt3DCore::QJoint *<i>rootJoint</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>rootJointChanged</b></span>(Qt3DCore::QJoint *<i>rootJoint</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn set_root_joint(
&self,
root_joint: impl ::cpp_core::CastInto<::cpp_core::Ptr<crate::QJoint>>,
) {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QSkeleton_setRootJoint(
self as *const crate::QSkeleton as *mut crate::QSkeleton,
::cpp_core::CastInto::<::cpp_core::Ptr<crate::QJoint>>::cast_into(root_joint)
.as_raw_ptr() as *mut crate::QJoint,
)
}
/// Returns a reference to the <span style='color: green;'>```staticMetaObject```</span> field.
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn static_meta_object() -> ::cpp_core::Ref<::qt_core::QMetaObject> {
let ffi_result = { crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QSkeleton_staticMetaObject() };
::cpp_core::Ref::from_raw(ffi_result as *mut ::qt_core::QMetaObject)
.expect("attempted to construct a null Ref")
}
/// Calls C++ function: <span style='color: green;'>```static QString Qt3DCore::QSkeleton::tr(const char* s, const char* c, int n)```</span>.
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn tr(
s: *const ::std::os::raw::c_char,
c: *const ::std::os::raw::c_char,
n: ::std::os::raw::c_int,
) -> ::cpp_core::CppBox<::qt_core::QString> {
let ffi_result = { crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QSkeleton_tr(s, c, n) };
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// Calls C++ function: <span style='color: green;'>```static QString Qt3DCore::QSkeleton::trUtf8(const char* s, const char* c, int n)```</span>.
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn tr_utf8(
s: *const ::std::os::raw::c_char,
c: *const ::std::os::raw::c_char,
n: ::std::os::raw::c_int,
) -> ::cpp_core::CppBox<::qt_core::QString> {
let ffi_result = { crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QSkeleton_trUtf8(s, c, n) };
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
}
pub mod q_skeleton_loader {
//! C++ type: <span style='color: green;'>```Qt3DCore::QSkeletonLoader```</span>
/// C++ enum: <span style='color: green;'>```Qt3DCore::QSkeletonLoader::Status```</span>.
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
#[repr(transparent)]
pub struct Status(::std::os::raw::c_int);
impl From<::std::os::raw::c_int> for Status {
fn from(value: ::std::os::raw::c_int) -> Self {
Status(value)
}
}
impl From<Status> for ::std::os::raw::c_int {
fn from(value: Status) -> Self {
value.0
}
}
impl Status {
pub fn to_int(&self) -> ::std::os::raw::c_int {
self.0
}
}
impl Status {
/// C++ enum variant: <span style='color: green;'>```NotReady = 0```</span>
#[allow(non_upper_case_globals)]
pub const NotReady: crate::q_skeleton_loader::Status = crate::q_skeleton_loader::Status(0);
/// C++ enum variant: <span style='color: green;'>```Ready = 1```</span>
#[allow(non_upper_case_globals)]
pub const Ready: crate::q_skeleton_loader::Status = crate::q_skeleton_loader::Status(1);
/// C++ enum variant: <span style='color: green;'>```Error = 2```</span>
#[allow(non_upper_case_globals)]
pub const Error: crate::q_skeleton_loader::Status = crate::q_skeleton_loader::Status(2);
}
}
/// <p>Used to load a skeleton of joints from file.</p>
///
/// C++ class: <span style='color: green;'>```Qt3DCore::QSkeletonLoader```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qskeletonloader.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Used to load a skeleton of joints from file.</p>
/// <p>Use <a href="http://doc.qt.io/qt-5/qml-qt3d-core-skeletonloader.html">SkeletonLoader</a> if you wish to load a whole skeleton from file rather than creating the joints yourself using Skeleton and Joints. Creating a skeleton and binding the vertices of a mesh to the skeleton is most easily performed in a 3D digital content creation tool such as Blender. The resulting skeleton and mesh can then be exported in a suitable format such as glTF 2 for consumption by Qt 3D.</p></div>
#[repr(C)]
pub struct QSkeletonLoader {
_unused: u8,
}
impl QSkeletonLoader {
/// <p>Holds the source url from which to load the skeleton.</p>
///
/// Returns a built-in Qt slot `Qt3DCore::QSkeletonLoader::setSource` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qskeletonloader.html#source-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the source url from which to load the skeleton.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QUrl </td><td class="memItemRight bottomAlign"><span class="name"><b>source</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setSource</b></span>(const QUrl &<i>source</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>sourceChanged</b></span>(const QUrl &<i>source</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub fn slot_set_source(&self) -> ::qt_core::Receiver<(*const ::qt_core::QUrl,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw(self).expect("attempted to construct a null Ref"),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setSource(QUrl const &)\0"),
)
}
}
/// <p><b>Access functions:</b></p>
///
/// Returns a built-in Qt slot `Qt3DCore::QSkeletonLoader::setCreateJointsEnabled` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qskeletonloader.html#createJointsEnabled-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> bool </td><td class="memItemRight bottomAlign"><span class="name"><b>isCreateJointsEnabled</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setCreateJointsEnabled</b></span>(bool <i>enabled</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>createJointsEnabledChanged</b></span>(bool <i>createJointsEnabled</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub fn slot_set_create_joints_enabled(&self) -> ::qt_core::Receiver<(bool,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw(self).expect("attempted to construct a null Ref"),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setCreateJointsEnabled(bool)\0"),
)
}
}
/// <p>Holds the source url from which to load the skeleton.</p>
///
/// Returns a built-in Qt signal `Qt3DCore::QSkeletonLoader::sourceChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qskeletonloader.html#source-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the source url from which to load the skeleton.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QUrl </td><td class="memItemRight bottomAlign"><span class="name"><b>source</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setSource</b></span>(const QUrl &<i>source</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>sourceChanged</b></span>(const QUrl &<i>source</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub fn source_changed(&self) -> ::qt_core::Signal<(*const ::qt_core::QUrl,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw(self).expect("attempted to construct a null Ref"),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2sourceChanged(QUrl const &)\0"),
)
}
}
/// <p>Holds the current status of skeleton loading.</p>
///
/// Returns a built-in Qt signal `Qt3DCore::QSkeletonLoader::statusChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qskeletonloader.html#status-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current status of skeleton loading.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DCore::QSkeletonLoader::Status </td><td class="memItemRight bottomAlign"><span class="name"><b>status</b></span>() const</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>statusChanged</b></span>(Qt3DCore::QSkeletonLoader::Status <i>status</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub fn status_changed(&self) -> ::qt_core::Signal<(crate::q_skeleton_loader::Status,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw(self).expect("attempted to construct a null Ref"),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"2statusChanged(Qt3DCore::QSkeletonLoader::Status)\0",
),
)
}
}
/// <p><b>Access functions:</b></p>
///
/// Returns a built-in Qt signal `Qt3DCore::QSkeletonLoader::createJointsEnabledChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qskeletonloader.html#createJointsEnabled-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> bool </td><td class="memItemRight bottomAlign"><span class="name"><b>isCreateJointsEnabled</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setCreateJointsEnabled</b></span>(bool <i>enabled</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>createJointsEnabledChanged</b></span>(bool <i>createJointsEnabled</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub fn create_joints_enabled_changed(&self) -> ::qt_core::Signal<(bool,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw(self).expect("attempted to construct a null Ref"),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"2createJointsEnabledChanged(bool)\0",
),
)
}
}
/// <p><b>Access functions:</b></p>
///
/// Returns a built-in Qt signal `Qt3DCore::QSkeletonLoader::rootJointChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qskeletonloader.html#rootJoint-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DCore::QJoint *</td><td class="memItemRight bottomAlign"><span class="name"><b>rootJoint</b></span>() const</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>rootJointChanged</b></span>(Qt3DCore::QJoint *<i>rootJoint</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub fn root_joint_changed(&self) -> ::qt_core::Signal<(*mut crate::QJoint,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw(self).expect("attempted to construct a null Ref"),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"2rootJointChanged(Qt3DCore::QJoint *)\0",
),
)
}
}
/// <p><b>Access functions:</b></p>
///
/// Calls C++ function: <span style='color: green;'>```bool Qt3DCore::QSkeletonLoader::isCreateJointsEnabled() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qskeletonloader.html#createJointsEnabled-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> bool </td><td class="memItemRight bottomAlign"><span class="name"><b>isCreateJointsEnabled</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setCreateJointsEnabled</b></span>(bool <i>enabled</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>createJointsEnabledChanged</b></span>(bool <i>createJointsEnabled</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn is_create_joints_enabled(&self) -> bool {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QSkeletonLoader_isCreateJointsEnabled(
self as *const crate::QSkeletonLoader,
)
}
/// Calls C++ function: <span style='color: green;'>```virtual const QMetaObject* Qt3DCore::QSkeletonLoader::metaObject() const```</span>.
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn meta_object(&self) -> ::cpp_core::Ptr<::qt_core::QMetaObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QSkeletonLoader_metaObject(
self as *const crate::QSkeletonLoader,
)
};
::cpp_core::Ptr::from_raw(ffi_result as *mut ::qt_core::QMetaObject)
}
/// <p>Constructs a new <a href="http://doc.qt.io/qt-5/qt3dcore-qskeletonloader.html">QSkeletonLoader</a> with <i>parent</i>.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DCore::QSkeletonLoader::QSkeletonLoader(Qt3DCore::QNode* parent = …)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qskeletonloader.html#QSkeletonLoader">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/qt3dcore-qskeletonloader.html">QSkeletonLoader</a> with <i>parent</i>.</p></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn from_q_node(
parent: impl ::cpp_core::CastInto<::cpp_core::Ptr<crate::QNode>>,
) -> ::qt_core::QBox<crate::QSkeletonLoader> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QSkeletonLoader_QSkeletonLoader(
::cpp_core::CastInto::<::cpp_core::Ptr<crate::QNode>>::cast_into(parent)
.as_raw_ptr() as *mut crate::QNode,
)
};
::qt_core::QBox::from_raw(ffi_result)
}
/// <p>Constructs a new <a href="http://doc.qt.io/qt-5/qt3dcore-qskeletonloader.html">QSkeletonLoader</a> with <i>parent</i> and sets the <i>source</i>.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DCore::QSkeletonLoader::QSkeletonLoader(const QUrl& source, Qt3DCore::QNode* parent = …)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qskeletonloader.html#QSkeletonLoader-1">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/qt3dcore-qskeletonloader.html">QSkeletonLoader</a> with <i>parent</i> and sets the <i>source</i>.</p></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn from_q_url_q_node(
source: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_core::QUrl>>,
parent: impl ::cpp_core::CastInto<::cpp_core::Ptr<crate::QNode>>,
) -> ::qt_core::QBox<crate::QSkeletonLoader> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QSkeletonLoader_QSkeletonLoader1(
::cpp_core::CastInto::<::cpp_core::Ref<::qt_core::QUrl>>::cast_into(source)
.as_raw_ptr(),
::cpp_core::CastInto::<::cpp_core::Ptr<crate::QNode>>::cast_into(parent)
.as_raw_ptr() as *mut crate::QNode,
)
};
::qt_core::QBox::from_raw(ffi_result)
}
/// <p>Used to load a skeleton of joints from file.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DCore::QSkeletonLoader::QSkeletonLoader()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qskeletonloader.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Used to load a skeleton of joints from file.</p>
/// <p>Use <a href="http://doc.qt.io/qt-5/qml-qt3d-core-skeletonloader.html">SkeletonLoader</a> if you wish to load a whole skeleton from file rather than creating the joints yourself using Skeleton and Joints. Creating a skeleton and binding the vertices of a mesh to the skeleton is most easily performed in a 3D digital content creation tool such as Blender. The resulting skeleton and mesh can then be exported in a suitable format such as glTF 2 for consumption by Qt 3D.</p></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn new() -> ::qt_core::QBox<crate::QSkeletonLoader> {
let ffi_result =
{ crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QSkeletonLoader_QSkeletonLoader2() };
::qt_core::QBox::from_raw(ffi_result)
}
/// <p>Constructs a new <a href="http://doc.qt.io/qt-5/qt3dcore-qskeletonloader.html">QSkeletonLoader</a> with <i>parent</i> and sets the <i>source</i>.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DCore::QSkeletonLoader::QSkeletonLoader(const QUrl& source)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qskeletonloader.html#QSkeletonLoader-1">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/qt3dcore-qskeletonloader.html">QSkeletonLoader</a> with <i>parent</i> and sets the <i>source</i>.</p></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn from_q_url(
source: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_core::QUrl>>,
) -> ::qt_core::QBox<crate::QSkeletonLoader> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QSkeletonLoader_QSkeletonLoader4(
::cpp_core::CastInto::<::cpp_core::Ref<::qt_core::QUrl>>::cast_into(source)
.as_raw_ptr(),
)
};
::qt_core::QBox::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```virtual int Qt3DCore::QSkeletonLoader::qt_metacall(QMetaObject::Call arg1, int arg2, void** arg3)```</span>.
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn qt_metacall(
&self,
arg1: ::qt_core::q_meta_object::Call,
arg2: ::std::os::raw::c_int,
arg3: *mut *mut ::std::ffi::c_void,
) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QSkeletonLoader_qt_metacall(
self as *const crate::QSkeletonLoader as *mut crate::QSkeletonLoader,
arg1,
arg2,
arg3,
)
}
/// Calls C++ function: <span style='color: green;'>```virtual void* Qt3DCore::QSkeletonLoader::qt_metacast(const char* arg1)```</span>.
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn qt_metacast(
&self,
arg1: *const ::std::os::raw::c_char,
) -> *mut ::std::ffi::c_void {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QSkeletonLoader_qt_metacast(
self as *const crate::QSkeletonLoader as *mut crate::QSkeletonLoader,
arg1,
)
}
/// <p><b>Access functions:</b></p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QJoint* Qt3DCore::QSkeletonLoader::rootJoint() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qskeletonloader.html#rootJoint-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DCore::QJoint *</td><td class="memItemRight bottomAlign"><span class="name"><b>rootJoint</b></span>() const</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>rootJointChanged</b></span>(Qt3DCore::QJoint *<i>rootJoint</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn root_joint(&self) -> ::qt_core::QPtr<crate::QJoint> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QSkeletonLoader_rootJoint(
self as *const crate::QSkeletonLoader,
)
};
::qt_core::QPtr::from_raw(ffi_result)
}
/// <p><b>Access functions:</b></p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DCore::QSkeletonLoader::setCreateJointsEnabled(bool enabled)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qskeletonloader.html#createJointsEnabled-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> bool </td><td class="memItemRight bottomAlign"><span class="name"><b>isCreateJointsEnabled</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setCreateJointsEnabled</b></span>(bool <i>enabled</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>createJointsEnabledChanged</b></span>(bool <i>createJointsEnabled</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn set_create_joints_enabled(&self, enabled: bool) {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QSkeletonLoader_setCreateJointsEnabled(
self as *const crate::QSkeletonLoader as *mut crate::QSkeletonLoader,
enabled,
)
}
/// <p>Holds the source url from which to load the skeleton.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DCore::QSkeletonLoader::setSource(const QUrl& source)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qskeletonloader.html#source-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the source url from which to load the skeleton.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QUrl </td><td class="memItemRight bottomAlign"><span class="name"><b>source</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setSource</b></span>(const QUrl &<i>source</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>sourceChanged</b></span>(const QUrl &<i>source</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn set_source(
&self,
source: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_core::QUrl>>,
) {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QSkeletonLoader_setSource(
self as *const crate::QSkeletonLoader as *mut crate::QSkeletonLoader,
::cpp_core::CastInto::<::cpp_core::Ref<::qt_core::QUrl>>::cast_into(source)
.as_raw_ptr(),
)
}
/// <p>Holds the source url from which to load the skeleton.</p>
///
/// Calls C++ function: <span style='color: green;'>```QUrl Qt3DCore::QSkeletonLoader::source() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qskeletonloader.html#source-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the source url from which to load the skeleton.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QUrl </td><td class="memItemRight bottomAlign"><span class="name"><b>source</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setSource</b></span>(const QUrl &<i>source</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>sourceChanged</b></span>(const QUrl &<i>source</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn source(&self) -> ::cpp_core::CppBox<::qt_core::QUrl> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QSkeletonLoader_source(
self as *const crate::QSkeletonLoader,
)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// Returns a reference to the <span style='color: green;'>```staticMetaObject```</span> field.
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn static_meta_object() -> ::cpp_core::Ref<::qt_core::QMetaObject> {
let ffi_result =
{ crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QSkeletonLoader_staticMetaObject() };
::cpp_core::Ref::from_raw(ffi_result as *mut ::qt_core::QMetaObject)
.expect("attempted to construct a null Ref")
}
/// <p>Holds the current status of skeleton loading.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QSkeletonLoader::Status Qt3DCore::QSkeletonLoader::status() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qskeletonloader.html#status-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current status of skeleton loading.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DCore::QSkeletonLoader::Status </td><td class="memItemRight bottomAlign"><span class="name"><b>status</b></span>() const</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>statusChanged</b></span>(Qt3DCore::QSkeletonLoader::Status <i>status</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn status(&self) -> crate::q_skeleton_loader::Status {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QSkeletonLoader_status(
self as *const crate::QSkeletonLoader,
)
}
/// Calls C++ function: <span style='color: green;'>```static QString Qt3DCore::QSkeletonLoader::tr(const char* s, const char* c, int n)```</span>.
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn tr(
s: *const ::std::os::raw::c_char,
c: *const ::std::os::raw::c_char,
n: ::std::os::raw::c_int,
) -> ::cpp_core::CppBox<::qt_core::QString> {
let ffi_result = { crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QSkeletonLoader_tr(s, c, n) };
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// Calls C++ function: <span style='color: green;'>```static QString Qt3DCore::QSkeletonLoader::trUtf8(const char* s, const char* c, int n)```</span>.
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn tr_utf8(
s: *const ::std::os::raw::c_char,
c: *const ::std::os::raw::c_char,
n: ::std::os::raw::c_int,
) -> ::cpp_core::CppBox<::qt_core::QString> {
let ffi_result =
{ crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QSkeletonLoader_trUtf8(s, c, n) };
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
}
/// <p>The <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> class is a template class that provides a dynamic array.</p>
///
/// C++ class: <span style='color: green;'>```QVector<Qt3DCore::QJoint*>```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>The <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> class is a template class that provides a dynamic array.</p>
/// <p><a href="http://doc.qt.io/qt-5/qvector.html">QVector</a><T> is one of Qt's generic <a href="http://doc.qt.io/qt-5/containers.html">container classes</a>. It stores its items in adjacent memory locations and provides fast index-based access.</p>
/// <p><a href="http://doc.qt.io/qt-5/qlist.html">QList</a><T>, <a href="http://doc.qt.io/qt-5/qlinkedlist.html">QLinkedList</a><T>, <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a><T>, and <a href="http://doc.qt.io/qt-5/qvarlengtharray.html">QVarLengthArray</a><T> provide similar APIs and functionality. They are often interchangeable, but there are performance consequences. Here is an overview of use cases:</p>
/// <ul>
/// <li><a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> should be your default first choice. <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a><T> will usually give better performance than <a href="http://doc.qt.io/qt-5/qlist.html">QList</a><T>, because <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a><T> always stores its items sequentially in memory, where <a href="http://doc.qt.io/qt-5/qlist.html">QList</a><T> will allocate its items on the heap unless <code>sizeof(T) <= sizeof(void*)</code> and T has been declared to be either a <code>Q_MOVABLE_TYPE</code> or a <code>Q_PRIMITIVE_TYPE</code> using <a href="http://doc.qt.io/qt-5/qtglobal.html#Q_DECLARE_TYPEINFO">Q_DECLARE_TYPEINFO</a>. See the <a href="http://marcmutz.wordpress.com/effective-qt/containers/#containers-qlist">Pros and Cons of Using QList</a> for an explanation.</li>
/// <li>However, <a href="http://doc.qt.io/qt-5/qlist.html">QList</a> is used throughout the Qt APIs for passing parameters and for returning values. Use <a href="http://doc.qt.io/qt-5/qlist.html">QList</a> to interface with those APIs.</li>
/// <li>If you need a real linked list, which guarantees <a href="http://doc.qt.io/qt-5/containers.html#algorithmic-complexity">constant time</a> insertions mid-list and uses iterators to items rather than indexes, use <a href="http://doc.qt.io/qt-5/qlinkedlist.html">QLinkedList</a>.</li>
/// </ul>
/// <p><b>Note: </b><a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> and <a href="http://doc.qt.io/qt-5/qvarlengtharray.html">QVarLengthArray</a> both guarantee C-compatible array layout. <a href="http://doc.qt.io/qt-5/qlist.html">QList</a> does not. This might be important if your application must interface with a C API.</p><p><b>Note: </b>Iterators into a <a href="http://doc.qt.io/qt-5/qlinkedlist.html">QLinkedList</a> and references into heap-allocating QLists remain valid as long as the referenced items remain in the container. This is not true for iterators and references into a <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> and non-heap-allocating QLists.</p><p>Here's an example of a <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> that stores integers and a <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> that stores <a href="http://doc.qt.io/qt-5/qstring.html">QString</a> values:</p>
/// <pre class="cpp">
///
/// <span class="type"><a href="http://doc.qt.io/qt-5/qvector.html#QVector">QVector</a></span><span class="operator"><</span><span class="type">int</span><span class="operator">></span> integerVector;
/// <span class="type"><a href="http://doc.qt.io/qt-5/qvector.html#QVector">QVector</a></span><span class="operator"><</span><span class="type"><a href="http://doc.qt.io/qt-5/qstring.html">QString</a></span><span class="operator">></span> stringVector;
///
/// </pre>
/// <p><a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> stores its items in a vector (array). Typically, vectors are created with an initial size. For example, the following code constructs a <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> with 200 elements:</p>
/// <pre class="cpp">
///
/// <span class="type"><a href="http://doc.qt.io/qt-5/qvector.html#QVector">QVector</a></span><span class="operator"><</span><span class="type"><a href="http://doc.qt.io/qt-5/qstring.html">QString</a></span><span class="operator">></span> vector(<span class="number">200</span>);
///
/// </pre>
/// <p>The elements are automatically initialized with a <a href="http://doc.qt.io/qt-5/containers.html#default-constructed-value">default-constructed value</a>. If you want to initialize the vector with a different value, pass that value as the second argument to the constructor:</p>
/// <pre class="cpp">
///
/// <span class="type"><a href="http://doc.qt.io/qt-5/qvector.html#QVector">QVector</a></span><span class="operator"><</span><span class="type"><a href="http://doc.qt.io/qt-5/qstring.html">QString</a></span><span class="operator">></span> vector(<span class="number">200</span><span class="operator">,</span> <span class="string">"Pass"</span>);
///
/// </pre>
/// <p>You can also call <a href="http://doc.qt.io/qt-5/qvector.html#fill">fill</a>() at any time to fill the vector with a value.</p>
/// <p><a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> uses 0-based indexes, just like C++ arrays. To access the item at a particular index position, you can use operator[](). On non-const vectors, operator[]() returns a reference to the item that can be used on the left side of an assignment:</p>
/// <pre class="cpp">
///
/// <span class="keyword">if</span> (vector<span class="operator">[</span><span class="number">0</span><span class="operator">]</span> <span class="operator">=</span><span class="operator">=</span> <span class="string">"Liz"</span>)
///   vector<span class="operator">[</span><span class="number">0</span><span class="operator">]</span> <span class="operator">=</span> <span class="string">"Elizabeth"</span>;
///
/// </pre>
/// <p>For read-only access, an alternative syntax is to use <a href="http://doc.qt.io/qt-5/qvector.html#at">at</a>():</p>
/// <pre class="cpp">
///
/// <span class="keyword">for</span> (<span class="type">int</span> i <span class="operator">=</span> <span class="number">0</span>; i <span class="operator"><</span> vector<span class="operator">.</span>size(); <span class="operator">+</span><span class="operator">+</span>i) {
///   <span class="keyword">if</span> (vector<span class="operator">.</span>at(i) <span class="operator">=</span><span class="operator">=</span> <span class="string">"Alfonso"</span>)
///     cout <span class="operator"><</span><span class="operator"><</span> <span class="string">"Found Alfonso at position "</span> <span class="operator"><</span><span class="operator"><</span> i <span class="operator"><</span><span class="operator"><</span> endl;
/// }
///
/// </pre>
/// <p><a href="http://doc.qt.io/qt-5/qvector.html#at">at</a>() can be faster than operator[](), because it never causes a <a href="http://doc.qt.io/qt-5/implicit-sharing.html#deep-copy">deep copy</a> to occur.</p>
/// <p>Another way to access the data stored in a <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> is to call <a href="http://doc.qt.io/qt-5/qvector.html#data">data</a>(). The function returns a pointer to the first item in the vector. You can use the pointer to directly access and modify the elements stored in the vector. The pointer is also useful if you need to pass a <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> to a function that accepts a plain C++ array.</p>
/// <p>If you want to find all occurrences of a particular value in a vector, use <a href="http://doc.qt.io/qt-5/qvector.html#indexOf">indexOf</a>() or <a href="http://doc.qt.io/qt-5/qvector.html#lastIndexOf">lastIndexOf</a>(). The former searches forward starting from a given index position, the latter searches backward. Both return the index of the matching item if they found one; otherwise, they return -1. For example:</p>
/// <pre class="cpp">
///
/// <span class="type">int</span> i <span class="operator">=</span> vector<span class="operator">.</span>indexOf(<span class="string">"Harumi"</span>);
/// <span class="keyword">if</span> (i <span class="operator">!</span><span class="operator">=</span> <span class="operator">-</span><span class="number">1</span>)
///   cout <span class="operator"><</span><span class="operator"><</span> <span class="string">"First occurrence of Harumi is at position "</span> <span class="operator"><</span><span class="operator"><</span> i <span class="operator"><</span><span class="operator"><</span> endl;
///
/// </pre>
/// <p>If you simply want to check whether a vector contains a particular value, use <a href="http://doc.qt.io/qt-5/qvector.html#contains">contains</a>(). If you want to find out how many times a particular value occurs in the vector, use <a href="http://doc.qt.io/qt-5/qvector.html#count-1">count</a>().</p>
/// <p><a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> provides these basic functions to add, move, and remove items: <a href="http://doc.qt.io/qt-5/qvector.html#insert">insert</a>(), <a href="http://doc.qt.io/qt-5/qvector.html#replace">replace</a>(), <a href="http://doc.qt.io/qt-5/qvector.html#remove">remove</a>(), <a href="http://doc.qt.io/qt-5/qvector.html#prepend">prepend</a>(), <a href="http://doc.qt.io/qt-5/qvector.html#append">append</a>(). With the exception of <a href="http://doc.qt.io/qt-5/qvector.html#append">append</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#replace">replace</a>(), these functions can be slow (<a href="http://doc.qt.io/qt-5/containers.html#linear-time">linear time</a>) for large vectors, because they require moving many items in the vector by one position in memory. If you want a container class that provides fast insertion/removal in the middle, use <a href="http://doc.qt.io/qt-5/qlist.html">QList</a> or <a href="http://doc.qt.io/qt-5/qlinkedlist.html">QLinkedList</a> instead.</p>
/// <p>Unlike plain C++ arrays, QVectors can be resized at any time by calling <a href="http://doc.qt.io/qt-5/qvector.html#resize">resize</a>(). If the new size is larger than the old size, <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> might need to reallocate the whole vector. <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> tries to reduce the number of reallocations by preallocating up to twice as much memory as the actual data needs.</p>
/// <p>If you know in advance approximately how many items the <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> will contain, you can call <a href="http://doc.qt.io/qt-5/qvector.html#reserve">reserve</a>(), asking <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> to preallocate a certain amount of memory. You can also call <a href="http://doc.qt.io/qt-5/qvector.html#capacity">capacity</a>() to find out how much memory <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> actually allocated.</p>
/// <p>Note that using non-const operators and functions can cause <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> to do a deep copy of the data. This is due to <a href="http://doc.qt.io/qt-5/implicit-sharing.html">implicit sharing</a>.</p>
/// <p><a href="http://doc.qt.io/qt-5/qvector.html">QVector</a>'s value type must be an <a href="http://doc.qt.io/qt-5/containers.html#assignable-data-type">assignable data type</a>. This covers most data types that are commonly used, but the compiler won't let you, for example, store a <a href="http://doc.qt.io/qt-5/qwidget.html">QWidget</a> as a value; instead, store a <a href="http://doc.qt.io/qt-5/qwidget.html">QWidget</a> *. A few functions have additional requirements; for example, <a href="http://doc.qt.io/qt-5/qvector.html#indexOf">indexOf</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#lastIndexOf">lastIndexOf</a>() expect the value type to support <code>operator==()</code>. These requirements are documented on a per-function basis.</p>
/// <p>Like the other container classes, <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> provides <a href="http://doc.qt.io/qt-5/containers.html#java-style-iterators">Java-style iterators</a> (<a href="http://doc.qt.io/qt-5/qvectoriterator.html">QVectorIterator</a> and <a href="http://doc.qt.io/qt-5/qmutablevectoriterator.html">QMutableVectorIterator</a>) and <a href="http://doc.qt.io/qt-5/containers.html#stl-style-iterators">STL-style iterators</a> (<a href="http://doc.qt.io/qt-5/qvector.html#const_iterator-typedef">QVector::const_iterator</a> and <a href="http://doc.qt.io/qt-5/qvector.html#iterator-typedefx">QVector::iterator</a>). In practice, these are rarely used, because you can use indexes into the <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a>.</p>
/// <p>In addition to <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a>, Qt also provides <a href="http://doc.qt.io/qt-5/qvarlengtharray.html">QVarLengthArray</a>, a very low-level class with little functionality that is optimized for speed.</p>
/// <p><a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> does <i>not</i> support inserting, prepending, appending or replacing with references to its own values. Doing so will cause your application to abort with an error message.</p>
/// <a name="more-information-on-using-qt-containers"></a>
/// <h4>More Information on Using Qt Containers</h4>
/// <p>For a detailed discussion comparing Qt containers with each other and with STL containers, see <a href="http://marcmutz.wordpress.com/effective-qt/containers/">Understand the Qt Containers</a>.</p></div>
#[repr(C)]
pub struct QVectorOfQJoint {
_unused: u8,
}
impl QVectorOfQJoint {
/// <p>Appends the items of the <i>other</i> vector to this vector and returns a reference to this vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```QVector<Qt3DCore::QJoint*>& QVector<Qt3DCore::QJoint*>::operator+=(const QVector<Qt3DCore::QJoint*>& l)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#operator-2b-eq">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Appends the items of the <i>other</i> vector to this vector and returns a reference to this vector.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#operator-2b">operator+</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#append">append</a>().</p></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn add_assign_q_vector_of_q_joint(
&self,
l: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QVectorOfQJoint>>,
) -> ::cpp_core::Ref<crate::QVectorOfQJoint> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QJoint_ptr_operator__4(
self as *const crate::QVectorOfQJoint as *mut crate::QVectorOfQJoint,
::cpp_core::CastInto::<::cpp_core::Ref<crate::QVectorOfQJoint>>::cast_into(l)
.as_raw_ptr(),
)
};
::cpp_core::Ref::from_raw(ffi_result).expect("attempted to construct a null Ref")
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```QVector<Qt3DCore::QJoint*>& QVector<Qt3DCore::QJoint*>::operator+=(const Qt3DCore::QJoint*& t)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#operator-2b-eq-1">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This is an overloaded function.</p>
/// <p>Appends <i>value</i> to the vector.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#append">append</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#operator-lt-lt">operator<<</a>().</p></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn add_assign_q_joint(
&self,
t: *const *mut crate::QJoint,
) -> ::cpp_core::Ref<crate::QVectorOfQJoint> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QJoint_ptr_operator__5(
self as *const crate::QVectorOfQJoint as *mut crate::QVectorOfQJoint,
t,
)
};
::cpp_core::Ref::from_raw(ffi_result).expect("attempted to construct a null Ref")
}
/// <p>Inserts <i>value</i> at the end of the vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QJoint*>::append(const Qt3DCore::QJoint*& t)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#append">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Inserts <i>value</i> at the end of the vector.</p>
/// <p>Example:</p>
/// <pre class="cpp">
///
/// <span class="type"><a href="http://doc.qt.io/qt-5/qvector.html#QVector">QVector</a></span><span class="operator"><</span><span class="type"><a href="http://doc.qt.io/qt-5/qstring.html">QString</a></span><span class="operator">></span> vector;
/// vector<span class="operator">.</span>append(<span class="string">"one"</span>);
/// vector<span class="operator">.</span>append(<span class="string">"two"</span>);
/// <span class="type"><a href="http://doc.qt.io/qt-5/qstring.html">QString</a></span> three <span class="operator">=</span> <span class="string">"three"</span>;
/// vector<span class="operator">.</span>append(three);
/// <span class="comment">// vector: ["one", "two", "three"]</span>
/// <span class="comment">// three: "three"</span>
///
/// </pre>
/// <p>This is the same as calling resize(<a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>() + 1) and assigning <i>value</i> to the new last element in the vector.</p>
/// <p>This operation is relatively fast, because <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> typically allocates more memory than necessary, so it can grow without reallocating the entire vector each time.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#operator-lt-lt">operator<<</a>(), <a href="http://doc.qt.io/qt-5/qvector.html#prepend">prepend</a>(), and <a href="http://doc.qt.io/qt-5/qvector.html#insert">insert</a>().</p></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn append_q_joint(&self, t: *const *mut crate::QJoint) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QJoint_ptr_append(
self as *const crate::QVectorOfQJoint as *mut crate::QVectorOfQJoint,
t,
)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QJoint*>::append(const QVector<Qt3DCore::QJoint*>& l)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#append-2">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This is an overloaded function.</p>
/// <p>Appends the items of the <i>value</i> vector to this vector.</p>
/// <p>This function was introduced in Qt 5.5.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#operator-lt-lt">operator<<</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#operator-2b-eq">operator+=</a>().</p></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn append_q_vector_of_q_joint(
&self,
l: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QVectorOfQJoint>>,
) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QJoint_ptr_append2(
self as *const crate::QVectorOfQJoint as *mut crate::QVectorOfQJoint,
::cpp_core::CastInto::<::cpp_core::Ref<crate::QVectorOfQJoint>>::cast_into(l)
.as_raw_ptr(),
)
}
/// <p>Returns the item at index position <i>i</i> in the vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```const Qt3DCore::QJoint*& QVector<Qt3DCore::QJoint*>::at(int i) const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#at">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the item at index position <i>i</i> in the vector.</p>
/// <p><i>i</i> must be a valid index position in the vector (i.e., 0 <= <i>i</i> < <a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>()).</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#value">value</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#operator-5b-5d">operator[]</a>().</p></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn at(&self, i: ::std::os::raw::c_int) -> *const *mut crate::QJoint {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QJoint_ptr_at(
self as *const crate::QVectorOfQJoint,
i,
)
}
/// <p>This function is provided for STL compatibility. It is equivalent to <a href="http://doc.qt.io/qt-5/qvector.html#last">last</a>().</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QJoint*& QVector<Qt3DCore::QJoint*>::back()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#back">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This function is provided for STL compatibility. It is equivalent to <a href="http://doc.qt.io/qt-5/qvector.html#last">last</a>().</p></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn back_mut(&self) -> *mut *mut crate::QJoint {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QJoint_ptr_back(
self as *const crate::QVectorOfQJoint as *mut crate::QVectorOfQJoint,
)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```const Qt3DCore::QJoint*& QVector<Qt3DCore::QJoint*>::back() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#back-1">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This is an overloaded function.</p></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn back(&self) -> *const *mut crate::QJoint {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QJoint_ptr_back1(
self as *const crate::QVectorOfQJoint,
)
}
/// <p>Returns the maximum number of items that can be stored in the vector without forcing a reallocation.</p>
///
/// Calls C++ function: <span style='color: green;'>```int QVector<Qt3DCore::QJoint*>::capacity() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#capacity">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the maximum number of items that can be stored in the vector without forcing a reallocation.</p>
/// <p>The sole purpose of this function is to provide a means of fine tuning <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a>'s memory usage. In general, you will rarely ever need to call this function. If you want to know how many items are in the vector, call <a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>().</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#reserve">reserve</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#squeeze">squeeze</a>().</p></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn capacity(&self) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QJoint_ptr_capacity(
self as *const crate::QVectorOfQJoint,
)
}
/// <p>Removes all the elements from the vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QJoint*>::clear()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#clear">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Removes all the elements from the vector.</p>
/// <p><b>Note: </b>Until Qt 5.6, this also released the memory used by the vector. From Qt 5.7, the capacity is preserved. To shed all capacity, swap with a default-constructed vector:</p><pre class="cpp">
///
/// <span class="type"><a href="http://doc.qt.io/qt-5/qvector.html#QVector">QVector</a></span><span class="operator"><</span>T<span class="operator">></span> v <span class="operator">.</span><span class="operator">.</span><span class="operator">.</span>;
/// <span class="type"><a href="http://doc.qt.io/qt-5/qvector.html#QVector">QVector</a></span><span class="operator"><</span>T<span class="operator">></span>()<span class="operator">.</span>swap(v);
/// Q_ASSERT(v<span class="operator">.</span>capacity() <span class="operator">=</span><span class="operator">=</span> <span class="number">0</span>);
///
/// </pre>
/// <p>or call <a href="http://doc.qt.io/qt-5/qvector.html#squeeze">squeeze</a>().</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#squeeze">squeeze</a>().</p></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn clear(&self) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QJoint_ptr_clear(
self as *const crate::QVectorOfQJoint as *mut crate::QVectorOfQJoint,
)
}
/// <p>Returns a const pointer to the data stored in the vector. The pointer can be used to access the items in the vector. The pointer remains valid as long as the vector isn't reallocated.</p>
///
/// Calls C++ function: <span style='color: green;'>```const Qt3DCore::QJoint** QVector<Qt3DCore::QJoint*>::constData() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#constData">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns a const pointer to the data stored in the vector. The pointer can be used to access the items in the vector. The pointer remains valid as long as the vector isn't reallocated.</p>
/// <p>This function is mostly useful to pass a vector to a function that accepts a plain C++ array.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#data">data</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#operator-5b-5d">operator[]</a>().</p></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn const_data(&self) -> *const *mut crate::QJoint {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QJoint_ptr_constData(
self as *const crate::QVectorOfQJoint,
)
}
/// <p>Returns a const reference to the first item in the vector. This function assumes that the vector isn't empty.</p>
///
/// Calls C++ function: <span style='color: green;'>```const Qt3DCore::QJoint*& QVector<Qt3DCore::QJoint*>::constFirst() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#constFirst">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns a const reference to the first item in the vector. This function assumes that the vector isn't empty.</p>
/// <p>This function was introduced in Qt 5.6.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#constLast">constLast</a>(), <a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>(), and <a href="http://doc.qt.io/qt-5/qvector.html#first">first</a>().</p></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn const_first(&self) -> *const *mut crate::QJoint {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QJoint_ptr_constFirst(
self as *const crate::QVectorOfQJoint,
)
}
/// <p>Returns a const reference to the last item in the vector. This function assumes that the vector isn't empty.</p>
///
/// Calls C++ function: <span style='color: green;'>```const Qt3DCore::QJoint*& QVector<Qt3DCore::QJoint*>::constLast() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#constLast">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns a const reference to the last item in the vector. This function assumes that the vector isn't empty.</p>
/// <p>This function was introduced in Qt 5.6.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#constFirst">constFirst</a>(), <a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>(), and <a href="http://doc.qt.io/qt-5/qvector.html#last">last</a>().</p></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn const_last(&self) -> *const *mut crate::QJoint {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QJoint_ptr_constLast(
self as *const crate::QVectorOfQJoint,
)
}
/// <p>Returns <code>true</code> if the vector contains an occurrence of <i>value</i>; otherwise returns <code>false</code>.</p>
///
/// Calls C++ function: <span style='color: green;'>```bool QVector<Qt3DCore::QJoint*>::contains(const Qt3DCore::QJoint*& t) const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#contains">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns <code>true</code> if the vector contains an occurrence of <i>value</i>; otherwise returns <code>false</code>.</p>
/// <p>This function requires the value type to have an implementation of <code>operator==()</code>.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#indexOf">indexOf</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#count-1">count</a>().</p></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn contains(&self, t: *const *mut crate::QJoint) -> bool {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QJoint_ptr_contains(
self as *const crate::QVectorOfQJoint,
t,
)
}
/// <p>Assigns <i>other</i> to this vector and returns a reference to this vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```QVector<Qt3DCore::QJoint*>& QVector<Qt3DCore::QJoint*>::operator=(const QVector<Qt3DCore::QJoint*>& v)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#operator-eq">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Assigns <i>other</i> to this vector and returns a reference to this vector.</p></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn copy_from(
&self,
v: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QVectorOfQJoint>>,
) -> ::cpp_core::Ref<crate::QVectorOfQJoint> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QJoint_ptr_operator_(
self as *const crate::QVectorOfQJoint as *mut crate::QVectorOfQJoint,
::cpp_core::CastInto::<::cpp_core::Ref<crate::QVectorOfQJoint>>::cast_into(v)
.as_raw_ptr(),
)
};
::cpp_core::Ref::from_raw(ffi_result).expect("attempted to construct a null Ref")
}
/// <p>Returns the number of occurrences of <i>value</i> in the vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```int QVector<Qt3DCore::QJoint*>::count(const Qt3DCore::QJoint*& t) const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#count">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the number of occurrences of <i>value</i> in the vector.</p>
/// <p>This function requires the value type to have an implementation of <code>operator==()</code>.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#contains">contains</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#indexOf">indexOf</a>().</p></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn count_1a(&self, t: *const *mut crate::QJoint) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QJoint_ptr_count(
self as *const crate::QVectorOfQJoint,
t,
)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```int QVector<Qt3DCore::QJoint*>::count() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#count-1">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This is an overloaded function.</p>
/// <p>Same as <a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>().</p></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn count_0a(&self) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QJoint_ptr_count1(
self as *const crate::QVectorOfQJoint,
)
}
/// <p>Returns a pointer to the data stored in the vector. The pointer can be used to access and modify the items in the vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QJoint** QVector<Qt3DCore::QJoint*>::data()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#data">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns a pointer to the data stored in the vector. The pointer can be used to access and modify the items in the vector.</p>
/// <p>Example:</p>
/// <pre class="cpp">
///
/// <span class="type"><a href="http://doc.qt.io/qt-5/qvector.html#QVector">QVector</a></span><span class="operator"><</span><span class="type">int</span><span class="operator">></span> vector(<span class="number">10</span>);
/// <span class="type">int</span> <span class="operator">*</span>data <span class="operator">=</span> vector<span class="operator">.</span>data();
/// <span class="keyword">for</span> (<span class="type">int</span> i <span class="operator">=</span> <span class="number">0</span>; i <span class="operator"><</span> <span class="number">10</span>; <span class="operator">+</span><span class="operator">+</span>i)
///   data<span class="operator">[</span>i<span class="operator">]</span> <span class="operator">=</span> <span class="number">2</span> <span class="operator">*</span> i;
///
/// </pre>
/// <p>The pointer remains valid as long as the vector isn't reallocated.</p>
/// <p>This function is mostly useful to pass a vector to a function that accepts a plain C++ array.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#constData">constData</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#operator-5b-5d">operator[]</a>().</p></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn data_mut(&self) -> *mut *mut crate::QJoint {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QJoint_ptr_data(
self as *const crate::QVectorOfQJoint as *mut crate::QVectorOfQJoint,
)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```const Qt3DCore::QJoint** QVector<Qt3DCore::QJoint*>::data() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#data-1">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This is an overloaded function.</p></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn data(&self) -> *const *mut crate::QJoint {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QJoint_ptr_data1(
self as *const crate::QVectorOfQJoint,
)
}
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QJoint*>::detach()```</span>.
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn detach(&self) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QJoint_ptr_detach(
self as *const crate::QVectorOfQJoint as *mut crate::QVectorOfQJoint,
)
}
/// <p>This function is provided for STL compatibility. It is equivalent to <a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>(), returning <code>true</code> if the vector is empty; otherwise returns <code>false</code>.</p>
///
/// Calls C++ function: <span style='color: green;'>```bool QVector<Qt3DCore::QJoint*>::empty() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#empty">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This function is provided for STL compatibility. It is equivalent to <a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>(), returning <code>true</code> if the vector is empty; otherwise returns <code>false</code>.</p></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn empty(&self) -> bool {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QJoint_ptr_empty(
self as *const crate::QVectorOfQJoint,
)
}
/// <p>Returns <code>true</code> if this vector is not empty and its last item is equal to <i>value</i>; otherwise returns <code>false</code>.</p>
///
/// Calls C++ function: <span style='color: green;'>```bool QVector<Qt3DCore::QJoint*>::endsWith(const Qt3DCore::QJoint*& t) const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#endsWith">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns <code>true</code> if this vector is not empty and its last item is equal to <i>value</i>; otherwise returns <code>false</code>.</p>
/// <p>This function was introduced in Qt 4.5.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#last">last</a>().</p></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn ends_with(&self, t: *const *mut crate::QJoint) -> bool {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QJoint_ptr_endsWith(
self as *const crate::QVectorOfQJoint,
t,
)
}
/// <p>Assigns <i>value</i> to all items in the vector. If <i>size</i> is different from -1 (the default), the vector is resized to size <i>size</i> beforehand.</p>
///
/// Calls C++ function: <span style='color: green;'>```QVector<Qt3DCore::QJoint*>& QVector<Qt3DCore::QJoint*>::fill(const Qt3DCore::QJoint*& t, int size = …)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#fill">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Assigns <i>value</i> to all items in the vector. If <i>size</i> is different from -1 (the default), the vector is resized to size <i>size</i> beforehand.</p>
/// <p>Example:</p>
/// <pre class="cpp">
///
/// <span class="type"><a href="http://doc.qt.io/qt-5/qvector.html#QVector">QVector</a></span><span class="operator"><</span><span class="type"><a href="http://doc.qt.io/qt-5/qstring.html">QString</a></span><span class="operator">></span> vector(<span class="number">3</span>);
/// vector<span class="operator">.</span>fill(<span class="string">"Yes"</span>);
/// <span class="comment">// vector: ["Yes", "Yes", "Yes"]</span>
///
/// vector<span class="operator">.</span>fill(<span class="string">"oh"</span><span class="operator">,</span> <span class="number">5</span>);
/// <span class="comment">// vector: ["oh", "oh", "oh", "oh", "oh"]</span>
///
/// </pre>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#resize">resize</a>().</p></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn fill_2a(
&self,
t: *const *mut crate::QJoint,
size: ::std::os::raw::c_int,
) -> ::cpp_core::Ref<crate::QVectorOfQJoint> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QJoint_ptr_fill(
self as *const crate::QVectorOfQJoint as *mut crate::QVectorOfQJoint,
t,
size,
)
};
::cpp_core::Ref::from_raw(ffi_result).expect("attempted to construct a null Ref")
}
/// <p>Assigns <i>value</i> to all items in the vector. If <i>size</i> is different from -1 (the default), the vector is resized to size <i>size</i> beforehand.</p>
///
/// Calls C++ function: <span style='color: green;'>```QVector<Qt3DCore::QJoint*>& QVector<Qt3DCore::QJoint*>::fill(const Qt3DCore::QJoint*& t)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#fill">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Assigns <i>value</i> to all items in the vector. If <i>size</i> is different from -1 (the default), the vector is resized to size <i>size</i> beforehand.</p>
/// <p>Example:</p>
/// <pre class="cpp">
///
/// <span class="type"><a href="http://doc.qt.io/qt-5/qvector.html#QVector">QVector</a></span><span class="operator"><</span><span class="type"><a href="http://doc.qt.io/qt-5/qstring.html">QString</a></span><span class="operator">></span> vector(<span class="number">3</span>);
/// vector<span class="operator">.</span>fill(<span class="string">"Yes"</span>);
/// <span class="comment">// vector: ["Yes", "Yes", "Yes"]</span>
///
/// vector<span class="operator">.</span>fill(<span class="string">"oh"</span><span class="operator">,</span> <span class="number">5</span>);
/// <span class="comment">// vector: ["oh", "oh", "oh", "oh", "oh"]</span>
///
/// </pre>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#resize">resize</a>().</p></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn fill_1a(
&self,
t: *const *mut crate::QJoint,
) -> ::cpp_core::Ref<crate::QVectorOfQJoint> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QJoint_ptr_fill1(
self as *const crate::QVectorOfQJoint as *mut crate::QVectorOfQJoint,
t,
)
};
::cpp_core::Ref::from_raw(ffi_result).expect("attempted to construct a null Ref")
}
/// <p>Returns a reference to the first item in the vector. This function assumes that the vector isn't empty.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QJoint*& QVector<Qt3DCore::QJoint*>::first()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#first">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns a reference to the first item in the vector. This function assumes that the vector isn't empty.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#last">last</a>(), <a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>(), and <a href="http://doc.qt.io/qt-5/qvector.html#constFirst">constFirst</a>().</p></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn first_mut(&self) -> *mut *mut crate::QJoint {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QJoint_ptr_first(
self as *const crate::QVectorOfQJoint as *mut crate::QVectorOfQJoint,
)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```const Qt3DCore::QJoint*& QVector<Qt3DCore::QJoint*>::first() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#first-1">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This is an overloaded function.</p></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn first(&self) -> *const *mut crate::QJoint {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QJoint_ptr_first1(
self as *const crate::QVectorOfQJoint,
)
}
/// <p>This function is provided for STL compatibility. It is equivalent to <a href="http://doc.qt.io/qt-5/qvector.html#first">first</a>().</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QJoint*& QVector<Qt3DCore::QJoint*>::front()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#front">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This function is provided for STL compatibility. It is equivalent to <a href="http://doc.qt.io/qt-5/qvector.html#first">first</a>().</p></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn front_mut(&self) -> *mut *mut crate::QJoint {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QJoint_ptr_front(
self as *const crate::QVectorOfQJoint as *mut crate::QVectorOfQJoint,
)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```const Qt3DCore::QJoint*& QVector<Qt3DCore::QJoint*>::front() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#front-1">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This is an overloaded function.</p></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn front(&self) -> *const *mut crate::QJoint {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QJoint_ptr_front1(
self as *const crate::QVectorOfQJoint,
)
}
/// <p>Returns the item at index position <i>i</i> as a modifiable reference.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QJoint*& QVector<Qt3DCore::QJoint*>::operator[](int i)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#operator-5b-5d">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the item at index position <i>i</i> as a modifiable reference.</p>
/// <p><i>i</i> must be a valid index position in the vector (i.e., 0 <= <i>i</i> < <a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>()).</p>
/// <p>Note that using non-const operators can cause <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> to do a deep copy.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#at">at</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#value">value</a>().</p></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn index_mut(&self, i: ::std::os::raw::c_int) -> *mut *mut crate::QJoint {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QJoint_ptr_operator__2(
self as *const crate::QVectorOfQJoint as *mut crate::QVectorOfQJoint,
i,
)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```const Qt3DCore::QJoint*& QVector<Qt3DCore::QJoint*>::operator[](int i) const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#operator-5b-5d-1">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This is an overloaded function.</p>
/// <p>Same as at(<i>i</i>).</p></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn index(&self, i: ::std::os::raw::c_int) -> *const *mut crate::QJoint {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QJoint_ptr_operator__3(
self as *const crate::QVectorOfQJoint,
i,
)
}
/// <p>Returns the index position of the first occurrence of <i>value</i> in the vector, searching forward from index position <i>from</i>. Returns -1 if no item matched.</p>
///
/// Calls C++ function: <span style='color: green;'>```int QVector<Qt3DCore::QJoint*>::indexOf(const Qt3DCore::QJoint*& t, int from = …) const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#indexOf">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the index position of the first occurrence of <i>value</i> in the vector, searching forward from index position <i>from</i>. Returns -1 if no item matched.</p>
/// <p>Example:</p>
/// <pre class="cpp">
///
/// <span class="type"><a href="http://doc.qt.io/qt-5/qvector.html#QVector">QVector</a></span><span class="operator"><</span><span class="type"><a href="http://doc.qt.io/qt-5/qstring.html">QString</a></span><span class="operator">></span> vector;
/// vector <span class="operator"><</span><span class="operator"><</span> <span class="string">"A"</span> <span class="operator"><</span><span class="operator"><</span> <span class="string">"B"</span> <span class="operator"><</span><span class="operator"><</span> <span class="string">"C"</span> <span class="operator"><</span><span class="operator"><</span> <span class="string">"B"</span> <span class="operator"><</span><span class="operator"><</span> <span class="string">"A"</span>;
/// vector<span class="operator">.</span>indexOf(<span class="string">"B"</span>); <span class="comment">// returns 1</span>
/// vector<span class="operator">.</span>indexOf(<span class="string">"B"</span><span class="operator">,</span> <span class="number">1</span>); <span class="comment">// returns 1</span>
/// vector<span class="operator">.</span>indexOf(<span class="string">"B"</span><span class="operator">,</span> <span class="number">2</span>); <span class="comment">// returns 3</span>
/// vector<span class="operator">.</span>indexOf(<span class="string">"X"</span>); <span class="comment">// returns -1</span>
///
/// </pre>
/// <p>This function requires the value type to have an implementation of <code>operator==()</code>.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#lastIndexOf">lastIndexOf</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#contains">contains</a>().</p></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn index_of_2a(
&self,
t: *const *mut crate::QJoint,
from: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QJoint_ptr_indexOf(
self as *const crate::QVectorOfQJoint,
t,
from,
)
}
/// <p>Returns the index position of the first occurrence of <i>value</i> in the vector, searching forward from index position <i>from</i>. Returns -1 if no item matched.</p>
///
/// Calls C++ function: <span style='color: green;'>```int QVector<Qt3DCore::QJoint*>::indexOf(const Qt3DCore::QJoint*& t) const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#indexOf">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the index position of the first occurrence of <i>value</i> in the vector, searching forward from index position <i>from</i>. Returns -1 if no item matched.</p>
/// <p>Example:</p>
/// <pre class="cpp">
///
/// <span class="type"><a href="http://doc.qt.io/qt-5/qvector.html#QVector">QVector</a></span><span class="operator"><</span><span class="type"><a href="http://doc.qt.io/qt-5/qstring.html">QString</a></span><span class="operator">></span> vector;
/// vector <span class="operator"><</span><span class="operator"><</span> <span class="string">"A"</span> <span class="operator"><</span><span class="operator"><</span> <span class="string">"B"</span> <span class="operator"><</span><span class="operator"><</span> <span class="string">"C"</span> <span class="operator"><</span><span class="operator"><</span> <span class="string">"B"</span> <span class="operator"><</span><span class="operator"><</span> <span class="string">"A"</span>;
/// vector<span class="operator">.</span>indexOf(<span class="string">"B"</span>); <span class="comment">// returns 1</span>
/// vector<span class="operator">.</span>indexOf(<span class="string">"B"</span><span class="operator">,</span> <span class="number">1</span>); <span class="comment">// returns 1</span>
/// vector<span class="operator">.</span>indexOf(<span class="string">"B"</span><span class="operator">,</span> <span class="number">2</span>); <span class="comment">// returns 3</span>
/// vector<span class="operator">.</span>indexOf(<span class="string">"X"</span>); <span class="comment">// returns -1</span>
///
/// </pre>
/// <p>This function requires the value type to have an implementation of <code>operator==()</code>.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#lastIndexOf">lastIndexOf</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#contains">contains</a>().</p></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn index_of_1a(&self, t: *const *mut crate::QJoint) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QJoint_ptr_indexOf1(
self as *const crate::QVectorOfQJoint,
t,
)
}
/// <p>Inserts <i>value</i> at index position <i>i</i> in the vector. If <i>i</i> is 0, the value is prepended to the vector. If <i>i</i> is <a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>(), the value is appended to the vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QJoint*>::insert(int i, const Qt3DCore::QJoint*& t)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#insert">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Inserts <i>value</i> at index position <i>i</i> in the vector. If <i>i</i> is 0, the value is prepended to the vector. If <i>i</i> is <a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>(), the value is appended to the vector.</p>
/// <p>Example:</p>
/// <pre class="cpp">
///
/// <span class="type"><a href="http://doc.qt.io/qt-5/qvector.html#QVector">QVector</a></span><span class="operator"><</span><span class="type"><a href="http://doc.qt.io/qt-5/qstring.html">QString</a></span><span class="operator">></span> vector;
/// vector <span class="operator"><</span><span class="operator"><</span> <span class="string">"alpha"</span> <span class="operator"><</span><span class="operator"><</span> <span class="string">"beta"</span> <span class="operator"><</span><span class="operator"><</span> <span class="string">"delta"</span>;
/// vector<span class="operator">.</span>insert(<span class="number">2</span><span class="operator">,</span> <span class="string">"gamma"</span>);
/// <span class="comment">// vector: ["alpha", "beta", "gamma", "delta"]</span>
///
/// </pre>
/// <p>For large vectors, this operation can be slow (<a href="http://doc.qt.io/qt-5/containers.html#linear-time">linear time</a>), because it requires moving all the items at indexes <i>i</i> and above by one position further in memory. If you want a container class that provides a fast insert() function, use <a href="http://doc.qt.io/qt-5/qlinkedlist.html">QLinkedList</a> instead.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#append">append</a>(), <a href="http://doc.qt.io/qt-5/qvector.html#prepend">prepend</a>(), and <a href="http://doc.qt.io/qt-5/qvector.html#remove">remove</a>().</p></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn insert_2a(&self, i: ::std::os::raw::c_int, t: *const *mut crate::QJoint) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QJoint_ptr_insert(
self as *const crate::QVectorOfQJoint as *mut crate::QVectorOfQJoint,
i,
t,
)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QJoint*>::insert(int i, int n, const Qt3DCore::QJoint*& t)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#insert-1">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This is an overloaded function.</p>
/// <p>Inserts <i>count</i> copies of <i>value</i> at index position <i>i</i> in the vector.</p>
/// <p>Example:</p>
/// <pre class="cpp">
///
/// <span class="type"><a href="http://doc.qt.io/qt-5/qvector.html#QVector">QVector</a></span><span class="operator"><</span><span class="type">double</span><span class="operator">></span> vector;
/// vector <span class="operator"><</span><span class="operator"><</span> <span class="number">2.718</span> <span class="operator"><</span><span class="operator"><</span> <span class="number">1.442</span> <span class="operator"><</span><span class="operator"><</span> <span class="number">0.4342</span>;
/// vector<span class="operator">.</span>insert(<span class="number">1</span><span class="operator">,</span> <span class="number">3</span><span class="operator">,</span> <span class="number">9.9</span>);
/// <span class="comment">// vector: [2.718, 9.9, 9.9, 9.9, 1.442, 0.4342]</span>
///
/// </pre></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn insert_3a(
&self,
i: ::std::os::raw::c_int,
n: ::std::os::raw::c_int,
t: *const *mut crate::QJoint,
) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QJoint_ptr_insert1(
self as *const crate::QVectorOfQJoint as *mut crate::QVectorOfQJoint,
i,
n,
t,
)
}
/// Calls C++ function: <span style='color: green;'>```bool QVector<Qt3DCore::QJoint*>::isDetached() const```</span>.
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn is_detached(&self) -> bool {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QJoint_ptr_isDetached(
self as *const crate::QVectorOfQJoint,
)
}
/// <p>Returns <code>true</code> if the vector has size 0; otherwise returns <code>false</code>.</p>
///
/// Calls C++ function: <span style='color: green;'>```bool QVector<Qt3DCore::QJoint*>::isEmpty() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns <code>true</code> if the vector has size 0; otherwise returns <code>false</code>.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#resize">resize</a>().</p></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn is_empty(&self) -> bool {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QJoint_ptr_isEmpty(
self as *const crate::QVectorOfQJoint,
)
}
/// Calls C++ function: <span style='color: green;'>```bool QVector<Qt3DCore::QJoint*>::isSharedWith(const QVector<Qt3DCore::QJoint*>& other) const```</span>.
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn is_shared_with(
&self,
other: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QVectorOfQJoint>>,
) -> bool {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QJoint_ptr_isSharedWith(
self as *const crate::QVectorOfQJoint,
::cpp_core::CastInto::<::cpp_core::Ref<crate::QVectorOfQJoint>>::cast_into(other)
.as_raw_ptr(),
)
}
/// <p>Returns a reference to the last item in the vector. This function assumes that the vector isn't empty.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QJoint*& QVector<Qt3DCore::QJoint*>::last()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#last">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns a reference to the last item in the vector. This function assumes that the vector isn't empty.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#first">first</a>(), <a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>(), and <a href="http://doc.qt.io/qt-5/qvector.html#constLast">constLast</a>().</p></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn last_mut(&self) -> *mut *mut crate::QJoint {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QJoint_ptr_last(
self as *const crate::QVectorOfQJoint as *mut crate::QVectorOfQJoint,
)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```const Qt3DCore::QJoint*& QVector<Qt3DCore::QJoint*>::last() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#last-1">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This is an overloaded function.</p></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn last(&self) -> *const *mut crate::QJoint {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QJoint_ptr_last1(
self as *const crate::QVectorOfQJoint,
)
}
/// <p>Returns the index position of the last occurrence of the value <i>value</i> in the vector, searching backward from index position <i>from</i>. If <i>from</i> is -1 (the default), the search starts at the last item. Returns -1 if no item matched.</p>
///
/// Calls C++ function: <span style='color: green;'>```int QVector<Qt3DCore::QJoint*>::lastIndexOf(const Qt3DCore::QJoint*& t, int from = …) const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#lastIndexOf">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the index position of the last occurrence of the value <i>value</i> in the vector, searching backward from index position <i>from</i>. If <i>from</i> is -1 (the default), the search starts at the last item. Returns -1 if no item matched.</p>
/// <p>Example:</p>
/// <pre class="cpp">
///
/// <span class="type"><a href="http://doc.qt.io/qt-5/qlist.html">QList</a></span><span class="operator"><</span><span class="type"><a href="http://doc.qt.io/qt-5/qstring.html">QString</a></span><span class="operator">></span> vector;
/// vector <span class="operator"><</span><span class="operator"><</span> <span class="string">"A"</span> <span class="operator"><</span><span class="operator"><</span> <span class="string">"B"</span> <span class="operator"><</span><span class="operator"><</span> <span class="string">"C"</span> <span class="operator"><</span><span class="operator"><</span> <span class="string">"B"</span> <span class="operator"><</span><span class="operator"><</span> <span class="string">"A"</span>;
/// vector<span class="operator">.</span>lastIndexOf(<span class="string">"B"</span>); <span class="comment">// returns 3</span>
/// vector<span class="operator">.</span>lastIndexOf(<span class="string">"B"</span><span class="operator">,</span> <span class="number">3</span>); <span class="comment">// returns 3</span>
/// vector<span class="operator">.</span>lastIndexOf(<span class="string">"B"</span><span class="operator">,</span> <span class="number">2</span>); <span class="comment">// returns 1</span>
/// vector<span class="operator">.</span>lastIndexOf(<span class="string">"X"</span>); <span class="comment">// returns -1</span>
///
/// </pre>
/// <p>This function requires the value type to have an implementation of <code>operator==()</code>.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#indexOf">indexOf</a>().</p></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn last_index_of_2a(
&self,
t: *const *mut crate::QJoint,
from: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QJoint_ptr_lastIndexOf(
self as *const crate::QVectorOfQJoint,
t,
from,
)
}
/// <p>Returns the index position of the last occurrence of the value <i>value</i> in the vector, searching backward from index position <i>from</i>. If <i>from</i> is -1 (the default), the search starts at the last item. Returns -1 if no item matched.</p>
///
/// Calls C++ function: <span style='color: green;'>```int QVector<Qt3DCore::QJoint*>::lastIndexOf(const Qt3DCore::QJoint*& t) const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#lastIndexOf">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the index position of the last occurrence of the value <i>value</i> in the vector, searching backward from index position <i>from</i>. If <i>from</i> is -1 (the default), the search starts at the last item. Returns -1 if no item matched.</p>
/// <p>Example:</p>
/// <pre class="cpp">
///
/// <span class="type"><a href="http://doc.qt.io/qt-5/qlist.html">QList</a></span><span class="operator"><</span><span class="type"><a href="http://doc.qt.io/qt-5/qstring.html">QString</a></span><span class="operator">></span> vector;
/// vector <span class="operator"><</span><span class="operator"><</span> <span class="string">"A"</span> <span class="operator"><</span><span class="operator"><</span> <span class="string">"B"</span> <span class="operator"><</span><span class="operator"><</span> <span class="string">"C"</span> <span class="operator"><</span><span class="operator"><</span> <span class="string">"B"</span> <span class="operator"><</span><span class="operator"><</span> <span class="string">"A"</span>;
/// vector<span class="operator">.</span>lastIndexOf(<span class="string">"B"</span>); <span class="comment">// returns 3</span>
/// vector<span class="operator">.</span>lastIndexOf(<span class="string">"B"</span><span class="operator">,</span> <span class="number">3</span>); <span class="comment">// returns 3</span>
/// vector<span class="operator">.</span>lastIndexOf(<span class="string">"B"</span><span class="operator">,</span> <span class="number">2</span>); <span class="comment">// returns 1</span>
/// vector<span class="operator">.</span>lastIndexOf(<span class="string">"X"</span>); <span class="comment">// returns -1</span>
///
/// </pre>
/// <p>This function requires the value type to have an implementation of <code>operator==()</code>.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#indexOf">indexOf</a>().</p></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn last_index_of_1a(&self, t: *const *mut crate::QJoint) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QJoint_ptr_lastIndexOf1(
self as *const crate::QVectorOfQJoint,
t,
)
}
/// <p>Same as <a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#count-1">count</a>().</p>
///
/// Calls C++ function: <span style='color: green;'>```int QVector<Qt3DCore::QJoint*>::length() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#length">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Same as <a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#count-1">count</a>().</p>
/// <p>Provided for compatibility with <a href="http://doc.qt.io/qt-5/qlist.html">QList</a>.</p>
/// <p>This function was introduced in Qt 5.2.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>(), <a href="http://doc.qt.io/qt-5/qvector.html#count-1">count</a>(), and <a href="http://doc.qt.io/qt-5/qlist.html#length">QList::length</a>().</p></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn length(&self) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QJoint_ptr_length(
self as *const crate::QVectorOfQJoint,
)
}
/// <p>Returns a sub-vector which contains elements from this vector, starting at position <i>pos</i>. If <i>length</i> is -1 (the default), all elements after <i>pos</i> are included; otherwise <i>length</i> elements (or all remaining elements if there are less than <i>length</i> elements) are included.</p>
///
/// Calls C++ function: <span style='color: green;'>```QVector<Qt3DCore::QJoint*> QVector<Qt3DCore::QJoint*>::mid(int pos, int len = …) const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#mid">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns a sub-vector which contains elements from this vector, starting at position <i>pos</i>. If <i>length</i> is -1 (the default), all elements after <i>pos</i> are included; otherwise <i>length</i> elements (or all remaining elements if there are less than <i>length</i> elements) are included.</p></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn mid_2a(
&self,
pos: ::std::os::raw::c_int,
len: ::std::os::raw::c_int,
) -> ::cpp_core::CppBox<crate::QVectorOfQJoint> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QJoint_ptr_mid(
self as *const crate::QVectorOfQJoint,
pos,
len,
)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Returns a sub-vector which contains elements from this vector, starting at position <i>pos</i>. If <i>length</i> is -1 (the default), all elements after <i>pos</i> are included; otherwise <i>length</i> elements (or all remaining elements if there are less than <i>length</i> elements) are included.</p>
///
/// Calls C++ function: <span style='color: green;'>```QVector<Qt3DCore::QJoint*> QVector<Qt3DCore::QJoint*>::mid(int pos) const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#mid">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns a sub-vector which contains elements from this vector, starting at position <i>pos</i>. If <i>length</i> is -1 (the default), all elements after <i>pos</i> are included; otherwise <i>length</i> elements (or all remaining elements if there are less than <i>length</i> elements) are included.</p></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn mid_1a(
&self,
pos: ::std::os::raw::c_int,
) -> ::cpp_core::CppBox<crate::QVectorOfQJoint> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QJoint_ptr_mid1(
self as *const crate::QVectorOfQJoint,
pos,
)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Moves the item at index position <i>from</i> to index position <i>to</i>.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QJoint*>::move(int from, int to)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#move">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Moves the item at index position <i>from</i> to index position <i>to</i>.</p>
/// <p>Provided for compatibility with <a href="http://doc.qt.io/qt-5/qlist.html">QList</a>.</p>
/// <p>This function was introduced in Qt 5.6.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qlist.html#move">QList::move</a>().</p></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn move_(&self, from: ::std::os::raw::c_int, to: ::std::os::raw::c_int) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QJoint_ptr_move(
self as *const crate::QVectorOfQJoint as *mut crate::QVectorOfQJoint,
from,
to,
)
}
/// <p>Constructs an empty vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void QVector<Qt3DCore::QJoint*>::QVector()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#QVector">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Constructs an empty vector.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#resize">resize</a>().</p></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn new_0a() -> ::cpp_core::CppBox<crate::QVectorOfQJoint> {
let ffi_result = { crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QJoint_ptr_QVector() };
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Constructs a vector with an initial size of <i>size</i> elements.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void QVector<Qt3DCore::QJoint*>::QVector(int size)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#QVector-1">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Constructs a vector with an initial size of <i>size</i> elements.</p>
/// <p>The elements are initialized with a <a href="http://doc.qt.io/qt-5/containers.html#default-constructed-value">default-constructed value</a>.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#resize">resize</a>().</p></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn new_1a(
size: ::std::os::raw::c_int,
) -> ::cpp_core::CppBox<crate::QVectorOfQJoint> {
let ffi_result =
{ crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QJoint_ptr_QVector1(size) };
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Constructs a vector with an initial size of <i>size</i> elements. Each element is initialized with <i>value</i>.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void QVector<Qt3DCore::QJoint*>::QVector(int size, const Qt3DCore::QJoint*& t)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#QVector-2">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Constructs a vector with an initial size of <i>size</i> elements. Each element is initialized with <i>value</i>.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#resize">resize</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#fill">fill</a>().</p></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn new_2a(
size: ::std::os::raw::c_int,
t: *const *mut crate::QJoint,
) -> ::cpp_core::CppBox<crate::QVectorOfQJoint> {
let ffi_result =
{ crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QJoint_ptr_QVector2(size, t) };
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Constructs a copy of <i>other</i>.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void QVector<Qt3DCore::QJoint*>::QVector(const QVector<Qt3DCore::QJoint*>& v)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#QVector-3">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Constructs a copy of <i>other</i>.</p>
/// <p>This operation takes <a href="http://doc.qt.io/qt-5/containers.html#algorithmic-complexity">constant time</a>, because <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> is <a href="http://doc.qt.io/qt-5/implicit-sharing.html">implicitly shared</a>. This makes returning a <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> from a function very fast. If a shared instance is modified, it will be copied (copy-on-write), and that takes <a href="http://doc.qt.io/qt-5/containers.html#algorithmic-complexity">linear time</a>.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#operator-eq">operator=</a>().</p></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn new_copy(
v: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QVectorOfQJoint>>,
) -> ::cpp_core::CppBox<crate::QVectorOfQJoint> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QJoint_ptr_QVector3(
::cpp_core::CastInto::<::cpp_core::Ref<crate::QVectorOfQJoint>>::cast_into(v)
.as_raw_ptr(),
)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>This function is provided for STL compatibility. It is equivalent to <a href="http://doc.qt.io/qt-5/qvector.html#removeLast">removeLast</a>().</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QJoint*>::pop_back()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#pop_back">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This function is provided for STL compatibility. It is equivalent to <a href="http://doc.qt.io/qt-5/qvector.html#removeLast">removeLast</a>().</p></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn pop_back(&self) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QJoint_ptr_pop_back(
self as *const crate::QVectorOfQJoint as *mut crate::QVectorOfQJoint,
)
}
/// <p>This function is provided for STL compatibility. It is equivalent to <a href="http://doc.qt.io/qt-5/qvector.html#removeFirst">removeFirst</a>().</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QJoint*>::pop_front()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#pop_front">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This function is provided for STL compatibility. It is equivalent to <a href="http://doc.qt.io/qt-5/qvector.html#removeFirst">removeFirst</a>().</p></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn pop_front(&self) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QJoint_ptr_pop_front(
self as *const crate::QVectorOfQJoint as *mut crate::QVectorOfQJoint,
)
}
/// <p>Inserts <i>value</i> at the beginning of the vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QJoint*>::prepend(const Qt3DCore::QJoint*& t)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#prepend">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Inserts <i>value</i> at the beginning of the vector.</p>
/// <p>Example:</p>
/// <pre class="cpp">
///
/// <span class="type"><a href="http://doc.qt.io/qt-5/qvector.html#QVector">QVector</a></span><span class="operator"><</span><span class="type"><a href="http://doc.qt.io/qt-5/qstring.html">QString</a></span><span class="operator">></span> vector;
/// vector<span class="operator">.</span>prepend(<span class="string">"one"</span>);
/// vector<span class="operator">.</span>prepend(<span class="string">"two"</span>);
/// vector<span class="operator">.</span>prepend(<span class="string">"three"</span>);
/// <span class="comment">// vector: ["three", "two", "one"]</span>
///
/// </pre>
/// <p>This is the same as vector.insert(0, <i>value</i>).</p>
/// <p>For large vectors, this operation can be slow (<a href="http://doc.qt.io/qt-5/containers.html#linear-time">linear time</a>), because it requires moving all the items in the vector by one position further in memory. If you want a container class that provides a fast prepend() function, use <a href="http://doc.qt.io/qt-5/qlist.html">QList</a> or <a href="http://doc.qt.io/qt-5/qlinkedlist.html">QLinkedList</a> instead.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#append">append</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#insert">insert</a>().</p></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn prepend(&self, t: *const *mut crate::QJoint) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QJoint_ptr_prepend(
self as *const crate::QVectorOfQJoint as *mut crate::QVectorOfQJoint,
t,
)
}
/// <p>This function is provided for STL compatibility. It is equivalent to append(<i>value</i>).</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QJoint*>::push_back(const Qt3DCore::QJoint*& t)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#push_back">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This function is provided for STL compatibility. It is equivalent to append(<i>value</i>).</p></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn push_back(&self, t: *const *mut crate::QJoint) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QJoint_ptr_push_back(
self as *const crate::QVectorOfQJoint as *mut crate::QVectorOfQJoint,
t,
)
}
/// <p>This function is provided for STL compatibility. It is equivalent to prepend(<i>value</i>).</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QJoint*>::push_front(const Qt3DCore::QJoint*& t)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#push_front">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This function is provided for STL compatibility. It is equivalent to prepend(<i>value</i>).</p></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn push_front(&self, t: *const *mut crate::QJoint) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QJoint_ptr_push_front(
self as *const crate::QVectorOfQJoint as *mut crate::QVectorOfQJoint,
t,
)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QJoint*>::remove(int i)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#remove">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This is an overloaded function.</p>
/// <p>Removes the element at index position <i>i</i>.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#insert">insert</a>(), <a href="http://doc.qt.io/qt-5/qvector.html#replace">replace</a>(), and <a href="http://doc.qt.io/qt-5/qvector.html#fill">fill</a>().</p></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn remove_1a(&self, i: ::std::os::raw::c_int) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QJoint_ptr_remove(
self as *const crate::QVectorOfQJoint as *mut crate::QVectorOfQJoint,
i,
)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QJoint*>::remove(int i, int n)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#remove-1">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This is an overloaded function.</p>
/// <p>Removes <i>count</i> elements from the middle of the vector, starting at index position <i>i</i>.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#insert">insert</a>(), <a href="http://doc.qt.io/qt-5/qvector.html#replace">replace</a>(), and <a href="http://doc.qt.io/qt-5/qvector.html#fill">fill</a>().</p></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn remove_2a(&self, i: ::std::os::raw::c_int, n: ::std::os::raw::c_int) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QJoint_ptr_remove1(
self as *const crate::QVectorOfQJoint as *mut crate::QVectorOfQJoint,
i,
n,
)
}
/// <p>Removes all elements that compare equal to <i>t</i> from the vector. Returns the number of elements removed, if any.</p>
///
/// Calls C++ function: <span style='color: green;'>```int QVector<Qt3DCore::QJoint*>::removeAll(const Qt3DCore::QJoint*& t)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#removeAll">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Removes all elements that compare equal to <i>t</i> from the vector. Returns the number of elements removed, if any.</p>
/// <p>Provided for compatibility with <a href="http://doc.qt.io/qt-5/qlist.html">QList</a>.</p>
/// <p>This function was introduced in Qt 5.4.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#removeOne">removeOne</a>() and <a href="http://doc.qt.io/qt-5/qlist.html#removeAll">QList::removeAll</a>().</p></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn remove_all(&self, t: *const *mut crate::QJoint) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QJoint_ptr_removeAll(
self as *const crate::QVectorOfQJoint as *mut crate::QVectorOfQJoint,
t,
)
}
/// <p>Removes the element at index position <i>i</i>. Equivalent to</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QJoint*>::removeAt(int i)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#removeAt">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Removes the element at index position <i>i</i>. Equivalent to</p>
/// <pre class="cpp">
///
/// remove(i);
///
/// </pre>
/// <p>Provided for compatibility with <a href="http://doc.qt.io/qt-5/qlist.html">QList</a>.</p>
/// <p>This function was introduced in Qt 5.2.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#remove">remove</a>() and <a href="http://doc.qt.io/qt-5/qlist.html#removeAt">QList::removeAt</a>().</p></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn remove_at(&self, i: ::std::os::raw::c_int) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QJoint_ptr_removeAt(
self as *const crate::QVectorOfQJoint as *mut crate::QVectorOfQJoint,
i,
)
}
/// <p>Removes the first item in the vector. Calling this function is equivalent to calling remove(0). The vector must not be empty. If the vector can be empty, call <a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>() before calling this function.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QJoint*>::removeFirst()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#removeFirst">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Removes the first item in the vector. Calling this function is equivalent to calling remove(0). The vector must not be empty. If the vector can be empty, call <a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>() before calling this function.</p>
/// <p>This function was introduced in Qt 5.1.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#remove">remove</a>(), <a href="http://doc.qt.io/qt-5/qvector.html#takeFirst">takeFirst</a>(), and <a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>().</p></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn remove_first(&self) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QJoint_ptr_removeFirst(
self as *const crate::QVectorOfQJoint as *mut crate::QVectorOfQJoint,
)
}
/// <p>Removes the last item in the vector. Calling this function is equivalent to calling remove(<a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>() - 1). The vector must not be empty. If the vector can be empty, call <a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>() before calling this function.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QJoint*>::removeLast()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#removeLast">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Removes the last item in the vector. Calling this function is equivalent to calling remove(<a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>() - 1). The vector must not be empty. If the vector can be empty, call <a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>() before calling this function.</p>
/// <p>This function was introduced in Qt 5.1.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#remove">remove</a>(), <a href="http://doc.qt.io/qt-5/qvector.html#takeLast">takeLast</a>(), <a href="http://doc.qt.io/qt-5/qvector.html#removeFirst">removeFirst</a>(), and <a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>().</p></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn remove_last(&self) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QJoint_ptr_removeLast(
self as *const crate::QVectorOfQJoint as *mut crate::QVectorOfQJoint,
)
}
/// <p>Removes the first element that compares equal to <i>t</i> from the vector. Returns whether an element was, in fact, removed.</p>
///
/// Calls C++ function: <span style='color: green;'>```bool QVector<Qt3DCore::QJoint*>::removeOne(const Qt3DCore::QJoint*& t)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#removeOne">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Removes the first element that compares equal to <i>t</i> from the vector. Returns whether an element was, in fact, removed.</p>
/// <p>Provided for compatibility with <a href="http://doc.qt.io/qt-5/qlist.html">QList</a>.</p>
/// <p>This function was introduced in Qt 5.4.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#removeAll">removeAll</a>() and <a href="http://doc.qt.io/qt-5/qlist.html#removeOne">QList::removeOne</a>().</p></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn remove_one(&self, t: *const *mut crate::QJoint) -> bool {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QJoint_ptr_removeOne(
self as *const crate::QVectorOfQJoint as *mut crate::QVectorOfQJoint,
t,
)
}
/// <p>Replaces the item at index position <i>i</i> with <i>value</i>.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QJoint*>::replace(int i, const Qt3DCore::QJoint*& t)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#replace">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Replaces the item at index position <i>i</i> with <i>value</i>.</p>
/// <p><i>i</i> must be a valid index position in the vector (i.e., 0 <= <i>i</i> < <a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>()).</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#operator-5b-5d">operator[]</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#remove">remove</a>().</p></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn replace(&self, i: ::std::os::raw::c_int, t: *const *mut crate::QJoint) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QJoint_ptr_replace(
self as *const crate::QVectorOfQJoint as *mut crate::QVectorOfQJoint,
i,
t,
)
}
/// <p>Attempts to allocate memory for at least <i>size</i> elements. If you know in advance how large the vector will be, you should call this function to prevent reallocations and memory fragmentation.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QJoint*>::reserve(int size)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#reserve">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Attempts to allocate memory for at least <i>size</i> elements. If you know in advance how large the vector will be, you should call this function to prevent reallocations and memory fragmentation.</p>
/// <p>If <i>size</i> is an underestimate, the worst that will happen is that the <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> will be a bit slower. If <i>size</i> is an overestimate, you may have used more memory than the normal <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a> growth strategy would have allocated—or you may have used less.</p>
/// <p>An alternative to reserve() is calling <a href="http://doc.qt.io/qt-5/qvector.html#resize">resize</a>(). Whether or not that is faster than reserve() depends on the element type, because <a href="http://doc.qt.io/qt-5/qvector.html#resize">resize</a>() default-constructs all elements, and requires assignment to existing entries rather than calling <a href="http://doc.qt.io/qt-5/qvector.html#append">append</a>(), which copy- or move-constructs. For simple types, like <code>int</code> or <code>double</code>, <a href="http://doc.qt.io/qt-5/qvector.html#resize">resize</a>() is typically faster, but for anything more complex, you should prefer reserve().</p>
/// <p><b>Warning:</b> If the size passed to <a href="http://doc.qt.io/qt-5/qvector.html#resize">resize</a>() was underestimated, you run out of allocated space and into undefined behavior. This problem does not exist with reserve(), because it treats the size as just a hint.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#squeeze">squeeze</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#capacity">capacity</a>().</p></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn reserve(&self, size: ::std::os::raw::c_int) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QJoint_ptr_reserve(
self as *const crate::QVectorOfQJoint as *mut crate::QVectorOfQJoint,
size,
)
}
/// <p>Sets the size of the vector to <i>size</i>. If <i>size</i> is greater than the current size, elements are added to the end; the new elements are initialized with a <a href="http://doc.qt.io/qt-5/containers.html#default-constructed-value">default-constructed value</a>. If <i>size</i> is less than the current size, elements are removed from the end.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QJoint*>::resize(int size)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#resize">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Sets the size of the vector to <i>size</i>. If <i>size</i> is greater than the current size, elements are added to the end; the new elements are initialized with a <a href="http://doc.qt.io/qt-5/containers.html#default-constructed-value">default-constructed value</a>. If <i>size</i> is less than the current size, elements are removed from the end.</p>
/// <p>Since Qt 5.6, resize() doesn't shrink the capacity anymore. To shed excess capacity, use <a href="http://doc.qt.io/qt-5/qvector.html#squeeze">squeeze</a>().</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>().</p></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn resize(&self, size: ::std::os::raw::c_int) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QJoint_ptr_resize(
self as *const crate::QVectorOfQJoint as *mut crate::QVectorOfQJoint,
size,
)
}
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QJoint*>::setSharable(bool sharable)```</span>.
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn set_sharable(&self, sharable: bool) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QJoint_ptr_setSharable(
self as *const crate::QVectorOfQJoint as *mut crate::QVectorOfQJoint,
sharable,
)
}
/// <p>This function is provided for STL compatibility. It is equivalent to <a href="http://doc.qt.io/qt-5/qvector.html#squeeze">squeeze</a>().</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QJoint*>::shrink_to_fit()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#shrink_to_fit">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This function is provided for STL compatibility. It is equivalent to <a href="http://doc.qt.io/qt-5/qvector.html#squeeze">squeeze</a>().</p>
/// <p>This function was introduced in Qt 5.10.</p></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn shrink_to_fit(&self) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QJoint_ptr_shrink_to_fit(
self as *const crate::QVectorOfQJoint as *mut crate::QVectorOfQJoint,
)
}
/// <p>Returns the number of items in the vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```int QVector<Qt3DCore::QJoint*>::size() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#size">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the number of items in the vector.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#resize">resize</a>().</p></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn size(&self) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QJoint_ptr_size(
self as *const crate::QVectorOfQJoint,
)
}
/// <p>Releases any memory not required to store the items.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QJoint*>::squeeze()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#squeeze">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Releases any memory not required to store the items.</p>
/// <p>The sole purpose of this function is to provide a means of fine tuning <a href="http://doc.qt.io/qt-5/qvector.html">QVector</a>'s memory usage. In general, you will rarely ever need to call this function.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#reserve">reserve</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#capacity">capacity</a>().</p></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn squeeze(&self) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QJoint_ptr_squeeze(
self as *const crate::QVectorOfQJoint as *mut crate::QVectorOfQJoint,
)
}
/// <p>Returns <code>true</code> if this vector is not empty and its first item is equal to <i>value</i>; otherwise returns <code>false</code>.</p>
///
/// Calls C++ function: <span style='color: green;'>```bool QVector<Qt3DCore::QJoint*>::startsWith(const Qt3DCore::QJoint*& t) const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#startsWith">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns <code>true</code> if this vector is not empty and its first item is equal to <i>value</i>; otherwise returns <code>false</code>.</p>
/// <p>This function was introduced in Qt 4.5.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#first">first</a>().</p></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn starts_with(&self, t: *const *mut crate::QJoint) -> bool {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QJoint_ptr_startsWith(
self as *const crate::QVectorOfQJoint,
t,
)
}
/// <p>Swaps vector <i>other</i> with this vector. This operation is very fast and never fails.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QJoint*>::swap(QVector<Qt3DCore::QJoint*>& other)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#swap">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Swaps vector <i>other</i> with this vector. This operation is very fast and never fails.</p>
/// <p>This function was introduced in Qt 4.8.</p></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn swap(
&self,
other: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QVectorOfQJoint>>,
) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QJoint_ptr_swap(
self as *const crate::QVectorOfQJoint as *mut crate::QVectorOfQJoint,
::cpp_core::CastInto::<::cpp_core::Ref<crate::QVectorOfQJoint>>::cast_into(other)
.as_raw_ptr() as *mut crate::QVectorOfQJoint,
)
}
/// <p>Exchange the item at index position <i>i</i> with the item at index position <i>j</i>. This function assumes that both <i>i</i> and <i>j</i> are at least 0 but less than <a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>(). To avoid failure, test that both <i>i</i> and <i>j</i> are at least 0 and less than <a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>().</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DCore::QJoint*>::swapItemsAt(int i, int j)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#swapItemsAt">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Exchange the item at index position <i>i</i> with the item at index position <i>j</i>. This function assumes that both <i>i</i> and <i>j</i> are at least 0 but less than <a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>(). To avoid failure, test that both <i>i</i> and <i>j</i> are at least 0 and less than <a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>().</p>
/// <p>This function was introduced in Qt 5.14.</p></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(cpp_lib_version = "5.14.0"))
)]
#[cfg(any(cpp_lib_version = "5.14.0", feature = "ritual_rustdoc"))]
pub unsafe fn swap_items_at(&self, i: ::std::os::raw::c_int, j: ::std::os::raw::c_int) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QJoint_ptr_swapItemsAt(
self as *const crate::QVectorOfQJoint as *mut crate::QVectorOfQJoint,
i,
j,
)
}
/// <p>Removes the element at index position <i>i</i> and returns it.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QJoint* QVector<Qt3DCore::QJoint*>::takeAt(int i)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#takeAt">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Removes the element at index position <i>i</i> and returns it.</p>
/// <p>Equivalent to</p>
/// <pre class="cpp">
///
/// T t <span class="operator">=</span> at(i);
/// remove(i);
/// <span class="keyword">return</span> t;
///
/// </pre>
/// <p>Provided for compatibility with <a href="http://doc.qt.io/qt-5/qlist.html">QList</a>.</p>
/// <p>This function was introduced in Qt 5.2.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#takeFirst">takeFirst</a>(), <a href="http://doc.qt.io/qt-5/qvector.html#takeLast">takeLast</a>(), and <a href="http://doc.qt.io/qt-5/qlist.html#takeAt">QList::takeAt</a>().</p></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn take_at(&self, i: ::std::os::raw::c_int) -> ::qt_core::QPtr<crate::QJoint> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QJoint_ptr_takeAt(
self as *const crate::QVectorOfQJoint as *mut crate::QVectorOfQJoint,
i,
)
};
::qt_core::QPtr::from_raw(ffi_result)
}
/// <p>Removes the first item in the vector and returns it. This function assumes the vector is not empty. To avoid failure, call <a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>() before calling this function.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QJoint* QVector<Qt3DCore::QJoint*>::takeFirst()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#takeFirst">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Removes the first item in the vector and returns it. This function assumes the vector is not empty. To avoid failure, call <a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>() before calling this function.</p>
/// <p>This function was introduced in Qt 5.1.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#takeLast">takeLast</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#removeFirst">removeFirst</a>().</p></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn take_first(&self) -> ::qt_core::QPtr<crate::QJoint> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QJoint_ptr_takeFirst(
self as *const crate::QVectorOfQJoint as *mut crate::QVectorOfQJoint,
)
};
::qt_core::QPtr::from_raw(ffi_result)
}
/// <p>Removes the last item in the list and returns it. This function assumes the vector is not empty. To avoid failure, call <a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>() before calling this function.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QJoint* QVector<Qt3DCore::QJoint*>::takeLast()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#takeLast">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Removes the last item in the list and returns it. This function assumes the vector is not empty. To avoid failure, call <a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>() before calling this function.</p>
/// <p>If you don't use the return value, <a href="http://doc.qt.io/qt-5/qvector.html#removeLast">removeLast</a>() is more efficient.</p>
/// <p>This function was introduced in Qt 5.1.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#takeFirst">takeFirst</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#removeLast">removeLast</a>().</p></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn take_last(&self) -> ::qt_core::QPtr<crate::QJoint> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QJoint_ptr_takeLast(
self as *const crate::QVectorOfQJoint as *mut crate::QVectorOfQJoint,
)
};
::qt_core::QPtr::from_raw(ffi_result)
}
/// <p>Returns the value at index position <i>i</i> in the vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QJoint* QVector<Qt3DCore::QJoint*>::value(int i) const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#value">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the value at index position <i>i</i> in the vector.</p>
/// <p>If the index <i>i</i> is out of bounds, the function returns a <a href="http://doc.qt.io/qt-5/containers.html#default-constructed-value">default-constructed value</a>. If you are certain that <i>i</i> is within bounds, you can use <a href="http://doc.qt.io/qt-5/qvector.html#at">at</a>() instead, which is slightly faster.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#at">at</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#operator-5b-5d">operator[]</a>().</p></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn value_1a(&self, i: ::std::os::raw::c_int) -> ::qt_core::QPtr<crate::QJoint> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QJoint_ptr_value(
self as *const crate::QVectorOfQJoint,
i,
)
};
::qt_core::QPtr::from_raw(ffi_result)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QJoint* QVector<Qt3DCore::QJoint*>::value(int i, const Qt3DCore::QJoint*& defaultValue) const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#value-1">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This is an overloaded function.</p>
/// <p>If the index <i>i</i> is out of bounds, the function returns <i>defaultValue</i>.</p></div>
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn value_2a(
&self,
i: ::std::os::raw::c_int,
default_value: *const *mut crate::QJoint,
) -> ::qt_core::QPtr<crate::QJoint> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QJoint_ptr_value1(
self as *const crate::QVectorOfQJoint,
i,
default_value,
)
};
::qt_core::QPtr::from_raw(ffi_result)
}
}
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::qt_core::AsReceiver for crate::SignalOfQJoint {
type Arguments = (*mut crate::QJoint,);
fn as_receiver(&self) -> ::qt_core::Receiver<Self::Arguments> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw(self).expect("attempted to construct a null Ref"),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2emit_(Qt3DCore::QJoint *)\0"),
)
}
}
}
impl crate::SignalOfQJoint {
/// Connects this signal to another signal or slot.
///
/// This is a shortcut for `self.signal().connect(receiver)`.
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn connect_with_type<R>(
&self,
connection_type: ::qt_core::ConnectionType,
receiver: R,
) -> cpp_core::CppBox<::qt_core::q_meta_object::Connection>
where
R: ::qt_core::AsReceiver,
(*mut crate::QJoint,): ::qt_core::ArgumentsCompatible<R::Arguments>,
{
self.signal().connect_with_type(connection_type, receiver)
}
/// Connects this signal to another signal or slot, using auto connection type.
///
/// This is a shortcut for `self.signal().connect(receiver)`.
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn connect<R>(
&self,
receiver: R,
) -> cpp_core::CppBox<::qt_core::q_meta_object::Connection>
where
R: ::qt_core::AsReceiver,
(*mut crate::QJoint,): ::qt_core::ArgumentsCompatible<R::Arguments>,
{
self.signal().connect(receiver)
}
}
/// Emits a Qt signal with arguments `*mut crate::QJoint`.
///
/// Corresponding C++ argument types: (<span style='color: green;'>```Qt3DCore::QJoint*```</span>).
///
/// Use `connect()` method of this object to connect this signal to a slot. Use `emit()` method to emit the signal.
#[repr(C)]
pub struct SignalOfQJoint {
_unused: u8,
}
impl SignalOfQJoint {
/// Returns a `Signal` object representing the signal.
///
/// This method is useful if you need to connect another signal to this signal. However, when you need to connect this signal to another signal or slot, it's simpler to use the `connect()` method of this object directly.
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub fn signal(&self) -> ::qt_core::Signal<(*mut crate::QJoint,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw(self).expect("attempted to construct a null Ref"),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2emit_(Qt3DCore::QJoint *)\0"),
)
}
}
/// Emits the signal.
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn emit(&self, arg0: impl ::cpp_core::CastInto<::cpp_core::Ptr<crate::QJoint>>) {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_signal_wrapper_Qt3DCore_QJoint_ptr_emit_(
self as *const crate::SignalOfQJoint as *mut crate::SignalOfQJoint,
::cpp_core::CastInto::<::cpp_core::Ptr<crate::QJoint>>::cast_into(arg0).as_raw_ptr()
as *mut crate::QJoint,
)
}
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn meta_object(&self) -> ::cpp_core::Ptr<::qt_core::QMetaObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_signal_wrapper_Qt3DCore_QJoint_ptr_metaObject(self as *const crate::SignalOfQJoint)
};
::cpp_core::Ptr::from_raw(ffi_result as *mut ::qt_core::QMetaObject)
}
/// Creates a new object.
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn new() -> ::qt_core::QBox<crate::SignalOfQJoint> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_signal_wrapper_Qt3DCore_QJoint_ptr_ctr_qt_3d_core_ffi_signal_wrapper_Qt3DCore_QJoint_ptr()
};
::qt_core::QBox::from_raw(ffi_result)
}
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn qt_metacall(
&self,
arg1: ::qt_core::q_meta_object::Call,
arg2: ::std::os::raw::c_int,
arg3: *mut *mut ::std::ffi::c_void,
) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_signal_wrapper_Qt3DCore_QJoint_ptr_qt_metacall(self as *const crate::SignalOfQJoint as *mut crate::SignalOfQJoint, arg1, arg2, arg3)
}
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn qt_metacast(
&self,
arg1: *const ::std::os::raw::c_char,
) -> *mut ::std::ffi::c_void {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_signal_wrapper_Qt3DCore_QJoint_ptr_qt_metacast(self as *const crate::SignalOfQJoint as *mut crate::SignalOfQJoint, arg1)
}
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn static_meta_object() -> ::cpp_core::Ref<::qt_core::QMetaObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_signal_wrapper_Qt3DCore_QJoint_ptr_staticMetaObject()
};
::cpp_core::Ref::from_raw(ffi_result as *mut ::qt_core::QMetaObject)
.expect("attempted to construct a null Ref")
}
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn tr(
s: *const ::std::os::raw::c_char,
c: *const ::std::os::raw::c_char,
n: ::std::os::raw::c_int,
) -> ::cpp_core::CppBox<::qt_core::QString> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_signal_wrapper_Qt3DCore_QJoint_ptr_tr(s, c, n)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn tr_utf8(
s: *const ::std::os::raw::c_char,
c: *const ::std::os::raw::c_char,
n: ::std::os::raw::c_int,
) -> ::cpp_core::CppBox<::qt_core::QString> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_signal_wrapper_Qt3DCore_QJoint_ptr_trUtf8(s, c, n)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
}
impl ::qt_core::AsReceiver for crate::SignalOfQMatrix4X4 {
type Arguments = (*const ::qt_gui::QMatrix4X4,);
fn as_receiver(&self) -> ::qt_core::Receiver<Self::Arguments> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw(self).expect("attempted to construct a null Ref"),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2emit_(QMatrix4x4 const &)\0"),
)
}
}
}
impl crate::SignalOfQMatrix4X4 {
/// Connects this signal to another signal or slot.
///
/// This is a shortcut for `self.signal().connect(receiver)`.
pub unsafe fn connect_with_type<R>(
&self,
connection_type: ::qt_core::ConnectionType,
receiver: R,
) -> cpp_core::CppBox<::qt_core::q_meta_object::Connection>
where
R: ::qt_core::AsReceiver,
(*const ::qt_gui::QMatrix4X4,): ::qt_core::ArgumentsCompatible<R::Arguments>,
{
self.signal().connect_with_type(connection_type, receiver)
}
/// Connects this signal to another signal or slot, using auto connection type.
///
/// This is a shortcut for `self.signal().connect(receiver)`.
pub unsafe fn connect<R>(
&self,
receiver: R,
) -> cpp_core::CppBox<::qt_core::q_meta_object::Connection>
where
R: ::qt_core::AsReceiver,
(*const ::qt_gui::QMatrix4X4,): ::qt_core::ArgumentsCompatible<R::Arguments>,
{
self.signal().connect(receiver)
}
}
/// Emits a Qt signal with arguments `*const ::qt_gui::QMatrix4X4`.
///
/// Corresponding C++ argument types: (<span style='color: green;'>```const QMatrix4x4&```</span>).
///
/// Use `connect()` method of this object to connect this signal to a slot. Use `emit()` method to emit the signal.
#[repr(C)]
pub struct SignalOfQMatrix4X4 {
_unused: u8,
}
impl SignalOfQMatrix4X4 {
/// Returns a `Signal` object representing the signal.
///
/// This method is useful if you need to connect another signal to this signal. However, when you need to connect this signal to another signal or slot, it's simpler to use the `connect()` method of this object directly.
#[inline(always)]
pub fn signal(&self) -> ::qt_core::Signal<(*const ::qt_gui::QMatrix4X4,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw(self).expect("attempted to construct a null Ref"),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2emit_(QMatrix4x4 const &)\0"),
)
}
}
/// Emits the signal.
#[inline(always)]
pub unsafe fn emit(
&self,
arg0: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_gui::QMatrix4X4>>,
) {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_signal_wrapper_QMatrix4x4_const_ref_emit_(self as *const crate::SignalOfQMatrix4X4 as *mut crate::SignalOfQMatrix4X4, ::cpp_core::CastInto::<::cpp_core::Ref<::qt_gui::QMatrix4X4>>::cast_into(arg0).as_raw_ptr())
}
#[inline(always)]
pub unsafe fn meta_object(&self) -> ::cpp_core::Ptr<::qt_core::QMetaObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_signal_wrapper_QMatrix4x4_const_ref_metaObject(self as *const crate::SignalOfQMatrix4X4)
};
::cpp_core::Ptr::from_raw(ffi_result as *mut ::qt_core::QMetaObject)
}
/// Creates a new object.
#[inline(always)]
pub unsafe fn new() -> ::qt_core::QBox<crate::SignalOfQMatrix4X4> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_signal_wrapper_QMatrix4x4_const_ref_ctr_qt_3d_core_ffi_signal_wrapper_QMatrix4x4_const_ref()
};
::qt_core::QBox::from_raw(ffi_result)
}
#[inline(always)]
pub unsafe fn qt_metacall(
&self,
arg1: ::qt_core::q_meta_object::Call,
arg2: ::std::os::raw::c_int,
arg3: *mut *mut ::std::ffi::c_void,
) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_signal_wrapper_QMatrix4x4_const_ref_qt_metacall(self as *const crate::SignalOfQMatrix4X4 as *mut crate::SignalOfQMatrix4X4, arg1, arg2, arg3)
}
#[inline(always)]
pub unsafe fn qt_metacast(
&self,
arg1: *const ::std::os::raw::c_char,
) -> *mut ::std::ffi::c_void {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_signal_wrapper_QMatrix4x4_const_ref_qt_metacast(self as *const crate::SignalOfQMatrix4X4 as *mut crate::SignalOfQMatrix4X4, arg1)
}
#[inline(always)]
pub unsafe fn static_meta_object() -> ::cpp_core::Ref<::qt_core::QMetaObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_signal_wrapper_QMatrix4x4_const_ref_staticMetaObject()
};
::cpp_core::Ref::from_raw(ffi_result as *mut ::qt_core::QMetaObject)
.expect("attempted to construct a null Ref")
}
#[inline(always)]
pub unsafe fn tr(
s: *const ::std::os::raw::c_char,
c: *const ::std::os::raw::c_char,
n: ::std::os::raw::c_int,
) -> ::cpp_core::CppBox<::qt_core::QString> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_signal_wrapper_QMatrix4x4_const_ref_tr(s, c, n)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
#[inline(always)]
pub unsafe fn tr_utf8(
s: *const ::std::os::raw::c_char,
c: *const ::std::os::raw::c_char,
n: ::std::os::raw::c_int,
) -> ::cpp_core::CppBox<::qt_core::QString> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_signal_wrapper_QMatrix4x4_const_ref_trUtf8(s, c, n)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
}
impl ::qt_core::AsReceiver for crate::SignalOfPropertyTrackingMode {
type Arguments = (crate::q_node::PropertyTrackingMode,);
fn as_receiver(&self) -> ::qt_core::Receiver<Self::Arguments> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw(self).expect("attempted to construct a null Ref"),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"2emit_(Qt3DCore::QNode::PropertyTrackingMode)\0",
),
)
}
}
}
impl crate::SignalOfPropertyTrackingMode {
/// Connects this signal to another signal or slot.
///
/// This is a shortcut for `self.signal().connect(receiver)`.
pub unsafe fn connect_with_type<R>(
&self,
connection_type: ::qt_core::ConnectionType,
receiver: R,
) -> cpp_core::CppBox<::qt_core::q_meta_object::Connection>
where
R: ::qt_core::AsReceiver,
(crate::q_node::PropertyTrackingMode,): ::qt_core::ArgumentsCompatible<R::Arguments>,
{
self.signal().connect_with_type(connection_type, receiver)
}
/// Connects this signal to another signal or slot, using auto connection type.
///
/// This is a shortcut for `self.signal().connect(receiver)`.
pub unsafe fn connect<R>(
&self,
receiver: R,
) -> cpp_core::CppBox<::qt_core::q_meta_object::Connection>
where
R: ::qt_core::AsReceiver,
(crate::q_node::PropertyTrackingMode,): ::qt_core::ArgumentsCompatible<R::Arguments>,
{
self.signal().connect(receiver)
}
}
/// Emits a Qt signal with arguments `crate::q_node::PropertyTrackingMode`.
///
/// Corresponding C++ argument types: (<span style='color: green;'>```Qt3DCore::QNode::PropertyTrackingMode```</span>).
///
/// Use `connect()` method of this object to connect this signal to a slot. Use `emit()` method to emit the signal.
#[repr(C)]
pub struct SignalOfPropertyTrackingMode {
_unused: u8,
}
impl SignalOfPropertyTrackingMode {
/// Returns a `Signal` object representing the signal.
///
/// This method is useful if you need to connect another signal to this signal. However, when you need to connect this signal to another signal or slot, it's simpler to use the `connect()` method of this object directly.
#[inline(always)]
pub fn signal(&self) -> ::qt_core::Signal<(crate::q_node::PropertyTrackingMode,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw(self).expect("attempted to construct a null Ref"),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"2emit_(Qt3DCore::QNode::PropertyTrackingMode)\0",
),
)
}
}
/// Emits the signal.
#[inline(always)]
pub unsafe fn emit(&self, arg0: crate::q_node::PropertyTrackingMode) {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_signal_wrapper_Qt3DCore_QNode_PropertyTrackingMode_emit_(self as *const crate::SignalOfPropertyTrackingMode as *mut crate::SignalOfPropertyTrackingMode, arg0)
}
#[inline(always)]
pub unsafe fn meta_object(&self) -> ::cpp_core::Ptr<::qt_core::QMetaObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_signal_wrapper_Qt3DCore_QNode_PropertyTrackingMode_metaObject(self as *const crate::SignalOfPropertyTrackingMode)
};
::cpp_core::Ptr::from_raw(ffi_result as *mut ::qt_core::QMetaObject)
}
/// Creates a new object.
#[inline(always)]
pub unsafe fn new() -> ::qt_core::QBox<crate::SignalOfPropertyTrackingMode> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_signal_wrapper_Qt3DCore_QNode_PropertyTrackingMode_ctr_qt_3d_core_ffi_signal_wrapper_Qt3DCore_QNode_PropertyTrackingMode()
};
::qt_core::QBox::from_raw(ffi_result)
}
#[inline(always)]
pub unsafe fn qt_metacall(
&self,
arg1: ::qt_core::q_meta_object::Call,
arg2: ::std::os::raw::c_int,
arg3: *mut *mut ::std::ffi::c_void,
) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_signal_wrapper_Qt3DCore_QNode_PropertyTrackingMode_qt_metacall(self as *const crate::SignalOfPropertyTrackingMode as *mut crate::SignalOfPropertyTrackingMode, arg1, arg2, arg3)
}
#[inline(always)]
pub unsafe fn qt_metacast(
&self,
arg1: *const ::std::os::raw::c_char,
) -> *mut ::std::ffi::c_void {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_signal_wrapper_Qt3DCore_QNode_PropertyTrackingMode_qt_metacast(self as *const crate::SignalOfPropertyTrackingMode as *mut crate::SignalOfPropertyTrackingMode, arg1)
}
#[inline(always)]
pub unsafe fn static_meta_object() -> ::cpp_core::Ref<::qt_core::QMetaObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_signal_wrapper_Qt3DCore_QNode_PropertyTrackingMode_staticMetaObject()
};
::cpp_core::Ref::from_raw(ffi_result as *mut ::qt_core::QMetaObject)
.expect("attempted to construct a null Ref")
}
#[inline(always)]
pub unsafe fn tr(
s: *const ::std::os::raw::c_char,
c: *const ::std::os::raw::c_char,
n: ::std::os::raw::c_int,
) -> ::cpp_core::CppBox<::qt_core::QString> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_signal_wrapper_Qt3DCore_QNode_PropertyTrackingMode_tr(s, c, n)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
#[inline(always)]
pub unsafe fn tr_utf8(
s: *const ::std::os::raw::c_char,
c: *const ::std::os::raw::c_char,
n: ::std::os::raw::c_int,
) -> ::cpp_core::CppBox<::qt_core::QString> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_signal_wrapper_Qt3DCore_QNode_PropertyTrackingMode_trUtf8(s, c, n)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
}
impl ::qt_core::AsReceiver for crate::SignalOfQEntity {
type Arguments = (*mut crate::QEntity,);
fn as_receiver(&self) -> ::qt_core::Receiver<Self::Arguments> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw(self).expect("attempted to construct a null Ref"),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2emit_(Qt3DCore::QEntity *)\0"),
)
}
}
}
impl crate::SignalOfQEntity {
/// Connects this signal to another signal or slot.
///
/// This is a shortcut for `self.signal().connect(receiver)`.
pub unsafe fn connect_with_type<R>(
&self,
connection_type: ::qt_core::ConnectionType,
receiver: R,
) -> cpp_core::CppBox<::qt_core::q_meta_object::Connection>
where
R: ::qt_core::AsReceiver,
(*mut crate::QEntity,): ::qt_core::ArgumentsCompatible<R::Arguments>,
{
self.signal().connect_with_type(connection_type, receiver)
}
/// Connects this signal to another signal or slot, using auto connection type.
///
/// This is a shortcut for `self.signal().connect(receiver)`.
pub unsafe fn connect<R>(
&self,
receiver: R,
) -> cpp_core::CppBox<::qt_core::q_meta_object::Connection>
where
R: ::qt_core::AsReceiver,
(*mut crate::QEntity,): ::qt_core::ArgumentsCompatible<R::Arguments>,
{
self.signal().connect(receiver)
}
}
/// Emits a Qt signal with arguments `*mut crate::QEntity`.
///
/// Corresponding C++ argument types: (<span style='color: green;'>```Qt3DCore::QEntity*```</span>).
///
/// Use `connect()` method of this object to connect this signal to a slot. Use `emit()` method to emit the signal.
#[repr(C)]
pub struct SignalOfQEntity {
_unused: u8,
}
impl SignalOfQEntity {
/// Returns a `Signal` object representing the signal.
///
/// This method is useful if you need to connect another signal to this signal. However, when you need to connect this signal to another signal or slot, it's simpler to use the `connect()` method of this object directly.
#[inline(always)]
pub fn signal(&self) -> ::qt_core::Signal<(*mut crate::QEntity,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw(self).expect("attempted to construct a null Ref"),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2emit_(Qt3DCore::QEntity *)\0"),
)
}
}
/// Emits the signal.
#[inline(always)]
pub unsafe fn emit(&self, arg0: impl ::cpp_core::CastInto<::cpp_core::Ptr<crate::QEntity>>) {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_signal_wrapper_Qt3DCore_QEntity_ptr_emit_(self as *const crate::SignalOfQEntity as *mut crate::SignalOfQEntity, ::cpp_core::CastInto::<::cpp_core::Ptr<crate::QEntity>>::cast_into(arg0).as_raw_ptr() as *mut crate::QEntity)
}
#[inline(always)]
pub unsafe fn meta_object(&self) -> ::cpp_core::Ptr<::qt_core::QMetaObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_signal_wrapper_Qt3DCore_QEntity_ptr_metaObject(self as *const crate::SignalOfQEntity)
};
::cpp_core::Ptr::from_raw(ffi_result as *mut ::qt_core::QMetaObject)
}
/// Creates a new object.
#[inline(always)]
pub unsafe fn new() -> ::qt_core::QBox<crate::SignalOfQEntity> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_signal_wrapper_Qt3DCore_QEntity_ptr_ctr_qt_3d_core_ffi_signal_wrapper_Qt3DCore_QEntity_ptr()
};
::qt_core::QBox::from_raw(ffi_result)
}
#[inline(always)]
pub unsafe fn qt_metacall(
&self,
arg1: ::qt_core::q_meta_object::Call,
arg2: ::std::os::raw::c_int,
arg3: *mut *mut ::std::ffi::c_void,
) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_signal_wrapper_Qt3DCore_QEntity_ptr_qt_metacall(self as *const crate::SignalOfQEntity as *mut crate::SignalOfQEntity, arg1, arg2, arg3)
}
#[inline(always)]
pub unsafe fn qt_metacast(
&self,
arg1: *const ::std::os::raw::c_char,
) -> *mut ::std::ffi::c_void {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_signal_wrapper_Qt3DCore_QEntity_ptr_qt_metacast(self as *const crate::SignalOfQEntity as *mut crate::SignalOfQEntity, arg1)
}
#[inline(always)]
pub unsafe fn static_meta_object() -> ::cpp_core::Ref<::qt_core::QMetaObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_signal_wrapper_Qt3DCore_QEntity_ptr_staticMetaObject()
};
::cpp_core::Ref::from_raw(ffi_result as *mut ::qt_core::QMetaObject)
.expect("attempted to construct a null Ref")
}
#[inline(always)]
pub unsafe fn tr(
s: *const ::std::os::raw::c_char,
c: *const ::std::os::raw::c_char,
n: ::std::os::raw::c_int,
) -> ::cpp_core::CppBox<::qt_core::QString> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_signal_wrapper_Qt3DCore_QEntity_ptr_tr(s, c, n)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
#[inline(always)]
pub unsafe fn tr_utf8(
s: *const ::std::os::raw::c_char,
c: *const ::std::os::raw::c_char,
n: ::std::os::raw::c_int,
) -> ::cpp_core::CppBox<::qt_core::QString> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_signal_wrapper_Qt3DCore_QEntity_ptr_trUtf8(s, c, n)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
}
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::qt_core::AsReceiver for crate::SignalOfQAbstractSkeleton {
type Arguments = (*mut crate::QAbstractSkeleton,);
fn as_receiver(&self) -> ::qt_core::Receiver<Self::Arguments> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw(self).expect("attempted to construct a null Ref"),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"2emit_(Qt3DCore::QAbstractSkeleton *)\0",
),
)
}
}
}
impl crate::SignalOfQAbstractSkeleton {
/// Connects this signal to another signal or slot.
///
/// This is a shortcut for `self.signal().connect(receiver)`.
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn connect_with_type<R>(
&self,
connection_type: ::qt_core::ConnectionType,
receiver: R,
) -> cpp_core::CppBox<::qt_core::q_meta_object::Connection>
where
R: ::qt_core::AsReceiver,
(*mut crate::QAbstractSkeleton,): ::qt_core::ArgumentsCompatible<R::Arguments>,
{
self.signal().connect_with_type(connection_type, receiver)
}
/// Connects this signal to another signal or slot, using auto connection type.
///
/// This is a shortcut for `self.signal().connect(receiver)`.
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn connect<R>(
&self,
receiver: R,
) -> cpp_core::CppBox<::qt_core::q_meta_object::Connection>
where
R: ::qt_core::AsReceiver,
(*mut crate::QAbstractSkeleton,): ::qt_core::ArgumentsCompatible<R::Arguments>,
{
self.signal().connect(receiver)
}
}
/// Emits a Qt signal with arguments `*mut crate::QAbstractSkeleton`.
///
/// Corresponding C++ argument types: (<span style='color: green;'>```Qt3DCore::QAbstractSkeleton*```</span>).
///
/// Use `connect()` method of this object to connect this signal to a slot. Use `emit()` method to emit the signal.
#[repr(C)]
pub struct SignalOfQAbstractSkeleton {
_unused: u8,
}
impl SignalOfQAbstractSkeleton {
/// Returns a `Signal` object representing the signal.
///
/// This method is useful if you need to connect another signal to this signal. However, when you need to connect this signal to another signal or slot, it's simpler to use the `connect()` method of this object directly.
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub fn signal(&self) -> ::qt_core::Signal<(*mut crate::QAbstractSkeleton,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw(self).expect("attempted to construct a null Ref"),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"2emit_(Qt3DCore::QAbstractSkeleton *)\0",
),
)
}
}
/// Emits the signal.
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn emit(
&self,
arg0: impl ::cpp_core::CastInto<::cpp_core::Ptr<crate::QAbstractSkeleton>>,
) {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_signal_wrapper_Qt3DCore_QAbstractSkeleton_ptr_emit_(self as *const crate::SignalOfQAbstractSkeleton as *mut crate::SignalOfQAbstractSkeleton, ::cpp_core::CastInto::<::cpp_core::Ptr<crate::QAbstractSkeleton>>::cast_into(arg0).as_raw_ptr() as *mut crate::QAbstractSkeleton)
}
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn meta_object(&self) -> ::cpp_core::Ptr<::qt_core::QMetaObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_signal_wrapper_Qt3DCore_QAbstractSkeleton_ptr_metaObject(self as *const crate::SignalOfQAbstractSkeleton)
};
::cpp_core::Ptr::from_raw(ffi_result as *mut ::qt_core::QMetaObject)
}
/// Creates a new object.
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn new() -> ::qt_core::QBox<crate::SignalOfQAbstractSkeleton> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_signal_wrapper_Qt3DCore_QAbstractSkeleton_ptr_ctr_qt_3d_core_ffi_signal_wrapper_Qt3DCore_QAbstractSkeleton_ptr()
};
::qt_core::QBox::from_raw(ffi_result)
}
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn qt_metacall(
&self,
arg1: ::qt_core::q_meta_object::Call,
arg2: ::std::os::raw::c_int,
arg3: *mut *mut ::std::ffi::c_void,
) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_signal_wrapper_Qt3DCore_QAbstractSkeleton_ptr_qt_metacall(self as *const crate::SignalOfQAbstractSkeleton as *mut crate::SignalOfQAbstractSkeleton, arg1, arg2, arg3)
}
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn qt_metacast(
&self,
arg1: *const ::std::os::raw::c_char,
) -> *mut ::std::ffi::c_void {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_signal_wrapper_Qt3DCore_QAbstractSkeleton_ptr_qt_metacast(self as *const crate::SignalOfQAbstractSkeleton as *mut crate::SignalOfQAbstractSkeleton, arg1)
}
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn static_meta_object() -> ::cpp_core::Ref<::qt_core::QMetaObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_signal_wrapper_Qt3DCore_QAbstractSkeleton_ptr_staticMetaObject()
};
::cpp_core::Ref::from_raw(ffi_result as *mut ::qt_core::QMetaObject)
.expect("attempted to construct a null Ref")
}
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn tr(
s: *const ::std::os::raw::c_char,
c: *const ::std::os::raw::c_char,
n: ::std::os::raw::c_int,
) -> ::cpp_core::CppBox<::qt_core::QString> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_signal_wrapper_Qt3DCore_QAbstractSkeleton_ptr_tr(s, c, n)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn tr_utf8(
s: *const ::std::os::raw::c_char,
c: *const ::std::os::raw::c_char,
n: ::std::os::raw::c_int,
) -> ::cpp_core::CppBox<::qt_core::QString> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_signal_wrapper_Qt3DCore_QAbstractSkeleton_ptr_trUtf8(s, c, n)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
}
impl ::qt_core::AsReceiver for crate::SignalOfQVector3D {
type Arguments = (*const ::qt_gui::QVector3D,);
fn as_receiver(&self) -> ::qt_core::Receiver<Self::Arguments> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw(self).expect("attempted to construct a null Ref"),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2emit_(QVector3D const &)\0"),
)
}
}
}
impl crate::SignalOfQVector3D {
/// Connects this signal to another signal or slot.
///
/// This is a shortcut for `self.signal().connect(receiver)`.
pub unsafe fn connect_with_type<R>(
&self,
connection_type: ::qt_core::ConnectionType,
receiver: R,
) -> cpp_core::CppBox<::qt_core::q_meta_object::Connection>
where
R: ::qt_core::AsReceiver,
(*const ::qt_gui::QVector3D,): ::qt_core::ArgumentsCompatible<R::Arguments>,
{
self.signal().connect_with_type(connection_type, receiver)
}
/// Connects this signal to another signal or slot, using auto connection type.
///
/// This is a shortcut for `self.signal().connect(receiver)`.
pub unsafe fn connect<R>(
&self,
receiver: R,
) -> cpp_core::CppBox<::qt_core::q_meta_object::Connection>
where
R: ::qt_core::AsReceiver,
(*const ::qt_gui::QVector3D,): ::qt_core::ArgumentsCompatible<R::Arguments>,
{
self.signal().connect(receiver)
}
}
/// Emits a Qt signal with arguments `*const ::qt_gui::QVector3D`.
///
/// Corresponding C++ argument types: (<span style='color: green;'>```const QVector3D&```</span>).
///
/// Use `connect()` method of this object to connect this signal to a slot. Use `emit()` method to emit the signal.
#[repr(C)]
pub struct SignalOfQVector3D {
_unused: u8,
}
impl SignalOfQVector3D {
/// Returns a `Signal` object representing the signal.
///
/// This method is useful if you need to connect another signal to this signal. However, when you need to connect this signal to another signal or slot, it's simpler to use the `connect()` method of this object directly.
#[inline(always)]
pub fn signal(&self) -> ::qt_core::Signal<(*const ::qt_gui::QVector3D,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw(self).expect("attempted to construct a null Ref"),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2emit_(QVector3D const &)\0"),
)
}
}
/// Emits the signal.
#[inline(always)]
pub unsafe fn emit(
&self,
arg0: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_gui::QVector3D>>,
) {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_signal_wrapper_QVector3D_const_ref_emit_(
self as *const crate::SignalOfQVector3D as *mut crate::SignalOfQVector3D,
::cpp_core::CastInto::<::cpp_core::Ref<::qt_gui::QVector3D>>::cast_into(arg0)
.as_raw_ptr(),
)
}
#[inline(always)]
pub unsafe fn meta_object(&self) -> ::cpp_core::Ptr<::qt_core::QMetaObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_signal_wrapper_QVector3D_const_ref_metaObject(self as *const crate::SignalOfQVector3D)
};
::cpp_core::Ptr::from_raw(ffi_result as *mut ::qt_core::QMetaObject)
}
/// Creates a new object.
#[inline(always)]
pub unsafe fn new() -> ::qt_core::QBox<crate::SignalOfQVector3D> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_signal_wrapper_QVector3D_const_ref_ctr_qt_3d_core_ffi_signal_wrapper_QVector3D_const_ref()
};
::qt_core::QBox::from_raw(ffi_result)
}
#[inline(always)]
pub unsafe fn qt_metacall(
&self,
arg1: ::qt_core::q_meta_object::Call,
arg2: ::std::os::raw::c_int,
arg3: *mut *mut ::std::ffi::c_void,
) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_signal_wrapper_QVector3D_const_ref_qt_metacall(self as *const crate::SignalOfQVector3D as *mut crate::SignalOfQVector3D, arg1, arg2, arg3)
}
#[inline(always)]
pub unsafe fn qt_metacast(
&self,
arg1: *const ::std::os::raw::c_char,
) -> *mut ::std::ffi::c_void {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_signal_wrapper_QVector3D_const_ref_qt_metacast(self as *const crate::SignalOfQVector3D as *mut crate::SignalOfQVector3D, arg1)
}
#[inline(always)]
pub unsafe fn static_meta_object() -> ::cpp_core::Ref<::qt_core::QMetaObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_signal_wrapper_QVector3D_const_ref_staticMetaObject()
};
::cpp_core::Ref::from_raw(ffi_result as *mut ::qt_core::QMetaObject)
.expect("attempted to construct a null Ref")
}
#[inline(always)]
pub unsafe fn tr(
s: *const ::std::os::raw::c_char,
c: *const ::std::os::raw::c_char,
n: ::std::os::raw::c_int,
) -> ::cpp_core::CppBox<::qt_core::QString> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_signal_wrapper_QVector3D_const_ref_tr(s, c, n)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
#[inline(always)]
pub unsafe fn tr_utf8(
s: *const ::std::os::raw::c_char,
c: *const ::std::os::raw::c_char,
n: ::std::os::raw::c_int,
) -> ::cpp_core::CppBox<::qt_core::QString> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_signal_wrapper_QVector3D_const_ref_trUtf8(s, c, n)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
}
impl ::qt_core::AsReceiver for crate::SignalOfFloat {
type Arguments = (::std::os::raw::c_float,);
fn as_receiver(&self) -> ::qt_core::Receiver<Self::Arguments> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw(self).expect("attempted to construct a null Ref"),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2emit_(float)\0"),
)
}
}
}
impl crate::SignalOfFloat {
/// Connects this signal to another signal or slot.
///
/// This is a shortcut for `self.signal().connect(receiver)`.
pub unsafe fn connect_with_type<R>(
&self,
connection_type: ::qt_core::ConnectionType,
receiver: R,
) -> cpp_core::CppBox<::qt_core::q_meta_object::Connection>
where
R: ::qt_core::AsReceiver,
(::std::os::raw::c_float,): ::qt_core::ArgumentsCompatible<R::Arguments>,
{
self.signal().connect_with_type(connection_type, receiver)
}
/// Connects this signal to another signal or slot, using auto connection type.
///
/// This is a shortcut for `self.signal().connect(receiver)`.
pub unsafe fn connect<R>(
&self,
receiver: R,
) -> cpp_core::CppBox<::qt_core::q_meta_object::Connection>
where
R: ::qt_core::AsReceiver,
(::std::os::raw::c_float,): ::qt_core::ArgumentsCompatible<R::Arguments>,
{
self.signal().connect(receiver)
}
}
/// Emits a Qt signal with arguments `::std::os::raw::c_float`.
///
/// Corresponding C++ argument types: (<span style='color: green;'>```float```</span>).
///
/// Use `connect()` method of this object to connect this signal to a slot. Use `emit()` method to emit the signal.
#[repr(C)]
pub struct SignalOfFloat {
_unused: u8,
}
impl SignalOfFloat {
/// Returns a `Signal` object representing the signal.
///
/// This method is useful if you need to connect another signal to this signal. However, when you need to connect this signal to another signal or slot, it's simpler to use the `connect()` method of this object directly.
#[inline(always)]
pub fn signal(&self) -> ::qt_core::Signal<(::std::os::raw::c_float,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw(self).expect("attempted to construct a null Ref"),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2emit_(float)\0"),
)
}
}
/// Emits the signal.
#[inline(always)]
pub unsafe fn emit(&self, arg0: ::std::os::raw::c_float) {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_signal_wrapper_float_emit_(
self as *const crate::SignalOfFloat as *mut crate::SignalOfFloat,
arg0,
)
}
#[inline(always)]
pub unsafe fn meta_object(&self) -> ::cpp_core::Ptr<::qt_core::QMetaObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_signal_wrapper_float_metaObject(
self as *const crate::SignalOfFloat,
)
};
::cpp_core::Ptr::from_raw(ffi_result as *mut ::qt_core::QMetaObject)
}
/// Creates a new object.
#[inline(always)]
pub unsafe fn new() -> ::qt_core::QBox<crate::SignalOfFloat> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_signal_wrapper_float_ctr_qt_3d_core_ffi_signal_wrapper_float()
};
::qt_core::QBox::from_raw(ffi_result)
}
#[inline(always)]
pub unsafe fn qt_metacall(
&self,
arg1: ::qt_core::q_meta_object::Call,
arg2: ::std::os::raw::c_int,
arg3: *mut *mut ::std::ffi::c_void,
) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_signal_wrapper_float_qt_metacall(
self as *const crate::SignalOfFloat as *mut crate::SignalOfFloat,
arg1,
arg2,
arg3,
)
}
#[inline(always)]
pub unsafe fn qt_metacast(
&self,
arg1: *const ::std::os::raw::c_char,
) -> *mut ::std::ffi::c_void {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_signal_wrapper_float_qt_metacast(
self as *const crate::SignalOfFloat as *mut crate::SignalOfFloat,
arg1,
)
}
#[inline(always)]
pub unsafe fn static_meta_object() -> ::cpp_core::Ref<::qt_core::QMetaObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_signal_wrapper_float_staticMetaObject()
};
::cpp_core::Ref::from_raw(ffi_result as *mut ::qt_core::QMetaObject)
.expect("attempted to construct a null Ref")
}
#[inline(always)]
pub unsafe fn tr(
s: *const ::std::os::raw::c_char,
c: *const ::std::os::raw::c_char,
n: ::std::os::raw::c_int,
) -> ::cpp_core::CppBox<::qt_core::QString> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_signal_wrapper_float_tr(s, c, n)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
#[inline(always)]
pub unsafe fn tr_utf8(
s: *const ::std::os::raw::c_char,
c: *const ::std::os::raw::c_char,
n: ::std::os::raw::c_int,
) -> ::cpp_core::CppBox<::qt_core::QString> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_signal_wrapper_float_trUtf8(s, c, n)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
}
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::qt_core::AsReceiver for crate::SignalOfStatus {
type Arguments = (crate::q_skeleton_loader::Status,);
fn as_receiver(&self) -> ::qt_core::Receiver<Self::Arguments> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw(self).expect("attempted to construct a null Ref"),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"2emit_(Qt3DCore::QSkeletonLoader::Status)\0",
),
)
}
}
}
impl crate::SignalOfStatus {
/// Connects this signal to another signal or slot.
///
/// This is a shortcut for `self.signal().connect(receiver)`.
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn connect_with_type<R>(
&self,
connection_type: ::qt_core::ConnectionType,
receiver: R,
) -> cpp_core::CppBox<::qt_core::q_meta_object::Connection>
where
R: ::qt_core::AsReceiver,
(crate::q_skeleton_loader::Status,): ::qt_core::ArgumentsCompatible<R::Arguments>,
{
self.signal().connect_with_type(connection_type, receiver)
}
/// Connects this signal to another signal or slot, using auto connection type.
///
/// This is a shortcut for `self.signal().connect(receiver)`.
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn connect<R>(
&self,
receiver: R,
) -> cpp_core::CppBox<::qt_core::q_meta_object::Connection>
where
R: ::qt_core::AsReceiver,
(crate::q_skeleton_loader::Status,): ::qt_core::ArgumentsCompatible<R::Arguments>,
{
self.signal().connect(receiver)
}
}
/// Emits a Qt signal with arguments `crate::q_skeleton_loader::Status`.
///
/// Corresponding C++ argument types: (<span style='color: green;'>```Qt3DCore::QSkeletonLoader::Status```</span>).
///
/// Use `connect()` method of this object to connect this signal to a slot. Use `emit()` method to emit the signal.
#[repr(C)]
pub struct SignalOfStatus {
_unused: u8,
}
impl SignalOfStatus {
/// Returns a `Signal` object representing the signal.
///
/// This method is useful if you need to connect another signal to this signal. However, when you need to connect this signal to another signal or slot, it's simpler to use the `connect()` method of this object directly.
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub fn signal(&self) -> ::qt_core::Signal<(crate::q_skeleton_loader::Status,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw(self).expect("attempted to construct a null Ref"),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"2emit_(Qt3DCore::QSkeletonLoader::Status)\0",
),
)
}
}
/// Emits the signal.
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn emit(&self, arg0: crate::q_skeleton_loader::Status) {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_signal_wrapper_Qt3DCore_QSkeletonLoader_Status_emit_(self as *const crate::SignalOfStatus as *mut crate::SignalOfStatus, arg0)
}
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn meta_object(&self) -> ::cpp_core::Ptr<::qt_core::QMetaObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_signal_wrapper_Qt3DCore_QSkeletonLoader_Status_metaObject(self as *const crate::SignalOfStatus)
};
::cpp_core::Ptr::from_raw(ffi_result as *mut ::qt_core::QMetaObject)
}
/// Creates a new object.
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn new() -> ::qt_core::QBox<crate::SignalOfStatus> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_signal_wrapper_Qt3DCore_QSkeletonLoader_Status_ctr_qt_3d_core_ffi_signal_wrapper_Qt3DCore_QSkeletonLoader_Status()
};
::qt_core::QBox::from_raw(ffi_result)
}
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn qt_metacall(
&self,
arg1: ::qt_core::q_meta_object::Call,
arg2: ::std::os::raw::c_int,
arg3: *mut *mut ::std::ffi::c_void,
) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_signal_wrapper_Qt3DCore_QSkeletonLoader_Status_qt_metacall(self as *const crate::SignalOfStatus as *mut crate::SignalOfStatus, arg1, arg2, arg3)
}
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn qt_metacast(
&self,
arg1: *const ::std::os::raw::c_char,
) -> *mut ::std::ffi::c_void {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_signal_wrapper_Qt3DCore_QSkeletonLoader_Status_qt_metacast(self as *const crate::SignalOfStatus as *mut crate::SignalOfStatus, arg1)
}
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn static_meta_object() -> ::cpp_core::Ref<::qt_core::QMetaObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_signal_wrapper_Qt3DCore_QSkeletonLoader_Status_staticMetaObject()
};
::cpp_core::Ref::from_raw(ffi_result as *mut ::qt_core::QMetaObject)
.expect("attempted to construct a null Ref")
}
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn tr(
s: *const ::std::os::raw::c_char,
c: *const ::std::os::raw::c_char,
n: ::std::os::raw::c_int,
) -> ::cpp_core::CppBox<::qt_core::QString> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_signal_wrapper_Qt3DCore_QSkeletonLoader_Status_tr(s, c, n)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn tr_utf8(
s: *const ::std::os::raw::c_char,
c: *const ::std::os::raw::c_char,
n: ::std::os::raw::c_int,
) -> ::cpp_core::CppBox<::qt_core::QString> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_signal_wrapper_Qt3DCore_QSkeletonLoader_Status_trUtf8(s, c, n)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
}
impl ::qt_core::AsReceiver for crate::SignalOfQQuaternion {
type Arguments = (*const ::qt_gui::QQuaternion,);
fn as_receiver(&self) -> ::qt_core::Receiver<Self::Arguments> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw(self).expect("attempted to construct a null Ref"),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2emit_(QQuaternion const &)\0"),
)
}
}
}
impl crate::SignalOfQQuaternion {
/// Connects this signal to another signal or slot.
///
/// This is a shortcut for `self.signal().connect(receiver)`.
pub unsafe fn connect_with_type<R>(
&self,
connection_type: ::qt_core::ConnectionType,
receiver: R,
) -> cpp_core::CppBox<::qt_core::q_meta_object::Connection>
where
R: ::qt_core::AsReceiver,
(*const ::qt_gui::QQuaternion,): ::qt_core::ArgumentsCompatible<R::Arguments>,
{
self.signal().connect_with_type(connection_type, receiver)
}
/// Connects this signal to another signal or slot, using auto connection type.
///
/// This is a shortcut for `self.signal().connect(receiver)`.
pub unsafe fn connect<R>(
&self,
receiver: R,
) -> cpp_core::CppBox<::qt_core::q_meta_object::Connection>
where
R: ::qt_core::AsReceiver,
(*const ::qt_gui::QQuaternion,): ::qt_core::ArgumentsCompatible<R::Arguments>,
{
self.signal().connect(receiver)
}
}
/// Emits a Qt signal with arguments `*const ::qt_gui::QQuaternion`.
///
/// Corresponding C++ argument types: (<span style='color: green;'>```const QQuaternion&```</span>).
///
/// Use `connect()` method of this object to connect this signal to a slot. Use `emit()` method to emit the signal.
#[repr(C)]
pub struct SignalOfQQuaternion {
_unused: u8,
}
impl SignalOfQQuaternion {
/// Returns a `Signal` object representing the signal.
///
/// This method is useful if you need to connect another signal to this signal. However, when you need to connect this signal to another signal or slot, it's simpler to use the `connect()` method of this object directly.
#[inline(always)]
pub fn signal(&self) -> ::qt_core::Signal<(*const ::qt_gui::QQuaternion,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw(self).expect("attempted to construct a null Ref"),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2emit_(QQuaternion const &)\0"),
)
}
}
/// Emits the signal.
#[inline(always)]
pub unsafe fn emit(
&self,
arg0: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_gui::QQuaternion>>,
) {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_signal_wrapper_QQuaternion_const_ref_emit_(self as *const crate::SignalOfQQuaternion as *mut crate::SignalOfQQuaternion, ::cpp_core::CastInto::<::cpp_core::Ref<::qt_gui::QQuaternion>>::cast_into(arg0).as_raw_ptr())
}
#[inline(always)]
pub unsafe fn meta_object(&self) -> ::cpp_core::Ptr<::qt_core::QMetaObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_signal_wrapper_QQuaternion_const_ref_metaObject(self as *const crate::SignalOfQQuaternion)
};
::cpp_core::Ptr::from_raw(ffi_result as *mut ::qt_core::QMetaObject)
}
/// Creates a new object.
#[inline(always)]
pub unsafe fn new() -> ::qt_core::QBox<crate::SignalOfQQuaternion> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_signal_wrapper_QQuaternion_const_ref_ctr_qt_3d_core_ffi_signal_wrapper_QQuaternion_const_ref()
};
::qt_core::QBox::from_raw(ffi_result)
}
#[inline(always)]
pub unsafe fn qt_metacall(
&self,
arg1: ::qt_core::q_meta_object::Call,
arg2: ::std::os::raw::c_int,
arg3: *mut *mut ::std::ffi::c_void,
) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_signal_wrapper_QQuaternion_const_ref_qt_metacall(self as *const crate::SignalOfQQuaternion as *mut crate::SignalOfQQuaternion, arg1, arg2, arg3)
}
#[inline(always)]
pub unsafe fn qt_metacast(
&self,
arg1: *const ::std::os::raw::c_char,
) -> *mut ::std::ffi::c_void {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_signal_wrapper_QQuaternion_const_ref_qt_metacast(self as *const crate::SignalOfQQuaternion as *mut crate::SignalOfQQuaternion, arg1)
}
#[inline(always)]
pub unsafe fn static_meta_object() -> ::cpp_core::Ref<::qt_core::QMetaObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_signal_wrapper_QQuaternion_const_ref_staticMetaObject()
};
::cpp_core::Ref::from_raw(ffi_result as *mut ::qt_core::QMetaObject)
.expect("attempted to construct a null Ref")
}
#[inline(always)]
pub unsafe fn tr(
s: *const ::std::os::raw::c_char,
c: *const ::std::os::raw::c_char,
n: ::std::os::raw::c_int,
) -> ::cpp_core::CppBox<::qt_core::QString> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_signal_wrapper_QQuaternion_const_ref_tr(s, c, n)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
#[inline(always)]
pub unsafe fn tr_utf8(
s: *const ::std::os::raw::c_char,
c: *const ::std::os::raw::c_char,
n: ::std::os::raw::c_int,
) -> ::cpp_core::CppBox<::qt_core::QString> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_signal_wrapper_QQuaternion_const_ref_trUtf8(s, c, n)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
}
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::qt_core::AsReceiver for crate::SlotOfStatus {
type Arguments = (crate::q_skeleton_loader::Status,);
fn as_receiver(&self) -> ::qt_core::Receiver<Self::Arguments> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw(self).expect("attempted to construct a null Ref"),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"1slot_(Qt3DCore::QSkeletonLoader::Status)\0",
),
)
}
}
}
/// Binds a Qt signal with arguments `crate::q_skeleton_loader::Status` to a Rust closure.
///
/// Corresponding C++ argument types: (<span style='color: green;'>```Qt3DCore::QSkeletonLoader::Status```</span>).
///
/// Create an object using `new()` and bind your closure using `set()`. The closure will be called with the signal's arguments when the slot is invoked. Use `connect()` method of a `qt_core::Signal` object to connect the signal to this slot. The closure will be executed each time the slot is invoked until source signals are disconnected or the slot object is destroyed.
///
/// The slot object takes ownership of the passed closure. If `set()` is called again, previously set closure is dropped. Make sure that the slot object does not outlive objects referenced by the closure.
///
/// If `set()` was not called, slot invocation has no effect.
#[repr(C)]
pub struct SlotOfStatus {
_unused: u8,
}
impl SlotOfStatus {
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn meta_object(&self) -> ::cpp_core::Ptr<::qt_core::QMetaObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_slot_wrapper_Qt3DCore_QSkeletonLoader_Status_metaObject(self as *const crate::SlotOfStatus)
};
::cpp_core::Ptr::from_raw(ffi_result as *mut ::qt_core::QMetaObject)
}
/// Creates a new object.
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn new<T: FnMut(crate::q_skeleton_loader::Status) + 'static>(
parent: impl ::cpp_core::CastInto<::cpp_core::Ptr<::qt_core::QObject>>,
callback: T,
) -> ::qt_core::QBox<crate::SlotOfStatus> {
let ffi_result = {
extern "C" fn deleter<T>(data: *mut ::std::ffi::c_void) {
unsafe {
let _ = Box::from_raw(data as *mut T);
}
}
extern "C" fn ffi_callback<T: FnMut(crate::q_skeleton_loader::Status) + 'static>(
data: *mut ::std::ffi::c_void,
arg0: crate::q_skeleton_loader::Status,
) {
unsafe { (*(data as *mut T))(arg0) }
}
let data = Box::into_raw(Box::new(callback)) as *mut ::std::ffi::c_void;
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_slot_wrapper_Qt3DCore_QSkeletonLoader_Status_ctr_qt_3d_core_ffi_slot_wrapper_Qt3DCore_QSkeletonLoader_Status(::cpp_core::CastInto::<::cpp_core::Ptr<::qt_core::QObject>>::cast_into(parent).as_raw_ptr() as *mut ::qt_core::QObject, Some(ffi_callback::<T>), Some(deleter::<T>), data)
};
::qt_core::QBox::from_raw(ffi_result)
}
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn qt_metacall(
&self,
arg1: ::qt_core::q_meta_object::Call,
arg2: ::std::os::raw::c_int,
arg3: *mut *mut ::std::ffi::c_void,
) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_slot_wrapper_Qt3DCore_QSkeletonLoader_Status_qt_metacall(self as *const crate::SlotOfStatus as *mut crate::SlotOfStatus, arg1, arg2, arg3)
}
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn qt_metacast(
&self,
arg1: *const ::std::os::raw::c_char,
) -> *mut ::std::ffi::c_void {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_slot_wrapper_Qt3DCore_QSkeletonLoader_Status_qt_metacast(self as *const crate::SlotOfStatus as *mut crate::SlotOfStatus, arg1)
}
/// Assigns `callback` as the signal handler.
///
/// `func` will be called each time a connected signal is emitted. Any previously assigned function will be deregistered. Passing `None` will deregister the handler without setting a new one.
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn set<T: FnMut(crate::q_skeleton_loader::Status) + 'static>(&self, callback: T) {
extern "C" fn deleter<T>(data: *mut ::std::ffi::c_void) {
unsafe {
let _ = Box::from_raw(data as *mut T);
}
}
extern "C" fn ffi_callback<T: FnMut(crate::q_skeleton_loader::Status) + 'static>(
data: *mut ::std::ffi::c_void,
arg0: crate::q_skeleton_loader::Status,
) {
unsafe { (*(data as *mut T))(arg0) }
}
let data = Box::into_raw(Box::new(callback)) as *mut ::std::ffi::c_void;
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_slot_wrapper_Qt3DCore_QSkeletonLoader_Status_set(self as *const crate::SlotOfStatus as *mut crate::SlotOfStatus, Some(ffi_callback::<T>), Some(deleter::<T>), data)
}
/// Calls the slot directly, invoking the assigned handler (if any).
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn slot(&self, arg0: crate::q_skeleton_loader::Status) {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_slot_wrapper_Qt3DCore_QSkeletonLoader_Status_slot_(self as *const crate::SlotOfStatus as *mut crate::SlotOfStatus, arg0)
}
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn static_meta_object() -> ::cpp_core::Ref<::qt_core::QMetaObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_slot_wrapper_Qt3DCore_QSkeletonLoader_Status_staticMetaObject()
};
::cpp_core::Ref::from_raw(ffi_result as *mut ::qt_core::QMetaObject)
.expect("attempted to construct a null Ref")
}
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn tr(
s: *const ::std::os::raw::c_char,
c: *const ::std::os::raw::c_char,
n: ::std::os::raw::c_int,
) -> ::cpp_core::CppBox<::qt_core::QString> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_slot_wrapper_Qt3DCore_QSkeletonLoader_Status_tr(s, c, n)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn tr_utf8(
s: *const ::std::os::raw::c_char,
c: *const ::std::os::raw::c_char,
n: ::std::os::raw::c_int,
) -> ::cpp_core::CppBox<::qt_core::QString> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_slot_wrapper_Qt3DCore_QSkeletonLoader_Status_trUtf8(s, c, n)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
}
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::qt_core::AsReceiver for crate::SlotOfQAbstractSkeleton {
type Arguments = (*mut crate::QAbstractSkeleton,);
fn as_receiver(&self) -> ::qt_core::Receiver<Self::Arguments> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw(self).expect("attempted to construct a null Ref"),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"1slot_(Qt3DCore::QAbstractSkeleton *)\0",
),
)
}
}
}
/// Binds a Qt signal with arguments `*mut crate::QAbstractSkeleton` to a Rust closure.
///
/// Corresponding C++ argument types: (<span style='color: green;'>```Qt3DCore::QAbstractSkeleton*```</span>).
///
/// Create an object using `new()` and bind your closure using `set()`. The closure will be called with the signal's arguments when the slot is invoked. Use `connect()` method of a `qt_core::Signal` object to connect the signal to this slot. The closure will be executed each time the slot is invoked until source signals are disconnected or the slot object is destroyed.
///
/// The slot object takes ownership of the passed closure. If `set()` is called again, previously set closure is dropped. Make sure that the slot object does not outlive objects referenced by the closure.
///
/// If `set()` was not called, slot invocation has no effect.
#[repr(C)]
pub struct SlotOfQAbstractSkeleton {
_unused: u8,
}
impl SlotOfQAbstractSkeleton {
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn meta_object(&self) -> ::cpp_core::Ptr<::qt_core::QMetaObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_slot_wrapper_Qt3DCore_QAbstractSkeleton_ptr_metaObject(self as *const crate::SlotOfQAbstractSkeleton)
};
::cpp_core::Ptr::from_raw(ffi_result as *mut ::qt_core::QMetaObject)
}
/// Creates a new object.
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn new<T: FnMut(::qt_core::QPtr<crate::QAbstractSkeleton>) + 'static>(
parent: impl ::cpp_core::CastInto<::cpp_core::Ptr<::qt_core::QObject>>,
callback: T,
) -> ::qt_core::QBox<crate::SlotOfQAbstractSkeleton> {
let ffi_result = {
extern "C" fn deleter<T>(data: *mut ::std::ffi::c_void) {
unsafe {
let _ = Box::from_raw(data as *mut T);
}
}
extern "C" fn ffi_callback<
T: FnMut(::qt_core::QPtr<crate::QAbstractSkeleton>) + 'static,
>(
data: *mut ::std::ffi::c_void,
arg0: *mut crate::QAbstractSkeleton,
) {
unsafe { (*(data as *mut T))(::qt_core::QPtr::from_raw(arg0)) }
}
let data = Box::into_raw(Box::new(callback)) as *mut ::std::ffi::c_void;
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_slot_wrapper_Qt3DCore_QAbstractSkeleton_ptr_ctr_qt_3d_core_ffi_slot_wrapper_Qt3DCore_QAbstractSkeleton_ptr(::cpp_core::CastInto::<::cpp_core::Ptr<::qt_core::QObject>>::cast_into(parent).as_raw_ptr() as *mut ::qt_core::QObject, Some(ffi_callback::<T>), Some(deleter::<T>), data)
};
::qt_core::QBox::from_raw(ffi_result)
}
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn qt_metacall(
&self,
arg1: ::qt_core::q_meta_object::Call,
arg2: ::std::os::raw::c_int,
arg3: *mut *mut ::std::ffi::c_void,
) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_slot_wrapper_Qt3DCore_QAbstractSkeleton_ptr_qt_metacall(self as *const crate::SlotOfQAbstractSkeleton as *mut crate::SlotOfQAbstractSkeleton, arg1, arg2, arg3)
}
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn qt_metacast(
&self,
arg1: *const ::std::os::raw::c_char,
) -> *mut ::std::ffi::c_void {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_slot_wrapper_Qt3DCore_QAbstractSkeleton_ptr_qt_metacast(self as *const crate::SlotOfQAbstractSkeleton as *mut crate::SlotOfQAbstractSkeleton, arg1)
}
/// Assigns `callback` as the signal handler.
///
/// `func` will be called each time a connected signal is emitted. Any previously assigned function will be deregistered. Passing `None` will deregister the handler without setting a new one.
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn set<T: FnMut(::qt_core::QPtr<crate::QAbstractSkeleton>) + 'static>(
&self,
callback: T,
) {
extern "C" fn deleter<T>(data: *mut ::std::ffi::c_void) {
unsafe {
let _ = Box::from_raw(data as *mut T);
}
}
extern "C" fn ffi_callback<
T: FnMut(::qt_core::QPtr<crate::QAbstractSkeleton>) + 'static,
>(
data: *mut ::std::ffi::c_void,
arg0: *mut crate::QAbstractSkeleton,
) {
unsafe { (*(data as *mut T))(::qt_core::QPtr::from_raw(arg0)) }
}
let data = Box::into_raw(Box::new(callback)) as *mut ::std::ffi::c_void;
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_slot_wrapper_Qt3DCore_QAbstractSkeleton_ptr_set(self as *const crate::SlotOfQAbstractSkeleton as *mut crate::SlotOfQAbstractSkeleton, Some(ffi_callback::<T>), Some(deleter::<T>), data)
}
/// Calls the slot directly, invoking the assigned handler (if any).
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn slot(
&self,
arg0: impl ::cpp_core::CastInto<::cpp_core::Ptr<crate::QAbstractSkeleton>>,
) {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_slot_wrapper_Qt3DCore_QAbstractSkeleton_ptr_slot_(self as *const crate::SlotOfQAbstractSkeleton as *mut crate::SlotOfQAbstractSkeleton, ::cpp_core::CastInto::<::cpp_core::Ptr<crate::QAbstractSkeleton>>::cast_into(arg0).as_raw_ptr() as *mut crate::QAbstractSkeleton)
}
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn static_meta_object() -> ::cpp_core::Ref<::qt_core::QMetaObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_slot_wrapper_Qt3DCore_QAbstractSkeleton_ptr_staticMetaObject()
};
::cpp_core::Ref::from_raw(ffi_result as *mut ::qt_core::QMetaObject)
.expect("attempted to construct a null Ref")
}
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn tr(
s: *const ::std::os::raw::c_char,
c: *const ::std::os::raw::c_char,
n: ::std::os::raw::c_int,
) -> ::cpp_core::CppBox<::qt_core::QString> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_slot_wrapper_Qt3DCore_QAbstractSkeleton_ptr_tr(s, c, n)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn tr_utf8(
s: *const ::std::os::raw::c_char,
c: *const ::std::os::raw::c_char,
n: ::std::os::raw::c_int,
) -> ::cpp_core::CppBox<::qt_core::QString> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_slot_wrapper_Qt3DCore_QAbstractSkeleton_ptr_trUtf8(s, c, n)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
}
impl ::qt_core::AsReceiver for crate::SlotOfPropertyTrackingMode {
type Arguments = (crate::q_node::PropertyTrackingMode,);
fn as_receiver(&self) -> ::qt_core::Receiver<Self::Arguments> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw(self).expect("attempted to construct a null Ref"),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"1slot_(Qt3DCore::QNode::PropertyTrackingMode)\0",
),
)
}
}
}
/// Binds a Qt signal with arguments `crate::q_node::PropertyTrackingMode` to a Rust closure.
///
/// Corresponding C++ argument types: (<span style='color: green;'>```Qt3DCore::QNode::PropertyTrackingMode```</span>).
///
/// Create an object using `new()` and bind your closure using `set()`. The closure will be called with the signal's arguments when the slot is invoked. Use `connect()` method of a `qt_core::Signal` object to connect the signal to this slot. The closure will be executed each time the slot is invoked until source signals are disconnected or the slot object is destroyed.
///
/// The slot object takes ownership of the passed closure. If `set()` is called again, previously set closure is dropped. Make sure that the slot object does not outlive objects referenced by the closure.
///
/// If `set()` was not called, slot invocation has no effect.
#[repr(C)]
pub struct SlotOfPropertyTrackingMode {
_unused: u8,
}
impl SlotOfPropertyTrackingMode {
#[inline(always)]
pub unsafe fn meta_object(&self) -> ::cpp_core::Ptr<::qt_core::QMetaObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_slot_wrapper_Qt3DCore_QNode_PropertyTrackingMode_metaObject(self as *const crate::SlotOfPropertyTrackingMode)
};
::cpp_core::Ptr::from_raw(ffi_result as *mut ::qt_core::QMetaObject)
}
/// Creates a new object.
#[inline(always)]
pub unsafe fn new<T: FnMut(crate::q_node::PropertyTrackingMode) + 'static>(
parent: impl ::cpp_core::CastInto<::cpp_core::Ptr<::qt_core::QObject>>,
callback: T,
) -> ::qt_core::QBox<crate::SlotOfPropertyTrackingMode> {
let ffi_result = {
extern "C" fn deleter<T>(data: *mut ::std::ffi::c_void) {
unsafe {
let _ = Box::from_raw(data as *mut T);
}
}
extern "C" fn ffi_callback<T: FnMut(crate::q_node::PropertyTrackingMode) + 'static>(
data: *mut ::std::ffi::c_void,
arg0: crate::q_node::PropertyTrackingMode,
) {
unsafe { (*(data as *mut T))(arg0) }
}
let data = Box::into_raw(Box::new(callback)) as *mut ::std::ffi::c_void;
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_slot_wrapper_Qt3DCore_QNode_PropertyTrackingMode_ctr_qt_3d_core_ffi_slot_wrapper_Qt3DCore_QNode_PropertyTrackingMode(::cpp_core::CastInto::<::cpp_core::Ptr<::qt_core::QObject>>::cast_into(parent).as_raw_ptr() as *mut ::qt_core::QObject, Some(ffi_callback::<T>), Some(deleter::<T>), data)
};
::qt_core::QBox::from_raw(ffi_result)
}
#[inline(always)]
pub unsafe fn qt_metacall(
&self,
arg1: ::qt_core::q_meta_object::Call,
arg2: ::std::os::raw::c_int,
arg3: *mut *mut ::std::ffi::c_void,
) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_slot_wrapper_Qt3DCore_QNode_PropertyTrackingMode_qt_metacall(self as *const crate::SlotOfPropertyTrackingMode as *mut crate::SlotOfPropertyTrackingMode, arg1, arg2, arg3)
}
#[inline(always)]
pub unsafe fn qt_metacast(
&self,
arg1: *const ::std::os::raw::c_char,
) -> *mut ::std::ffi::c_void {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_slot_wrapper_Qt3DCore_QNode_PropertyTrackingMode_qt_metacast(self as *const crate::SlotOfPropertyTrackingMode as *mut crate::SlotOfPropertyTrackingMode, arg1)
}
/// Assigns `callback` as the signal handler.
///
/// `func` will be called each time a connected signal is emitted. Any previously assigned function will be deregistered. Passing `None` will deregister the handler without setting a new one.
#[inline(always)]
pub unsafe fn set<T: FnMut(crate::q_node::PropertyTrackingMode) + 'static>(&self, callback: T) {
extern "C" fn deleter<T>(data: *mut ::std::ffi::c_void) {
unsafe {
let _ = Box::from_raw(data as *mut T);
}
}
extern "C" fn ffi_callback<T: FnMut(crate::q_node::PropertyTrackingMode) + 'static>(
data: *mut ::std::ffi::c_void,
arg0: crate::q_node::PropertyTrackingMode,
) {
unsafe { (*(data as *mut T))(arg0) }
}
let data = Box::into_raw(Box::new(callback)) as *mut ::std::ffi::c_void;
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_slot_wrapper_Qt3DCore_QNode_PropertyTrackingMode_set(self as *const crate::SlotOfPropertyTrackingMode as *mut crate::SlotOfPropertyTrackingMode, Some(ffi_callback::<T>), Some(deleter::<T>), data)
}
/// Calls the slot directly, invoking the assigned handler (if any).
#[inline(always)]
pub unsafe fn slot(&self, arg0: crate::q_node::PropertyTrackingMode) {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_slot_wrapper_Qt3DCore_QNode_PropertyTrackingMode_slot_(self as *const crate::SlotOfPropertyTrackingMode as *mut crate::SlotOfPropertyTrackingMode, arg0)
}
#[inline(always)]
pub unsafe fn static_meta_object() -> ::cpp_core::Ref<::qt_core::QMetaObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_slot_wrapper_Qt3DCore_QNode_PropertyTrackingMode_staticMetaObject()
};
::cpp_core::Ref::from_raw(ffi_result as *mut ::qt_core::QMetaObject)
.expect("attempted to construct a null Ref")
}
#[inline(always)]
pub unsafe fn tr(
s: *const ::std::os::raw::c_char,
c: *const ::std::os::raw::c_char,
n: ::std::os::raw::c_int,
) -> ::cpp_core::CppBox<::qt_core::QString> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_slot_wrapper_Qt3DCore_QNode_PropertyTrackingMode_tr(s, c, n)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
#[inline(always)]
pub unsafe fn tr_utf8(
s: *const ::std::os::raw::c_char,
c: *const ::std::os::raw::c_char,
n: ::std::os::raw::c_int,
) -> ::cpp_core::CppBox<::qt_core::QString> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_slot_wrapper_Qt3DCore_QNode_PropertyTrackingMode_trUtf8(s, c, n)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
}
impl ::qt_core::AsReceiver for crate::SlotOfQQuaternion {
type Arguments = (*const ::qt_gui::QQuaternion,);
fn as_receiver(&self) -> ::qt_core::Receiver<Self::Arguments> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw(self).expect("attempted to construct a null Ref"),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1slot_(QQuaternion const &)\0"),
)
}
}
}
/// Binds a Qt signal with arguments `*const ::qt_gui::QQuaternion` to a Rust closure.
///
/// Corresponding C++ argument types: (<span style='color: green;'>```const QQuaternion&```</span>).
///
/// Create an object using `new()` and bind your closure using `set()`. The closure will be called with the signal's arguments when the slot is invoked. Use `connect()` method of a `qt_core::Signal` object to connect the signal to this slot. The closure will be executed each time the slot is invoked until source signals are disconnected or the slot object is destroyed.
///
/// The slot object takes ownership of the passed closure. If `set()` is called again, previously set closure is dropped. Make sure that the slot object does not outlive objects referenced by the closure.
///
/// If `set()` was not called, slot invocation has no effect.
#[repr(C)]
pub struct SlotOfQQuaternion {
_unused: u8,
}
impl SlotOfQQuaternion {
#[inline(always)]
pub unsafe fn meta_object(&self) -> ::cpp_core::Ptr<::qt_core::QMetaObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_slot_wrapper_QQuaternion_const_ref_metaObject(self as *const crate::SlotOfQQuaternion)
};
::cpp_core::Ptr::from_raw(ffi_result as *mut ::qt_core::QMetaObject)
}
/// Creates a new object.
#[inline(always)]
pub unsafe fn new<T: FnMut(::cpp_core::Ref<::qt_gui::QQuaternion>) + 'static>(
parent: impl ::cpp_core::CastInto<::cpp_core::Ptr<::qt_core::QObject>>,
callback: T,
) -> ::qt_core::QBox<crate::SlotOfQQuaternion> {
let ffi_result = {
extern "C" fn deleter<T>(data: *mut ::std::ffi::c_void) {
unsafe {
let _ = Box::from_raw(data as *mut T);
}
}
extern "C" fn ffi_callback<
T: FnMut(::cpp_core::Ref<::qt_gui::QQuaternion>) + 'static,
>(
data: *mut ::std::ffi::c_void,
arg0: *const ::qt_gui::QQuaternion,
) {
unsafe {
(*(data as *mut T))(
::cpp_core::Ref::from_raw(arg0 as *mut ::qt_gui::QQuaternion)
.expect("attempted to construct a null Ref"),
)
}
}
let data = Box::into_raw(Box::new(callback)) as *mut ::std::ffi::c_void;
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_slot_wrapper_QQuaternion_const_ref_ctr_qt_3d_core_ffi_slot_wrapper_QQuaternion_const_ref(::cpp_core::CastInto::<::cpp_core::Ptr<::qt_core::QObject>>::cast_into(parent).as_raw_ptr() as *mut ::qt_core::QObject, Some(ffi_callback::<T>), Some(deleter::<T>), data)
};
::qt_core::QBox::from_raw(ffi_result)
}
#[inline(always)]
pub unsafe fn qt_metacall(
&self,
arg1: ::qt_core::q_meta_object::Call,
arg2: ::std::os::raw::c_int,
arg3: *mut *mut ::std::ffi::c_void,
) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_slot_wrapper_QQuaternion_const_ref_qt_metacall(self as *const crate::SlotOfQQuaternion as *mut crate::SlotOfQQuaternion, arg1, arg2, arg3)
}
#[inline(always)]
pub unsafe fn qt_metacast(
&self,
arg1: *const ::std::os::raw::c_char,
) -> *mut ::std::ffi::c_void {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_slot_wrapper_QQuaternion_const_ref_qt_metacast(self as *const crate::SlotOfQQuaternion as *mut crate::SlotOfQQuaternion, arg1)
}
/// Assigns `callback` as the signal handler.
///
/// `func` will be called each time a connected signal is emitted. Any previously assigned function will be deregistered. Passing `None` will deregister the handler without setting a new one.
#[inline(always)]
pub unsafe fn set<T: FnMut(::cpp_core::Ref<::qt_gui::QQuaternion>) + 'static>(
&self,
callback: T,
) {
extern "C" fn deleter<T>(data: *mut ::std::ffi::c_void) {
unsafe {
let _ = Box::from_raw(data as *mut T);
}
}
extern "C" fn ffi_callback<T: FnMut(::cpp_core::Ref<::qt_gui::QQuaternion>) + 'static>(
data: *mut ::std::ffi::c_void,
arg0: *const ::qt_gui::QQuaternion,
) {
unsafe {
(*(data as *mut T))(
::cpp_core::Ref::from_raw(arg0 as *mut ::qt_gui::QQuaternion)
.expect("attempted to construct a null Ref"),
)
}
}
let data = Box::into_raw(Box::new(callback)) as *mut ::std::ffi::c_void;
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_slot_wrapper_QQuaternion_const_ref_set(
self as *const crate::SlotOfQQuaternion as *mut crate::SlotOfQQuaternion,
Some(ffi_callback::<T>),
Some(deleter::<T>),
data,
)
}
/// Calls the slot directly, invoking the assigned handler (if any).
#[inline(always)]
pub unsafe fn slot(
&self,
arg0: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_gui::QQuaternion>>,
) {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_slot_wrapper_QQuaternion_const_ref_slot_(
self as *const crate::SlotOfQQuaternion as *mut crate::SlotOfQQuaternion,
::cpp_core::CastInto::<::cpp_core::Ref<::qt_gui::QQuaternion>>::cast_into(arg0)
.as_raw_ptr(),
)
}
#[inline(always)]
pub unsafe fn static_meta_object() -> ::cpp_core::Ref<::qt_core::QMetaObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_slot_wrapper_QQuaternion_const_ref_staticMetaObject()
};
::cpp_core::Ref::from_raw(ffi_result as *mut ::qt_core::QMetaObject)
.expect("attempted to construct a null Ref")
}
#[inline(always)]
pub unsafe fn tr(
s: *const ::std::os::raw::c_char,
c: *const ::std::os::raw::c_char,
n: ::std::os::raw::c_int,
) -> ::cpp_core::CppBox<::qt_core::QString> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_slot_wrapper_QQuaternion_const_ref_tr(s, c, n)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
#[inline(always)]
pub unsafe fn tr_utf8(
s: *const ::std::os::raw::c_char,
c: *const ::std::os::raw::c_char,
n: ::std::os::raw::c_int,
) -> ::cpp_core::CppBox<::qt_core::QString> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_slot_wrapper_QQuaternion_const_ref_trUtf8(s, c, n)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
}
impl ::qt_core::AsReceiver for crate::SlotOfQEntity {
type Arguments = (*mut crate::QEntity,);
fn as_receiver(&self) -> ::qt_core::Receiver<Self::Arguments> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw(self).expect("attempted to construct a null Ref"),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1slot_(Qt3DCore::QEntity *)\0"),
)
}
}
}
/// Binds a Qt signal with arguments `*mut crate::QEntity` to a Rust closure.
///
/// Corresponding C++ argument types: (<span style='color: green;'>```Qt3DCore::QEntity*```</span>).
///
/// Create an object using `new()` and bind your closure using `set()`. The closure will be called with the signal's arguments when the slot is invoked. Use `connect()` method of a `qt_core::Signal` object to connect the signal to this slot. The closure will be executed each time the slot is invoked until source signals are disconnected or the slot object is destroyed.
///
/// The slot object takes ownership of the passed closure. If `set()` is called again, previously set closure is dropped. Make sure that the slot object does not outlive objects referenced by the closure.
///
/// If `set()` was not called, slot invocation has no effect.
#[repr(C)]
pub struct SlotOfQEntity {
_unused: u8,
}
impl SlotOfQEntity {
#[inline(always)]
pub unsafe fn meta_object(&self) -> ::cpp_core::Ptr<::qt_core::QMetaObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_slot_wrapper_Qt3DCore_QEntity_ptr_metaObject(self as *const crate::SlotOfQEntity)
};
::cpp_core::Ptr::from_raw(ffi_result as *mut ::qt_core::QMetaObject)
}
/// Creates a new object.
#[inline(always)]
pub unsafe fn new<T: FnMut(::qt_core::QPtr<crate::QEntity>) + 'static>(
parent: impl ::cpp_core::CastInto<::cpp_core::Ptr<::qt_core::QObject>>,
callback: T,
) -> ::qt_core::QBox<crate::SlotOfQEntity> {
let ffi_result = {
extern "C" fn deleter<T>(data: *mut ::std::ffi::c_void) {
unsafe {
let _ = Box::from_raw(data as *mut T);
}
}
extern "C" fn ffi_callback<T: FnMut(::qt_core::QPtr<crate::QEntity>) + 'static>(
data: *mut ::std::ffi::c_void,
arg0: *mut crate::QEntity,
) {
unsafe { (*(data as *mut T))(::qt_core::QPtr::from_raw(arg0)) }
}
let data = Box::into_raw(Box::new(callback)) as *mut ::std::ffi::c_void;
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_slot_wrapper_Qt3DCore_QEntity_ptr_ctr_qt_3d_core_ffi_slot_wrapper_Qt3DCore_QEntity_ptr(::cpp_core::CastInto::<::cpp_core::Ptr<::qt_core::QObject>>::cast_into(parent).as_raw_ptr() as *mut ::qt_core::QObject, Some(ffi_callback::<T>), Some(deleter::<T>), data)
};
::qt_core::QBox::from_raw(ffi_result)
}
#[inline(always)]
pub unsafe fn qt_metacall(
&self,
arg1: ::qt_core::q_meta_object::Call,
arg2: ::std::os::raw::c_int,
arg3: *mut *mut ::std::ffi::c_void,
) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_slot_wrapper_Qt3DCore_QEntity_ptr_qt_metacall(self as *const crate::SlotOfQEntity as *mut crate::SlotOfQEntity, arg1, arg2, arg3)
}
#[inline(always)]
pub unsafe fn qt_metacast(
&self,
arg1: *const ::std::os::raw::c_char,
) -> *mut ::std::ffi::c_void {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_slot_wrapper_Qt3DCore_QEntity_ptr_qt_metacast(self as *const crate::SlotOfQEntity as *mut crate::SlotOfQEntity, arg1)
}
/// Assigns `callback` as the signal handler.
///
/// `func` will be called each time a connected signal is emitted. Any previously assigned function will be deregistered. Passing `None` will deregister the handler without setting a new one.
#[inline(always)]
pub unsafe fn set<T: FnMut(::qt_core::QPtr<crate::QEntity>) + 'static>(&self, callback: T) {
extern "C" fn deleter<T>(data: *mut ::std::ffi::c_void) {
unsafe {
let _ = Box::from_raw(data as *mut T);
}
}
extern "C" fn ffi_callback<T: FnMut(::qt_core::QPtr<crate::QEntity>) + 'static>(
data: *mut ::std::ffi::c_void,
arg0: *mut crate::QEntity,
) {
unsafe { (*(data as *mut T))(::qt_core::QPtr::from_raw(arg0)) }
}
let data = Box::into_raw(Box::new(callback)) as *mut ::std::ffi::c_void;
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_slot_wrapper_Qt3DCore_QEntity_ptr_set(
self as *const crate::SlotOfQEntity as *mut crate::SlotOfQEntity,
Some(ffi_callback::<T>),
Some(deleter::<T>),
data,
)
}
/// Calls the slot directly, invoking the assigned handler (if any).
#[inline(always)]
pub unsafe fn slot(&self, arg0: impl ::cpp_core::CastInto<::cpp_core::Ptr<crate::QEntity>>) {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_slot_wrapper_Qt3DCore_QEntity_ptr_slot_(
self as *const crate::SlotOfQEntity as *mut crate::SlotOfQEntity,
::cpp_core::CastInto::<::cpp_core::Ptr<crate::QEntity>>::cast_into(arg0).as_raw_ptr()
as *mut crate::QEntity,
)
}
#[inline(always)]
pub unsafe fn static_meta_object() -> ::cpp_core::Ref<::qt_core::QMetaObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_slot_wrapper_Qt3DCore_QEntity_ptr_staticMetaObject()
};
::cpp_core::Ref::from_raw(ffi_result as *mut ::qt_core::QMetaObject)
.expect("attempted to construct a null Ref")
}
#[inline(always)]
pub unsafe fn tr(
s: *const ::std::os::raw::c_char,
c: *const ::std::os::raw::c_char,
n: ::std::os::raw::c_int,
) -> ::cpp_core::CppBox<::qt_core::QString> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_slot_wrapper_Qt3DCore_QEntity_ptr_tr(
s, c, n,
)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
#[inline(always)]
pub unsafe fn tr_utf8(
s: *const ::std::os::raw::c_char,
c: *const ::std::os::raw::c_char,
n: ::std::os::raw::c_int,
) -> ::cpp_core::CppBox<::qt_core::QString> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_slot_wrapper_Qt3DCore_QEntity_ptr_trUtf8(s, c, n)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
}
impl ::qt_core::AsReceiver for crate::SlotOfQMatrix4X4 {
type Arguments = (*const ::qt_gui::QMatrix4X4,);
fn as_receiver(&self) -> ::qt_core::Receiver<Self::Arguments> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw(self).expect("attempted to construct a null Ref"),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1slot_(QMatrix4x4 const &)\0"),
)
}
}
}
/// Binds a Qt signal with arguments `*const ::qt_gui::QMatrix4X4` to a Rust closure.
///
/// Corresponding C++ argument types: (<span style='color: green;'>```const QMatrix4x4&```</span>).
///
/// Create an object using `new()` and bind your closure using `set()`. The closure will be called with the signal's arguments when the slot is invoked. Use `connect()` method of a `qt_core::Signal` object to connect the signal to this slot. The closure will be executed each time the slot is invoked until source signals are disconnected or the slot object is destroyed.
///
/// The slot object takes ownership of the passed closure. If `set()` is called again, previously set closure is dropped. Make sure that the slot object does not outlive objects referenced by the closure.
///
/// If `set()` was not called, slot invocation has no effect.
#[repr(C)]
pub struct SlotOfQMatrix4X4 {
_unused: u8,
}
impl SlotOfQMatrix4X4 {
#[inline(always)]
pub unsafe fn meta_object(&self) -> ::cpp_core::Ptr<::qt_core::QMetaObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_slot_wrapper_QMatrix4x4_const_ref_metaObject(self as *const crate::SlotOfQMatrix4X4)
};
::cpp_core::Ptr::from_raw(ffi_result as *mut ::qt_core::QMetaObject)
}
/// Creates a new object.
#[inline(always)]
pub unsafe fn new<T: FnMut(::cpp_core::Ref<::qt_gui::QMatrix4X4>) + 'static>(
parent: impl ::cpp_core::CastInto<::cpp_core::Ptr<::qt_core::QObject>>,
callback: T,
) -> ::qt_core::QBox<crate::SlotOfQMatrix4X4> {
let ffi_result = {
extern "C" fn deleter<T>(data: *mut ::std::ffi::c_void) {
unsafe {
let _ = Box::from_raw(data as *mut T);
}
}
extern "C" fn ffi_callback<
T: FnMut(::cpp_core::Ref<::qt_gui::QMatrix4X4>) + 'static,
>(
data: *mut ::std::ffi::c_void,
arg0: *const ::qt_gui::QMatrix4X4,
) {
unsafe {
(*(data as *mut T))(
::cpp_core::Ref::from_raw(arg0 as *mut ::qt_gui::QMatrix4X4)
.expect("attempted to construct a null Ref"),
)
}
}
let data = Box::into_raw(Box::new(callback)) as *mut ::std::ffi::c_void;
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_slot_wrapper_QMatrix4x4_const_ref_ctr_qt_3d_core_ffi_slot_wrapper_QMatrix4x4_const_ref(::cpp_core::CastInto::<::cpp_core::Ptr<::qt_core::QObject>>::cast_into(parent).as_raw_ptr() as *mut ::qt_core::QObject, Some(ffi_callback::<T>), Some(deleter::<T>), data)
};
::qt_core::QBox::from_raw(ffi_result)
}
#[inline(always)]
pub unsafe fn qt_metacall(
&self,
arg1: ::qt_core::q_meta_object::Call,
arg2: ::std::os::raw::c_int,
arg3: *mut *mut ::std::ffi::c_void,
) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_slot_wrapper_QMatrix4x4_const_ref_qt_metacall(self as *const crate::SlotOfQMatrix4X4 as *mut crate::SlotOfQMatrix4X4, arg1, arg2, arg3)
}
#[inline(always)]
pub unsafe fn qt_metacast(
&self,
arg1: *const ::std::os::raw::c_char,
) -> *mut ::std::ffi::c_void {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_slot_wrapper_QMatrix4x4_const_ref_qt_metacast(self as *const crate::SlotOfQMatrix4X4 as *mut crate::SlotOfQMatrix4X4, arg1)
}
/// Assigns `callback` as the signal handler.
///
/// `func` will be called each time a connected signal is emitted. Any previously assigned function will be deregistered. Passing `None` will deregister the handler without setting a new one.
#[inline(always)]
pub unsafe fn set<T: FnMut(::cpp_core::Ref<::qt_gui::QMatrix4X4>) + 'static>(
&self,
callback: T,
) {
extern "C" fn deleter<T>(data: *mut ::std::ffi::c_void) {
unsafe {
let _ = Box::from_raw(data as *mut T);
}
}
extern "C" fn ffi_callback<T: FnMut(::cpp_core::Ref<::qt_gui::QMatrix4X4>) + 'static>(
data: *mut ::std::ffi::c_void,
arg0: *const ::qt_gui::QMatrix4X4,
) {
unsafe {
(*(data as *mut T))(
::cpp_core::Ref::from_raw(arg0 as *mut ::qt_gui::QMatrix4X4)
.expect("attempted to construct a null Ref"),
)
}
}
let data = Box::into_raw(Box::new(callback)) as *mut ::std::ffi::c_void;
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_slot_wrapper_QMatrix4x4_const_ref_set(
self as *const crate::SlotOfQMatrix4X4 as *mut crate::SlotOfQMatrix4X4,
Some(ffi_callback::<T>),
Some(deleter::<T>),
data,
)
}
/// Calls the slot directly, invoking the assigned handler (if any).
#[inline(always)]
pub unsafe fn slot(
&self,
arg0: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_gui::QMatrix4X4>>,
) {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_slot_wrapper_QMatrix4x4_const_ref_slot_(
self as *const crate::SlotOfQMatrix4X4 as *mut crate::SlotOfQMatrix4X4,
::cpp_core::CastInto::<::cpp_core::Ref<::qt_gui::QMatrix4X4>>::cast_into(arg0)
.as_raw_ptr(),
)
}
#[inline(always)]
pub unsafe fn static_meta_object() -> ::cpp_core::Ref<::qt_core::QMetaObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_slot_wrapper_QMatrix4x4_const_ref_staticMetaObject()
};
::cpp_core::Ref::from_raw(ffi_result as *mut ::qt_core::QMetaObject)
.expect("attempted to construct a null Ref")
}
#[inline(always)]
pub unsafe fn tr(
s: *const ::std::os::raw::c_char,
c: *const ::std::os::raw::c_char,
n: ::std::os::raw::c_int,
) -> ::cpp_core::CppBox<::qt_core::QString> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_slot_wrapper_QMatrix4x4_const_ref_tr(
s, c, n,
)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
#[inline(always)]
pub unsafe fn tr_utf8(
s: *const ::std::os::raw::c_char,
c: *const ::std::os::raw::c_char,
n: ::std::os::raw::c_int,
) -> ::cpp_core::CppBox<::qt_core::QString> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_slot_wrapper_QMatrix4x4_const_ref_trUtf8(s, c, n)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
}
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::qt_core::AsReceiver for crate::SlotOfQJoint {
type Arguments = (*mut crate::QJoint,);
fn as_receiver(&self) -> ::qt_core::Receiver<Self::Arguments> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw(self).expect("attempted to construct a null Ref"),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1slot_(Qt3DCore::QJoint *)\0"),
)
}
}
}
/// Binds a Qt signal with arguments `*mut crate::QJoint` to a Rust closure.
///
/// Corresponding C++ argument types: (<span style='color: green;'>```Qt3DCore::QJoint*```</span>).
///
/// Create an object using `new()` and bind your closure using `set()`. The closure will be called with the signal's arguments when the slot is invoked. Use `connect()` method of a `qt_core::Signal` object to connect the signal to this slot. The closure will be executed each time the slot is invoked until source signals are disconnected or the slot object is destroyed.
///
/// The slot object takes ownership of the passed closure. If `set()` is called again, previously set closure is dropped. Make sure that the slot object does not outlive objects referenced by the closure.
///
/// If `set()` was not called, slot invocation has no effect.
#[repr(C)]
pub struct SlotOfQJoint {
_unused: u8,
}
impl SlotOfQJoint {
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn meta_object(&self) -> ::cpp_core::Ptr<::qt_core::QMetaObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_slot_wrapper_Qt3DCore_QJoint_ptr_metaObject(self as *const crate::SlotOfQJoint)
};
::cpp_core::Ptr::from_raw(ffi_result as *mut ::qt_core::QMetaObject)
}
/// Creates a new object.
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn new<T: FnMut(::qt_core::QPtr<crate::QJoint>) + 'static>(
parent: impl ::cpp_core::CastInto<::cpp_core::Ptr<::qt_core::QObject>>,
callback: T,
) -> ::qt_core::QBox<crate::SlotOfQJoint> {
let ffi_result = {
extern "C" fn deleter<T>(data: *mut ::std::ffi::c_void) {
unsafe {
let _ = Box::from_raw(data as *mut T);
}
}
extern "C" fn ffi_callback<T: FnMut(::qt_core::QPtr<crate::QJoint>) + 'static>(
data: *mut ::std::ffi::c_void,
arg0: *mut crate::QJoint,
) {
unsafe { (*(data as *mut T))(::qt_core::QPtr::from_raw(arg0)) }
}
let data = Box::into_raw(Box::new(callback)) as *mut ::std::ffi::c_void;
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_slot_wrapper_Qt3DCore_QJoint_ptr_ctr_qt_3d_core_ffi_slot_wrapper_Qt3DCore_QJoint_ptr(::cpp_core::CastInto::<::cpp_core::Ptr<::qt_core::QObject>>::cast_into(parent).as_raw_ptr() as *mut ::qt_core::QObject, Some(ffi_callback::<T>), Some(deleter::<T>), data)
};
::qt_core::QBox::from_raw(ffi_result)
}
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn qt_metacall(
&self,
arg1: ::qt_core::q_meta_object::Call,
arg2: ::std::os::raw::c_int,
arg3: *mut *mut ::std::ffi::c_void,
) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_slot_wrapper_Qt3DCore_QJoint_ptr_qt_metacall(self as *const crate::SlotOfQJoint as *mut crate::SlotOfQJoint, arg1, arg2, arg3)
}
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn qt_metacast(
&self,
arg1: *const ::std::os::raw::c_char,
) -> *mut ::std::ffi::c_void {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_slot_wrapper_Qt3DCore_QJoint_ptr_qt_metacast(self as *const crate::SlotOfQJoint as *mut crate::SlotOfQJoint, arg1)
}
/// Assigns `callback` as the signal handler.
///
/// `func` will be called each time a connected signal is emitted. Any previously assigned function will be deregistered. Passing `None` will deregister the handler without setting a new one.
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn set<T: FnMut(::qt_core::QPtr<crate::QJoint>) + 'static>(&self, callback: T) {
extern "C" fn deleter<T>(data: *mut ::std::ffi::c_void) {
unsafe {
let _ = Box::from_raw(data as *mut T);
}
}
extern "C" fn ffi_callback<T: FnMut(::qt_core::QPtr<crate::QJoint>) + 'static>(
data: *mut ::std::ffi::c_void,
arg0: *mut crate::QJoint,
) {
unsafe { (*(data as *mut T))(::qt_core::QPtr::from_raw(arg0)) }
}
let data = Box::into_raw(Box::new(callback)) as *mut ::std::ffi::c_void;
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_slot_wrapper_Qt3DCore_QJoint_ptr_set(
self as *const crate::SlotOfQJoint as *mut crate::SlotOfQJoint,
Some(ffi_callback::<T>),
Some(deleter::<T>),
data,
)
}
/// Calls the slot directly, invoking the assigned handler (if any).
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn slot(&self, arg0: impl ::cpp_core::CastInto<::cpp_core::Ptr<crate::QJoint>>) {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_slot_wrapper_Qt3DCore_QJoint_ptr_slot_(
self as *const crate::SlotOfQJoint as *mut crate::SlotOfQJoint,
::cpp_core::CastInto::<::cpp_core::Ptr<crate::QJoint>>::cast_into(arg0).as_raw_ptr()
as *mut crate::QJoint,
)
}
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn static_meta_object() -> ::cpp_core::Ref<::qt_core::QMetaObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_slot_wrapper_Qt3DCore_QJoint_ptr_staticMetaObject()
};
::cpp_core::Ref::from_raw(ffi_result as *mut ::qt_core::QMetaObject)
.expect("attempted to construct a null Ref")
}
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn tr(
s: *const ::std::os::raw::c_char,
c: *const ::std::os::raw::c_char,
n: ::std::os::raw::c_int,
) -> ::cpp_core::CppBox<::qt_core::QString> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_slot_wrapper_Qt3DCore_QJoint_ptr_tr(
s, c, n,
)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn tr_utf8(
s: *const ::std::os::raw::c_char,
c: *const ::std::os::raw::c_char,
n: ::std::os::raw::c_int,
) -> ::cpp_core::CppBox<::qt_core::QString> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_slot_wrapper_Qt3DCore_QJoint_ptr_trUtf8(s, c, n)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
}
impl ::qt_core::AsReceiver for crate::SlotOfFloat {
type Arguments = (::std::os::raw::c_float,);
fn as_receiver(&self) -> ::qt_core::Receiver<Self::Arguments> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw(self).expect("attempted to construct a null Ref"),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1slot_(float)\0"),
)
}
}
}
/// Binds a Qt signal with arguments `::std::os::raw::c_float` to a Rust closure.
///
/// Corresponding C++ argument types: (<span style='color: green;'>```float```</span>).
///
/// Create an object using `new()` and bind your closure using `set()`. The closure will be called with the signal's arguments when the slot is invoked. Use `connect()` method of a `qt_core::Signal` object to connect the signal to this slot. The closure will be executed each time the slot is invoked until source signals are disconnected or the slot object is destroyed.
///
/// The slot object takes ownership of the passed closure. If `set()` is called again, previously set closure is dropped. Make sure that the slot object does not outlive objects referenced by the closure.
///
/// If `set()` was not called, slot invocation has no effect.
#[repr(C)]
pub struct SlotOfFloat {
_unused: u8,
}
impl SlotOfFloat {
#[inline(always)]
pub unsafe fn meta_object(&self) -> ::cpp_core::Ptr<::qt_core::QMetaObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_slot_wrapper_float_metaObject(
self as *const crate::SlotOfFloat,
)
};
::cpp_core::Ptr::from_raw(ffi_result as *mut ::qt_core::QMetaObject)
}
/// Creates a new object.
#[inline(always)]
pub unsafe fn new<T: FnMut(::std::os::raw::c_float) + 'static>(
parent: impl ::cpp_core::CastInto<::cpp_core::Ptr<::qt_core::QObject>>,
callback: T,
) -> ::qt_core::QBox<crate::SlotOfFloat> {
let ffi_result = {
extern "C" fn deleter<T>(data: *mut ::std::ffi::c_void) {
unsafe {
let _ = Box::from_raw(data as *mut T);
}
}
extern "C" fn ffi_callback<T: FnMut(::std::os::raw::c_float) + 'static>(
data: *mut ::std::ffi::c_void,
arg0: ::std::os::raw::c_float,
) {
unsafe { (*(data as *mut T))(arg0) }
}
let data = Box::into_raw(Box::new(callback)) as *mut ::std::ffi::c_void;
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_slot_wrapper_float_ctr_qt_3d_core_ffi_slot_wrapper_float(::cpp_core::CastInto::<::cpp_core::Ptr<::qt_core::QObject>>::cast_into(parent).as_raw_ptr() as *mut ::qt_core::QObject, Some(ffi_callback::<T>), Some(deleter::<T>), data)
};
::qt_core::QBox::from_raw(ffi_result)
}
#[inline(always)]
pub unsafe fn qt_metacall(
&self,
arg1: ::qt_core::q_meta_object::Call,
arg2: ::std::os::raw::c_int,
arg3: *mut *mut ::std::ffi::c_void,
) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_slot_wrapper_float_qt_metacall(
self as *const crate::SlotOfFloat as *mut crate::SlotOfFloat,
arg1,
arg2,
arg3,
)
}
#[inline(always)]
pub unsafe fn qt_metacast(
&self,
arg1: *const ::std::os::raw::c_char,
) -> *mut ::std::ffi::c_void {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_slot_wrapper_float_qt_metacast(
self as *const crate::SlotOfFloat as *mut crate::SlotOfFloat,
arg1,
)
}
/// Assigns `callback` as the signal handler.
///
/// `func` will be called each time a connected signal is emitted. Any previously assigned function will be deregistered. Passing `None` will deregister the handler without setting a new one.
#[inline(always)]
pub unsafe fn set<T: FnMut(::std::os::raw::c_float) + 'static>(&self, callback: T) {
extern "C" fn deleter<T>(data: *mut ::std::ffi::c_void) {
unsafe {
let _ = Box::from_raw(data as *mut T);
}
}
extern "C" fn ffi_callback<T: FnMut(::std::os::raw::c_float) + 'static>(
data: *mut ::std::ffi::c_void,
arg0: ::std::os::raw::c_float,
) {
unsafe { (*(data as *mut T))(arg0) }
}
let data = Box::into_raw(Box::new(callback)) as *mut ::std::ffi::c_void;
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_slot_wrapper_float_set(
self as *const crate::SlotOfFloat as *mut crate::SlotOfFloat,
Some(ffi_callback::<T>),
Some(deleter::<T>),
data,
)
}
/// Calls the slot directly, invoking the assigned handler (if any).
#[inline(always)]
pub unsafe fn slot(&self, arg0: ::std::os::raw::c_float) {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_slot_wrapper_float_slot_(
self as *const crate::SlotOfFloat as *mut crate::SlotOfFloat,
arg0,
)
}
#[inline(always)]
pub unsafe fn static_meta_object() -> ::cpp_core::Ref<::qt_core::QMetaObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_slot_wrapper_float_staticMetaObject(
)
};
::cpp_core::Ref::from_raw(ffi_result as *mut ::qt_core::QMetaObject)
.expect("attempted to construct a null Ref")
}
#[inline(always)]
pub unsafe fn tr(
s: *const ::std::os::raw::c_char,
c: *const ::std::os::raw::c_char,
n: ::std::os::raw::c_int,
) -> ::cpp_core::CppBox<::qt_core::QString> {
let ffi_result =
{ crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_slot_wrapper_float_tr(s, c, n) };
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
#[inline(always)]
pub unsafe fn tr_utf8(
s: *const ::std::os::raw::c_char,
c: *const ::std::os::raw::c_char,
n: ::std::os::raw::c_int,
) -> ::cpp_core::CppBox<::qt_core::QString> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_slot_wrapper_float_trUtf8(s, c, n)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
}
impl ::qt_core::AsReceiver for crate::SlotOfQVector3D {
type Arguments = (*const ::qt_gui::QVector3D,);
fn as_receiver(&self) -> ::qt_core::Receiver<Self::Arguments> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw(self).expect("attempted to construct a null Ref"),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1slot_(QVector3D const &)\0"),
)
}
}
}
/// Binds a Qt signal with arguments `*const ::qt_gui::QVector3D` to a Rust closure.
///
/// Corresponding C++ argument types: (<span style='color: green;'>```const QVector3D&```</span>).
///
/// Create an object using `new()` and bind your closure using `set()`. The closure will be called with the signal's arguments when the slot is invoked. Use `connect()` method of a `qt_core::Signal` object to connect the signal to this slot. The closure will be executed each time the slot is invoked until source signals are disconnected or the slot object is destroyed.
///
/// The slot object takes ownership of the passed closure. If `set()` is called again, previously set closure is dropped. Make sure that the slot object does not outlive objects referenced by the closure.
///
/// If `set()` was not called, slot invocation has no effect.
#[repr(C)]
pub struct SlotOfQVector3D {
_unused: u8,
}
impl SlotOfQVector3D {
#[inline(always)]
pub unsafe fn meta_object(&self) -> ::cpp_core::Ptr<::qt_core::QMetaObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_slot_wrapper_QVector3D_const_ref_metaObject(self as *const crate::SlotOfQVector3D)
};
::cpp_core::Ptr::from_raw(ffi_result as *mut ::qt_core::QMetaObject)
}
/// Creates a new object.
#[inline(always)]
pub unsafe fn new<T: FnMut(::cpp_core::Ref<::qt_gui::QVector3D>) + 'static>(
parent: impl ::cpp_core::CastInto<::cpp_core::Ptr<::qt_core::QObject>>,
callback: T,
) -> ::qt_core::QBox<crate::SlotOfQVector3D> {
let ffi_result = {
extern "C" fn deleter<T>(data: *mut ::std::ffi::c_void) {
unsafe {
let _ = Box::from_raw(data as *mut T);
}
}
extern "C" fn ffi_callback<T: FnMut(::cpp_core::Ref<::qt_gui::QVector3D>) + 'static>(
data: *mut ::std::ffi::c_void,
arg0: *const ::qt_gui::QVector3D,
) {
unsafe {
(*(data as *mut T))(
::cpp_core::Ref::from_raw(arg0 as *mut ::qt_gui::QVector3D)
.expect("attempted to construct a null Ref"),
)
}
}
let data = Box::into_raw(Box::new(callback)) as *mut ::std::ffi::c_void;
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_slot_wrapper_QVector3D_const_ref_ctr_qt_3d_core_ffi_slot_wrapper_QVector3D_const_ref(::cpp_core::CastInto::<::cpp_core::Ptr<::qt_core::QObject>>::cast_into(parent).as_raw_ptr() as *mut ::qt_core::QObject, Some(ffi_callback::<T>), Some(deleter::<T>), data)
};
::qt_core::QBox::from_raw(ffi_result)
}
#[inline(always)]
pub unsafe fn qt_metacall(
&self,
arg1: ::qt_core::q_meta_object::Call,
arg2: ::std::os::raw::c_int,
arg3: *mut *mut ::std::ffi::c_void,
) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_slot_wrapper_QVector3D_const_ref_qt_metacall(self as *const crate::SlotOfQVector3D as *mut crate::SlotOfQVector3D, arg1, arg2, arg3)
}
#[inline(always)]
pub unsafe fn qt_metacast(
&self,
arg1: *const ::std::os::raw::c_char,
) -> *mut ::std::ffi::c_void {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_slot_wrapper_QVector3D_const_ref_qt_metacast(self as *const crate::SlotOfQVector3D as *mut crate::SlotOfQVector3D, arg1)
}
/// Assigns `callback` as the signal handler.
///
/// `func` will be called each time a connected signal is emitted. Any previously assigned function will be deregistered. Passing `None` will deregister the handler without setting a new one.
#[inline(always)]
pub unsafe fn set<T: FnMut(::cpp_core::Ref<::qt_gui::QVector3D>) + 'static>(
&self,
callback: T,
) {
extern "C" fn deleter<T>(data: *mut ::std::ffi::c_void) {
unsafe {
let _ = Box::from_raw(data as *mut T);
}
}
extern "C" fn ffi_callback<T: FnMut(::cpp_core::Ref<::qt_gui::QVector3D>) + 'static>(
data: *mut ::std::ffi::c_void,
arg0: *const ::qt_gui::QVector3D,
) {
unsafe {
(*(data as *mut T))(
::cpp_core::Ref::from_raw(arg0 as *mut ::qt_gui::QVector3D)
.expect("attempted to construct a null Ref"),
)
}
}
let data = Box::into_raw(Box::new(callback)) as *mut ::std::ffi::c_void;
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_slot_wrapper_QVector3D_const_ref_set(
self as *const crate::SlotOfQVector3D as *mut crate::SlotOfQVector3D,
Some(ffi_callback::<T>),
Some(deleter::<T>),
data,
)
}
/// Calls the slot directly, invoking the assigned handler (if any).
#[inline(always)]
pub unsafe fn slot(
&self,
arg0: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_gui::QVector3D>>,
) {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_slot_wrapper_QVector3D_const_ref_slot_(
self as *const crate::SlotOfQVector3D as *mut crate::SlotOfQVector3D,
::cpp_core::CastInto::<::cpp_core::Ref<::qt_gui::QVector3D>>::cast_into(arg0)
.as_raw_ptr(),
)
}
#[inline(always)]
pub unsafe fn static_meta_object() -> ::cpp_core::Ref<::qt_core::QMetaObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_slot_wrapper_QVector3D_const_ref_staticMetaObject()
};
::cpp_core::Ref::from_raw(ffi_result as *mut ::qt_core::QMetaObject)
.expect("attempted to construct a null Ref")
}
#[inline(always)]
pub unsafe fn tr(
s: *const ::std::os::raw::c_char,
c: *const ::std::os::raw::c_char,
n: ::std::os::raw::c_int,
) -> ::cpp_core::CppBox<::qt_core::QString> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_slot_wrapper_QVector3D_const_ref_tr(
s, c, n,
)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
#[inline(always)]
pub unsafe fn tr_utf8(
s: *const ::std::os::raw::c_char,
c: *const ::std::os::raw::c_char,
n: ::std::os::raw::c_int,
) -> ::cpp_core::CppBox<::qt_core::QString> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_slot_wrapper_QVector3D_const_ref_trUtf8(s, c, n)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
}
impl ::std::cmp::PartialEq<::cpp_core::Ref<crate::QNodeId>> for crate::QNodeId {
/// <p>Returns <code>true</code> if <code>this</code> == <i>other</i>.</p>
///
/// Calls C++ function: <span style='color: green;'>```bool Qt3DCore::QNodeId::operator==(Qt3DCore::QNodeId other) const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qnodeid.html#operator-eq-eq">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns <code>true</code> if <code>this</code> == <i>other</i>.</p></div>
#[inline(always)]
fn eq(&self, other: &::cpp_core::Ref<crate::QNodeId>) -> bool {
unsafe {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QNodeId_operator__(
self as *const crate::QNodeId,
other.as_raw_ptr(),
)
}
}
}
impl ::cpp_core::cmp::Lt<::cpp_core::Ref<crate::QNodeId>> for crate::QNodeId {
/// <p>Returns <code>true</code> if <code>this</code> < <i>other</i>.</p>
///
/// Calls C++ function: <span style='color: green;'>```bool Qt3DCore::QNodeId::operator<(Qt3DCore::QNodeId other) const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qnodeid.html#operator-lt">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns <code>true</code> if <code>this</code> < <i>other</i>.</p></div>
#[inline(always)]
unsafe fn lt(&self, other: &::cpp_core::Ref<crate::QNodeId>) -> bool {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QNodeId_operator_(
self as *const crate::QNodeId,
other.as_raw_ptr(),
)
}
}
impl ::cpp_core::cmp::Gt<::cpp_core::Ref<crate::QNodeId>> for crate::QNodeId {
/// <p>Returns <code>true</code> if <code>this</code> > <i>other</i>.</p>
///
/// Calls C++ function: <span style='color: green;'>```bool Qt3DCore::QNodeId::operator>(Qt3DCore::QNodeId other) const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qnodeid.html#operator-gt">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns <code>true</code> if <code>this</code> > <i>other</i>.</p></div>
#[inline(always)]
unsafe fn gt(&self, other: &::cpp_core::Ref<crate::QNodeId>) -> bool {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QNodeId_operator_1(
self as *const crate::QNodeId,
other.as_raw_ptr(),
)
}
}
impl ::cpp_core::CppDeletable for crate::QAbstractAspect {
/// Calls C++ function: <span style='color: green;'>```virtual [destructor] void Qt3DCore::QAbstractAspect::~QAbstractAspect()```</span>.
#[inline(always)]
unsafe fn delete(&self) {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QAbstractAspect_dQAbstractAspect(
self as *const crate::QAbstractAspect as *mut crate::QAbstractAspect,
)
}
}
impl ::cpp_core::CppDeletable for crate::QAspectEngine {
/// <p>Destroys the engine.</p>
///
/// Calls C++ function: <span style='color: green;'>```virtual [destructor] void Qt3DCore::QAspectEngine::~QAspectEngine()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qaspectengine.html#dtor.QAspectEngine">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Destroys the engine.</p></div>
#[inline(always)]
unsafe fn delete(&self) {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QAspectEngine_dQAspectEngine(
self as *const crate::QAspectEngine as *mut crate::QAspectEngine,
)
}
}
impl ::cpp_core::CppDeletable for crate::QAspectJob {
/// <p>Destroys the instance of QAspectJob. The destructor is virtual.</p>
///
/// Calls C++ function: <span style='color: green;'>```virtual [destructor] void Qt3DCore::QAspectJob::~QAspectJob()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qaspectjob.html#dtor.QAspectJob">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Destroys the instance of QAspectJob. The destructor is virtual.</p></div>
#[inline(always)]
unsafe fn delete(&self) {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QAspectJob_dQAspectJob(
self as *const crate::QAspectJob as *mut crate::QAspectJob,
)
}
}
impl ::cpp_core::CppDeletable for crate::QSceneChange {
/// <p>Destroys the instance of QSceneChange. The destructor is virtual.</p>
///
/// Calls C++ function: <span style='color: green;'>```virtual [destructor] void Qt3DCore::QSceneChange::~QSceneChange()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qscenechange.html#dtor.QSceneChange">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Destroys the instance of QSceneChange. The destructor is virtual.</p></div>
#[inline(always)]
unsafe fn delete(&self) {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QSceneChange_dQSceneChange(
self as *const crate::QSceneChange as *mut crate::QSceneChange,
)
}
}
impl ::cpp_core::CppDeletable for crate::QNodeCreatedChangeBase {
/// <p>Destroys the instance of QNodeCreatedChangeBase.</p>
///
/// Calls C++ function: <span style='color: green;'>```virtual [destructor] void Qt3DCore::QNodeCreatedChangeBase::~QNodeCreatedChangeBase()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qnodecreatedchangebase.html#dtor.QNodeCreatedChangeBase">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Destroys the instance of QNodeCreatedChangeBase.</p></div>
#[inline(always)]
unsafe fn delete(&self) {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QNodeCreatedChangeBase_dQNodeCreatedChangeBase(
self as *const crate::QNodeCreatedChangeBase as *mut crate::QNodeCreatedChangeBase,
)
}
}
impl ::cpp_core::CppDeletable for crate::QBackendNodeMapper {
/// <p>Destroys the instance of QBackendNodeMapper. The destructor is virtual.</p>
///
/// Calls C++ function: <span style='color: green;'>```virtual [destructor] void Qt3DCore::QBackendNodeMapper::~QBackendNodeMapper()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qbackendnodemapper.html#dtor.QBackendNodeMapper">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Destroys the instance of QBackendNodeMapper. The destructor is virtual.</p></div>
#[inline(always)]
unsafe fn delete(&self) {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QBackendNodeMapper_dQBackendNodeMapper(
self as *const crate::QBackendNodeMapper as *mut crate::QBackendNodeMapper,
)
}
}
impl ::cpp_core::CppDeletable for crate::QBackendNode {
/// <p>Destroys the instance of QBackendNode. The destructor is virtual.</p>
///
/// Calls C++ function: <span style='color: green;'>```virtual [destructor] void Qt3DCore::QBackendNode::~QBackendNode()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qbackendnode.html#dtor.QBackendNode">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Destroys the instance of QBackendNode. The destructor is virtual.</p></div>
#[inline(always)]
unsafe fn delete(&self) {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QBackendNode_dQBackendNode(
self as *const crate::QBackendNode as *mut crate::QBackendNode,
)
}
}
impl ::cpp_core::CppDeletable for crate::QNode {
/// Calls C++ function: <span style='color: green;'>```virtual [destructor] void Qt3DCore::QNode::~QNode()```</span>.
#[inline(always)]
unsafe fn delete(&self) {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QNode_dQNode(
self as *const crate::QNode as *mut crate::QNode,
)
}
}
impl ::cpp_core::CppDeletable for crate::QComponent {
/// <p>Destroys the instance of QComponent.</p>
///
/// Calls C++ function: <span style='color: green;'>```virtual [destructor] void Qt3DCore::QComponent::~QComponent()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qcomponent.html#dtor.QComponent">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Destroys the instance of QComponent.</p></div>
#[inline(always)]
unsafe fn delete(&self) {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QComponent_dQComponent(
self as *const crate::QComponent as *mut crate::QComponent,
)
}
}
impl ::cpp_core::CppDeletable for crate::QComponentAddedChange {
/// <p>Destroys the instance of QComponentAddedChange.</p>
///
/// Calls C++ function: <span style='color: green;'>```virtual [destructor] void Qt3DCore::QComponentAddedChange::~QComponentAddedChange()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qcomponentaddedchange.html#dtor.QComponentAddedChange">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Destroys the instance of QComponentAddedChange.</p></div>
#[inline(always)]
unsafe fn delete(&self) {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QComponentAddedChange_dQComponentAddedChange(
self as *const crate::QComponentAddedChange as *mut crate::QComponentAddedChange,
)
}
}
impl ::cpp_core::CppDeletable for crate::QComponentRemovedChange {
/// <p>Destroys the instance of QComponentRemovedChange.</p>
///
/// Calls C++ function: <span style='color: green;'>```virtual [destructor] void Qt3DCore::QComponentRemovedChange::~QComponentRemovedChange()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qcomponentremovedchange.html#dtor.QComponentRemovedChange">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Destroys the instance of QComponentRemovedChange.</p></div>
#[inline(always)]
unsafe fn delete(&self) {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QComponentRemovedChange_dQComponentRemovedChange(
self as *const crate::QComponentRemovedChange as *mut crate::QComponentRemovedChange,
)
}
}
impl ::cpp_core::CppDeletable for crate::QPropertyUpdatedChangeBase {
/// <p>Destroys the instance of QPropertyUpdatedChangeBase.</p>
///
/// Calls C++ function: <span style='color: green;'>```virtual [destructor] void Qt3DCore::QPropertyUpdatedChangeBase::~QPropertyUpdatedChangeBase()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qpropertyupdatedchangebase.html#dtor.QPropertyUpdatedChangeBase">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Destroys the instance of QPropertyUpdatedChangeBase.</p></div>
#[inline(always)]
unsafe fn delete(&self) {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QPropertyUpdatedChangeBase_dQPropertyUpdatedChangeBase(self as *const crate::QPropertyUpdatedChangeBase as *mut crate::QPropertyUpdatedChangeBase)
}
}
impl ::cpp_core::CppDeletable for crate::QDynamicPropertyUpdatedChange {
/// <p>Destroys the instance of QDynamicPropertyUpdatedChange.</p>
///
/// Calls C++ function: <span style='color: green;'>```virtual [destructor] void Qt3DCore::QDynamicPropertyUpdatedChange::~QDynamicPropertyUpdatedChange()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qdynamicpropertyupdatedchange.html#dtor.QDynamicPropertyUpdatedChange">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Destroys the instance of QDynamicPropertyUpdatedChange.</p></div>
#[inline(always)]
unsafe fn delete(&self) {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QDynamicPropertyUpdatedChange_dQDynamicPropertyUpdatedChange(self as *const crate::QDynamicPropertyUpdatedChange as *mut crate::QDynamicPropertyUpdatedChange)
}
}
impl ::cpp_core::CppDeletable for crate::QEntity {
/// <p>Destroys the instance of QEntity. The destructor is virtual.</p>
///
/// Calls C++ function: <span style='color: green;'>```virtual [destructor] void Qt3DCore::QEntity::~QEntity()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qentity.html#dtor.QEntity">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Destroys the instance of QEntity. The destructor is virtual.</p></div>
#[inline(always)]
unsafe fn delete(&self) {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QEntity_dQEntity(
self as *const crate::QEntity as *mut crate::QEntity,
)
}
}
impl ::cpp_core::CppDeletable for crate::QNodeDestroyedChange {
/// <p>Destroys the instance of QNodeDestroyedChange.</p>
///
/// Calls C++ function: <span style='color: green;'>```virtual [destructor] void Qt3DCore::QNodeDestroyedChange::~QNodeDestroyedChange()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qnodedestroyedchange.html#dtor.QNodeDestroyedChange">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Destroys the instance of QNodeDestroyedChange.</p></div>
#[inline(always)]
unsafe fn delete(&self) {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QNodeDestroyedChange_dQNodeDestroyedChange(
self as *const crate::QNodeDestroyedChange as *mut crate::QNodeDestroyedChange,
)
}
}
impl ::cpp_core::CppDeletable for crate::QPropertyValueAddedChangeBase {
/// <p>Destroys the instance of QPropertyValueAddedChangeBase.</p>
///
/// Calls C++ function: <span style='color: green;'>```virtual [destructor] void Qt3DCore::QPropertyValueAddedChangeBase::~QPropertyValueAddedChangeBase()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qpropertyvalueaddedchangebase.html#dtor.QPropertyValueAddedChangeBase">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Destroys the instance of QPropertyValueAddedChangeBase.</p></div>
#[inline(always)]
unsafe fn delete(&self) {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QPropertyValueAddedChangeBase_dQPropertyValueAddedChangeBase(self as *const crate::QPropertyValueAddedChangeBase as *mut crate::QPropertyValueAddedChangeBase)
}
}
impl ::cpp_core::CppDeletable for crate::QStaticPropertyValueAddedChangeBase {
/// <p>Destroys the instance of QStaticPropertyValueAddedChangeBase.</p>
///
/// Calls C++ function: <span style='color: green;'>```virtual [destructor] void Qt3DCore::QStaticPropertyValueAddedChangeBase::~QStaticPropertyValueAddedChangeBase()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qstaticpropertyvalueaddedchangebase.html#dtor.QStaticPropertyValueAddedChangeBase">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Destroys the instance of QStaticPropertyValueAddedChangeBase.</p></div>
#[inline(always)]
unsafe fn delete(&self) {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QStaticPropertyValueAddedChangeBase_dQStaticPropertyValueAddedChangeBase(self as *const crate::QStaticPropertyValueAddedChangeBase as *mut crate::QStaticPropertyValueAddedChangeBase)
}
}
impl ::cpp_core::CppDeletable for crate::QPropertyNodeAddedChange {
/// Calls C++ function: <span style='color: green;'>```virtual [destructor] void Qt3DCore::QPropertyNodeAddedChange::~QPropertyNodeAddedChange()```</span>.
#[inline(always)]
unsafe fn delete(&self) {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QPropertyNodeAddedChange_dQPropertyNodeAddedChange(
self as *const crate::QPropertyNodeAddedChange as *mut crate::QPropertyNodeAddedChange,
)
}
}
impl ::cpp_core::CppDeletable for crate::QPropertyValueRemovedChangeBase {
/// <p>Destroys the instance of QPropertyValueRemovedChangeBase.</p>
///
/// Calls C++ function: <span style='color: green;'>```virtual [destructor] void Qt3DCore::QPropertyValueRemovedChangeBase::~QPropertyValueRemovedChangeBase()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qpropertyvalueremovedchangebase.html#dtor.QPropertyValueRemovedChangeBase">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Destroys the instance of QPropertyValueRemovedChangeBase.</p></div>
#[inline(always)]
unsafe fn delete(&self) {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QPropertyValueRemovedChangeBase_dQPropertyValueRemovedChangeBase(self as *const crate::QPropertyValueRemovedChangeBase as *mut crate::QPropertyValueRemovedChangeBase)
}
}
impl ::cpp_core::CppDeletable for crate::QStaticPropertyValueRemovedChangeBase {
/// <p>Destroys the instance of QStaticPropertyValueRemovedChangeBase.</p>
///
/// Calls C++ function: <span style='color: green;'>```virtual [destructor] void Qt3DCore::QStaticPropertyValueRemovedChangeBase::~QStaticPropertyValueRemovedChangeBase()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qstaticpropertyvalueremovedchangebase.html#dtor.QStaticPropertyValueRemovedChangeBase">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Destroys the instance of QStaticPropertyValueRemovedChangeBase.</p></div>
#[inline(always)]
unsafe fn delete(&self) {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QStaticPropertyValueRemovedChangeBase_dQStaticPropertyValueRemovedChangeBase(self as *const crate::QStaticPropertyValueRemovedChangeBase as *mut crate::QStaticPropertyValueRemovedChangeBase)
}
}
impl ::cpp_core::CppDeletable for crate::QPropertyNodeRemovedChange {
/// Calls C++ function: <span style='color: green;'>```virtual [destructor] void Qt3DCore::QPropertyNodeRemovedChange::~QPropertyNodeRemovedChange()```</span>.
#[inline(always)]
unsafe fn delete(&self) {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QPropertyNodeRemovedChange_dQPropertyNodeRemovedChange(self as *const crate::QPropertyNodeRemovedChange as *mut crate::QPropertyNodeRemovedChange)
}
}
impl ::cpp_core::CppDeletable for crate::QStaticPropertyUpdatedChangeBase {
/// <p>Destroys the instance of QStaticPropertyUpdatedChangeBase.</p>
///
/// Calls C++ function: <span style='color: green;'>```virtual [destructor] void Qt3DCore::QStaticPropertyUpdatedChangeBase::~QStaticPropertyUpdatedChangeBase()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qstaticpropertyupdatedchangebase.html#dtor.QStaticPropertyUpdatedChangeBase">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Destroys the instance of QStaticPropertyUpdatedChangeBase.</p></div>
#[inline(always)]
unsafe fn delete(&self) {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QStaticPropertyUpdatedChangeBase_dQStaticPropertyUpdatedChangeBase(self as *const crate::QStaticPropertyUpdatedChangeBase as *mut crate::QStaticPropertyUpdatedChangeBase)
}
}
impl ::cpp_core::CppDeletable for crate::QPropertyUpdatedChange {
/// <p>Destroys the instance of QPropertyUpdatedChange. The destructor is virtual.</p>
///
/// Calls C++ function: <span style='color: green;'>```virtual [destructor] void Qt3DCore::QPropertyUpdatedChange::~QPropertyUpdatedChange()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qpropertyupdatedchange.html#dtor.QPropertyUpdatedChange">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Destroys the instance of QPropertyUpdatedChange. The destructor is virtual.</p></div>
#[inline(always)]
unsafe fn delete(&self) {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QPropertyUpdatedChange_dQPropertyUpdatedChange(
self as *const crate::QPropertyUpdatedChange as *mut crate::QPropertyUpdatedChange,
)
}
}
impl ::cpp_core::CppDeletable for crate::QPropertyValueAddedChange {
/// <p>Destroys the instance of QPropertyValueAddedChange.</p>
///
/// Calls C++ function: <span style='color: green;'>```virtual [destructor] void Qt3DCore::QPropertyValueAddedChange::~QPropertyValueAddedChange()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qpropertyvalueaddedchange.html#dtor.QPropertyValueAddedChange">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Destroys the instance of QPropertyValueAddedChange.</p></div>
#[inline(always)]
unsafe fn delete(&self) {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QPropertyValueAddedChange_dQPropertyValueAddedChange(self as *const crate::QPropertyValueAddedChange as *mut crate::QPropertyValueAddedChange)
}
}
impl ::cpp_core::CppDeletable for crate::QPropertyValueRemovedChange {
/// <p>Destroys the instance of QPropertyValueRemovedChange.</p>
///
/// Calls C++ function: <span style='color: green;'>```virtual [destructor] void Qt3DCore::QPropertyValueRemovedChange::~QPropertyValueRemovedChange()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qpropertyvalueremovedchange.html#dtor.QPropertyValueRemovedChange">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Destroys the instance of QPropertyValueRemovedChange.</p></div>
#[inline(always)]
unsafe fn delete(&self) {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QPropertyValueRemovedChange_dQPropertyValueRemovedChange(self as *const crate::QPropertyValueRemovedChange as *mut crate::QPropertyValueRemovedChange)
}
}
impl ::cpp_core::CppDeletable for crate::QTransform {
/// Calls C++ function: <span style='color: green;'>```virtual [destructor] void Qt3DCore::QTransform::~QTransform()```</span>.
#[inline(always)]
unsafe fn delete(&self) {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QTransform_dQTransform(
self as *const crate::QTransform as *mut crate::QTransform,
)
}
}
impl ::cpp_core::CppDeletable for crate::QNodeId {
/// <p>Uniquely identifies a <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html">QNode</a></p>
///
/// Calls C++ function: <span style='color: green;'>```[destructor] void Qt3DCore::QNodeId::~QNodeId()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qnodeid.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Uniquely identifies a <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html">QNode</a></p></div>
#[inline(always)]
unsafe fn delete(&self) {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QNodeId_dQNodeId(
self as *const crate::QNodeId as *mut crate::QNodeId,
)
}
}
impl ::cpp_core::CppDeletable for crate::QNodeIdTypePair {
/// Calls C++ function: <span style='color: green;'>```[destructor] void Qt3DCore::QNodeIdTypePair::~QNodeIdTypePair()```</span>.
#[inline(always)]
unsafe fn delete(&self) {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QNodeIdTypePair_dQNodeIdTypePair(
self as *const crate::QNodeIdTypePair as *mut crate::QNodeIdTypePair,
)
}
}
impl ::cpp_core::CppDeletable for crate::QVectorOfQAbstractAspect {
/// <p>Destroys the vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```[destructor] void QVector<Qt3DCore::QAbstractAspect*>::~QVector()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#dtor.QVector">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Destroys the vector.</p></div>
#[inline(always)]
unsafe fn delete(&self) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QAbstractAspect_ptr_dQVector(
self as *const crate::QVectorOfQAbstractAspect as *mut crate::QVectorOfQAbstractAspect,
)
}
}
impl ::cpp_core::CppDeletable for crate::QVectorOfQNode {
/// <p>Destroys the vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```[destructor] void QVector<Qt3DCore::QNode*>::~QVector()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#dtor.QVector">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Destroys the vector.</p></div>
#[inline(always)]
unsafe fn delete(&self) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNode_ptr_dQVector(
self as *const crate::QVectorOfQNode as *mut crate::QVectorOfQNode,
)
}
}
impl ::cpp_core::CppDeletable for crate::QVectorOfQNodeId {
/// <p>Destroys the vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```[destructor] void QVector<Qt3DCore::QNodeId>::~QVector()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#dtor.QVector">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Destroys the vector.</p></div>
#[inline(always)]
unsafe fn delete(&self) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeId_dQVector(
self as *const crate::QVectorOfQNodeId as *mut crate::QVectorOfQNodeId,
)
}
}
impl ::cpp_core::CppDeletable for crate::QVectorOfQEntity {
/// <p>Destroys the vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```[destructor] void QVector<Qt3DCore::QEntity*>::~QVector()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#dtor.QVector">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Destroys the vector.</p></div>
#[inline(always)]
unsafe fn delete(&self) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QEntity_ptr_dQVector(
self as *const crate::QVectorOfQEntity as *mut crate::QVectorOfQEntity,
)
}
}
impl ::cpp_core::CppDeletable for crate::QVectorOfQComponent {
/// <p>Destroys the vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```[destructor] void QVector<Qt3DCore::QComponent*>::~QVector()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#dtor.QVector">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Destroys the vector.</p></div>
#[inline(always)]
unsafe fn delete(&self) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QComponent_ptr_dQVector(
self as *const crate::QVectorOfQComponent as *mut crate::QVectorOfQComponent,
)
}
}
impl ::cpp_core::CppDeletable for crate::QVectorOfQNodeIdTypePair {
/// <p>Destroys the vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```[destructor] void QVector<Qt3DCore::QNodeIdTypePair>::~QVector()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#dtor.QVector">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Destroys the vector.</p></div>
#[inline(always)]
unsafe fn delete(&self) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeIdTypePair_dQVector(
self as *const crate::QVectorOfQNodeIdTypePair as *mut crate::QVectorOfQNodeIdTypePair,
)
}
}
impl ::std::cmp::PartialEq<::cpp_core::Ref<crate::QVectorOfQAbstractAspect>>
for crate::QVectorOfQAbstractAspect
{
/// <p>Returns <code>true</code> if <i>other</i> is equal to this vector; otherwise returns <code>false</code>.</p>
///
/// Calls C++ function: <span style='color: green;'>```bool QVector<Qt3DCore::QAbstractAspect*>::operator==(const QVector<Qt3DCore::QAbstractAspect*>& v) const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#operator-eq-eq">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns <code>true</code> if <i>other</i> is equal to this vector; otherwise returns <code>false</code>.</p>
/// <p>Two vectors are considered equal if they contain the same values in the same order.</p>
/// <p>This function requires the value type to have an implementation of <code>operator==()</code>.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#operator-not-eq">operator!=</a>().</p></div>
#[inline(always)]
fn eq(&self, v: &::cpp_core::Ref<crate::QVectorOfQAbstractAspect>) -> bool {
unsafe {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QAbstractAspect_ptr_operator__(
self as *const crate::QVectorOfQAbstractAspect,
v.as_raw_ptr(),
)
}
}
}
impl ::std::cmp::PartialEq<::cpp_core::Ref<crate::QVectorOfQNode>> for crate::QVectorOfQNode {
/// <p>Returns <code>true</code> if <i>other</i> is equal to this vector; otherwise returns <code>false</code>.</p>
///
/// Calls C++ function: <span style='color: green;'>```bool QVector<Qt3DCore::QNode*>::operator==(const QVector<Qt3DCore::QNode*>& v) const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#operator-eq-eq">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns <code>true</code> if <i>other</i> is equal to this vector; otherwise returns <code>false</code>.</p>
/// <p>Two vectors are considered equal if they contain the same values in the same order.</p>
/// <p>This function requires the value type to have an implementation of <code>operator==()</code>.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#operator-not-eq">operator!=</a>().</p></div>
#[inline(always)]
fn eq(&self, v: &::cpp_core::Ref<crate::QVectorOfQNode>) -> bool {
unsafe {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNode_ptr_operator__(
self as *const crate::QVectorOfQNode,
v.as_raw_ptr(),
)
}
}
}
impl ::std::cmp::PartialEq<::cpp_core::Ref<crate::QVectorOfQNodeId>> for crate::QVectorOfQNodeId {
/// <p>Returns <code>true</code> if <i>other</i> is equal to this vector; otherwise returns <code>false</code>.</p>
///
/// Calls C++ function: <span style='color: green;'>```bool QVector<Qt3DCore::QNodeId>::operator==(const QVector<Qt3DCore::QNodeId>& v) const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#operator-eq-eq">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns <code>true</code> if <i>other</i> is equal to this vector; otherwise returns <code>false</code>.</p>
/// <p>Two vectors are considered equal if they contain the same values in the same order.</p>
/// <p>This function requires the value type to have an implementation of <code>operator==()</code>.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#operator-not-eq">operator!=</a>().</p></div>
#[inline(always)]
fn eq(&self, v: &::cpp_core::Ref<crate::QVectorOfQNodeId>) -> bool {
unsafe {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeId_operator__(
self as *const crate::QVectorOfQNodeId,
v.as_raw_ptr(),
)
}
}
}
impl ::std::cmp::PartialEq<::cpp_core::Ref<crate::QVectorOfQEntity>> for crate::QVectorOfQEntity {
/// <p>Returns <code>true</code> if <i>other</i> is equal to this vector; otherwise returns <code>false</code>.</p>
///
/// Calls C++ function: <span style='color: green;'>```bool QVector<Qt3DCore::QEntity*>::operator==(const QVector<Qt3DCore::QEntity*>& v) const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#operator-eq-eq">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns <code>true</code> if <i>other</i> is equal to this vector; otherwise returns <code>false</code>.</p>
/// <p>Two vectors are considered equal if they contain the same values in the same order.</p>
/// <p>This function requires the value type to have an implementation of <code>operator==()</code>.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#operator-not-eq">operator!=</a>().</p></div>
#[inline(always)]
fn eq(&self, v: &::cpp_core::Ref<crate::QVectorOfQEntity>) -> bool {
unsafe {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QEntity_ptr_operator__(
self as *const crate::QVectorOfQEntity,
v.as_raw_ptr(),
)
}
}
}
impl ::std::cmp::PartialEq<::cpp_core::Ref<crate::QVectorOfQComponent>>
for crate::QVectorOfQComponent
{
/// <p>Returns <code>true</code> if <i>other</i> is equal to this vector; otherwise returns <code>false</code>.</p>
///
/// Calls C++ function: <span style='color: green;'>```bool QVector<Qt3DCore::QComponent*>::operator==(const QVector<Qt3DCore::QComponent*>& v) const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#operator-eq-eq">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns <code>true</code> if <i>other</i> is equal to this vector; otherwise returns <code>false</code>.</p>
/// <p>Two vectors are considered equal if they contain the same values in the same order.</p>
/// <p>This function requires the value type to have an implementation of <code>operator==()</code>.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#operator-not-eq">operator!=</a>().</p></div>
#[inline(always)]
fn eq(&self, v: &::cpp_core::Ref<crate::QVectorOfQComponent>) -> bool {
unsafe {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QComponent_ptr_operator__(
self as *const crate::QVectorOfQComponent,
v.as_raw_ptr(),
)
}
}
}
impl ::cpp_core::vector_ops::Size for crate::QVectorOfQAbstractAspect {
/// <p>Returns the number of items in the vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```int QVector<Qt3DCore::QAbstractAspect*>::size() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#size">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the number of items in the vector.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#resize">resize</a>().</p></div>
#[inline(always)]
unsafe fn size(&self) -> usize {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QAbstractAspect_ptr_size(
self as *const crate::QVectorOfQAbstractAspect,
)
};
ffi_result as usize
}
}
impl ::cpp_core::vector_ops::Size for crate::QVectorOfQNode {
/// <p>Returns the number of items in the vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```int QVector<Qt3DCore::QNode*>::size() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#size">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the number of items in the vector.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#resize">resize</a>().</p></div>
#[inline(always)]
unsafe fn size(&self) -> usize {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNode_ptr_size(
self as *const crate::QVectorOfQNode,
)
};
ffi_result as usize
}
}
impl ::cpp_core::vector_ops::Size for crate::QVectorOfQNodeId {
/// <p>Returns the number of items in the vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```int QVector<Qt3DCore::QNodeId>::size() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#size">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the number of items in the vector.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#resize">resize</a>().</p></div>
#[inline(always)]
unsafe fn size(&self) -> usize {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeId_size(
self as *const crate::QVectorOfQNodeId,
)
};
ffi_result as usize
}
}
impl ::cpp_core::vector_ops::Size for crate::QVectorOfQEntity {
/// <p>Returns the number of items in the vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```int QVector<Qt3DCore::QEntity*>::size() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#size">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the number of items in the vector.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#resize">resize</a>().</p></div>
#[inline(always)]
unsafe fn size(&self) -> usize {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QEntity_ptr_size(
self as *const crate::QVectorOfQEntity,
)
};
ffi_result as usize
}
}
impl ::cpp_core::vector_ops::Size for crate::QVectorOfQComponent {
/// <p>Returns the number of items in the vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```int QVector<Qt3DCore::QComponent*>::size() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#size">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the number of items in the vector.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#resize">resize</a>().</p></div>
#[inline(always)]
unsafe fn size(&self) -> usize {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QComponent_ptr_size(
self as *const crate::QVectorOfQComponent,
)
};
ffi_result as usize
}
}
impl ::cpp_core::vector_ops::Size for crate::QVectorOfQNodeIdTypePair {
/// <p>Returns the number of items in the vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```int QVector<Qt3DCore::QNodeIdTypePair>::size() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#size">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the number of items in the vector.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#resize">resize</a>().</p></div>
#[inline(always)]
unsafe fn size(&self) -> usize {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeIdTypePair_size(
self as *const crate::QVectorOfQNodeIdTypePair,
)
};
ffi_result as usize
}
}
impl ::cpp_core::vector_ops::DataMut for crate::QVectorOfQAbstractAspect {
type Output = *mut *mut crate::QAbstractAspect;
/// <p>Returns a pointer to the data stored in the vector. The pointer can be used to access and modify the items in the vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QAbstractAspect** QVector<Qt3DCore::QAbstractAspect*>::data()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#data">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns a pointer to the data stored in the vector. The pointer can be used to access and modify the items in the vector.</p>
/// <p>Example:</p>
/// <pre class="cpp">
///
/// <span class="type"><a href="http://doc.qt.io/qt-5/qvector.html#QVector">QVector</a></span><span class="operator"><</span><span class="type">int</span><span class="operator">></span> vector(<span class="number">10</span>);
/// <span class="type">int</span> <span class="operator">*</span>data <span class="operator">=</span> vector<span class="operator">.</span>data();
/// <span class="keyword">for</span> (<span class="type">int</span> i <span class="operator">=</span> <span class="number">0</span>; i <span class="operator"><</span> <span class="number">10</span>; <span class="operator">+</span><span class="operator">+</span>i)
///   data<span class="operator">[</span>i<span class="operator">]</span> <span class="operator">=</span> <span class="number">2</span> <span class="operator">*</span> i;
///
/// </pre>
/// <p>The pointer remains valid as long as the vector isn't reallocated.</p>
/// <p>This function is mostly useful to pass a vector to a function that accepts a plain C++ array.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#constData">constData</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#operator-5b-5d">operator[]</a>().</p></div>
#[inline(always)]
unsafe fn data_mut(&self) -> *mut *mut crate::QAbstractAspect {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QAbstractAspect_ptr_data(
self as *const crate::QVectorOfQAbstractAspect as *mut crate::QVectorOfQAbstractAspect,
)
}
}
impl ::cpp_core::vector_ops::DataMut for crate::QVectorOfQNode {
type Output = *mut *mut crate::QNode;
/// <p>Returns a pointer to the data stored in the vector. The pointer can be used to access and modify the items in the vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode** QVector<Qt3DCore::QNode*>::data()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#data">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns a pointer to the data stored in the vector. The pointer can be used to access and modify the items in the vector.</p>
/// <p>Example:</p>
/// <pre class="cpp">
///
/// <span class="type"><a href="http://doc.qt.io/qt-5/qvector.html#QVector">QVector</a></span><span class="operator"><</span><span class="type">int</span><span class="operator">></span> vector(<span class="number">10</span>);
/// <span class="type">int</span> <span class="operator">*</span>data <span class="operator">=</span> vector<span class="operator">.</span>data();
/// <span class="keyword">for</span> (<span class="type">int</span> i <span class="operator">=</span> <span class="number">0</span>; i <span class="operator"><</span> <span class="number">10</span>; <span class="operator">+</span><span class="operator">+</span>i)
///   data<span class="operator">[</span>i<span class="operator">]</span> <span class="operator">=</span> <span class="number">2</span> <span class="operator">*</span> i;
///
/// </pre>
/// <p>The pointer remains valid as long as the vector isn't reallocated.</p>
/// <p>This function is mostly useful to pass a vector to a function that accepts a plain C++ array.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#constData">constData</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#operator-5b-5d">operator[]</a>().</p></div>
#[inline(always)]
unsafe fn data_mut(&self) -> *mut *mut crate::QNode {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNode_ptr_data(
self as *const crate::QVectorOfQNode as *mut crate::QVectorOfQNode,
)
}
}
impl ::cpp_core::vector_ops::DataMut for crate::QVectorOfQNodeId {
type Output = ::cpp_core::Ptr<crate::QNodeId>;
/// <p>Returns a pointer to the data stored in the vector. The pointer can be used to access and modify the items in the vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNodeId* QVector<Qt3DCore::QNodeId>::data()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#data">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns a pointer to the data stored in the vector. The pointer can be used to access and modify the items in the vector.</p>
/// <p>Example:</p>
/// <pre class="cpp">
///
/// <span class="type"><a href="http://doc.qt.io/qt-5/qvector.html#QVector">QVector</a></span><span class="operator"><</span><span class="type">int</span><span class="operator">></span> vector(<span class="number">10</span>);
/// <span class="type">int</span> <span class="operator">*</span>data <span class="operator">=</span> vector<span class="operator">.</span>data();
/// <span class="keyword">for</span> (<span class="type">int</span> i <span class="operator">=</span> <span class="number">0</span>; i <span class="operator"><</span> <span class="number">10</span>; <span class="operator">+</span><span class="operator">+</span>i)
///   data<span class="operator">[</span>i<span class="operator">]</span> <span class="operator">=</span> <span class="number">2</span> <span class="operator">*</span> i;
///
/// </pre>
/// <p>The pointer remains valid as long as the vector isn't reallocated.</p>
/// <p>This function is mostly useful to pass a vector to a function that accepts a plain C++ array.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#constData">constData</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#operator-5b-5d">operator[]</a>().</p></div>
#[inline(always)]
unsafe fn data_mut(&self) -> ::cpp_core::Ptr<crate::QNodeId> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeId_data(
self as *const crate::QVectorOfQNodeId as *mut crate::QVectorOfQNodeId,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::vector_ops::DataMut for crate::QVectorOfQEntity {
type Output = *mut *mut crate::QEntity;
/// <p>Returns a pointer to the data stored in the vector. The pointer can be used to access and modify the items in the vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QEntity** QVector<Qt3DCore::QEntity*>::data()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#data">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns a pointer to the data stored in the vector. The pointer can be used to access and modify the items in the vector.</p>
/// <p>Example:</p>
/// <pre class="cpp">
///
/// <span class="type"><a href="http://doc.qt.io/qt-5/qvector.html#QVector">QVector</a></span><span class="operator"><</span><span class="type">int</span><span class="operator">></span> vector(<span class="number">10</span>);
/// <span class="type">int</span> <span class="operator">*</span>data <span class="operator">=</span> vector<span class="operator">.</span>data();
/// <span class="keyword">for</span> (<span class="type">int</span> i <span class="operator">=</span> <span class="number">0</span>; i <span class="operator"><</span> <span class="number">10</span>; <span class="operator">+</span><span class="operator">+</span>i)
///   data<span class="operator">[</span>i<span class="operator">]</span> <span class="operator">=</span> <span class="number">2</span> <span class="operator">*</span> i;
///
/// </pre>
/// <p>The pointer remains valid as long as the vector isn't reallocated.</p>
/// <p>This function is mostly useful to pass a vector to a function that accepts a plain C++ array.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#constData">constData</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#operator-5b-5d">operator[]</a>().</p></div>
#[inline(always)]
unsafe fn data_mut(&self) -> *mut *mut crate::QEntity {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QEntity_ptr_data(
self as *const crate::QVectorOfQEntity as *mut crate::QVectorOfQEntity,
)
}
}
impl ::cpp_core::vector_ops::DataMut for crate::QVectorOfQComponent {
type Output = *mut *mut crate::QComponent;
/// <p>Returns a pointer to the data stored in the vector. The pointer can be used to access and modify the items in the vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QComponent** QVector<Qt3DCore::QComponent*>::data()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#data">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns a pointer to the data stored in the vector. The pointer can be used to access and modify the items in the vector.</p>
/// <p>Example:</p>
/// <pre class="cpp">
///
/// <span class="type"><a href="http://doc.qt.io/qt-5/qvector.html#QVector">QVector</a></span><span class="operator"><</span><span class="type">int</span><span class="operator">></span> vector(<span class="number">10</span>);
/// <span class="type">int</span> <span class="operator">*</span>data <span class="operator">=</span> vector<span class="operator">.</span>data();
/// <span class="keyword">for</span> (<span class="type">int</span> i <span class="operator">=</span> <span class="number">0</span>; i <span class="operator"><</span> <span class="number">10</span>; <span class="operator">+</span><span class="operator">+</span>i)
///   data<span class="operator">[</span>i<span class="operator">]</span> <span class="operator">=</span> <span class="number">2</span> <span class="operator">*</span> i;
///
/// </pre>
/// <p>The pointer remains valid as long as the vector isn't reallocated.</p>
/// <p>This function is mostly useful to pass a vector to a function that accepts a plain C++ array.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#constData">constData</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#operator-5b-5d">operator[]</a>().</p></div>
#[inline(always)]
unsafe fn data_mut(&self) -> *mut *mut crate::QComponent {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QComponent_ptr_data(
self as *const crate::QVectorOfQComponent as *mut crate::QVectorOfQComponent,
)
}
}
impl ::cpp_core::vector_ops::DataMut for crate::QVectorOfQNodeIdTypePair {
type Output = ::cpp_core::Ptr<crate::QNodeIdTypePair>;
/// <p>Returns a pointer to the data stored in the vector. The pointer can be used to access and modify the items in the vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNodeIdTypePair* QVector<Qt3DCore::QNodeIdTypePair>::data()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#data">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns a pointer to the data stored in the vector. The pointer can be used to access and modify the items in the vector.</p>
/// <p>Example:</p>
/// <pre class="cpp">
///
/// <span class="type"><a href="http://doc.qt.io/qt-5/qvector.html#QVector">QVector</a></span><span class="operator"><</span><span class="type">int</span><span class="operator">></span> vector(<span class="number">10</span>);
/// <span class="type">int</span> <span class="operator">*</span>data <span class="operator">=</span> vector<span class="operator">.</span>data();
/// <span class="keyword">for</span> (<span class="type">int</span> i <span class="operator">=</span> <span class="number">0</span>; i <span class="operator"><</span> <span class="number">10</span>; <span class="operator">+</span><span class="operator">+</span>i)
///   data<span class="operator">[</span>i<span class="operator">]</span> <span class="operator">=</span> <span class="number">2</span> <span class="operator">*</span> i;
///
/// </pre>
/// <p>The pointer remains valid as long as the vector isn't reallocated.</p>
/// <p>This function is mostly useful to pass a vector to a function that accepts a plain C++ array.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#constData">constData</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#operator-5b-5d">operator[]</a>().</p></div>
#[inline(always)]
unsafe fn data_mut(&self) -> ::cpp_core::Ptr<crate::QNodeIdTypePair> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeIdTypePair_data(
self as *const crate::QVectorOfQNodeIdTypePair
as *mut crate::QVectorOfQNodeIdTypePair,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::vector_ops::Data for crate::QVectorOfQAbstractAspect {
type Output = *const *mut crate::QAbstractAspect;
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```const Qt3DCore::QAbstractAspect** QVector<Qt3DCore::QAbstractAspect*>::data() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#data-1">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This is an overloaded function.</p></div>
#[inline(always)]
unsafe fn data(&self) -> *const *mut crate::QAbstractAspect {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QAbstractAspect_ptr_data1(
self as *const crate::QVectorOfQAbstractAspect,
)
}
}
impl ::cpp_core::vector_ops::Data for crate::QVectorOfQNode {
type Output = *const *mut crate::QNode;
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```const Qt3DCore::QNode** QVector<Qt3DCore::QNode*>::data() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#data-1">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This is an overloaded function.</p></div>
#[inline(always)]
unsafe fn data(&self) -> *const *mut crate::QNode {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNode_ptr_data1(
self as *const crate::QVectorOfQNode,
)
}
}
impl ::cpp_core::vector_ops::Data for crate::QVectorOfQNodeId {
type Output = ::cpp_core::Ptr<crate::QNodeId>;
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```const Qt3DCore::QNodeId* QVector<Qt3DCore::QNodeId>::data() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#data-1">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This is an overloaded function.</p></div>
#[inline(always)]
unsafe fn data(&self) -> ::cpp_core::Ptr<crate::QNodeId> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeId_data1(
self as *const crate::QVectorOfQNodeId,
)
};
::cpp_core::Ptr::from_raw(ffi_result as *mut crate::QNodeId)
}
}
impl ::cpp_core::vector_ops::Data for crate::QVectorOfQEntity {
type Output = *const *mut crate::QEntity;
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```const Qt3DCore::QEntity** QVector<Qt3DCore::QEntity*>::data() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#data-1">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This is an overloaded function.</p></div>
#[inline(always)]
unsafe fn data(&self) -> *const *mut crate::QEntity {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QEntity_ptr_data1(
self as *const crate::QVectorOfQEntity,
)
}
}
impl ::cpp_core::vector_ops::Data for crate::QVectorOfQComponent {
type Output = *const *mut crate::QComponent;
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```const Qt3DCore::QComponent** QVector<Qt3DCore::QComponent*>::data() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#data-1">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This is an overloaded function.</p></div>
#[inline(always)]
unsafe fn data(&self) -> *const *mut crate::QComponent {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QComponent_ptr_data1(
self as *const crate::QVectorOfQComponent,
)
}
}
impl ::cpp_core::vector_ops::Data for crate::QVectorOfQNodeIdTypePair {
type Output = ::cpp_core::Ptr<crate::QNodeIdTypePair>;
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```const Qt3DCore::QNodeIdTypePair* QVector<Qt3DCore::QNodeIdTypePair>::data() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#data-1">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This is an overloaded function.</p></div>
#[inline(always)]
unsafe fn data(&self) -> ::cpp_core::Ptr<crate::QNodeIdTypePair> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeIdTypePair_data1(
self as *const crate::QVectorOfQNodeIdTypePair,
)
};
::cpp_core::Ptr::from_raw(ffi_result as *mut crate::QNodeIdTypePair)
}
}
impl ::std::ops::Add<::cpp_core::Ref<crate::QVectorOfQAbstractAspect>>
for &crate::QVectorOfQAbstractAspect
{
type Output = ::cpp_core::CppBox<crate::QVectorOfQAbstractAspect>;
/// <p>Returns a vector that contains all the items in this vector followed by all the items in the <i>other</i> vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```QVector<Qt3DCore::QAbstractAspect*> QVector<Qt3DCore::QAbstractAspect*>::operator+(const QVector<Qt3DCore::QAbstractAspect*>& l) const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#operator-2b">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns a vector that contains all the items in this vector followed by all the items in the <i>other</i> vector.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#operator-2b-eq">operator+=</a>().</p></div>
#[inline(always)]
fn add(
self,
l: ::cpp_core::Ref<crate::QVectorOfQAbstractAspect>,
) -> ::cpp_core::CppBox<crate::QVectorOfQAbstractAspect> {
let ffi_result = {
unsafe {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QAbstractAspect_ptr_operator_2(
self as *const crate::QVectorOfQAbstractAspect,
l.as_raw_ptr(),
)
}
};
unsafe {
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
}
}
impl ::std::ops::Add<::cpp_core::Ref<crate::QVectorOfQNode>> for &crate::QVectorOfQNode {
type Output = ::cpp_core::CppBox<crate::QVectorOfQNode>;
/// <p>Returns a vector that contains all the items in this vector followed by all the items in the <i>other</i> vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```QVector<Qt3DCore::QNode*> QVector<Qt3DCore::QNode*>::operator+(const QVector<Qt3DCore::QNode*>& l) const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#operator-2b">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns a vector that contains all the items in this vector followed by all the items in the <i>other</i> vector.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#operator-2b-eq">operator+=</a>().</p></div>
#[inline(always)]
fn add(
self,
l: ::cpp_core::Ref<crate::QVectorOfQNode>,
) -> ::cpp_core::CppBox<crate::QVectorOfQNode> {
let ffi_result = {
unsafe {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNode_ptr_operator_2(
self as *const crate::QVectorOfQNode,
l.as_raw_ptr(),
)
}
};
unsafe {
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
}
}
impl ::std::ops::Add<::cpp_core::Ref<crate::QVectorOfQNodeId>> for &crate::QVectorOfQNodeId {
type Output = ::cpp_core::CppBox<crate::QVectorOfQNodeId>;
/// <p>Returns a vector that contains all the items in this vector followed by all the items in the <i>other</i> vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```QVector<Qt3DCore::QNodeId> QVector<Qt3DCore::QNodeId>::operator+(const QVector<Qt3DCore::QNodeId>& l) const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#operator-2b">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns a vector that contains all the items in this vector followed by all the items in the <i>other</i> vector.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#operator-2b-eq">operator+=</a>().</p></div>
#[inline(always)]
fn add(
self,
l: ::cpp_core::Ref<crate::QVectorOfQNodeId>,
) -> ::cpp_core::CppBox<crate::QVectorOfQNodeId> {
let ffi_result = {
unsafe {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeId_operator_2(
self as *const crate::QVectorOfQNodeId,
l.as_raw_ptr(),
)
}
};
unsafe {
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
}
}
impl ::std::ops::Add<::cpp_core::Ref<crate::QVectorOfQEntity>> for &crate::QVectorOfQEntity {
type Output = ::cpp_core::CppBox<crate::QVectorOfQEntity>;
/// <p>Returns a vector that contains all the items in this vector followed by all the items in the <i>other</i> vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```QVector<Qt3DCore::QEntity*> QVector<Qt3DCore::QEntity*>::operator+(const QVector<Qt3DCore::QEntity*>& l) const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#operator-2b">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns a vector that contains all the items in this vector followed by all the items in the <i>other</i> vector.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#operator-2b-eq">operator+=</a>().</p></div>
#[inline(always)]
fn add(
self,
l: ::cpp_core::Ref<crate::QVectorOfQEntity>,
) -> ::cpp_core::CppBox<crate::QVectorOfQEntity> {
let ffi_result = {
unsafe {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QEntity_ptr_operator_2(
self as *const crate::QVectorOfQEntity,
l.as_raw_ptr(),
)
}
};
unsafe {
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
}
}
impl ::std::ops::Add<::cpp_core::Ref<crate::QVectorOfQComponent>> for &crate::QVectorOfQComponent {
type Output = ::cpp_core::CppBox<crate::QVectorOfQComponent>;
/// <p>Returns a vector that contains all the items in this vector followed by all the items in the <i>other</i> vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```QVector<Qt3DCore::QComponent*> QVector<Qt3DCore::QComponent*>::operator+(const QVector<Qt3DCore::QComponent*>& l) const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#operator-2b">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns a vector that contains all the items in this vector followed by all the items in the <i>other</i> vector.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#operator-2b-eq">operator+=</a>().</p></div>
#[inline(always)]
fn add(
self,
l: ::cpp_core::Ref<crate::QVectorOfQComponent>,
) -> ::cpp_core::CppBox<crate::QVectorOfQComponent> {
let ffi_result = {
unsafe {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QComponent_ptr_operator_2(
self as *const crate::QVectorOfQComponent,
l.as_raw_ptr(),
)
}
};
unsafe {
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
}
}
impl ::std::ops::Add<::cpp_core::Ref<crate::QVectorOfQNodeIdTypePair>>
for &crate::QVectorOfQNodeIdTypePair
{
type Output = ::cpp_core::CppBox<crate::QVectorOfQNodeIdTypePair>;
/// <p>Returns a vector that contains all the items in this vector followed by all the items in the <i>other</i> vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```QVector<Qt3DCore::QNodeIdTypePair> QVector<Qt3DCore::QNodeIdTypePair>::operator+(const QVector<Qt3DCore::QNodeIdTypePair>& l) const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#operator-2b">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns a vector that contains all the items in this vector followed by all the items in the <i>other</i> vector.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#operator-2b-eq">operator+=</a>().</p></div>
#[inline(always)]
fn add(
self,
l: ::cpp_core::Ref<crate::QVectorOfQNodeIdTypePair>,
) -> ::cpp_core::CppBox<crate::QVectorOfQNodeIdTypePair> {
let ffi_result = {
unsafe {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeIdTypePair_operator_2(
self as *const crate::QVectorOfQNodeIdTypePair,
l.as_raw_ptr(),
)
}
};
unsafe {
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
}
}
impl ::std::ops::Shl<*const *mut crate::QAbstractAspect> for &crate::QVectorOfQAbstractAspect {
type Output = ::cpp_core::Ref<crate::QVectorOfQAbstractAspect>;
/// <p>Appends <i>value</i> to the vector and returns a reference to this vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```QVector<Qt3DCore::QAbstractAspect*>& QVector<Qt3DCore::QAbstractAspect*>::operator<<(const Qt3DCore::QAbstractAspect*& t)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#operator-lt-lt">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Appends <i>value</i> to the vector and returns a reference to this vector.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#append">append</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#operator-2b-eq">operator+=</a>().</p></div>
#[inline(always)]
fn shl(
self,
t: *const *mut crate::QAbstractAspect,
) -> ::cpp_core::Ref<crate::QVectorOfQAbstractAspect> {
let ffi_result = {
unsafe {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QAbstractAspect_ptr_operator__6(
self as *const crate::QVectorOfQAbstractAspect
as *mut crate::QVectorOfQAbstractAspect,
t,
)
}
};
unsafe { ::cpp_core::Ref::from_raw(ffi_result).expect("attempted to construct a null Ref") }
}
}
impl ::std::ops::Shl<*const *mut crate::QNode> for &crate::QVectorOfQNode {
type Output = ::cpp_core::Ref<crate::QVectorOfQNode>;
/// <p>Appends <i>value</i> to the vector and returns a reference to this vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```QVector<Qt3DCore::QNode*>& QVector<Qt3DCore::QNode*>::operator<<(const Qt3DCore::QNode*& t)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#operator-lt-lt">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Appends <i>value</i> to the vector and returns a reference to this vector.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#append">append</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#operator-2b-eq">operator+=</a>().</p></div>
#[inline(always)]
fn shl(self, t: *const *mut crate::QNode) -> ::cpp_core::Ref<crate::QVectorOfQNode> {
let ffi_result = {
unsafe {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNode_ptr_operator__6(
self as *const crate::QVectorOfQNode as *mut crate::QVectorOfQNode,
t,
)
}
};
unsafe { ::cpp_core::Ref::from_raw(ffi_result).expect("attempted to construct a null Ref") }
}
}
impl ::std::ops::Shl<::cpp_core::Ref<crate::QNodeId>> for &crate::QVectorOfQNodeId {
type Output = ::cpp_core::Ref<crate::QVectorOfQNodeId>;
/// <p>Appends <i>value</i> to the vector and returns a reference to this vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```QVector<Qt3DCore::QNodeId>& QVector<Qt3DCore::QNodeId>::operator<<(const Qt3DCore::QNodeId& t)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#operator-lt-lt">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Appends <i>value</i> to the vector and returns a reference to this vector.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#append">append</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#operator-2b-eq">operator+=</a>().</p></div>
#[inline(always)]
fn shl(self, t: ::cpp_core::Ref<crate::QNodeId>) -> ::cpp_core::Ref<crate::QVectorOfQNodeId> {
let ffi_result = {
unsafe {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeId_operator__6(
self as *const crate::QVectorOfQNodeId as *mut crate::QVectorOfQNodeId,
t.as_raw_ptr(),
)
}
};
unsafe { ::cpp_core::Ref::from_raw(ffi_result).expect("attempted to construct a null Ref") }
}
}
impl ::std::ops::Shl<*const *mut crate::QEntity> for &crate::QVectorOfQEntity {
type Output = ::cpp_core::Ref<crate::QVectorOfQEntity>;
/// <p>Appends <i>value</i> to the vector and returns a reference to this vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```QVector<Qt3DCore::QEntity*>& QVector<Qt3DCore::QEntity*>::operator<<(const Qt3DCore::QEntity*& t)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#operator-lt-lt">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Appends <i>value</i> to the vector and returns a reference to this vector.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#append">append</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#operator-2b-eq">operator+=</a>().</p></div>
#[inline(always)]
fn shl(self, t: *const *mut crate::QEntity) -> ::cpp_core::Ref<crate::QVectorOfQEntity> {
let ffi_result = {
unsafe {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QEntity_ptr_operator__6(
self as *const crate::QVectorOfQEntity as *mut crate::QVectorOfQEntity,
t,
)
}
};
unsafe { ::cpp_core::Ref::from_raw(ffi_result).expect("attempted to construct a null Ref") }
}
}
impl ::std::ops::Shl<*const *mut crate::QComponent> for &crate::QVectorOfQComponent {
type Output = ::cpp_core::Ref<crate::QVectorOfQComponent>;
/// <p>Appends <i>value</i> to the vector and returns a reference to this vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```QVector<Qt3DCore::QComponent*>& QVector<Qt3DCore::QComponent*>::operator<<(const Qt3DCore::QComponent*& t)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#operator-lt-lt">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Appends <i>value</i> to the vector and returns a reference to this vector.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#append">append</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#operator-2b-eq">operator+=</a>().</p></div>
#[inline(always)]
fn shl(self, t: *const *mut crate::QComponent) -> ::cpp_core::Ref<crate::QVectorOfQComponent> {
let ffi_result = {
unsafe {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QComponent_ptr_operator__6(
self as *const crate::QVectorOfQComponent as *mut crate::QVectorOfQComponent,
t,
)
}
};
unsafe { ::cpp_core::Ref::from_raw(ffi_result).expect("attempted to construct a null Ref") }
}
}
impl ::std::ops::Shl<::cpp_core::Ref<crate::QNodeIdTypePair>> for &crate::QVectorOfQNodeIdTypePair {
type Output = ::cpp_core::Ref<crate::QVectorOfQNodeIdTypePair>;
/// <p>Appends <i>value</i> to the vector and returns a reference to this vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```QVector<Qt3DCore::QNodeIdTypePair>& QVector<Qt3DCore::QNodeIdTypePair>::operator<<(const Qt3DCore::QNodeIdTypePair& t)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#operator-lt-lt">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Appends <i>value</i> to the vector and returns a reference to this vector.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#append">append</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#operator-2b-eq">operator+=</a>().</p></div>
#[inline(always)]
fn shl(
self,
t: ::cpp_core::Ref<crate::QNodeIdTypePair>,
) -> ::cpp_core::Ref<crate::QVectorOfQNodeIdTypePair> {
let ffi_result = {
unsafe {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeIdTypePair_operator__6(
self as *const crate::QVectorOfQNodeIdTypePair
as *mut crate::QVectorOfQNodeIdTypePair,
t.as_raw_ptr(),
)
}
};
unsafe { ::cpp_core::Ref::from_raw(ffi_result).expect("attempted to construct a null Ref") }
}
}
impl ::std::ops::Shl<::cpp_core::Ref<crate::QVectorOfQAbstractAspect>>
for &crate::QVectorOfQAbstractAspect
{
type Output = ::cpp_core::Ref<crate::QVectorOfQAbstractAspect>;
/// <p>Appends <i>other</i> to the vector and returns a reference to the vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```QVector<Qt3DCore::QAbstractAspect*>& QVector<Qt3DCore::QAbstractAspect*>::operator<<(const QVector<Qt3DCore::QAbstractAspect*>& l)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#operator-lt-lt-1">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Appends <i>other</i> to the vector and returns a reference to the vector.</p></div>
#[inline(always)]
fn shl(
self,
l: ::cpp_core::Ref<crate::QVectorOfQAbstractAspect>,
) -> ::cpp_core::Ref<crate::QVectorOfQAbstractAspect> {
let ffi_result = {
unsafe {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QAbstractAspect_ptr_operator__7(
self as *const crate::QVectorOfQAbstractAspect
as *mut crate::QVectorOfQAbstractAspect,
l.as_raw_ptr(),
)
}
};
unsafe { ::cpp_core::Ref::from_raw(ffi_result).expect("attempted to construct a null Ref") }
}
}
impl ::std::ops::Shl<::cpp_core::Ref<crate::QVectorOfQNode>> for &crate::QVectorOfQNode {
type Output = ::cpp_core::Ref<crate::QVectorOfQNode>;
/// <p>Appends <i>other</i> to the vector and returns a reference to the vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```QVector<Qt3DCore::QNode*>& QVector<Qt3DCore::QNode*>::operator<<(const QVector<Qt3DCore::QNode*>& l)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#operator-lt-lt-1">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Appends <i>other</i> to the vector and returns a reference to the vector.</p></div>
#[inline(always)]
fn shl(
self,
l: ::cpp_core::Ref<crate::QVectorOfQNode>,
) -> ::cpp_core::Ref<crate::QVectorOfQNode> {
let ffi_result = {
unsafe {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNode_ptr_operator__7(
self as *const crate::QVectorOfQNode as *mut crate::QVectorOfQNode,
l.as_raw_ptr(),
)
}
};
unsafe { ::cpp_core::Ref::from_raw(ffi_result).expect("attempted to construct a null Ref") }
}
}
impl ::std::ops::Shl<::cpp_core::Ref<crate::QVectorOfQNodeId>> for &crate::QVectorOfQNodeId {
type Output = ::cpp_core::Ref<crate::QVectorOfQNodeId>;
/// <p>Appends <i>other</i> to the vector and returns a reference to the vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```QVector<Qt3DCore::QNodeId>& QVector<Qt3DCore::QNodeId>::operator<<(const QVector<Qt3DCore::QNodeId>& l)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#operator-lt-lt-1">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Appends <i>other</i> to the vector and returns a reference to the vector.</p></div>
#[inline(always)]
fn shl(
self,
l: ::cpp_core::Ref<crate::QVectorOfQNodeId>,
) -> ::cpp_core::Ref<crate::QVectorOfQNodeId> {
let ffi_result = {
unsafe {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeId_operator__7(
self as *const crate::QVectorOfQNodeId as *mut crate::QVectorOfQNodeId,
l.as_raw_ptr(),
)
}
};
unsafe { ::cpp_core::Ref::from_raw(ffi_result).expect("attempted to construct a null Ref") }
}
}
impl ::std::ops::Shl<::cpp_core::Ref<crate::QVectorOfQEntity>> for &crate::QVectorOfQEntity {
type Output = ::cpp_core::Ref<crate::QVectorOfQEntity>;
/// <p>Appends <i>other</i> to the vector and returns a reference to the vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```QVector<Qt3DCore::QEntity*>& QVector<Qt3DCore::QEntity*>::operator<<(const QVector<Qt3DCore::QEntity*>& l)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#operator-lt-lt-1">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Appends <i>other</i> to the vector and returns a reference to the vector.</p></div>
#[inline(always)]
fn shl(
self,
l: ::cpp_core::Ref<crate::QVectorOfQEntity>,
) -> ::cpp_core::Ref<crate::QVectorOfQEntity> {
let ffi_result = {
unsafe {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QEntity_ptr_operator__7(
self as *const crate::QVectorOfQEntity as *mut crate::QVectorOfQEntity,
l.as_raw_ptr(),
)
}
};
unsafe { ::cpp_core::Ref::from_raw(ffi_result).expect("attempted to construct a null Ref") }
}
}
impl ::std::ops::Shl<::cpp_core::Ref<crate::QVectorOfQComponent>> for &crate::QVectorOfQComponent {
type Output = ::cpp_core::Ref<crate::QVectorOfQComponent>;
/// <p>Appends <i>other</i> to the vector and returns a reference to the vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```QVector<Qt3DCore::QComponent*>& QVector<Qt3DCore::QComponent*>::operator<<(const QVector<Qt3DCore::QComponent*>& l)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#operator-lt-lt-1">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Appends <i>other</i> to the vector and returns a reference to the vector.</p></div>
#[inline(always)]
fn shl(
self,
l: ::cpp_core::Ref<crate::QVectorOfQComponent>,
) -> ::cpp_core::Ref<crate::QVectorOfQComponent> {
let ffi_result = {
unsafe {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QComponent_ptr_operator__7(
self as *const crate::QVectorOfQComponent as *mut crate::QVectorOfQComponent,
l.as_raw_ptr(),
)
}
};
unsafe { ::cpp_core::Ref::from_raw(ffi_result).expect("attempted to construct a null Ref") }
}
}
impl ::std::ops::Shl<::cpp_core::Ref<crate::QVectorOfQNodeIdTypePair>>
for &crate::QVectorOfQNodeIdTypePair
{
type Output = ::cpp_core::Ref<crate::QVectorOfQNodeIdTypePair>;
/// <p>Appends <i>other</i> to the vector and returns a reference to the vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```QVector<Qt3DCore::QNodeIdTypePair>& QVector<Qt3DCore::QNodeIdTypePair>::operator<<(const QVector<Qt3DCore::QNodeIdTypePair>& l)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#operator-lt-lt-1">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Appends <i>other</i> to the vector and returns a reference to the vector.</p></div>
#[inline(always)]
fn shl(
self,
l: ::cpp_core::Ref<crate::QVectorOfQNodeIdTypePair>,
) -> ::cpp_core::Ref<crate::QVectorOfQNodeIdTypePair> {
let ffi_result = {
unsafe {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QNodeIdTypePair_operator__7(
self as *const crate::QVectorOfQNodeIdTypePair
as *mut crate::QVectorOfQNodeIdTypePair,
l.as_raw_ptr(),
)
}
};
unsafe { ::cpp_core::Ref::from_raw(ffi_result).expect("attempted to construct a null Ref") }
}
}
impl ::cpp_core::cmp::Lt<::cpp_core::Ref<crate::QVectorOfQAbstractAspect>>
for crate::QVectorOfQAbstractAspect
{
/// Calls C++ function: <span style='color: green;'>```bool operator<(const QVector<Qt3DCore::QAbstractAspect*>& lhs, const QVector<Qt3DCore::QAbstractAspect*>& rhs)```</span>.
#[inline(always)]
unsafe fn lt(&self, rhs: &::cpp_core::Ref<crate::QVectorOfQAbstractAspect>) -> bool {
crate::__ffi::ctr_qt_3d_core_ffi_operator_(
self as *const crate::QVectorOfQAbstractAspect,
rhs.as_raw_ptr(),
)
}
}
impl ::cpp_core::cmp::Lt<::cpp_core::Ref<crate::QVectorOfQNode>> for crate::QVectorOfQNode {
/// Calls C++ function: <span style='color: green;'>```bool operator<(const QVector<Qt3DCore::QNode*>& lhs, const QVector<Qt3DCore::QNode*>& rhs)```</span>.
#[inline(always)]
unsafe fn lt(&self, rhs: &::cpp_core::Ref<crate::QVectorOfQNode>) -> bool {
crate::__ffi::ctr_qt_3d_core_ffi_operator_1(
self as *const crate::QVectorOfQNode,
rhs.as_raw_ptr(),
)
}
}
impl ::cpp_core::cmp::Lt<::cpp_core::Ref<crate::QVectorOfQNodeId>> for crate::QVectorOfQNodeId {
/// Calls C++ function: <span style='color: green;'>```bool operator<(const QVector<Qt3DCore::QNodeId>& lhs, const QVector<Qt3DCore::QNodeId>& rhs)```</span>.
#[inline(always)]
unsafe fn lt(&self, rhs: &::cpp_core::Ref<crate::QVectorOfQNodeId>) -> bool {
crate::__ffi::ctr_qt_3d_core_ffi_operator_2(
self as *const crate::QVectorOfQNodeId,
rhs.as_raw_ptr(),
)
}
}
impl ::cpp_core::cmp::Lt<::cpp_core::Ref<crate::QVectorOfQEntity>> for crate::QVectorOfQEntity {
/// Calls C++ function: <span style='color: green;'>```bool operator<(const QVector<Qt3DCore::QEntity*>& lhs, const QVector<Qt3DCore::QEntity*>& rhs)```</span>.
#[inline(always)]
unsafe fn lt(&self, rhs: &::cpp_core::Ref<crate::QVectorOfQEntity>) -> bool {
crate::__ffi::ctr_qt_3d_core_ffi_operator_3(
self as *const crate::QVectorOfQEntity,
rhs.as_raw_ptr(),
)
}
}
impl ::cpp_core::cmp::Lt<::cpp_core::Ref<crate::QVectorOfQComponent>>
for crate::QVectorOfQComponent
{
/// Calls C++ function: <span style='color: green;'>```bool operator<(const QVector<Qt3DCore::QComponent*>& lhs, const QVector<Qt3DCore::QComponent*>& rhs)```</span>.
#[inline(always)]
unsafe fn lt(&self, rhs: &::cpp_core::Ref<crate::QVectorOfQComponent>) -> bool {
crate::__ffi::ctr_qt_3d_core_ffi_operator_4(
self as *const crate::QVectorOfQComponent,
rhs.as_raw_ptr(),
)
}
}
impl ::cpp_core::cmp::Gt<::cpp_core::Ref<crate::QVectorOfQAbstractAspect>>
for crate::QVectorOfQAbstractAspect
{
/// Calls C++ function: <span style='color: green;'>```bool operator>(const QVector<Qt3DCore::QAbstractAspect*>& lhs, const QVector<Qt3DCore::QAbstractAspect*>& rhs)```</span>.
#[inline(always)]
unsafe fn gt(&self, rhs: &::cpp_core::Ref<crate::QVectorOfQAbstractAspect>) -> bool {
crate::__ffi::ctr_qt_3d_core_ffi_operator_6(
self as *const crate::QVectorOfQAbstractAspect,
rhs.as_raw_ptr(),
)
}
}
impl ::cpp_core::cmp::Gt<::cpp_core::Ref<crate::QVectorOfQNode>> for crate::QVectorOfQNode {
/// Calls C++ function: <span style='color: green;'>```bool operator>(const QVector<Qt3DCore::QNode*>& lhs, const QVector<Qt3DCore::QNode*>& rhs)```</span>.
#[inline(always)]
unsafe fn gt(&self, rhs: &::cpp_core::Ref<crate::QVectorOfQNode>) -> bool {
crate::__ffi::ctr_qt_3d_core_ffi_operator_7(
self as *const crate::QVectorOfQNode,
rhs.as_raw_ptr(),
)
}
}
impl ::cpp_core::cmp::Gt<::cpp_core::Ref<crate::QVectorOfQNodeId>> for crate::QVectorOfQNodeId {
/// Calls C++ function: <span style='color: green;'>```bool operator>(const QVector<Qt3DCore::QNodeId>& lhs, const QVector<Qt3DCore::QNodeId>& rhs)```</span>.
#[inline(always)]
unsafe fn gt(&self, rhs: &::cpp_core::Ref<crate::QVectorOfQNodeId>) -> bool {
crate::__ffi::ctr_qt_3d_core_ffi_operator_8(
self as *const crate::QVectorOfQNodeId,
rhs.as_raw_ptr(),
)
}
}
impl ::cpp_core::cmp::Gt<::cpp_core::Ref<crate::QVectorOfQEntity>> for crate::QVectorOfQEntity {
/// Calls C++ function: <span style='color: green;'>```bool operator>(const QVector<Qt3DCore::QEntity*>& lhs, const QVector<Qt3DCore::QEntity*>& rhs)```</span>.
#[inline(always)]
unsafe fn gt(&self, rhs: &::cpp_core::Ref<crate::QVectorOfQEntity>) -> bool {
crate::__ffi::ctr_qt_3d_core_ffi_operator_9(
self as *const crate::QVectorOfQEntity,
rhs.as_raw_ptr(),
)
}
}
impl ::cpp_core::cmp::Gt<::cpp_core::Ref<crate::QVectorOfQComponent>>
for crate::QVectorOfQComponent
{
/// Calls C++ function: <span style='color: green;'>```bool operator>(const QVector<Qt3DCore::QComponent*>& lhs, const QVector<Qt3DCore::QComponent*>& rhs)```</span>.
#[inline(always)]
unsafe fn gt(&self, rhs: &::cpp_core::Ref<crate::QVectorOfQComponent>) -> bool {
crate::__ffi::ctr_qt_3d_core_ffi_operator_10(
self as *const crate::QVectorOfQComponent,
rhs.as_raw_ptr(),
)
}
}
impl ::cpp_core::cmp::Le<::cpp_core::Ref<crate::QVectorOfQAbstractAspect>>
for crate::QVectorOfQAbstractAspect
{
/// <p>Returns <code>true</code> if the numeric Unicode value of <i>c1</i> is less than or equal to that of <i>c2</i>; otherwise returns <code>false</code>.</p>
///
/// Calls C++ function: <span style='color: green;'>```bool operator<=(const QVector<Qt3DCore::QAbstractAspect*>& lhs, const QVector<Qt3DCore::QAbstractAspect*>& rhs)```</span>.
///
/// Warning: no exact match found in C++ documentation. Below is the <a href="http://doc.qt.io/qt-5/qchar.html#operator-lt-eq">C++ documentation</a> for <span style='color: green;'>```bool operator<=(QChar c1, QChar c2)```</span>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns <code>true</code> if the numeric Unicode value of <i>c1</i> is less than or equal to that of <i>c2</i>; otherwise returns <code>false</code>.</p></div>
#[inline(always)]
unsafe fn le(&self, rhs: &::cpp_core::Ref<crate::QVectorOfQAbstractAspect>) -> bool {
crate::__ffi::ctr_qt_3d_core_ffi_operator__(
self as *const crate::QVectorOfQAbstractAspect,
rhs.as_raw_ptr(),
)
}
}
impl ::cpp_core::cmp::Le<::cpp_core::Ref<crate::QVectorOfQNode>> for crate::QVectorOfQNode {
/// <p>Returns <code>true</code> if the numeric Unicode value of <i>c1</i> is less than or equal to that of <i>c2</i>; otherwise returns <code>false</code>.</p>
///
/// Calls C++ function: <span style='color: green;'>```bool operator<=(const QVector<Qt3DCore::QNode*>& lhs, const QVector<Qt3DCore::QNode*>& rhs)```</span>.
///
/// Warning: no exact match found in C++ documentation. Below is the <a href="http://doc.qt.io/qt-5/qchar.html#operator-lt-eq">C++ documentation</a> for <span style='color: green;'>```bool operator<=(QChar c1, QChar c2)```</span>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns <code>true</code> if the numeric Unicode value of <i>c1</i> is less than or equal to that of <i>c2</i>; otherwise returns <code>false</code>.</p></div>
#[inline(always)]
unsafe fn le(&self, rhs: &::cpp_core::Ref<crate::QVectorOfQNode>) -> bool {
crate::__ffi::ctr_qt_3d_core_ffi_operator__1(
self as *const crate::QVectorOfQNode,
rhs.as_raw_ptr(),
)
}
}
impl ::cpp_core::cmp::Le<::cpp_core::Ref<crate::QVectorOfQNodeId>> for crate::QVectorOfQNodeId {
/// <p>Returns <code>true</code> if the numeric Unicode value of <i>c1</i> is less than or equal to that of <i>c2</i>; otherwise returns <code>false</code>.</p>
///
/// Calls C++ function: <span style='color: green;'>```bool operator<=(const QVector<Qt3DCore::QNodeId>& lhs, const QVector<Qt3DCore::QNodeId>& rhs)```</span>.
///
/// Warning: no exact match found in C++ documentation. Below is the <a href="http://doc.qt.io/qt-5/qchar.html#operator-lt-eq">C++ documentation</a> for <span style='color: green;'>```bool operator<=(QChar c1, QChar c2)```</span>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns <code>true</code> if the numeric Unicode value of <i>c1</i> is less than or equal to that of <i>c2</i>; otherwise returns <code>false</code>.</p></div>
#[inline(always)]
unsafe fn le(&self, rhs: &::cpp_core::Ref<crate::QVectorOfQNodeId>) -> bool {
crate::__ffi::ctr_qt_3d_core_ffi_operator__2(
self as *const crate::QVectorOfQNodeId,
rhs.as_raw_ptr(),
)
}
}
impl ::cpp_core::cmp::Le<::cpp_core::Ref<crate::QVectorOfQEntity>> for crate::QVectorOfQEntity {
/// <p>Returns <code>true</code> if the numeric Unicode value of <i>c1</i> is less than or equal to that of <i>c2</i>; otherwise returns <code>false</code>.</p>
///
/// Calls C++ function: <span style='color: green;'>```bool operator<=(const QVector<Qt3DCore::QEntity*>& lhs, const QVector<Qt3DCore::QEntity*>& rhs)```</span>.
///
/// Warning: no exact match found in C++ documentation. Below is the <a href="http://doc.qt.io/qt-5/qchar.html#operator-lt-eq">C++ documentation</a> for <span style='color: green;'>```bool operator<=(QChar c1, QChar c2)```</span>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns <code>true</code> if the numeric Unicode value of <i>c1</i> is less than or equal to that of <i>c2</i>; otherwise returns <code>false</code>.</p></div>
#[inline(always)]
unsafe fn le(&self, rhs: &::cpp_core::Ref<crate::QVectorOfQEntity>) -> bool {
crate::__ffi::ctr_qt_3d_core_ffi_operator__3(
self as *const crate::QVectorOfQEntity,
rhs.as_raw_ptr(),
)
}
}
impl ::cpp_core::cmp::Le<::cpp_core::Ref<crate::QVectorOfQComponent>>
for crate::QVectorOfQComponent
{
/// <p>Returns <code>true</code> if the numeric Unicode value of <i>c1</i> is less than or equal to that of <i>c2</i>; otherwise returns <code>false</code>.</p>
///
/// Calls C++ function: <span style='color: green;'>```bool operator<=(const QVector<Qt3DCore::QComponent*>& lhs, const QVector<Qt3DCore::QComponent*>& rhs)```</span>.
///
/// Warning: no exact match found in C++ documentation. Below is the <a href="http://doc.qt.io/qt-5/qchar.html#operator-lt-eq">C++ documentation</a> for <span style='color: green;'>```bool operator<=(QChar c1, QChar c2)```</span>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns <code>true</code> if the numeric Unicode value of <i>c1</i> is less than or equal to that of <i>c2</i>; otherwise returns <code>false</code>.</p></div>
#[inline(always)]
unsafe fn le(&self, rhs: &::cpp_core::Ref<crate::QVectorOfQComponent>) -> bool {
crate::__ffi::ctr_qt_3d_core_ffi_operator__4(
self as *const crate::QVectorOfQComponent,
rhs.as_raw_ptr(),
)
}
}
impl ::cpp_core::cmp::Ge<::cpp_core::Ref<crate::QVectorOfQAbstractAspect>>
for crate::QVectorOfQAbstractAspect
{
/// <p>Returns <code>true</code> if the numeric Unicode value of <i>c1</i> is greater than or equal to that of <i>c2</i>; otherwise returns <code>false</code>.</p>
///
/// Calls C++ function: <span style='color: green;'>```bool operator>=(const QVector<Qt3DCore::QAbstractAspect*>& lhs, const QVector<Qt3DCore::QAbstractAspect*>& rhs)```</span>.
///
/// Warning: no exact match found in C++ documentation. Below is the <a href="http://doc.qt.io/qt-5/qchar.html#operator-gt-eq">C++ documentation</a> for <span style='color: green;'>```bool operator>=(QChar c1, QChar c2)```</span>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns <code>true</code> if the numeric Unicode value of <i>c1</i> is greater than or equal to that of <i>c2</i>; otherwise returns <code>false</code>.</p></div>
#[inline(always)]
unsafe fn ge(&self, rhs: &::cpp_core::Ref<crate::QVectorOfQAbstractAspect>) -> bool {
crate::__ffi::ctr_qt_3d_core_ffi_operator__6(
self as *const crate::QVectorOfQAbstractAspect,
rhs.as_raw_ptr(),
)
}
}
impl ::cpp_core::cmp::Ge<::cpp_core::Ref<crate::QVectorOfQNode>> for crate::QVectorOfQNode {
/// <p>Returns <code>true</code> if the numeric Unicode value of <i>c1</i> is greater than or equal to that of <i>c2</i>; otherwise returns <code>false</code>.</p>
///
/// Calls C++ function: <span style='color: green;'>```bool operator>=(const QVector<Qt3DCore::QNode*>& lhs, const QVector<Qt3DCore::QNode*>& rhs)```</span>.
///
/// Warning: no exact match found in C++ documentation. Below is the <a href="http://doc.qt.io/qt-5/qchar.html#operator-gt-eq">C++ documentation</a> for <span style='color: green;'>```bool operator>=(QChar c1, QChar c2)```</span>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns <code>true</code> if the numeric Unicode value of <i>c1</i> is greater than or equal to that of <i>c2</i>; otherwise returns <code>false</code>.</p></div>
#[inline(always)]
unsafe fn ge(&self, rhs: &::cpp_core::Ref<crate::QVectorOfQNode>) -> bool {
crate::__ffi::ctr_qt_3d_core_ffi_operator__7(
self as *const crate::QVectorOfQNode,
rhs.as_raw_ptr(),
)
}
}
impl ::cpp_core::cmp::Ge<::cpp_core::Ref<crate::QVectorOfQNodeId>> for crate::QVectorOfQNodeId {
/// <p>Returns <code>true</code> if the numeric Unicode value of <i>c1</i> is greater than or equal to that of <i>c2</i>; otherwise returns <code>false</code>.</p>
///
/// Calls C++ function: <span style='color: green;'>```bool operator>=(const QVector<Qt3DCore::QNodeId>& lhs, const QVector<Qt3DCore::QNodeId>& rhs)```</span>.
///
/// Warning: no exact match found in C++ documentation. Below is the <a href="http://doc.qt.io/qt-5/qchar.html#operator-gt-eq">C++ documentation</a> for <span style='color: green;'>```bool operator>=(QChar c1, QChar c2)```</span>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns <code>true</code> if the numeric Unicode value of <i>c1</i> is greater than or equal to that of <i>c2</i>; otherwise returns <code>false</code>.</p></div>
#[inline(always)]
unsafe fn ge(&self, rhs: &::cpp_core::Ref<crate::QVectorOfQNodeId>) -> bool {
crate::__ffi::ctr_qt_3d_core_ffi_operator__8(
self as *const crate::QVectorOfQNodeId,
rhs.as_raw_ptr(),
)
}
}
impl ::cpp_core::cmp::Ge<::cpp_core::Ref<crate::QVectorOfQEntity>> for crate::QVectorOfQEntity {
/// <p>Returns <code>true</code> if the numeric Unicode value of <i>c1</i> is greater than or equal to that of <i>c2</i>; otherwise returns <code>false</code>.</p>
///
/// Calls C++ function: <span style='color: green;'>```bool operator>=(const QVector<Qt3DCore::QEntity*>& lhs, const QVector<Qt3DCore::QEntity*>& rhs)```</span>.
///
/// Warning: no exact match found in C++ documentation. Below is the <a href="http://doc.qt.io/qt-5/qchar.html#operator-gt-eq">C++ documentation</a> for <span style='color: green;'>```bool operator>=(QChar c1, QChar c2)```</span>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns <code>true</code> if the numeric Unicode value of <i>c1</i> is greater than or equal to that of <i>c2</i>; otherwise returns <code>false</code>.</p></div>
#[inline(always)]
unsafe fn ge(&self, rhs: &::cpp_core::Ref<crate::QVectorOfQEntity>) -> bool {
crate::__ffi::ctr_qt_3d_core_ffi_operator__9(
self as *const crate::QVectorOfQEntity,
rhs.as_raw_ptr(),
)
}
}
impl ::cpp_core::cmp::Ge<::cpp_core::Ref<crate::QVectorOfQComponent>>
for crate::QVectorOfQComponent
{
/// <p>Returns <code>true</code> if the numeric Unicode value of <i>c1</i> is greater than or equal to that of <i>c2</i>; otherwise returns <code>false</code>.</p>
///
/// Calls C++ function: <span style='color: green;'>```bool operator>=(const QVector<Qt3DCore::QComponent*>& lhs, const QVector<Qt3DCore::QComponent*>& rhs)```</span>.
///
/// Warning: no exact match found in C++ documentation. Below is the <a href="http://doc.qt.io/qt-5/qchar.html#operator-gt-eq">C++ documentation</a> for <span style='color: green;'>```bool operator>=(QChar c1, QChar c2)```</span>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns <code>true</code> if the numeric Unicode value of <i>c1</i> is greater than or equal to that of <i>c2</i>; otherwise returns <code>false</code>.</p></div>
#[inline(always)]
unsafe fn ge(&self, rhs: &::cpp_core::Ref<crate::QVectorOfQComponent>) -> bool {
crate::__ffi::ctr_qt_3d_core_ffi_operator__10(
self as *const crate::QVectorOfQComponent,
rhs.as_raw_ptr(),
)
}
}
impl ::cpp_core::StaticDowncast<crate::QAbstractAspect> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QAbstractAspect* static_cast<Qt3DCore::QAbstractAspect*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QAbstractAspect> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_Qt3DCore_QAbstractAspect_ptr(
ptr.as_raw_ptr() as *mut ::qt_core::QObject,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_core::QObject> for crate::QAbstractAspect {
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(Qt3DCore::QAbstractAspect* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QAbstractAspect>,
) -> ::cpp_core::Ptr<::qt_core::QObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_QObject_ptr(
ptr.as_raw_ptr() as *mut crate::QAbstractAspect
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::std::ops::Deref for crate::QAbstractAspect {
type Target = ::qt_core::QObject;
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(Qt3DCore::QAbstractAspect* ptr)```</span>.
#[inline(always)]
fn deref(&self) -> &::qt_core::QObject {
let ffi_result = {
unsafe {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_QObject_ptr(
self as *const crate::QAbstractAspect as *mut crate::QAbstractAspect,
)
}
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_core::DynamicCast<crate::QAbstractAspect> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QAbstractAspect* dynamic_cast<Qt3DCore::QAbstractAspect*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QAbstractAspect> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_dynamic_cast_Qt3DCore_QAbstractAspect_ptr(
ptr.as_raw_ptr() as *mut ::qt_core::QObject,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QAspectEngine> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QAspectEngine* static_cast<Qt3DCore::QAspectEngine*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QAspectEngine> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_Qt3DCore_QAspectEngine_ptr(
ptr.as_raw_ptr() as *mut ::qt_core::QObject,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_core::QObject> for crate::QAspectEngine {
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(Qt3DCore::QAspectEngine* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QAspectEngine>,
) -> ::cpp_core::Ptr<::qt_core::QObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_QObject_ptr1(
ptr.as_raw_ptr() as *mut crate::QAspectEngine
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::std::ops::Deref for crate::QAspectEngine {
type Target = ::qt_core::QObject;
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(Qt3DCore::QAspectEngine* ptr)```</span>.
#[inline(always)]
fn deref(&self) -> &::qt_core::QObject {
let ffi_result = {
unsafe {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_QObject_ptr1(
self as *const crate::QAspectEngine as *mut crate::QAspectEngine,
)
}
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_core::DynamicCast<crate::QAspectEngine> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QAspectEngine* dynamic_cast<Qt3DCore::QAspectEngine*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QAspectEngine> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_dynamic_cast_Qt3DCore_QAspectEngine_ptr(
ptr.as_raw_ptr() as *mut ::qt_core::QObject,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QNodeCreatedChangeBase> for crate::QSceneChange {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNodeCreatedChangeBase* static_cast<Qt3DCore::QNodeCreatedChangeBase*>(Qt3DCore::QSceneChange* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<crate::QSceneChange>,
) -> ::cpp_core::Ptr<crate::QNodeCreatedChangeBase> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_Qt3DCore_QNodeCreatedChangeBase_ptr(
ptr.as_raw_ptr() as *mut crate::QSceneChange,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<crate::QSceneChange> for crate::QNodeCreatedChangeBase {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QSceneChange* static_cast<Qt3DCore::QSceneChange*>(Qt3DCore::QNodeCreatedChangeBase* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QNodeCreatedChangeBase>,
) -> ::cpp_core::Ptr<crate::QSceneChange> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_Qt3DCore_QSceneChange_ptr(
ptr.as_raw_ptr() as *mut crate::QNodeCreatedChangeBase
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::std::ops::Deref for crate::QNodeCreatedChangeBase {
type Target = crate::QSceneChange;
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QSceneChange* static_cast<Qt3DCore::QSceneChange*>(Qt3DCore::QNodeCreatedChangeBase* ptr)```</span>.
#[inline(always)]
fn deref(&self) -> &crate::QSceneChange {
let ffi_result = {
unsafe {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_Qt3DCore_QSceneChange_ptr(
self as *const crate::QNodeCreatedChangeBase
as *mut crate::QNodeCreatedChangeBase,
)
}
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_core::DynamicCast<crate::QNodeCreatedChangeBase> for crate::QSceneChange {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNodeCreatedChangeBase* dynamic_cast<Qt3DCore::QNodeCreatedChangeBase*>(Qt3DCore::QSceneChange* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<crate::QSceneChange>,
) -> ::cpp_core::Ptr<crate::QNodeCreatedChangeBase> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_dynamic_cast_Qt3DCore_QNodeCreatedChangeBase_ptr(
ptr.as_raw_ptr() as *mut crate::QSceneChange,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QNode> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QNode> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_Qt3DCore_QNode_ptr(
ptr.as_raw_ptr() as *mut ::qt_core::QObject
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_core::QObject> for crate::QNode {
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(Qt3DCore::QNode* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QNode>,
) -> ::cpp_core::Ptr<::qt_core::QObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_QObject_ptr2(
ptr.as_raw_ptr() as *mut crate::QNode
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::std::ops::Deref for crate::QNode {
type Target = ::qt_core::QObject;
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(Qt3DCore::QNode* ptr)```</span>.
#[inline(always)]
fn deref(&self) -> &::qt_core::QObject {
let ffi_result = {
unsafe {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_QObject_ptr2(
self as *const crate::QNode as *mut crate::QNode,
)
}
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_core::DynamicCast<crate::QNode> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* dynamic_cast<Qt3DCore::QNode*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QNode> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_dynamic_cast_Qt3DCore_QNode_ptr(
ptr.as_raw_ptr() as *mut ::qt_core::QObject
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QComponent> for crate::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QComponent* static_cast<Qt3DCore::QComponent*>(Qt3DCore::QNode* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<crate::QNode>,
) -> ::cpp_core::Ptr<crate::QComponent> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_Qt3DCore_QComponent_ptr(
ptr.as_raw_ptr() as *mut crate::QNode
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<crate::QNode> for crate::QComponent {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DCore::QComponent* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QComponent>,
) -> ::cpp_core::Ptr<crate::QNode> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_Qt3DCore_QNode_ptr1(
ptr.as_raw_ptr() as *mut crate::QComponent
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::std::ops::Deref for crate::QComponent {
type Target = crate::QNode;
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DCore::QComponent* ptr)```</span>.
#[inline(always)]
fn deref(&self) -> &crate::QNode {
let ffi_result = {
unsafe {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_Qt3DCore_QNode_ptr1(
self as *const crate::QComponent as *mut crate::QComponent,
)
}
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_core::DynamicCast<crate::QComponent> for crate::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QComponent* dynamic_cast<Qt3DCore::QComponent*>(Qt3DCore::QNode* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<crate::QNode>,
) -> ::cpp_core::Ptr<crate::QComponent> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_dynamic_cast_Qt3DCore_QComponent_ptr(
ptr.as_raw_ptr() as *mut crate::QNode
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QComponent> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QComponent* static_cast<Qt3DCore::QComponent*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QComponent> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_Qt3DCore_QComponent_ptr1(
ptr.as_raw_ptr() as *mut ::qt_core::QObject
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_core::QObject> for crate::QComponent {
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(Qt3DCore::QComponent* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QComponent>,
) -> ::cpp_core::Ptr<::qt_core::QObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_QObject_ptr3(
ptr.as_raw_ptr() as *mut crate::QComponent
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QComponent> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QComponent* dynamic_cast<Qt3DCore::QComponent*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QComponent> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_dynamic_cast_Qt3DCore_QComponent_ptr1(
ptr.as_raw_ptr() as *mut ::qt_core::QObject
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QComponentAddedChange> for crate::QSceneChange {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QComponentAddedChange* static_cast<Qt3DCore::QComponentAddedChange*>(Qt3DCore::QSceneChange* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<crate::QSceneChange>,
) -> ::cpp_core::Ptr<crate::QComponentAddedChange> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_Qt3DCore_QComponentAddedChange_ptr(
ptr.as_raw_ptr() as *mut crate::QSceneChange,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<crate::QSceneChange> for crate::QComponentAddedChange {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QSceneChange* static_cast<Qt3DCore::QSceneChange*>(Qt3DCore::QComponentAddedChange* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QComponentAddedChange>,
) -> ::cpp_core::Ptr<crate::QSceneChange> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_Qt3DCore_QSceneChange_ptr1(
ptr.as_raw_ptr() as *mut crate::QComponentAddedChange,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::std::ops::Deref for crate::QComponentAddedChange {
type Target = crate::QSceneChange;
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QSceneChange* static_cast<Qt3DCore::QSceneChange*>(Qt3DCore::QComponentAddedChange* ptr)```</span>.
#[inline(always)]
fn deref(&self) -> &crate::QSceneChange {
let ffi_result = {
unsafe {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_Qt3DCore_QSceneChange_ptr1(
self as *const crate::QComponentAddedChange
as *mut crate::QComponentAddedChange,
)
}
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_core::DynamicCast<crate::QComponentAddedChange> for crate::QSceneChange {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QComponentAddedChange* dynamic_cast<Qt3DCore::QComponentAddedChange*>(Qt3DCore::QSceneChange* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<crate::QSceneChange>,
) -> ::cpp_core::Ptr<crate::QComponentAddedChange> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_dynamic_cast_Qt3DCore_QComponentAddedChange_ptr(
ptr.as_raw_ptr() as *mut crate::QSceneChange,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QComponentRemovedChange> for crate::QSceneChange {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QComponentRemovedChange* static_cast<Qt3DCore::QComponentRemovedChange*>(Qt3DCore::QSceneChange* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<crate::QSceneChange>,
) -> ::cpp_core::Ptr<crate::QComponentRemovedChange> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_Qt3DCore_QComponentRemovedChange_ptr(
ptr.as_raw_ptr() as *mut crate::QSceneChange,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<crate::QSceneChange> for crate::QComponentRemovedChange {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QSceneChange* static_cast<Qt3DCore::QSceneChange*>(Qt3DCore::QComponentRemovedChange* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QComponentRemovedChange>,
) -> ::cpp_core::Ptr<crate::QSceneChange> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_Qt3DCore_QSceneChange_ptr2(
ptr.as_raw_ptr() as *mut crate::QComponentRemovedChange,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::std::ops::Deref for crate::QComponentRemovedChange {
type Target = crate::QSceneChange;
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QSceneChange* static_cast<Qt3DCore::QSceneChange*>(Qt3DCore::QComponentRemovedChange* ptr)```</span>.
#[inline(always)]
fn deref(&self) -> &crate::QSceneChange {
let ffi_result = {
unsafe {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_Qt3DCore_QSceneChange_ptr2(
self as *const crate::QComponentRemovedChange
as *mut crate::QComponentRemovedChange,
)
}
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_core::DynamicCast<crate::QComponentRemovedChange> for crate::QSceneChange {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QComponentRemovedChange* dynamic_cast<Qt3DCore::QComponentRemovedChange*>(Qt3DCore::QSceneChange* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<crate::QSceneChange>,
) -> ::cpp_core::Ptr<crate::QComponentRemovedChange> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_dynamic_cast_Qt3DCore_QComponentRemovedChange_ptr(
ptr.as_raw_ptr() as *mut crate::QSceneChange,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QPropertyUpdatedChangeBase> for crate::QSceneChange {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QPropertyUpdatedChangeBase* static_cast<Qt3DCore::QPropertyUpdatedChangeBase*>(Qt3DCore::QSceneChange* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<crate::QSceneChange>,
) -> ::cpp_core::Ptr<crate::QPropertyUpdatedChangeBase> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_Qt3DCore_QPropertyUpdatedChangeBase_ptr(
ptr.as_raw_ptr() as *mut crate::QSceneChange,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<crate::QSceneChange> for crate::QPropertyUpdatedChangeBase {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QSceneChange* static_cast<Qt3DCore::QSceneChange*>(Qt3DCore::QPropertyUpdatedChangeBase* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QPropertyUpdatedChangeBase>,
) -> ::cpp_core::Ptr<crate::QSceneChange> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_Qt3DCore_QSceneChange_ptr3(
ptr.as_raw_ptr() as *mut crate::QPropertyUpdatedChangeBase,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::std::ops::Deref for crate::QPropertyUpdatedChangeBase {
type Target = crate::QSceneChange;
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QSceneChange* static_cast<Qt3DCore::QSceneChange*>(Qt3DCore::QPropertyUpdatedChangeBase* ptr)```</span>.
#[inline(always)]
fn deref(&self) -> &crate::QSceneChange {
let ffi_result = {
unsafe {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_Qt3DCore_QSceneChange_ptr3(
self as *const crate::QPropertyUpdatedChangeBase
as *mut crate::QPropertyUpdatedChangeBase,
)
}
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_core::DynamicCast<crate::QPropertyUpdatedChangeBase> for crate::QSceneChange {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QPropertyUpdatedChangeBase* dynamic_cast<Qt3DCore::QPropertyUpdatedChangeBase*>(Qt3DCore::QSceneChange* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<crate::QSceneChange>,
) -> ::cpp_core::Ptr<crate::QPropertyUpdatedChangeBase> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_dynamic_cast_Qt3DCore_QPropertyUpdatedChangeBase_ptr(
ptr.as_raw_ptr() as *mut crate::QSceneChange,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QDynamicPropertyUpdatedChange>
for crate::QPropertyUpdatedChangeBase
{
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QDynamicPropertyUpdatedChange* static_cast<Qt3DCore::QDynamicPropertyUpdatedChange*>(Qt3DCore::QPropertyUpdatedChangeBase* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<crate::QPropertyUpdatedChangeBase>,
) -> ::cpp_core::Ptr<crate::QDynamicPropertyUpdatedChange> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_Qt3DCore_QDynamicPropertyUpdatedChange_ptr(
ptr.as_raw_ptr() as *mut crate::QPropertyUpdatedChangeBase,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<crate::QPropertyUpdatedChangeBase>
for crate::QDynamicPropertyUpdatedChange
{
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QPropertyUpdatedChangeBase* static_cast<Qt3DCore::QPropertyUpdatedChangeBase*>(Qt3DCore::QDynamicPropertyUpdatedChange* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QDynamicPropertyUpdatedChange>,
) -> ::cpp_core::Ptr<crate::QPropertyUpdatedChangeBase> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_Qt3DCore_QPropertyUpdatedChangeBase_ptr1(
ptr.as_raw_ptr() as *mut crate::QDynamicPropertyUpdatedChange,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::std::ops::Deref for crate::QDynamicPropertyUpdatedChange {
type Target = crate::QPropertyUpdatedChangeBase;
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QPropertyUpdatedChangeBase* static_cast<Qt3DCore::QPropertyUpdatedChangeBase*>(Qt3DCore::QDynamicPropertyUpdatedChange* ptr)```</span>.
#[inline(always)]
fn deref(&self) -> &crate::QPropertyUpdatedChangeBase {
let ffi_result = {
unsafe {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_Qt3DCore_QPropertyUpdatedChangeBase_ptr1(self as *const crate::QDynamicPropertyUpdatedChange as *mut crate::QDynamicPropertyUpdatedChange)
}
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_core::DynamicCast<crate::QDynamicPropertyUpdatedChange>
for crate::QPropertyUpdatedChangeBase
{
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QDynamicPropertyUpdatedChange* dynamic_cast<Qt3DCore::QDynamicPropertyUpdatedChange*>(Qt3DCore::QPropertyUpdatedChangeBase* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<crate::QPropertyUpdatedChangeBase>,
) -> ::cpp_core::Ptr<crate::QDynamicPropertyUpdatedChange> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_dynamic_cast_Qt3DCore_QDynamicPropertyUpdatedChange_ptr(
ptr.as_raw_ptr() as *mut crate::QPropertyUpdatedChangeBase,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QDynamicPropertyUpdatedChange> for crate::QSceneChange {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QDynamicPropertyUpdatedChange* static_cast<Qt3DCore::QDynamicPropertyUpdatedChange*>(Qt3DCore::QSceneChange* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<crate::QSceneChange>,
) -> ::cpp_core::Ptr<crate::QDynamicPropertyUpdatedChange> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_Qt3DCore_QDynamicPropertyUpdatedChange_ptr1(
ptr.as_raw_ptr() as *mut crate::QSceneChange,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<crate::QSceneChange> for crate::QDynamicPropertyUpdatedChange {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QSceneChange* static_cast<Qt3DCore::QSceneChange*>(Qt3DCore::QDynamicPropertyUpdatedChange* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QDynamicPropertyUpdatedChange>,
) -> ::cpp_core::Ptr<crate::QSceneChange> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_Qt3DCore_QSceneChange_ptr4(
ptr.as_raw_ptr() as *mut crate::QDynamicPropertyUpdatedChange,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QDynamicPropertyUpdatedChange> for crate::QSceneChange {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QDynamicPropertyUpdatedChange* dynamic_cast<Qt3DCore::QDynamicPropertyUpdatedChange*>(Qt3DCore::QSceneChange* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<crate::QSceneChange>,
) -> ::cpp_core::Ptr<crate::QDynamicPropertyUpdatedChange> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_dynamic_cast_Qt3DCore_QDynamicPropertyUpdatedChange_ptr1(ptr.as_raw_ptr() as *mut crate::QSceneChange)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QEntity> for crate::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QEntity* static_cast<Qt3DCore::QEntity*>(Qt3DCore::QNode* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<crate::QNode>,
) -> ::cpp_core::Ptr<crate::QEntity> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_Qt3DCore_QEntity_ptr(
ptr.as_raw_ptr() as *mut crate::QNode
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<crate::QNode> for crate::QEntity {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DCore::QEntity* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(ptr: ::cpp_core::Ptr<crate::QEntity>) -> ::cpp_core::Ptr<crate::QNode> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_Qt3DCore_QNode_ptr2(
ptr.as_raw_ptr() as *mut crate::QEntity
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::std::ops::Deref for crate::QEntity {
type Target = crate::QNode;
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DCore::QEntity* ptr)```</span>.
#[inline(always)]
fn deref(&self) -> &crate::QNode {
let ffi_result = {
unsafe {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_Qt3DCore_QNode_ptr2(
self as *const crate::QEntity as *mut crate::QEntity,
)
}
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_core::DynamicCast<crate::QEntity> for crate::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QEntity* dynamic_cast<Qt3DCore::QEntity*>(Qt3DCore::QNode* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(ptr: ::cpp_core::Ptr<crate::QNode>) -> ::cpp_core::Ptr<crate::QEntity> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_dynamic_cast_Qt3DCore_QEntity_ptr(
ptr.as_raw_ptr() as *mut crate::QNode
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QEntity> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QEntity* static_cast<Qt3DCore::QEntity*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QEntity> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_Qt3DCore_QEntity_ptr1(
ptr.as_raw_ptr() as *mut ::qt_core::QObject
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_core::QObject> for crate::QEntity {
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(Qt3DCore::QEntity* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QEntity>,
) -> ::cpp_core::Ptr<::qt_core::QObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_QObject_ptr4(
ptr.as_raw_ptr() as *mut crate::QEntity
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QEntity> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QEntity* dynamic_cast<Qt3DCore::QEntity*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QEntity> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_dynamic_cast_Qt3DCore_QEntity_ptr1(
ptr.as_raw_ptr() as *mut ::qt_core::QObject
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QNodeDestroyedChange> for crate::QSceneChange {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNodeDestroyedChange* static_cast<Qt3DCore::QNodeDestroyedChange*>(Qt3DCore::QSceneChange* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<crate::QSceneChange>,
) -> ::cpp_core::Ptr<crate::QNodeDestroyedChange> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_Qt3DCore_QNodeDestroyedChange_ptr(
ptr.as_raw_ptr() as *mut crate::QSceneChange,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<crate::QSceneChange> for crate::QNodeDestroyedChange {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QSceneChange* static_cast<Qt3DCore::QSceneChange*>(Qt3DCore::QNodeDestroyedChange* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QNodeDestroyedChange>,
) -> ::cpp_core::Ptr<crate::QSceneChange> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_Qt3DCore_QSceneChange_ptr5(
ptr.as_raw_ptr() as *mut crate::QNodeDestroyedChange,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::std::ops::Deref for crate::QNodeDestroyedChange {
type Target = crate::QSceneChange;
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QSceneChange* static_cast<Qt3DCore::QSceneChange*>(Qt3DCore::QNodeDestroyedChange* ptr)```</span>.
#[inline(always)]
fn deref(&self) -> &crate::QSceneChange {
let ffi_result = {
unsafe {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_Qt3DCore_QSceneChange_ptr5(
self as *const crate::QNodeDestroyedChange as *mut crate::QNodeDestroyedChange,
)
}
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_core::DynamicCast<crate::QNodeDestroyedChange> for crate::QSceneChange {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNodeDestroyedChange* dynamic_cast<Qt3DCore::QNodeDestroyedChange*>(Qt3DCore::QSceneChange* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<crate::QSceneChange>,
) -> ::cpp_core::Ptr<crate::QNodeDestroyedChange> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_dynamic_cast_Qt3DCore_QNodeDestroyedChange_ptr(
ptr.as_raw_ptr() as *mut crate::QSceneChange,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QPropertyValueAddedChangeBase> for crate::QSceneChange {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QPropertyValueAddedChangeBase* static_cast<Qt3DCore::QPropertyValueAddedChangeBase*>(Qt3DCore::QSceneChange* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<crate::QSceneChange>,
) -> ::cpp_core::Ptr<crate::QPropertyValueAddedChangeBase> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_Qt3DCore_QPropertyValueAddedChangeBase_ptr(
ptr.as_raw_ptr() as *mut crate::QSceneChange,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<crate::QSceneChange> for crate::QPropertyValueAddedChangeBase {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QSceneChange* static_cast<Qt3DCore::QSceneChange*>(Qt3DCore::QPropertyValueAddedChangeBase* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QPropertyValueAddedChangeBase>,
) -> ::cpp_core::Ptr<crate::QSceneChange> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_Qt3DCore_QSceneChange_ptr6(
ptr.as_raw_ptr() as *mut crate::QPropertyValueAddedChangeBase,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::std::ops::Deref for crate::QPropertyValueAddedChangeBase {
type Target = crate::QSceneChange;
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QSceneChange* static_cast<Qt3DCore::QSceneChange*>(Qt3DCore::QPropertyValueAddedChangeBase* ptr)```</span>.
#[inline(always)]
fn deref(&self) -> &crate::QSceneChange {
let ffi_result = {
unsafe {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_Qt3DCore_QSceneChange_ptr6(
self as *const crate::QPropertyValueAddedChangeBase
as *mut crate::QPropertyValueAddedChangeBase,
)
}
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_core::DynamicCast<crate::QPropertyValueAddedChangeBase> for crate::QSceneChange {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QPropertyValueAddedChangeBase* dynamic_cast<Qt3DCore::QPropertyValueAddedChangeBase*>(Qt3DCore::QSceneChange* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<crate::QSceneChange>,
) -> ::cpp_core::Ptr<crate::QPropertyValueAddedChangeBase> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_dynamic_cast_Qt3DCore_QPropertyValueAddedChangeBase_ptr(
ptr.as_raw_ptr() as *mut crate::QSceneChange,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QStaticPropertyValueAddedChangeBase>
for crate::QPropertyValueAddedChangeBase
{
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QStaticPropertyValueAddedChangeBase* static_cast<Qt3DCore::QStaticPropertyValueAddedChangeBase*>(Qt3DCore::QPropertyValueAddedChangeBase* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<crate::QPropertyValueAddedChangeBase>,
) -> ::cpp_core::Ptr<crate::QStaticPropertyValueAddedChangeBase> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_Qt3DCore_QStaticPropertyValueAddedChangeBase_ptr(ptr.as_raw_ptr() as *mut crate::QPropertyValueAddedChangeBase)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<crate::QPropertyValueAddedChangeBase>
for crate::QStaticPropertyValueAddedChangeBase
{
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QPropertyValueAddedChangeBase* static_cast<Qt3DCore::QPropertyValueAddedChangeBase*>(Qt3DCore::QStaticPropertyValueAddedChangeBase* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QStaticPropertyValueAddedChangeBase>,
) -> ::cpp_core::Ptr<crate::QPropertyValueAddedChangeBase> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_Qt3DCore_QPropertyValueAddedChangeBase_ptr1(
ptr.as_raw_ptr() as *mut crate::QStaticPropertyValueAddedChangeBase,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::std::ops::Deref for crate::QStaticPropertyValueAddedChangeBase {
type Target = crate::QPropertyValueAddedChangeBase;
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QPropertyValueAddedChangeBase* static_cast<Qt3DCore::QPropertyValueAddedChangeBase*>(Qt3DCore::QStaticPropertyValueAddedChangeBase* ptr)```</span>.
#[inline(always)]
fn deref(&self) -> &crate::QPropertyValueAddedChangeBase {
let ffi_result = {
unsafe {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_Qt3DCore_QPropertyValueAddedChangeBase_ptr1(self as *const crate::QStaticPropertyValueAddedChangeBase as *mut crate::QStaticPropertyValueAddedChangeBase)
}
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_core::DynamicCast<crate::QStaticPropertyValueAddedChangeBase>
for crate::QPropertyValueAddedChangeBase
{
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QStaticPropertyValueAddedChangeBase* dynamic_cast<Qt3DCore::QStaticPropertyValueAddedChangeBase*>(Qt3DCore::QPropertyValueAddedChangeBase* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<crate::QPropertyValueAddedChangeBase>,
) -> ::cpp_core::Ptr<crate::QStaticPropertyValueAddedChangeBase> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_dynamic_cast_Qt3DCore_QStaticPropertyValueAddedChangeBase_ptr(ptr.as_raw_ptr() as *mut crate::QPropertyValueAddedChangeBase)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QStaticPropertyValueAddedChangeBase>
for crate::QSceneChange
{
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QStaticPropertyValueAddedChangeBase* static_cast<Qt3DCore::QStaticPropertyValueAddedChangeBase*>(Qt3DCore::QSceneChange* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<crate::QSceneChange>,
) -> ::cpp_core::Ptr<crate::QStaticPropertyValueAddedChangeBase> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_Qt3DCore_QStaticPropertyValueAddedChangeBase_ptr1(ptr.as_raw_ptr() as *mut crate::QSceneChange)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<crate::QSceneChange> for crate::QStaticPropertyValueAddedChangeBase {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QSceneChange* static_cast<Qt3DCore::QSceneChange*>(Qt3DCore::QStaticPropertyValueAddedChangeBase* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QStaticPropertyValueAddedChangeBase>,
) -> ::cpp_core::Ptr<crate::QSceneChange> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_Qt3DCore_QSceneChange_ptr7(
ptr.as_raw_ptr() as *mut crate::QStaticPropertyValueAddedChangeBase,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QStaticPropertyValueAddedChangeBase> for crate::QSceneChange {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QStaticPropertyValueAddedChangeBase* dynamic_cast<Qt3DCore::QStaticPropertyValueAddedChangeBase*>(Qt3DCore::QSceneChange* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<crate::QSceneChange>,
) -> ::cpp_core::Ptr<crate::QStaticPropertyValueAddedChangeBase> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_dynamic_cast_Qt3DCore_QStaticPropertyValueAddedChangeBase_ptr1(ptr.as_raw_ptr() as *mut crate::QSceneChange)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QPropertyNodeAddedChange>
for crate::QStaticPropertyValueAddedChangeBase
{
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QPropertyNodeAddedChange* static_cast<Qt3DCore::QPropertyNodeAddedChange*>(Qt3DCore::QStaticPropertyValueAddedChangeBase* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<crate::QStaticPropertyValueAddedChangeBase>,
) -> ::cpp_core::Ptr<crate::QPropertyNodeAddedChange> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_Qt3DCore_QPropertyNodeAddedChange_ptr(
ptr.as_raw_ptr() as *mut crate::QStaticPropertyValueAddedChangeBase,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<crate::QStaticPropertyValueAddedChangeBase>
for crate::QPropertyNodeAddedChange
{
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QStaticPropertyValueAddedChangeBase* static_cast<Qt3DCore::QStaticPropertyValueAddedChangeBase*>(Qt3DCore::QPropertyNodeAddedChange* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QPropertyNodeAddedChange>,
) -> ::cpp_core::Ptr<crate::QStaticPropertyValueAddedChangeBase> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_Qt3DCore_QStaticPropertyValueAddedChangeBase_ptr2(ptr.as_raw_ptr() as *mut crate::QPropertyNodeAddedChange)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::std::ops::Deref for crate::QPropertyNodeAddedChange {
type Target = crate::QStaticPropertyValueAddedChangeBase;
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QStaticPropertyValueAddedChangeBase* static_cast<Qt3DCore::QStaticPropertyValueAddedChangeBase*>(Qt3DCore::QPropertyNodeAddedChange* ptr)```</span>.
#[inline(always)]
fn deref(&self) -> &crate::QStaticPropertyValueAddedChangeBase {
let ffi_result = {
unsafe {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_Qt3DCore_QStaticPropertyValueAddedChangeBase_ptr2(self as *const crate::QPropertyNodeAddedChange as *mut crate::QPropertyNodeAddedChange)
}
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_core::DynamicCast<crate::QPropertyNodeAddedChange>
for crate::QStaticPropertyValueAddedChangeBase
{
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QPropertyNodeAddedChange* dynamic_cast<Qt3DCore::QPropertyNodeAddedChange*>(Qt3DCore::QStaticPropertyValueAddedChangeBase* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<crate::QStaticPropertyValueAddedChangeBase>,
) -> ::cpp_core::Ptr<crate::QPropertyNodeAddedChange> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_dynamic_cast_Qt3DCore_QPropertyNodeAddedChange_ptr(
ptr.as_raw_ptr() as *mut crate::QStaticPropertyValueAddedChangeBase,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QPropertyNodeAddedChange>
for crate::QPropertyValueAddedChangeBase
{
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QPropertyNodeAddedChange* static_cast<Qt3DCore::QPropertyNodeAddedChange*>(Qt3DCore::QPropertyValueAddedChangeBase* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<crate::QPropertyValueAddedChangeBase>,
) -> ::cpp_core::Ptr<crate::QPropertyNodeAddedChange> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_Qt3DCore_QPropertyNodeAddedChange_ptr1(
ptr.as_raw_ptr() as *mut crate::QPropertyValueAddedChangeBase,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<crate::QPropertyValueAddedChangeBase>
for crate::QPropertyNodeAddedChange
{
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QPropertyValueAddedChangeBase* static_cast<Qt3DCore::QPropertyValueAddedChangeBase*>(Qt3DCore::QPropertyNodeAddedChange* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QPropertyNodeAddedChange>,
) -> ::cpp_core::Ptr<crate::QPropertyValueAddedChangeBase> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_Qt3DCore_QPropertyValueAddedChangeBase_ptr2(
ptr.as_raw_ptr() as *mut crate::QPropertyNodeAddedChange,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QPropertyNodeAddedChange>
for crate::QPropertyValueAddedChangeBase
{
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QPropertyNodeAddedChange* dynamic_cast<Qt3DCore::QPropertyNodeAddedChange*>(Qt3DCore::QPropertyValueAddedChangeBase* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<crate::QPropertyValueAddedChangeBase>,
) -> ::cpp_core::Ptr<crate::QPropertyNodeAddedChange> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_dynamic_cast_Qt3DCore_QPropertyNodeAddedChange_ptr1(
ptr.as_raw_ptr() as *mut crate::QPropertyValueAddedChangeBase,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QPropertyNodeAddedChange> for crate::QSceneChange {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QPropertyNodeAddedChange* static_cast<Qt3DCore::QPropertyNodeAddedChange*>(Qt3DCore::QSceneChange* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<crate::QSceneChange>,
) -> ::cpp_core::Ptr<crate::QPropertyNodeAddedChange> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_Qt3DCore_QPropertyNodeAddedChange_ptr2(
ptr.as_raw_ptr() as *mut crate::QSceneChange,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<crate::QSceneChange> for crate::QPropertyNodeAddedChange {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QSceneChange* static_cast<Qt3DCore::QSceneChange*>(Qt3DCore::QPropertyNodeAddedChange* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QPropertyNodeAddedChange>,
) -> ::cpp_core::Ptr<crate::QSceneChange> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_Qt3DCore_QSceneChange_ptr8(
ptr.as_raw_ptr() as *mut crate::QPropertyNodeAddedChange,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QPropertyNodeAddedChange> for crate::QSceneChange {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QPropertyNodeAddedChange* dynamic_cast<Qt3DCore::QPropertyNodeAddedChange*>(Qt3DCore::QSceneChange* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<crate::QSceneChange>,
) -> ::cpp_core::Ptr<crate::QPropertyNodeAddedChange> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_dynamic_cast_Qt3DCore_QPropertyNodeAddedChange_ptr2(
ptr.as_raw_ptr() as *mut crate::QSceneChange,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QPropertyValueRemovedChangeBase> for crate::QSceneChange {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QPropertyValueRemovedChangeBase* static_cast<Qt3DCore::QPropertyValueRemovedChangeBase*>(Qt3DCore::QSceneChange* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<crate::QSceneChange>,
) -> ::cpp_core::Ptr<crate::QPropertyValueRemovedChangeBase> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_Qt3DCore_QPropertyValueRemovedChangeBase_ptr(ptr.as_raw_ptr() as *mut crate::QSceneChange)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<crate::QSceneChange> for crate::QPropertyValueRemovedChangeBase {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QSceneChange* static_cast<Qt3DCore::QSceneChange*>(Qt3DCore::QPropertyValueRemovedChangeBase* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QPropertyValueRemovedChangeBase>,
) -> ::cpp_core::Ptr<crate::QSceneChange> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_Qt3DCore_QSceneChange_ptr9(
ptr.as_raw_ptr() as *mut crate::QPropertyValueRemovedChangeBase,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::std::ops::Deref for crate::QPropertyValueRemovedChangeBase {
type Target = crate::QSceneChange;
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QSceneChange* static_cast<Qt3DCore::QSceneChange*>(Qt3DCore::QPropertyValueRemovedChangeBase* ptr)```</span>.
#[inline(always)]
fn deref(&self) -> &crate::QSceneChange {
let ffi_result = {
unsafe {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_Qt3DCore_QSceneChange_ptr9(
self as *const crate::QPropertyValueRemovedChangeBase
as *mut crate::QPropertyValueRemovedChangeBase,
)
}
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_core::DynamicCast<crate::QPropertyValueRemovedChangeBase> for crate::QSceneChange {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QPropertyValueRemovedChangeBase* dynamic_cast<Qt3DCore::QPropertyValueRemovedChangeBase*>(Qt3DCore::QSceneChange* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<crate::QSceneChange>,
) -> ::cpp_core::Ptr<crate::QPropertyValueRemovedChangeBase> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_dynamic_cast_Qt3DCore_QPropertyValueRemovedChangeBase_ptr(ptr.as_raw_ptr() as *mut crate::QSceneChange)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QStaticPropertyValueRemovedChangeBase>
for crate::QPropertyValueRemovedChangeBase
{
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QStaticPropertyValueRemovedChangeBase* static_cast<Qt3DCore::QStaticPropertyValueRemovedChangeBase*>(Qt3DCore::QPropertyValueRemovedChangeBase* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<crate::QPropertyValueRemovedChangeBase>,
) -> ::cpp_core::Ptr<crate::QStaticPropertyValueRemovedChangeBase> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_Qt3DCore_QStaticPropertyValueRemovedChangeBase_ptr(ptr.as_raw_ptr() as *mut crate::QPropertyValueRemovedChangeBase)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<crate::QPropertyValueRemovedChangeBase>
for crate::QStaticPropertyValueRemovedChangeBase
{
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QPropertyValueRemovedChangeBase* static_cast<Qt3DCore::QPropertyValueRemovedChangeBase*>(Qt3DCore::QStaticPropertyValueRemovedChangeBase* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QStaticPropertyValueRemovedChangeBase>,
) -> ::cpp_core::Ptr<crate::QPropertyValueRemovedChangeBase> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_Qt3DCore_QPropertyValueRemovedChangeBase_ptr1(ptr.as_raw_ptr() as *mut crate::QStaticPropertyValueRemovedChangeBase)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::std::ops::Deref for crate::QStaticPropertyValueRemovedChangeBase {
type Target = crate::QPropertyValueRemovedChangeBase;
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QPropertyValueRemovedChangeBase* static_cast<Qt3DCore::QPropertyValueRemovedChangeBase*>(Qt3DCore::QStaticPropertyValueRemovedChangeBase* ptr)```</span>.
#[inline(always)]
fn deref(&self) -> &crate::QPropertyValueRemovedChangeBase {
let ffi_result = {
unsafe {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_Qt3DCore_QPropertyValueRemovedChangeBase_ptr1(self as *const crate::QStaticPropertyValueRemovedChangeBase as *mut crate::QStaticPropertyValueRemovedChangeBase)
}
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_core::DynamicCast<crate::QStaticPropertyValueRemovedChangeBase>
for crate::QPropertyValueRemovedChangeBase
{
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QStaticPropertyValueRemovedChangeBase* dynamic_cast<Qt3DCore::QStaticPropertyValueRemovedChangeBase*>(Qt3DCore::QPropertyValueRemovedChangeBase* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<crate::QPropertyValueRemovedChangeBase>,
) -> ::cpp_core::Ptr<crate::QStaticPropertyValueRemovedChangeBase> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_dynamic_cast_Qt3DCore_QStaticPropertyValueRemovedChangeBase_ptr(ptr.as_raw_ptr() as *mut crate::QPropertyValueRemovedChangeBase)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QStaticPropertyValueRemovedChangeBase>
for crate::QSceneChange
{
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QStaticPropertyValueRemovedChangeBase* static_cast<Qt3DCore::QStaticPropertyValueRemovedChangeBase*>(Qt3DCore::QSceneChange* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<crate::QSceneChange>,
) -> ::cpp_core::Ptr<crate::QStaticPropertyValueRemovedChangeBase> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_Qt3DCore_QStaticPropertyValueRemovedChangeBase_ptr1(ptr.as_raw_ptr() as *mut crate::QSceneChange)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<crate::QSceneChange>
for crate::QStaticPropertyValueRemovedChangeBase
{
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QSceneChange* static_cast<Qt3DCore::QSceneChange*>(Qt3DCore::QStaticPropertyValueRemovedChangeBase* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QStaticPropertyValueRemovedChangeBase>,
) -> ::cpp_core::Ptr<crate::QSceneChange> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_Qt3DCore_QSceneChange_ptr10(
ptr.as_raw_ptr() as *mut crate::QStaticPropertyValueRemovedChangeBase,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QStaticPropertyValueRemovedChangeBase> for crate::QSceneChange {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QStaticPropertyValueRemovedChangeBase* dynamic_cast<Qt3DCore::QStaticPropertyValueRemovedChangeBase*>(Qt3DCore::QSceneChange* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<crate::QSceneChange>,
) -> ::cpp_core::Ptr<crate::QStaticPropertyValueRemovedChangeBase> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_dynamic_cast_Qt3DCore_QStaticPropertyValueRemovedChangeBase_ptr1(ptr.as_raw_ptr() as *mut crate::QSceneChange)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QPropertyNodeRemovedChange>
for crate::QStaticPropertyValueRemovedChangeBase
{
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QPropertyNodeRemovedChange* static_cast<Qt3DCore::QPropertyNodeRemovedChange*>(Qt3DCore::QStaticPropertyValueRemovedChangeBase* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<crate::QStaticPropertyValueRemovedChangeBase>,
) -> ::cpp_core::Ptr<crate::QPropertyNodeRemovedChange> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_Qt3DCore_QPropertyNodeRemovedChange_ptr(
ptr.as_raw_ptr() as *mut crate::QStaticPropertyValueRemovedChangeBase,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<crate::QStaticPropertyValueRemovedChangeBase>
for crate::QPropertyNodeRemovedChange
{
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QStaticPropertyValueRemovedChangeBase* static_cast<Qt3DCore::QStaticPropertyValueRemovedChangeBase*>(Qt3DCore::QPropertyNodeRemovedChange* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QPropertyNodeRemovedChange>,
) -> ::cpp_core::Ptr<crate::QStaticPropertyValueRemovedChangeBase> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_Qt3DCore_QStaticPropertyValueRemovedChangeBase_ptr2(ptr.as_raw_ptr() as *mut crate::QPropertyNodeRemovedChange)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::std::ops::Deref for crate::QPropertyNodeRemovedChange {
type Target = crate::QStaticPropertyValueRemovedChangeBase;
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QStaticPropertyValueRemovedChangeBase* static_cast<Qt3DCore::QStaticPropertyValueRemovedChangeBase*>(Qt3DCore::QPropertyNodeRemovedChange* ptr)```</span>.
#[inline(always)]
fn deref(&self) -> &crate::QStaticPropertyValueRemovedChangeBase {
let ffi_result = {
unsafe {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_Qt3DCore_QStaticPropertyValueRemovedChangeBase_ptr2(self as *const crate::QPropertyNodeRemovedChange as *mut crate::QPropertyNodeRemovedChange)
}
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_core::DynamicCast<crate::QPropertyNodeRemovedChange>
for crate::QStaticPropertyValueRemovedChangeBase
{
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QPropertyNodeRemovedChange* dynamic_cast<Qt3DCore::QPropertyNodeRemovedChange*>(Qt3DCore::QStaticPropertyValueRemovedChangeBase* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<crate::QStaticPropertyValueRemovedChangeBase>,
) -> ::cpp_core::Ptr<crate::QPropertyNodeRemovedChange> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_dynamic_cast_Qt3DCore_QPropertyNodeRemovedChange_ptr(
ptr.as_raw_ptr() as *mut crate::QStaticPropertyValueRemovedChangeBase,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QPropertyNodeRemovedChange>
for crate::QPropertyValueRemovedChangeBase
{
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QPropertyNodeRemovedChange* static_cast<Qt3DCore::QPropertyNodeRemovedChange*>(Qt3DCore::QPropertyValueRemovedChangeBase* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<crate::QPropertyValueRemovedChangeBase>,
) -> ::cpp_core::Ptr<crate::QPropertyNodeRemovedChange> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_Qt3DCore_QPropertyNodeRemovedChange_ptr1(
ptr.as_raw_ptr() as *mut crate::QPropertyValueRemovedChangeBase,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<crate::QPropertyValueRemovedChangeBase>
for crate::QPropertyNodeRemovedChange
{
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QPropertyValueRemovedChangeBase* static_cast<Qt3DCore::QPropertyValueRemovedChangeBase*>(Qt3DCore::QPropertyNodeRemovedChange* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QPropertyNodeRemovedChange>,
) -> ::cpp_core::Ptr<crate::QPropertyValueRemovedChangeBase> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_Qt3DCore_QPropertyValueRemovedChangeBase_ptr2(ptr.as_raw_ptr() as *mut crate::QPropertyNodeRemovedChange)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QPropertyNodeRemovedChange>
for crate::QPropertyValueRemovedChangeBase
{
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QPropertyNodeRemovedChange* dynamic_cast<Qt3DCore::QPropertyNodeRemovedChange*>(Qt3DCore::QPropertyValueRemovedChangeBase* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<crate::QPropertyValueRemovedChangeBase>,
) -> ::cpp_core::Ptr<crate::QPropertyNodeRemovedChange> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_dynamic_cast_Qt3DCore_QPropertyNodeRemovedChange_ptr1(
ptr.as_raw_ptr() as *mut crate::QPropertyValueRemovedChangeBase,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QPropertyNodeRemovedChange> for crate::QSceneChange {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QPropertyNodeRemovedChange* static_cast<Qt3DCore::QPropertyNodeRemovedChange*>(Qt3DCore::QSceneChange* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<crate::QSceneChange>,
) -> ::cpp_core::Ptr<crate::QPropertyNodeRemovedChange> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_Qt3DCore_QPropertyNodeRemovedChange_ptr2(
ptr.as_raw_ptr() as *mut crate::QSceneChange,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<crate::QSceneChange> for crate::QPropertyNodeRemovedChange {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QSceneChange* static_cast<Qt3DCore::QSceneChange*>(Qt3DCore::QPropertyNodeRemovedChange* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QPropertyNodeRemovedChange>,
) -> ::cpp_core::Ptr<crate::QSceneChange> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_Qt3DCore_QSceneChange_ptr11(
ptr.as_raw_ptr() as *mut crate::QPropertyNodeRemovedChange,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QPropertyNodeRemovedChange> for crate::QSceneChange {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QPropertyNodeRemovedChange* dynamic_cast<Qt3DCore::QPropertyNodeRemovedChange*>(Qt3DCore::QSceneChange* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<crate::QSceneChange>,
) -> ::cpp_core::Ptr<crate::QPropertyNodeRemovedChange> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_dynamic_cast_Qt3DCore_QPropertyNodeRemovedChange_ptr2(
ptr.as_raw_ptr() as *mut crate::QSceneChange,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QStaticPropertyUpdatedChangeBase>
for crate::QPropertyUpdatedChangeBase
{
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QStaticPropertyUpdatedChangeBase* static_cast<Qt3DCore::QStaticPropertyUpdatedChangeBase*>(Qt3DCore::QPropertyUpdatedChangeBase* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<crate::QPropertyUpdatedChangeBase>,
) -> ::cpp_core::Ptr<crate::QStaticPropertyUpdatedChangeBase> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_Qt3DCore_QStaticPropertyUpdatedChangeBase_ptr(ptr.as_raw_ptr() as *mut crate::QPropertyUpdatedChangeBase)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<crate::QPropertyUpdatedChangeBase>
for crate::QStaticPropertyUpdatedChangeBase
{
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QPropertyUpdatedChangeBase* static_cast<Qt3DCore::QPropertyUpdatedChangeBase*>(Qt3DCore::QStaticPropertyUpdatedChangeBase* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QStaticPropertyUpdatedChangeBase>,
) -> ::cpp_core::Ptr<crate::QPropertyUpdatedChangeBase> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_Qt3DCore_QPropertyUpdatedChangeBase_ptr2(
ptr.as_raw_ptr() as *mut crate::QStaticPropertyUpdatedChangeBase,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::std::ops::Deref for crate::QStaticPropertyUpdatedChangeBase {
type Target = crate::QPropertyUpdatedChangeBase;
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QPropertyUpdatedChangeBase* static_cast<Qt3DCore::QPropertyUpdatedChangeBase*>(Qt3DCore::QStaticPropertyUpdatedChangeBase* ptr)```</span>.
#[inline(always)]
fn deref(&self) -> &crate::QPropertyUpdatedChangeBase {
let ffi_result = {
unsafe {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_Qt3DCore_QPropertyUpdatedChangeBase_ptr2(self as *const crate::QStaticPropertyUpdatedChangeBase as *mut crate::QStaticPropertyUpdatedChangeBase)
}
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_core::DynamicCast<crate::QStaticPropertyUpdatedChangeBase>
for crate::QPropertyUpdatedChangeBase
{
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QStaticPropertyUpdatedChangeBase* dynamic_cast<Qt3DCore::QStaticPropertyUpdatedChangeBase*>(Qt3DCore::QPropertyUpdatedChangeBase* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<crate::QPropertyUpdatedChangeBase>,
) -> ::cpp_core::Ptr<crate::QStaticPropertyUpdatedChangeBase> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_dynamic_cast_Qt3DCore_QStaticPropertyUpdatedChangeBase_ptr(ptr.as_raw_ptr() as *mut crate::QPropertyUpdatedChangeBase)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QStaticPropertyUpdatedChangeBase> for crate::QSceneChange {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QStaticPropertyUpdatedChangeBase* static_cast<Qt3DCore::QStaticPropertyUpdatedChangeBase*>(Qt3DCore::QSceneChange* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<crate::QSceneChange>,
) -> ::cpp_core::Ptr<crate::QStaticPropertyUpdatedChangeBase> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_Qt3DCore_QStaticPropertyUpdatedChangeBase_ptr1(ptr.as_raw_ptr() as *mut crate::QSceneChange)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<crate::QSceneChange> for crate::QStaticPropertyUpdatedChangeBase {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QSceneChange* static_cast<Qt3DCore::QSceneChange*>(Qt3DCore::QStaticPropertyUpdatedChangeBase* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QStaticPropertyUpdatedChangeBase>,
) -> ::cpp_core::Ptr<crate::QSceneChange> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_Qt3DCore_QSceneChange_ptr12(
ptr.as_raw_ptr() as *mut crate::QStaticPropertyUpdatedChangeBase,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QStaticPropertyUpdatedChangeBase> for crate::QSceneChange {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QStaticPropertyUpdatedChangeBase* dynamic_cast<Qt3DCore::QStaticPropertyUpdatedChangeBase*>(Qt3DCore::QSceneChange* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<crate::QSceneChange>,
) -> ::cpp_core::Ptr<crate::QStaticPropertyUpdatedChangeBase> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_dynamic_cast_Qt3DCore_QStaticPropertyUpdatedChangeBase_ptr1(ptr.as_raw_ptr() as *mut crate::QSceneChange)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QPropertyUpdatedChange>
for crate::QStaticPropertyUpdatedChangeBase
{
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QPropertyUpdatedChange* static_cast<Qt3DCore::QPropertyUpdatedChange*>(Qt3DCore::QStaticPropertyUpdatedChangeBase* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<crate::QStaticPropertyUpdatedChangeBase>,
) -> ::cpp_core::Ptr<crate::QPropertyUpdatedChange> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_Qt3DCore_QPropertyUpdatedChange_ptr(
ptr.as_raw_ptr() as *mut crate::QStaticPropertyUpdatedChangeBase,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<crate::QStaticPropertyUpdatedChangeBase>
for crate::QPropertyUpdatedChange
{
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QStaticPropertyUpdatedChangeBase* static_cast<Qt3DCore::QStaticPropertyUpdatedChangeBase*>(Qt3DCore::QPropertyUpdatedChange* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QPropertyUpdatedChange>,
) -> ::cpp_core::Ptr<crate::QStaticPropertyUpdatedChangeBase> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_Qt3DCore_QStaticPropertyUpdatedChangeBase_ptr2(ptr.as_raw_ptr() as *mut crate::QPropertyUpdatedChange)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::std::ops::Deref for crate::QPropertyUpdatedChange {
type Target = crate::QStaticPropertyUpdatedChangeBase;
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QStaticPropertyUpdatedChangeBase* static_cast<Qt3DCore::QStaticPropertyUpdatedChangeBase*>(Qt3DCore::QPropertyUpdatedChange* ptr)```</span>.
#[inline(always)]
fn deref(&self) -> &crate::QStaticPropertyUpdatedChangeBase {
let ffi_result = {
unsafe {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_Qt3DCore_QStaticPropertyUpdatedChangeBase_ptr2(self as *const crate::QPropertyUpdatedChange as *mut crate::QPropertyUpdatedChange)
}
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_core::DynamicCast<crate::QPropertyUpdatedChange>
for crate::QStaticPropertyUpdatedChangeBase
{
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QPropertyUpdatedChange* dynamic_cast<Qt3DCore::QPropertyUpdatedChange*>(Qt3DCore::QStaticPropertyUpdatedChangeBase* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<crate::QStaticPropertyUpdatedChangeBase>,
) -> ::cpp_core::Ptr<crate::QPropertyUpdatedChange> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_dynamic_cast_Qt3DCore_QPropertyUpdatedChange_ptr(
ptr.as_raw_ptr() as *mut crate::QStaticPropertyUpdatedChangeBase,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QPropertyUpdatedChange>
for crate::QPropertyUpdatedChangeBase
{
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QPropertyUpdatedChange* static_cast<Qt3DCore::QPropertyUpdatedChange*>(Qt3DCore::QPropertyUpdatedChangeBase* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<crate::QPropertyUpdatedChangeBase>,
) -> ::cpp_core::Ptr<crate::QPropertyUpdatedChange> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_Qt3DCore_QPropertyUpdatedChange_ptr1(
ptr.as_raw_ptr() as *mut crate::QPropertyUpdatedChangeBase,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<crate::QPropertyUpdatedChangeBase> for crate::QPropertyUpdatedChange {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QPropertyUpdatedChangeBase* static_cast<Qt3DCore::QPropertyUpdatedChangeBase*>(Qt3DCore::QPropertyUpdatedChange* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QPropertyUpdatedChange>,
) -> ::cpp_core::Ptr<crate::QPropertyUpdatedChangeBase> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_Qt3DCore_QPropertyUpdatedChangeBase_ptr3(
ptr.as_raw_ptr() as *mut crate::QPropertyUpdatedChange,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QPropertyUpdatedChange> for crate::QPropertyUpdatedChangeBase {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QPropertyUpdatedChange* dynamic_cast<Qt3DCore::QPropertyUpdatedChange*>(Qt3DCore::QPropertyUpdatedChangeBase* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<crate::QPropertyUpdatedChangeBase>,
) -> ::cpp_core::Ptr<crate::QPropertyUpdatedChange> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_dynamic_cast_Qt3DCore_QPropertyUpdatedChange_ptr1(
ptr.as_raw_ptr() as *mut crate::QPropertyUpdatedChangeBase,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QPropertyUpdatedChange> for crate::QSceneChange {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QPropertyUpdatedChange* static_cast<Qt3DCore::QPropertyUpdatedChange*>(Qt3DCore::QSceneChange* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<crate::QSceneChange>,
) -> ::cpp_core::Ptr<crate::QPropertyUpdatedChange> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_Qt3DCore_QPropertyUpdatedChange_ptr2(
ptr.as_raw_ptr() as *mut crate::QSceneChange,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<crate::QSceneChange> for crate::QPropertyUpdatedChange {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QSceneChange* static_cast<Qt3DCore::QSceneChange*>(Qt3DCore::QPropertyUpdatedChange* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QPropertyUpdatedChange>,
) -> ::cpp_core::Ptr<crate::QSceneChange> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_Qt3DCore_QSceneChange_ptr13(
ptr.as_raw_ptr() as *mut crate::QPropertyUpdatedChange,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QPropertyUpdatedChange> for crate::QSceneChange {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QPropertyUpdatedChange* dynamic_cast<Qt3DCore::QPropertyUpdatedChange*>(Qt3DCore::QSceneChange* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<crate::QSceneChange>,
) -> ::cpp_core::Ptr<crate::QPropertyUpdatedChange> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_dynamic_cast_Qt3DCore_QPropertyUpdatedChange_ptr2(
ptr.as_raw_ptr() as *mut crate::QSceneChange,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QPropertyValueAddedChange>
for crate::QStaticPropertyValueAddedChangeBase
{
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QPropertyValueAddedChange* static_cast<Qt3DCore::QPropertyValueAddedChange*>(Qt3DCore::QStaticPropertyValueAddedChangeBase* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<crate::QStaticPropertyValueAddedChangeBase>,
) -> ::cpp_core::Ptr<crate::QPropertyValueAddedChange> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_Qt3DCore_QPropertyValueAddedChange_ptr(
ptr.as_raw_ptr() as *mut crate::QStaticPropertyValueAddedChangeBase,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<crate::QStaticPropertyValueAddedChangeBase>
for crate::QPropertyValueAddedChange
{
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QStaticPropertyValueAddedChangeBase* static_cast<Qt3DCore::QStaticPropertyValueAddedChangeBase*>(Qt3DCore::QPropertyValueAddedChange* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QPropertyValueAddedChange>,
) -> ::cpp_core::Ptr<crate::QStaticPropertyValueAddedChangeBase> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_Qt3DCore_QStaticPropertyValueAddedChangeBase_ptr3(ptr.as_raw_ptr() as *mut crate::QPropertyValueAddedChange)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::std::ops::Deref for crate::QPropertyValueAddedChange {
type Target = crate::QStaticPropertyValueAddedChangeBase;
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QStaticPropertyValueAddedChangeBase* static_cast<Qt3DCore::QStaticPropertyValueAddedChangeBase*>(Qt3DCore::QPropertyValueAddedChange* ptr)```</span>.
#[inline(always)]
fn deref(&self) -> &crate::QStaticPropertyValueAddedChangeBase {
let ffi_result = {
unsafe {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_Qt3DCore_QStaticPropertyValueAddedChangeBase_ptr3(self as *const crate::QPropertyValueAddedChange as *mut crate::QPropertyValueAddedChange)
}
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_core::DynamicCast<crate::QPropertyValueAddedChange>
for crate::QStaticPropertyValueAddedChangeBase
{
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QPropertyValueAddedChange* dynamic_cast<Qt3DCore::QPropertyValueAddedChange*>(Qt3DCore::QStaticPropertyValueAddedChangeBase* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<crate::QStaticPropertyValueAddedChangeBase>,
) -> ::cpp_core::Ptr<crate::QPropertyValueAddedChange> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_dynamic_cast_Qt3DCore_QPropertyValueAddedChange_ptr(
ptr.as_raw_ptr() as *mut crate::QStaticPropertyValueAddedChangeBase,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QPropertyValueAddedChange>
for crate::QPropertyValueAddedChangeBase
{
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QPropertyValueAddedChange* static_cast<Qt3DCore::QPropertyValueAddedChange*>(Qt3DCore::QPropertyValueAddedChangeBase* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<crate::QPropertyValueAddedChangeBase>,
) -> ::cpp_core::Ptr<crate::QPropertyValueAddedChange> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_Qt3DCore_QPropertyValueAddedChange_ptr1(
ptr.as_raw_ptr() as *mut crate::QPropertyValueAddedChangeBase,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<crate::QPropertyValueAddedChangeBase>
for crate::QPropertyValueAddedChange
{
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QPropertyValueAddedChangeBase* static_cast<Qt3DCore::QPropertyValueAddedChangeBase*>(Qt3DCore::QPropertyValueAddedChange* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QPropertyValueAddedChange>,
) -> ::cpp_core::Ptr<crate::QPropertyValueAddedChangeBase> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_Qt3DCore_QPropertyValueAddedChangeBase_ptr3(
ptr.as_raw_ptr() as *mut crate::QPropertyValueAddedChange,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QPropertyValueAddedChange>
for crate::QPropertyValueAddedChangeBase
{
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QPropertyValueAddedChange* dynamic_cast<Qt3DCore::QPropertyValueAddedChange*>(Qt3DCore::QPropertyValueAddedChangeBase* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<crate::QPropertyValueAddedChangeBase>,
) -> ::cpp_core::Ptr<crate::QPropertyValueAddedChange> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_dynamic_cast_Qt3DCore_QPropertyValueAddedChange_ptr1(
ptr.as_raw_ptr() as *mut crate::QPropertyValueAddedChangeBase,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QPropertyValueAddedChange> for crate::QSceneChange {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QPropertyValueAddedChange* static_cast<Qt3DCore::QPropertyValueAddedChange*>(Qt3DCore::QSceneChange* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<crate::QSceneChange>,
) -> ::cpp_core::Ptr<crate::QPropertyValueAddedChange> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_Qt3DCore_QPropertyValueAddedChange_ptr2(
ptr.as_raw_ptr() as *mut crate::QSceneChange,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<crate::QSceneChange> for crate::QPropertyValueAddedChange {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QSceneChange* static_cast<Qt3DCore::QSceneChange*>(Qt3DCore::QPropertyValueAddedChange* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QPropertyValueAddedChange>,
) -> ::cpp_core::Ptr<crate::QSceneChange> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_Qt3DCore_QSceneChange_ptr14(
ptr.as_raw_ptr() as *mut crate::QPropertyValueAddedChange,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QPropertyValueAddedChange> for crate::QSceneChange {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QPropertyValueAddedChange* dynamic_cast<Qt3DCore::QPropertyValueAddedChange*>(Qt3DCore::QSceneChange* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<crate::QSceneChange>,
) -> ::cpp_core::Ptr<crate::QPropertyValueAddedChange> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_dynamic_cast_Qt3DCore_QPropertyValueAddedChange_ptr2(
ptr.as_raw_ptr() as *mut crate::QSceneChange,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QPropertyValueRemovedChange>
for crate::QStaticPropertyValueRemovedChangeBase
{
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QPropertyValueRemovedChange* static_cast<Qt3DCore::QPropertyValueRemovedChange*>(Qt3DCore::QStaticPropertyValueRemovedChangeBase* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<crate::QStaticPropertyValueRemovedChangeBase>,
) -> ::cpp_core::Ptr<crate::QPropertyValueRemovedChange> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_Qt3DCore_QPropertyValueRemovedChange_ptr(
ptr.as_raw_ptr() as *mut crate::QStaticPropertyValueRemovedChangeBase,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<crate::QStaticPropertyValueRemovedChangeBase>
for crate::QPropertyValueRemovedChange
{
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QStaticPropertyValueRemovedChangeBase* static_cast<Qt3DCore::QStaticPropertyValueRemovedChangeBase*>(Qt3DCore::QPropertyValueRemovedChange* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QPropertyValueRemovedChange>,
) -> ::cpp_core::Ptr<crate::QStaticPropertyValueRemovedChangeBase> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_Qt3DCore_QStaticPropertyValueRemovedChangeBase_ptr3(ptr.as_raw_ptr() as *mut crate::QPropertyValueRemovedChange)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::std::ops::Deref for crate::QPropertyValueRemovedChange {
type Target = crate::QStaticPropertyValueRemovedChangeBase;
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QStaticPropertyValueRemovedChangeBase* static_cast<Qt3DCore::QStaticPropertyValueRemovedChangeBase*>(Qt3DCore::QPropertyValueRemovedChange* ptr)```</span>.
#[inline(always)]
fn deref(&self) -> &crate::QStaticPropertyValueRemovedChangeBase {
let ffi_result = {
unsafe {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_Qt3DCore_QStaticPropertyValueRemovedChangeBase_ptr3(self as *const crate::QPropertyValueRemovedChange as *mut crate::QPropertyValueRemovedChange)
}
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_core::DynamicCast<crate::QPropertyValueRemovedChange>
for crate::QStaticPropertyValueRemovedChangeBase
{
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QPropertyValueRemovedChange* dynamic_cast<Qt3DCore::QPropertyValueRemovedChange*>(Qt3DCore::QStaticPropertyValueRemovedChangeBase* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<crate::QStaticPropertyValueRemovedChangeBase>,
) -> ::cpp_core::Ptr<crate::QPropertyValueRemovedChange> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_dynamic_cast_Qt3DCore_QPropertyValueRemovedChange_ptr(
ptr.as_raw_ptr() as *mut crate::QStaticPropertyValueRemovedChangeBase,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QPropertyValueRemovedChange>
for crate::QPropertyValueRemovedChangeBase
{
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QPropertyValueRemovedChange* static_cast<Qt3DCore::QPropertyValueRemovedChange*>(Qt3DCore::QPropertyValueRemovedChangeBase* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<crate::QPropertyValueRemovedChangeBase>,
) -> ::cpp_core::Ptr<crate::QPropertyValueRemovedChange> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_Qt3DCore_QPropertyValueRemovedChange_ptr1(
ptr.as_raw_ptr() as *mut crate::QPropertyValueRemovedChangeBase,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<crate::QPropertyValueRemovedChangeBase>
for crate::QPropertyValueRemovedChange
{
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QPropertyValueRemovedChangeBase* static_cast<Qt3DCore::QPropertyValueRemovedChangeBase*>(Qt3DCore::QPropertyValueRemovedChange* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QPropertyValueRemovedChange>,
) -> ::cpp_core::Ptr<crate::QPropertyValueRemovedChangeBase> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_Qt3DCore_QPropertyValueRemovedChangeBase_ptr3(ptr.as_raw_ptr() as *mut crate::QPropertyValueRemovedChange)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QPropertyValueRemovedChange>
for crate::QPropertyValueRemovedChangeBase
{
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QPropertyValueRemovedChange* dynamic_cast<Qt3DCore::QPropertyValueRemovedChange*>(Qt3DCore::QPropertyValueRemovedChangeBase* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<crate::QPropertyValueRemovedChangeBase>,
) -> ::cpp_core::Ptr<crate::QPropertyValueRemovedChange> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_dynamic_cast_Qt3DCore_QPropertyValueRemovedChange_ptr1(
ptr.as_raw_ptr() as *mut crate::QPropertyValueRemovedChangeBase,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QPropertyValueRemovedChange> for crate::QSceneChange {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QPropertyValueRemovedChange* static_cast<Qt3DCore::QPropertyValueRemovedChange*>(Qt3DCore::QSceneChange* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<crate::QSceneChange>,
) -> ::cpp_core::Ptr<crate::QPropertyValueRemovedChange> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_Qt3DCore_QPropertyValueRemovedChange_ptr2(
ptr.as_raw_ptr() as *mut crate::QSceneChange,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<crate::QSceneChange> for crate::QPropertyValueRemovedChange {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QSceneChange* static_cast<Qt3DCore::QSceneChange*>(Qt3DCore::QPropertyValueRemovedChange* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QPropertyValueRemovedChange>,
) -> ::cpp_core::Ptr<crate::QSceneChange> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_Qt3DCore_QSceneChange_ptr15(
ptr.as_raw_ptr() as *mut crate::QPropertyValueRemovedChange,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QPropertyValueRemovedChange> for crate::QSceneChange {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QPropertyValueRemovedChange* dynamic_cast<Qt3DCore::QPropertyValueRemovedChange*>(Qt3DCore::QSceneChange* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<crate::QSceneChange>,
) -> ::cpp_core::Ptr<crate::QPropertyValueRemovedChange> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_dynamic_cast_Qt3DCore_QPropertyValueRemovedChange_ptr2(
ptr.as_raw_ptr() as *mut crate::QSceneChange,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QTransform> for crate::QComponent {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QTransform* static_cast<Qt3DCore::QTransform*>(Qt3DCore::QComponent* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<crate::QComponent>,
) -> ::cpp_core::Ptr<crate::QTransform> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_Qt3DCore_QTransform_ptr(
ptr.as_raw_ptr() as *mut crate::QComponent
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<crate::QComponent> for crate::QTransform {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QComponent* static_cast<Qt3DCore::QComponent*>(Qt3DCore::QTransform* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QTransform>,
) -> ::cpp_core::Ptr<crate::QComponent> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_Qt3DCore_QComponent_ptr2(
ptr.as_raw_ptr() as *mut crate::QTransform
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::std::ops::Deref for crate::QTransform {
type Target = crate::QComponent;
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QComponent* static_cast<Qt3DCore::QComponent*>(Qt3DCore::QTransform* ptr)```</span>.
#[inline(always)]
fn deref(&self) -> &crate::QComponent {
let ffi_result = {
unsafe {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_Qt3DCore_QComponent_ptr2(
self as *const crate::QTransform as *mut crate::QTransform,
)
}
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_core::DynamicCast<crate::QTransform> for crate::QComponent {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QTransform* dynamic_cast<Qt3DCore::QTransform*>(Qt3DCore::QComponent* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<crate::QComponent>,
) -> ::cpp_core::Ptr<crate::QTransform> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_dynamic_cast_Qt3DCore_QTransform_ptr(
ptr.as_raw_ptr() as *mut crate::QComponent
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QTransform> for crate::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QTransform* static_cast<Qt3DCore::QTransform*>(Qt3DCore::QNode* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<crate::QNode>,
) -> ::cpp_core::Ptr<crate::QTransform> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_Qt3DCore_QTransform_ptr1(
ptr.as_raw_ptr() as *mut crate::QNode
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<crate::QNode> for crate::QTransform {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DCore::QTransform* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QTransform>,
) -> ::cpp_core::Ptr<crate::QNode> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_Qt3DCore_QNode_ptr3(
ptr.as_raw_ptr() as *mut crate::QTransform
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QTransform> for crate::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QTransform* dynamic_cast<Qt3DCore::QTransform*>(Qt3DCore::QNode* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<crate::QNode>,
) -> ::cpp_core::Ptr<crate::QTransform> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_dynamic_cast_Qt3DCore_QTransform_ptr1(
ptr.as_raw_ptr() as *mut crate::QNode
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QTransform> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QTransform* static_cast<Qt3DCore::QTransform*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QTransform> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_Qt3DCore_QTransform_ptr2(
ptr.as_raw_ptr() as *mut ::qt_core::QObject
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_core::QObject> for crate::QTransform {
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(Qt3DCore::QTransform* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QTransform>,
) -> ::cpp_core::Ptr<::qt_core::QObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_QObject_ptr5(
ptr.as_raw_ptr() as *mut crate::QTransform
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QTransform> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QTransform* dynamic_cast<Qt3DCore::QTransform*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QTransform> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_dynamic_cast_Qt3DCore_QTransform_ptr2(
ptr.as_raw_ptr() as *mut ::qt_core::QObject
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::CppDeletable for crate::QNodeCommand {
/// <p>Destroys the instance of QNodeCommand. The destructor is virtual.</p>
///
/// Calls C++ function: <span style='color: green;'>```virtual [destructor] void Qt3DCore::QNodeCommand::~QNodeCommand()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qnodecommand.html#dtor.QNodeCommand">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Destroys the instance of QNodeCommand. The destructor is virtual.</p></div>
#[inline(always)]
unsafe fn delete(&self) {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QNodeCommand_dQNodeCommand(
self as *const crate::QNodeCommand as *mut crate::QNodeCommand,
)
}
}
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::CppDeletable for crate::QAbstractSkeleton {
/// Calls C++ function: <span style='color: green;'>```virtual [destructor] void Qt3DCore::QAbstractSkeleton::~QAbstractSkeleton()```</span>.
#[inline(always)]
unsafe fn delete(&self) {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QAbstractSkeleton_dQAbstractSkeleton(
self as *const crate::QAbstractSkeleton as *mut crate::QAbstractSkeleton,
)
}
}
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::CppDeletable for crate::QArmature {
/// Calls C++ function: <span style='color: green;'>```virtual [destructor] void Qt3DCore::QArmature::~QArmature()```</span>.
#[inline(always)]
unsafe fn delete(&self) {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QArmature_dQArmature(
self as *const crate::QArmature as *mut crate::QArmature,
)
}
}
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::CppDeletable for crate::QJoint {
/// Calls C++ function: <span style='color: green;'>```virtual [destructor] void Qt3DCore::QJoint::~QJoint()```</span>.
#[inline(always)]
unsafe fn delete(&self) {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QJoint_dQJoint(
self as *const crate::QJoint as *mut crate::QJoint,
)
}
}
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::CppDeletable for crate::QSkeleton {
/// Calls C++ function: <span style='color: green;'>```virtual [destructor] void Qt3DCore::QSkeleton::~QSkeleton()```</span>.
#[inline(always)]
unsafe fn delete(&self) {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QSkeleton_dQSkeleton(
self as *const crate::QSkeleton as *mut crate::QSkeleton,
)
}
}
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::CppDeletable for crate::QSkeletonLoader {
/// Calls C++ function: <span style='color: green;'>```virtual [destructor] void Qt3DCore::QSkeletonLoader::~QSkeletonLoader()```</span>.
#[inline(always)]
unsafe fn delete(&self) {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_QSkeletonLoader_dQSkeletonLoader(
self as *const crate::QSkeletonLoader as *mut crate::QSkeletonLoader,
)
}
}
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::CppDeletable for crate::QVectorOfQJoint {
/// <p>Destroys the vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```[destructor] void QVector<Qt3DCore::QJoint*>::~QVector()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#dtor.QVector">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Destroys the vector.</p></div>
#[inline(always)]
unsafe fn delete(&self) {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QJoint_ptr_dQVector(
self as *const crate::QVectorOfQJoint as *mut crate::QVectorOfQJoint,
)
}
}
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
impl ::std::cmp::PartialEq<::cpp_core::Ref<crate::QVectorOfQJoint>> for crate::QVectorOfQJoint {
/// <p>Returns <code>true</code> if <i>other</i> is equal to this vector; otherwise returns <code>false</code>.</p>
///
/// Calls C++ function: <span style='color: green;'>```bool QVector<Qt3DCore::QJoint*>::operator==(const QVector<Qt3DCore::QJoint*>& v) const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#operator-eq-eq">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns <code>true</code> if <i>other</i> is equal to this vector; otherwise returns <code>false</code>.</p>
/// <p>Two vectors are considered equal if they contain the same values in the same order.</p>
/// <p>This function requires the value type to have an implementation of <code>operator==()</code>.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#operator-not-eq">operator!=</a>().</p></div>
#[inline(always)]
fn eq(&self, v: &::cpp_core::Ref<crate::QVectorOfQJoint>) -> bool {
unsafe {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QJoint_ptr_operator__(
self as *const crate::QVectorOfQJoint,
v.as_raw_ptr(),
)
}
}
}
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::vector_ops::Size for crate::QVectorOfQJoint {
/// <p>Returns the number of items in the vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```int QVector<Qt3DCore::QJoint*>::size() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#size">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the number of items in the vector.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#isEmpty">isEmpty</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#resize">resize</a>().</p></div>
#[inline(always)]
unsafe fn size(&self) -> usize {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QJoint_ptr_size(
self as *const crate::QVectorOfQJoint,
)
};
ffi_result as usize
}
}
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::vector_ops::DataMut for crate::QVectorOfQJoint {
type Output = *mut *mut crate::QJoint;
/// <p>Returns a pointer to the data stored in the vector. The pointer can be used to access and modify the items in the vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QJoint** QVector<Qt3DCore::QJoint*>::data()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#data">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns a pointer to the data stored in the vector. The pointer can be used to access and modify the items in the vector.</p>
/// <p>Example:</p>
/// <pre class="cpp">
///
/// <span class="type"><a href="http://doc.qt.io/qt-5/qvector.html#QVector">QVector</a></span><span class="operator"><</span><span class="type">int</span><span class="operator">></span> vector(<span class="number">10</span>);
/// <span class="type">int</span> <span class="operator">*</span>data <span class="operator">=</span> vector<span class="operator">.</span>data();
/// <span class="keyword">for</span> (<span class="type">int</span> i <span class="operator">=</span> <span class="number">0</span>; i <span class="operator"><</span> <span class="number">10</span>; <span class="operator">+</span><span class="operator">+</span>i)
///   data<span class="operator">[</span>i<span class="operator">]</span> <span class="operator">=</span> <span class="number">2</span> <span class="operator">*</span> i;
///
/// </pre>
/// <p>The pointer remains valid as long as the vector isn't reallocated.</p>
/// <p>This function is mostly useful to pass a vector to a function that accepts a plain C++ array.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#constData">constData</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#operator-5b-5d">operator[]</a>().</p></div>
#[inline(always)]
unsafe fn data_mut(&self) -> *mut *mut crate::QJoint {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QJoint_ptr_data(
self as *const crate::QVectorOfQJoint as *mut crate::QVectorOfQJoint,
)
}
}
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::vector_ops::Data for crate::QVectorOfQJoint {
type Output = *const *mut crate::QJoint;
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```const Qt3DCore::QJoint** QVector<Qt3DCore::QJoint*>::data() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#data-1">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This is an overloaded function.</p></div>
#[inline(always)]
unsafe fn data(&self) -> *const *mut crate::QJoint {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QJoint_ptr_data1(
self as *const crate::QVectorOfQJoint,
)
}
}
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
impl ::std::ops::Add<::cpp_core::Ref<crate::QVectorOfQJoint>> for &crate::QVectorOfQJoint {
type Output = ::cpp_core::CppBox<crate::QVectorOfQJoint>;
/// <p>Returns a vector that contains all the items in this vector followed by all the items in the <i>other</i> vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```QVector<Qt3DCore::QJoint*> QVector<Qt3DCore::QJoint*>::operator+(const QVector<Qt3DCore::QJoint*>& l) const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#operator-2b">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns a vector that contains all the items in this vector followed by all the items in the <i>other</i> vector.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#operator-2b-eq">operator+=</a>().</p></div>
#[inline(always)]
fn add(
self,
l: ::cpp_core::Ref<crate::QVectorOfQJoint>,
) -> ::cpp_core::CppBox<crate::QVectorOfQJoint> {
let ffi_result = {
unsafe {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QJoint_ptr_operator_2(
self as *const crate::QVectorOfQJoint,
l.as_raw_ptr(),
)
}
};
unsafe {
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
}
}
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
impl ::std::ops::Shl<*const *mut crate::QJoint> for &crate::QVectorOfQJoint {
type Output = ::cpp_core::Ref<crate::QVectorOfQJoint>;
/// <p>Appends <i>value</i> to the vector and returns a reference to this vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```QVector<Qt3DCore::QJoint*>& QVector<Qt3DCore::QJoint*>::operator<<(const Qt3DCore::QJoint*& t)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#operator-lt-lt">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Appends <i>value</i> to the vector and returns a reference to this vector.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qvector.html#append">append</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#operator-2b-eq">operator+=</a>().</p></div>
#[inline(always)]
fn shl(self, t: *const *mut crate::QJoint) -> ::cpp_core::Ref<crate::QVectorOfQJoint> {
let ffi_result = {
unsafe {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QJoint_ptr_operator__6(
self as *const crate::QVectorOfQJoint as *mut crate::QVectorOfQJoint,
t,
)
}
};
unsafe { ::cpp_core::Ref::from_raw(ffi_result).expect("attempted to construct a null Ref") }
}
}
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
impl ::std::ops::Shl<::cpp_core::Ref<crate::QVectorOfQJoint>> for &crate::QVectorOfQJoint {
type Output = ::cpp_core::Ref<crate::QVectorOfQJoint>;
/// <p>Appends <i>other</i> to the vector and returns a reference to the vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```QVector<Qt3DCore::QJoint*>& QVector<Qt3DCore::QJoint*>::operator<<(const QVector<Qt3DCore::QJoint*>& l)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qvector.html#operator-lt-lt-1">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Appends <i>other</i> to the vector and returns a reference to the vector.</p></div>
#[inline(always)]
fn shl(
self,
l: ::cpp_core::Ref<crate::QVectorOfQJoint>,
) -> ::cpp_core::Ref<crate::QVectorOfQJoint> {
let ffi_result = {
unsafe {
crate::__ffi::ctr_qt_3d_core_ffi_QVector_Qt3DCore_QJoint_ptr_operator__7(
self as *const crate::QVectorOfQJoint as *mut crate::QVectorOfQJoint,
l.as_raw_ptr(),
)
}
};
unsafe { ::cpp_core::Ref::from_raw(ffi_result).expect("attempted to construct a null Ref") }
}
}
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::cmp::Lt<::cpp_core::Ref<crate::QVectorOfQJoint>> for crate::QVectorOfQJoint {
/// Calls C++ function: <span style='color: green;'>```bool operator<(const QVector<Qt3DCore::QJoint*>& lhs, const QVector<Qt3DCore::QJoint*>& rhs)```</span>.
#[inline(always)]
unsafe fn lt(&self, rhs: &::cpp_core::Ref<crate::QVectorOfQJoint>) -> bool {
crate::__ffi::ctr_qt_3d_core_ffi_operator_24(
self as *const crate::QVectorOfQJoint,
rhs.as_raw_ptr(),
)
}
}
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::cmp::Gt<::cpp_core::Ref<crate::QVectorOfQJoint>> for crate::QVectorOfQJoint {
/// Calls C++ function: <span style='color: green;'>```bool operator>(const QVector<Qt3DCore::QJoint*>& lhs, const QVector<Qt3DCore::QJoint*>& rhs)```</span>.
#[inline(always)]
unsafe fn gt(&self, rhs: &::cpp_core::Ref<crate::QVectorOfQJoint>) -> bool {
crate::__ffi::ctr_qt_3d_core_ffi_operator_25(
self as *const crate::QVectorOfQJoint,
rhs.as_raw_ptr(),
)
}
}
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::cmp::Le<::cpp_core::Ref<crate::QVectorOfQJoint>> for crate::QVectorOfQJoint {
/// <p>Returns <code>true</code> if the numeric Unicode value of <i>c1</i> is less than or equal to that of <i>c2</i>; otherwise returns <code>false</code>.</p>
///
/// Calls C++ function: <span style='color: green;'>```bool operator<=(const QVector<Qt3DCore::QJoint*>& lhs, const QVector<Qt3DCore::QJoint*>& rhs)```</span>.
///
/// Warning: no exact match found in C++ documentation. Below is the <a href="http://doc.qt.io/qt-5/qchar.html#operator-lt-eq">C++ documentation</a> for <span style='color: green;'>```bool operator<=(QChar c1, QChar c2)```</span>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns <code>true</code> if the numeric Unicode value of <i>c1</i> is less than or equal to that of <i>c2</i>; otherwise returns <code>false</code>.</p></div>
#[inline(always)]
unsafe fn le(&self, rhs: &::cpp_core::Ref<crate::QVectorOfQJoint>) -> bool {
crate::__ffi::ctr_qt_3d_core_ffi_operator__72(
self as *const crate::QVectorOfQJoint,
rhs.as_raw_ptr(),
)
}
}
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::cmp::Ge<::cpp_core::Ref<crate::QVectorOfQJoint>> for crate::QVectorOfQJoint {
/// <p>Returns <code>true</code> if the numeric Unicode value of <i>c1</i> is greater than or equal to that of <i>c2</i>; otherwise returns <code>false</code>.</p>
///
/// Calls C++ function: <span style='color: green;'>```bool operator>=(const QVector<Qt3DCore::QJoint*>& lhs, const QVector<Qt3DCore::QJoint*>& rhs)```</span>.
///
/// Warning: no exact match found in C++ documentation. Below is the <a href="http://doc.qt.io/qt-5/qchar.html#operator-gt-eq">C++ documentation</a> for <span style='color: green;'>```bool operator>=(QChar c1, QChar c2)```</span>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns <code>true</code> if the numeric Unicode value of <i>c1</i> is greater than or equal to that of <i>c2</i>; otherwise returns <code>false</code>.</p></div>
#[inline(always)]
unsafe fn ge(&self, rhs: &::cpp_core::Ref<crate::QVectorOfQJoint>) -> bool {
crate::__ffi::ctr_qt_3d_core_ffi_operator__73(
self as *const crate::QVectorOfQJoint,
rhs.as_raw_ptr(),
)
}
}
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::StaticDowncast<crate::QNodeCommand> for crate::QSceneChange {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNodeCommand* static_cast<Qt3DCore::QNodeCommand*>(Qt3DCore::QSceneChange* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<crate::QSceneChange>,
) -> ::cpp_core::Ptr<crate::QNodeCommand> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_Qt3DCore_QNodeCommand_ptr(
ptr.as_raw_ptr() as *mut crate::QSceneChange
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::StaticUpcast<crate::QSceneChange> for crate::QNodeCommand {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QSceneChange* static_cast<Qt3DCore::QSceneChange*>(Qt3DCore::QNodeCommand* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QNodeCommand>,
) -> ::cpp_core::Ptr<crate::QSceneChange> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_Qt3DCore_QSceneChange_ptr32(
ptr.as_raw_ptr() as *mut crate::QNodeCommand,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
impl ::std::ops::Deref for crate::QNodeCommand {
type Target = crate::QSceneChange;
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QSceneChange* static_cast<Qt3DCore::QSceneChange*>(Qt3DCore::QNodeCommand* ptr)```</span>.
#[inline(always)]
fn deref(&self) -> &crate::QSceneChange {
let ffi_result = {
unsafe {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_Qt3DCore_QSceneChange_ptr32(
self as *const crate::QNodeCommand as *mut crate::QNodeCommand,
)
}
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::DynamicCast<crate::QNodeCommand> for crate::QSceneChange {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNodeCommand* dynamic_cast<Qt3DCore::QNodeCommand*>(Qt3DCore::QSceneChange* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<crate::QSceneChange>,
) -> ::cpp_core::Ptr<crate::QNodeCommand> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_dynamic_cast_Qt3DCore_QNodeCommand_ptr(
ptr.as_raw_ptr() as *mut crate::QSceneChange,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::StaticDowncast<crate::QAbstractSkeleton> for crate::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QAbstractSkeleton* static_cast<Qt3DCore::QAbstractSkeleton*>(Qt3DCore::QNode* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<crate::QNode>,
) -> ::cpp_core::Ptr<crate::QAbstractSkeleton> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_Qt3DCore_QAbstractSkeleton_ptr(
ptr.as_raw_ptr() as *mut crate::QNode,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::StaticUpcast<crate::QNode> for crate::QAbstractSkeleton {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DCore::QAbstractSkeleton* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QAbstractSkeleton>,
) -> ::cpp_core::Ptr<crate::QNode> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_Qt3DCore_QNode_ptr8(
ptr.as_raw_ptr() as *mut crate::QAbstractSkeleton
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
impl ::std::ops::Deref for crate::QAbstractSkeleton {
type Target = crate::QNode;
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DCore::QAbstractSkeleton* ptr)```</span>.
#[inline(always)]
fn deref(&self) -> &crate::QNode {
let ffi_result = {
unsafe {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_Qt3DCore_QNode_ptr8(
self as *const crate::QAbstractSkeleton as *mut crate::QAbstractSkeleton,
)
}
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::DynamicCast<crate::QAbstractSkeleton> for crate::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QAbstractSkeleton* dynamic_cast<Qt3DCore::QAbstractSkeleton*>(Qt3DCore::QNode* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<crate::QNode>,
) -> ::cpp_core::Ptr<crate::QAbstractSkeleton> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_dynamic_cast_Qt3DCore_QAbstractSkeleton_ptr(
ptr.as_raw_ptr() as *mut crate::QNode,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::StaticDowncast<crate::QAbstractSkeleton> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QAbstractSkeleton* static_cast<Qt3DCore::QAbstractSkeleton*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QAbstractSkeleton> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_Qt3DCore_QAbstractSkeleton_ptr1(
ptr.as_raw_ptr() as *mut ::qt_core::QObject,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::StaticUpcast<::qt_core::QObject> for crate::QAbstractSkeleton {
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(Qt3DCore::QAbstractSkeleton* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QAbstractSkeleton>,
) -> ::cpp_core::Ptr<::qt_core::QObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_QObject_ptr22(
ptr.as_raw_ptr() as *mut crate::QAbstractSkeleton
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::DynamicCast<crate::QAbstractSkeleton> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QAbstractSkeleton* dynamic_cast<Qt3DCore::QAbstractSkeleton*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QAbstractSkeleton> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_dynamic_cast_Qt3DCore_QAbstractSkeleton_ptr1(
ptr.as_raw_ptr() as *mut ::qt_core::QObject,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::StaticDowncast<crate::QArmature> for crate::QComponent {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QArmature* static_cast<Qt3DCore::QArmature*>(Qt3DCore::QComponent* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<crate::QComponent>,
) -> ::cpp_core::Ptr<crate::QArmature> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_Qt3DCore_QArmature_ptr(
ptr.as_raw_ptr() as *mut crate::QComponent
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::StaticUpcast<crate::QComponent> for crate::QArmature {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QComponent* static_cast<Qt3DCore::QComponent*>(Qt3DCore::QArmature* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QArmature>,
) -> ::cpp_core::Ptr<crate::QComponent> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_Qt3DCore_QComponent_ptr6(
ptr.as_raw_ptr() as *mut crate::QArmature
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
impl ::std::ops::Deref for crate::QArmature {
type Target = crate::QComponent;
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QComponent* static_cast<Qt3DCore::QComponent*>(Qt3DCore::QArmature* ptr)```</span>.
#[inline(always)]
fn deref(&self) -> &crate::QComponent {
let ffi_result = {
unsafe {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_Qt3DCore_QComponent_ptr6(
self as *const crate::QArmature as *mut crate::QArmature,
)
}
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::DynamicCast<crate::QArmature> for crate::QComponent {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QArmature* dynamic_cast<Qt3DCore::QArmature*>(Qt3DCore::QComponent* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<crate::QComponent>,
) -> ::cpp_core::Ptr<crate::QArmature> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_dynamic_cast_Qt3DCore_QArmature_ptr(
ptr.as_raw_ptr() as *mut crate::QComponent
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::StaticDowncast<crate::QArmature> for crate::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QArmature* static_cast<Qt3DCore::QArmature*>(Qt3DCore::QNode* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<crate::QNode>,
) -> ::cpp_core::Ptr<crate::QArmature> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_Qt3DCore_QArmature_ptr1(
ptr.as_raw_ptr() as *mut crate::QNode
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::StaticUpcast<crate::QNode> for crate::QArmature {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DCore::QArmature* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QArmature>,
) -> ::cpp_core::Ptr<crate::QNode> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_Qt3DCore_QNode_ptr9(
ptr.as_raw_ptr() as *mut crate::QArmature
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::DynamicCast<crate::QArmature> for crate::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QArmature* dynamic_cast<Qt3DCore::QArmature*>(Qt3DCore::QNode* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<crate::QNode>,
) -> ::cpp_core::Ptr<crate::QArmature> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_dynamic_cast_Qt3DCore_QArmature_ptr1(
ptr.as_raw_ptr() as *mut crate::QNode
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::StaticDowncast<crate::QArmature> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QArmature* static_cast<Qt3DCore::QArmature*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QArmature> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_Qt3DCore_QArmature_ptr2(
ptr.as_raw_ptr() as *mut ::qt_core::QObject
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::StaticUpcast<::qt_core::QObject> for crate::QArmature {
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(Qt3DCore::QArmature* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QArmature>,
) -> ::cpp_core::Ptr<::qt_core::QObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_QObject_ptr23(
ptr.as_raw_ptr() as *mut crate::QArmature
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::DynamicCast<crate::QArmature> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QArmature* dynamic_cast<Qt3DCore::QArmature*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QArmature> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_dynamic_cast_Qt3DCore_QArmature_ptr2(
ptr.as_raw_ptr() as *mut ::qt_core::QObject
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::StaticDowncast<crate::QJoint> for crate::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QJoint* static_cast<Qt3DCore::QJoint*>(Qt3DCore::QNode* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<crate::QNode>,
) -> ::cpp_core::Ptr<crate::QJoint> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_Qt3DCore_QJoint_ptr(
ptr.as_raw_ptr() as *mut crate::QNode
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::StaticUpcast<crate::QNode> for crate::QJoint {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DCore::QJoint* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(ptr: ::cpp_core::Ptr<crate::QJoint>) -> ::cpp_core::Ptr<crate::QNode> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_Qt3DCore_QNode_ptr10(
ptr.as_raw_ptr() as *mut crate::QJoint
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
impl ::std::ops::Deref for crate::QJoint {
type Target = crate::QNode;
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DCore::QJoint* ptr)```</span>.
#[inline(always)]
fn deref(&self) -> &crate::QNode {
let ffi_result = {
unsafe {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_Qt3DCore_QNode_ptr10(
self as *const crate::QJoint as *mut crate::QJoint,
)
}
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::DynamicCast<crate::QJoint> for crate::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QJoint* dynamic_cast<Qt3DCore::QJoint*>(Qt3DCore::QNode* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(ptr: ::cpp_core::Ptr<crate::QNode>) -> ::cpp_core::Ptr<crate::QJoint> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_dynamic_cast_Qt3DCore_QJoint_ptr(
ptr.as_raw_ptr() as *mut crate::QNode
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::StaticDowncast<crate::QJoint> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QJoint* static_cast<Qt3DCore::QJoint*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QJoint> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_Qt3DCore_QJoint_ptr1(
ptr.as_raw_ptr() as *mut ::qt_core::QObject
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::StaticUpcast<::qt_core::QObject> for crate::QJoint {
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(Qt3DCore::QJoint* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QJoint>,
) -> ::cpp_core::Ptr<::qt_core::QObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_QObject_ptr24(
ptr.as_raw_ptr() as *mut crate::QJoint
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::DynamicCast<crate::QJoint> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QJoint* dynamic_cast<Qt3DCore::QJoint*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QJoint> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_dynamic_cast_Qt3DCore_QJoint_ptr1(
ptr.as_raw_ptr() as *mut ::qt_core::QObject
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::StaticDowncast<crate::QSkeleton> for crate::QAbstractSkeleton {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QSkeleton* static_cast<Qt3DCore::QSkeleton*>(Qt3DCore::QAbstractSkeleton* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<crate::QAbstractSkeleton>,
) -> ::cpp_core::Ptr<crate::QSkeleton> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_Qt3DCore_QSkeleton_ptr(
ptr.as_raw_ptr() as *mut crate::QAbstractSkeleton
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::StaticUpcast<crate::QAbstractSkeleton> for crate::QSkeleton {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QAbstractSkeleton* static_cast<Qt3DCore::QAbstractSkeleton*>(Qt3DCore::QSkeleton* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QSkeleton>,
) -> ::cpp_core::Ptr<crate::QAbstractSkeleton> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_Qt3DCore_QAbstractSkeleton_ptr2(
ptr.as_raw_ptr() as *mut crate::QSkeleton,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
impl ::std::ops::Deref for crate::QSkeleton {
type Target = crate::QAbstractSkeleton;
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QAbstractSkeleton* static_cast<Qt3DCore::QAbstractSkeleton*>(Qt3DCore::QSkeleton* ptr)```</span>.
#[inline(always)]
fn deref(&self) -> &crate::QAbstractSkeleton {
let ffi_result = {
unsafe {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_Qt3DCore_QAbstractSkeleton_ptr2(
self as *const crate::QSkeleton as *mut crate::QSkeleton,
)
}
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::DynamicCast<crate::QSkeleton> for crate::QAbstractSkeleton {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QSkeleton* dynamic_cast<Qt3DCore::QSkeleton*>(Qt3DCore::QAbstractSkeleton* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<crate::QAbstractSkeleton>,
) -> ::cpp_core::Ptr<crate::QSkeleton> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_dynamic_cast_Qt3DCore_QSkeleton_ptr(
ptr.as_raw_ptr() as *mut crate::QAbstractSkeleton
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::StaticDowncast<crate::QSkeleton> for crate::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QSkeleton* static_cast<Qt3DCore::QSkeleton*>(Qt3DCore::QNode* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<crate::QNode>,
) -> ::cpp_core::Ptr<crate::QSkeleton> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_Qt3DCore_QSkeleton_ptr1(
ptr.as_raw_ptr() as *mut crate::QNode
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::StaticUpcast<crate::QNode> for crate::QSkeleton {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DCore::QSkeleton* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QSkeleton>,
) -> ::cpp_core::Ptr<crate::QNode> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_Qt3DCore_QNode_ptr11(
ptr.as_raw_ptr() as *mut crate::QSkeleton
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::DynamicCast<crate::QSkeleton> for crate::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QSkeleton* dynamic_cast<Qt3DCore::QSkeleton*>(Qt3DCore::QNode* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<crate::QNode>,
) -> ::cpp_core::Ptr<crate::QSkeleton> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_dynamic_cast_Qt3DCore_QSkeleton_ptr1(
ptr.as_raw_ptr() as *mut crate::QNode
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::StaticDowncast<crate::QSkeleton> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QSkeleton* static_cast<Qt3DCore::QSkeleton*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QSkeleton> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_Qt3DCore_QSkeleton_ptr2(
ptr.as_raw_ptr() as *mut ::qt_core::QObject
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::StaticUpcast<::qt_core::QObject> for crate::QSkeleton {
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(Qt3DCore::QSkeleton* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QSkeleton>,
) -> ::cpp_core::Ptr<::qt_core::QObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_QObject_ptr25(
ptr.as_raw_ptr() as *mut crate::QSkeleton
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::DynamicCast<crate::QSkeleton> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QSkeleton* dynamic_cast<Qt3DCore::QSkeleton*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QSkeleton> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_dynamic_cast_Qt3DCore_QSkeleton_ptr2(
ptr.as_raw_ptr() as *mut ::qt_core::QObject
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::StaticDowncast<crate::QSkeletonLoader> for crate::QAbstractSkeleton {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QSkeletonLoader* static_cast<Qt3DCore::QSkeletonLoader*>(Qt3DCore::QAbstractSkeleton* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<crate::QAbstractSkeleton>,
) -> ::cpp_core::Ptr<crate::QSkeletonLoader> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_Qt3DCore_QSkeletonLoader_ptr(
ptr.as_raw_ptr() as *mut crate::QAbstractSkeleton,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::StaticUpcast<crate::QAbstractSkeleton> for crate::QSkeletonLoader {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QAbstractSkeleton* static_cast<Qt3DCore::QAbstractSkeleton*>(Qt3DCore::QSkeletonLoader* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QSkeletonLoader>,
) -> ::cpp_core::Ptr<crate::QAbstractSkeleton> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_Qt3DCore_QAbstractSkeleton_ptr3(
ptr.as_raw_ptr() as *mut crate::QSkeletonLoader,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
impl ::std::ops::Deref for crate::QSkeletonLoader {
type Target = crate::QAbstractSkeleton;
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QAbstractSkeleton* static_cast<Qt3DCore::QAbstractSkeleton*>(Qt3DCore::QSkeletonLoader* ptr)```</span>.
#[inline(always)]
fn deref(&self) -> &crate::QAbstractSkeleton {
let ffi_result = {
unsafe {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_Qt3DCore_QAbstractSkeleton_ptr3(
self as *const crate::QSkeletonLoader as *mut crate::QSkeletonLoader,
)
}
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::DynamicCast<crate::QSkeletonLoader> for crate::QAbstractSkeleton {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QSkeletonLoader* dynamic_cast<Qt3DCore::QSkeletonLoader*>(Qt3DCore::QAbstractSkeleton* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<crate::QAbstractSkeleton>,
) -> ::cpp_core::Ptr<crate::QSkeletonLoader> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_dynamic_cast_Qt3DCore_QSkeletonLoader_ptr(
ptr.as_raw_ptr() as *mut crate::QAbstractSkeleton,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::StaticDowncast<crate::QSkeletonLoader> for crate::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QSkeletonLoader* static_cast<Qt3DCore::QSkeletonLoader*>(Qt3DCore::QNode* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<crate::QNode>,
) -> ::cpp_core::Ptr<crate::QSkeletonLoader> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_Qt3DCore_QSkeletonLoader_ptr1(
ptr.as_raw_ptr() as *mut crate::QNode,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::StaticUpcast<crate::QNode> for crate::QSkeletonLoader {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DCore::QSkeletonLoader* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QSkeletonLoader>,
) -> ::cpp_core::Ptr<crate::QNode> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_Qt3DCore_QNode_ptr12(
ptr.as_raw_ptr() as *mut crate::QSkeletonLoader
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::DynamicCast<crate::QSkeletonLoader> for crate::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QSkeletonLoader* dynamic_cast<Qt3DCore::QSkeletonLoader*>(Qt3DCore::QNode* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<crate::QNode>,
) -> ::cpp_core::Ptr<crate::QSkeletonLoader> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_dynamic_cast_Qt3DCore_QSkeletonLoader_ptr1(
ptr.as_raw_ptr() as *mut crate::QNode,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::StaticDowncast<crate::QSkeletonLoader> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QSkeletonLoader* static_cast<Qt3DCore::QSkeletonLoader*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QSkeletonLoader> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_Qt3DCore_QSkeletonLoader_ptr2(
ptr.as_raw_ptr() as *mut ::qt_core::QObject,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::StaticUpcast<::qt_core::QObject> for crate::QSkeletonLoader {
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(Qt3DCore::QSkeletonLoader* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QSkeletonLoader>,
) -> ::cpp_core::Ptr<::qt_core::QObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_QObject_ptr26(
ptr.as_raw_ptr() as *mut crate::QSkeletonLoader
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::DynamicCast<crate::QSkeletonLoader> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QSkeletonLoader* dynamic_cast<Qt3DCore::QSkeletonLoader*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QSkeletonLoader> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_dynamic_cast_Qt3DCore_QSkeletonLoader_ptr2(
ptr.as_raw_ptr() as *mut ::qt_core::QObject,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::CppDeletable for crate::SignalOfQJoint {
/// Calls C++ function: <span style='color: green;'>```[destructor] void ctr_qt_3d_core_ffi_signal_wrapper_Qt3DCore_QJoint_ptr::~ctr_qt_3d_core_ffi_signal_wrapper_Qt3DCore_QJoint_ptr()```</span>.
#[inline(always)]
unsafe fn delete(&self) {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_signal_wrapper_Qt3DCore_QJoint_ptr_dctr_qt_3d_core_ffi_signal_wrapper_Qt3DCore_QJoint_ptr(self as *const crate::SignalOfQJoint as *mut crate::SignalOfQJoint)
}
}
impl ::cpp_core::CppDeletable for crate::SignalOfQMatrix4X4 {
/// Calls C++ function: <span style='color: green;'>```[destructor] void ctr_qt_3d_core_ffi_signal_wrapper_QMatrix4x4_const_ref::~ctr_qt_3d_core_ffi_signal_wrapper_QMatrix4x4_const_ref()```</span>.
#[inline(always)]
unsafe fn delete(&self) {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_signal_wrapper_QMatrix4x4_const_ref_dctr_qt_3d_core_ffi_signal_wrapper_QMatrix4x4_const_ref(self as *const crate::SignalOfQMatrix4X4 as *mut crate::SignalOfQMatrix4X4)
}
}
impl ::cpp_core::CppDeletable for crate::SignalOfPropertyTrackingMode {
/// Calls C++ function: <span style='color: green;'>```[destructor] void ctr_qt_3d_core_ffi_signal_wrapper_Qt3DCore_QNode_PropertyTrackingMode::~ctr_qt_3d_core_ffi_signal_wrapper_Qt3DCore_QNode_PropertyTrackingMode()```</span>.
#[inline(always)]
unsafe fn delete(&self) {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_signal_wrapper_Qt3DCore_QNode_PropertyTrackingMode_dctr_qt_3d_core_ffi_signal_wrapper_Qt3DCore_QNode_PropertyTrackingMode(self as *const crate::SignalOfPropertyTrackingMode as *mut crate::SignalOfPropertyTrackingMode)
}
}
impl ::cpp_core::CppDeletable for crate::SignalOfQEntity {
/// Calls C++ function: <span style='color: green;'>```[destructor] void ctr_qt_3d_core_ffi_signal_wrapper_Qt3DCore_QEntity_ptr::~ctr_qt_3d_core_ffi_signal_wrapper_Qt3DCore_QEntity_ptr()```</span>.
#[inline(always)]
unsafe fn delete(&self) {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_signal_wrapper_Qt3DCore_QEntity_ptr_dctr_qt_3d_core_ffi_signal_wrapper_Qt3DCore_QEntity_ptr(self as *const crate::SignalOfQEntity as *mut crate::SignalOfQEntity)
}
}
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::CppDeletable for crate::SignalOfQAbstractSkeleton {
/// Calls C++ function: <span style='color: green;'>```[destructor] void ctr_qt_3d_core_ffi_signal_wrapper_Qt3DCore_QAbstractSkeleton_ptr::~ctr_qt_3d_core_ffi_signal_wrapper_Qt3DCore_QAbstractSkeleton_ptr()```</span>.
#[inline(always)]
unsafe fn delete(&self) {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_signal_wrapper_Qt3DCore_QAbstractSkeleton_ptr_dctr_qt_3d_core_ffi_signal_wrapper_Qt3DCore_QAbstractSkeleton_ptr(self as *const crate::SignalOfQAbstractSkeleton as *mut crate::SignalOfQAbstractSkeleton)
}
}
impl ::cpp_core::CppDeletable for crate::SignalOfQVector3D {
/// Calls C++ function: <span style='color: green;'>```[destructor] void ctr_qt_3d_core_ffi_signal_wrapper_QVector3D_const_ref::~ctr_qt_3d_core_ffi_signal_wrapper_QVector3D_const_ref()```</span>.
#[inline(always)]
unsafe fn delete(&self) {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_signal_wrapper_QVector3D_const_ref_dctr_qt_3d_core_ffi_signal_wrapper_QVector3D_const_ref(self as *const crate::SignalOfQVector3D as *mut crate::SignalOfQVector3D)
}
}
impl ::cpp_core::CppDeletable for crate::SignalOfFloat {
/// Calls C++ function: <span style='color: green;'>```[destructor] void ctr_qt_3d_core_ffi_signal_wrapper_float::~ctr_qt_3d_core_ffi_signal_wrapper_float()```</span>.
#[inline(always)]
unsafe fn delete(&self) {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_signal_wrapper_float_dctr_qt_3d_core_ffi_signal_wrapper_float(self as *const crate::SignalOfFloat as *mut crate::SignalOfFloat)
}
}
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::CppDeletable for crate::SignalOfStatus {
/// Calls C++ function: <span style='color: green;'>```[destructor] void ctr_qt_3d_core_ffi_signal_wrapper_Qt3DCore_QSkeletonLoader_Status::~ctr_qt_3d_core_ffi_signal_wrapper_Qt3DCore_QSkeletonLoader_Status()```</span>.
#[inline(always)]
unsafe fn delete(&self) {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_signal_wrapper_Qt3DCore_QSkeletonLoader_Status_dctr_qt_3d_core_ffi_signal_wrapper_Qt3DCore_QSkeletonLoader_Status(self as *const crate::SignalOfStatus as *mut crate::SignalOfStatus)
}
}
impl ::cpp_core::CppDeletable for crate::SignalOfQQuaternion {
/// Calls C++ function: <span style='color: green;'>```[destructor] void ctr_qt_3d_core_ffi_signal_wrapper_QQuaternion_const_ref::~ctr_qt_3d_core_ffi_signal_wrapper_QQuaternion_const_ref()```</span>.
#[inline(always)]
unsafe fn delete(&self) {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_signal_wrapper_QQuaternion_const_ref_dctr_qt_3d_core_ffi_signal_wrapper_QQuaternion_const_ref(self as *const crate::SignalOfQQuaternion as *mut crate::SignalOfQQuaternion)
}
}
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::StaticDowncast<crate::SignalOfQJoint> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```ctr_qt_3d_core_ffi_signal_wrapper_Qt3DCore_QJoint_ptr* static_cast<ctr_qt_3d_core_ffi_signal_wrapper_Qt3DCore_QJoint_ptr*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::SignalOfQJoint> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_ctr_qt_3d_core_ffi_signal_wrapper_Qt3DCore_QJoint_ptr_ptr(ptr.as_raw_ptr() as *mut ::qt_core::QObject)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::StaticUpcast<::qt_core::QObject> for crate::SignalOfQJoint {
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(ctr_qt_3d_core_ffi_signal_wrapper_Qt3DCore_QJoint_ptr* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::SignalOfQJoint>,
) -> ::cpp_core::Ptr<::qt_core::QObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_QObject_ptr18(
ptr.as_raw_ptr() as *mut crate::SignalOfQJoint
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::std::ops::Deref for crate::SignalOfQJoint {
type Target = ::qt_core::QObject;
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(ctr_qt_3d_core_ffi_signal_wrapper_Qt3DCore_QJoint_ptr* ptr)```</span>.
#[inline(always)]
fn deref(&self) -> &::qt_core::QObject {
let ffi_result = {
unsafe {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_QObject_ptr18(
self as *const crate::SignalOfQJoint as *mut crate::SignalOfQJoint,
)
}
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::DynamicCast<crate::SignalOfQJoint> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```ctr_qt_3d_core_ffi_signal_wrapper_Qt3DCore_QJoint_ptr* dynamic_cast<ctr_qt_3d_core_ffi_signal_wrapper_Qt3DCore_QJoint_ptr*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::SignalOfQJoint> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_dynamic_cast_ctr_qt_3d_core_ffi_signal_wrapper_Qt3DCore_QJoint_ptr_ptr(ptr.as_raw_ptr() as *mut ::qt_core::QObject)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::SignalOfQMatrix4X4> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```ctr_qt_3d_core_ffi_signal_wrapper_QMatrix4x4_const_ref* static_cast<ctr_qt_3d_core_ffi_signal_wrapper_QMatrix4x4_const_ref*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::SignalOfQMatrix4X4> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_ctr_qt_3d_core_ffi_signal_wrapper_QMatrix4x4_const_ref_ptr(ptr.as_raw_ptr() as *mut ::qt_core::QObject)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_core::QObject> for crate::SignalOfQMatrix4X4 {
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(ctr_qt_3d_core_ffi_signal_wrapper_QMatrix4x4_const_ref* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::SignalOfQMatrix4X4>,
) -> ::cpp_core::Ptr<::qt_core::QObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_QObject_ptr20(
ptr.as_raw_ptr() as *mut crate::SignalOfQMatrix4X4
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::std::ops::Deref for crate::SignalOfQMatrix4X4 {
type Target = ::qt_core::QObject;
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(ctr_qt_3d_core_ffi_signal_wrapper_QMatrix4x4_const_ref* ptr)```</span>.
#[inline(always)]
fn deref(&self) -> &::qt_core::QObject {
let ffi_result = {
unsafe {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_QObject_ptr20(
self as *const crate::SignalOfQMatrix4X4 as *mut crate::SignalOfQMatrix4X4,
)
}
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_core::DynamicCast<crate::SignalOfQMatrix4X4> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```ctr_qt_3d_core_ffi_signal_wrapper_QMatrix4x4_const_ref* dynamic_cast<ctr_qt_3d_core_ffi_signal_wrapper_QMatrix4x4_const_ref*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::SignalOfQMatrix4X4> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_dynamic_cast_ctr_qt_3d_core_ffi_signal_wrapper_QMatrix4x4_const_ref_ptr(ptr.as_raw_ptr() as *mut ::qt_core::QObject)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::SignalOfPropertyTrackingMode> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```ctr_qt_3d_core_ffi_signal_wrapper_Qt3DCore_QNode_PropertyTrackingMode* static_cast<ctr_qt_3d_core_ffi_signal_wrapper_Qt3DCore_QNode_PropertyTrackingMode*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::SignalOfPropertyTrackingMode> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_ctr_qt_3d_core_ffi_signal_wrapper_Qt3DCore_QNode_PropertyTrackingMode_ptr(ptr.as_raw_ptr() as *mut ::qt_core::QObject)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_core::QObject> for crate::SignalOfPropertyTrackingMode {
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(ctr_qt_3d_core_ffi_signal_wrapper_Qt3DCore_QNode_PropertyTrackingMode* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::SignalOfPropertyTrackingMode>,
) -> ::cpp_core::Ptr<::qt_core::QObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_QObject_ptr27(
ptr.as_raw_ptr() as *mut crate::SignalOfPropertyTrackingMode
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::std::ops::Deref for crate::SignalOfPropertyTrackingMode {
type Target = ::qt_core::QObject;
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(ctr_qt_3d_core_ffi_signal_wrapper_Qt3DCore_QNode_PropertyTrackingMode* ptr)```</span>.
#[inline(always)]
fn deref(&self) -> &::qt_core::QObject {
let ffi_result = {
unsafe {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_QObject_ptr27(
self as *const crate::SignalOfPropertyTrackingMode
as *mut crate::SignalOfPropertyTrackingMode,
)
}
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_core::DynamicCast<crate::SignalOfPropertyTrackingMode> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```ctr_qt_3d_core_ffi_signal_wrapper_Qt3DCore_QNode_PropertyTrackingMode* dynamic_cast<ctr_qt_3d_core_ffi_signal_wrapper_Qt3DCore_QNode_PropertyTrackingMode*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::SignalOfPropertyTrackingMode> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_dynamic_cast_ctr_qt_3d_core_ffi_signal_wrapper_Qt3DCore_QNode_PropertyTrackingMode_ptr(ptr.as_raw_ptr() as *mut ::qt_core::QObject)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::SignalOfQEntity> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```ctr_qt_3d_core_ffi_signal_wrapper_Qt3DCore_QEntity_ptr* static_cast<ctr_qt_3d_core_ffi_signal_wrapper_Qt3DCore_QEntity_ptr*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::SignalOfQEntity> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_ctr_qt_3d_core_ffi_signal_wrapper_Qt3DCore_QEntity_ptr_ptr(ptr.as_raw_ptr() as *mut ::qt_core::QObject)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_core::QObject> for crate::SignalOfQEntity {
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(ctr_qt_3d_core_ffi_signal_wrapper_Qt3DCore_QEntity_ptr* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::SignalOfQEntity>,
) -> ::cpp_core::Ptr<::qt_core::QObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_QObject_ptr29(
ptr.as_raw_ptr() as *mut crate::SignalOfQEntity
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::std::ops::Deref for crate::SignalOfQEntity {
type Target = ::qt_core::QObject;
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(ctr_qt_3d_core_ffi_signal_wrapper_Qt3DCore_QEntity_ptr* ptr)```</span>.
#[inline(always)]
fn deref(&self) -> &::qt_core::QObject {
let ffi_result = {
unsafe {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_QObject_ptr29(
self as *const crate::SignalOfQEntity as *mut crate::SignalOfQEntity,
)
}
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_core::DynamicCast<crate::SignalOfQEntity> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```ctr_qt_3d_core_ffi_signal_wrapper_Qt3DCore_QEntity_ptr* dynamic_cast<ctr_qt_3d_core_ffi_signal_wrapper_Qt3DCore_QEntity_ptr*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::SignalOfQEntity> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_dynamic_cast_ctr_qt_3d_core_ffi_signal_wrapper_Qt3DCore_QEntity_ptr_ptr(ptr.as_raw_ptr() as *mut ::qt_core::QObject)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::StaticDowncast<crate::SignalOfQAbstractSkeleton> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```ctr_qt_3d_core_ffi_signal_wrapper_Qt3DCore_QAbstractSkeleton_ptr* static_cast<ctr_qt_3d_core_ffi_signal_wrapper_Qt3DCore_QAbstractSkeleton_ptr*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::SignalOfQAbstractSkeleton> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_ctr_qt_3d_core_ffi_signal_wrapper_Qt3DCore_QAbstractSkeleton_ptr_ptr(ptr.as_raw_ptr() as *mut ::qt_core::QObject)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::StaticUpcast<::qt_core::QObject> for crate::SignalOfQAbstractSkeleton {
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(ctr_qt_3d_core_ffi_signal_wrapper_Qt3DCore_QAbstractSkeleton_ptr* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::SignalOfQAbstractSkeleton>,
) -> ::cpp_core::Ptr<::qt_core::QObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_QObject_ptr31(
ptr.as_raw_ptr() as *mut crate::SignalOfQAbstractSkeleton
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::std::ops::Deref for crate::SignalOfQAbstractSkeleton {
type Target = ::qt_core::QObject;
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(ctr_qt_3d_core_ffi_signal_wrapper_Qt3DCore_QAbstractSkeleton_ptr* ptr)```</span>.
#[inline(always)]
fn deref(&self) -> &::qt_core::QObject {
let ffi_result = {
unsafe {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_QObject_ptr31(
self as *const crate::SignalOfQAbstractSkeleton
as *mut crate::SignalOfQAbstractSkeleton,
)
}
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::DynamicCast<crate::SignalOfQAbstractSkeleton> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```ctr_qt_3d_core_ffi_signal_wrapper_Qt3DCore_QAbstractSkeleton_ptr* dynamic_cast<ctr_qt_3d_core_ffi_signal_wrapper_Qt3DCore_QAbstractSkeleton_ptr*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::SignalOfQAbstractSkeleton> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_dynamic_cast_ctr_qt_3d_core_ffi_signal_wrapper_Qt3DCore_QAbstractSkeleton_ptr_ptr(ptr.as_raw_ptr() as *mut ::qt_core::QObject)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::SignalOfQVector3D> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```ctr_qt_3d_core_ffi_signal_wrapper_QVector3D_const_ref* static_cast<ctr_qt_3d_core_ffi_signal_wrapper_QVector3D_const_ref*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::SignalOfQVector3D> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_ctr_qt_3d_core_ffi_signal_wrapper_QVector3D_const_ref_ptr(ptr.as_raw_ptr() as *mut ::qt_core::QObject)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_core::QObject> for crate::SignalOfQVector3D {
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(ctr_qt_3d_core_ffi_signal_wrapper_QVector3D_const_ref* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::SignalOfQVector3D>,
) -> ::cpp_core::Ptr<::qt_core::QObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_QObject_ptr33(
ptr.as_raw_ptr() as *mut crate::SignalOfQVector3D
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::std::ops::Deref for crate::SignalOfQVector3D {
type Target = ::qt_core::QObject;
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(ctr_qt_3d_core_ffi_signal_wrapper_QVector3D_const_ref* ptr)```</span>.
#[inline(always)]
fn deref(&self) -> &::qt_core::QObject {
let ffi_result = {
unsafe {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_QObject_ptr33(
self as *const crate::SignalOfQVector3D as *mut crate::SignalOfQVector3D,
)
}
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_core::DynamicCast<crate::SignalOfQVector3D> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```ctr_qt_3d_core_ffi_signal_wrapper_QVector3D_const_ref* dynamic_cast<ctr_qt_3d_core_ffi_signal_wrapper_QVector3D_const_ref*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::SignalOfQVector3D> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_dynamic_cast_ctr_qt_3d_core_ffi_signal_wrapper_QVector3D_const_ref_ptr(ptr.as_raw_ptr() as *mut ::qt_core::QObject)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::SignalOfFloat> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```ctr_qt_3d_core_ffi_signal_wrapper_float* static_cast<ctr_qt_3d_core_ffi_signal_wrapper_float*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::SignalOfFloat> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_ctr_qt_3d_core_ffi_signal_wrapper_float_ptr(
ptr.as_raw_ptr() as *mut ::qt_core::QObject,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_core::QObject> for crate::SignalOfFloat {
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(ctr_qt_3d_core_ffi_signal_wrapper_float* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::SignalOfFloat>,
) -> ::cpp_core::Ptr<::qt_core::QObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_QObject_ptr35(
ptr.as_raw_ptr() as *mut crate::SignalOfFloat
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::std::ops::Deref for crate::SignalOfFloat {
type Target = ::qt_core::QObject;
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(ctr_qt_3d_core_ffi_signal_wrapper_float* ptr)```</span>.
#[inline(always)]
fn deref(&self) -> &::qt_core::QObject {
let ffi_result = {
unsafe {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_QObject_ptr35(
self as *const crate::SignalOfFloat as *mut crate::SignalOfFloat,
)
}
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_core::DynamicCast<crate::SignalOfFloat> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```ctr_qt_3d_core_ffi_signal_wrapper_float* dynamic_cast<ctr_qt_3d_core_ffi_signal_wrapper_float*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::SignalOfFloat> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_dynamic_cast_ctr_qt_3d_core_ffi_signal_wrapper_float_ptr(ptr.as_raw_ptr() as *mut ::qt_core::QObject)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::StaticDowncast<crate::SignalOfStatus> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```ctr_qt_3d_core_ffi_signal_wrapper_Qt3DCore_QSkeletonLoader_Status* static_cast<ctr_qt_3d_core_ffi_signal_wrapper_Qt3DCore_QSkeletonLoader_Status*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::SignalOfStatus> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_ctr_qt_3d_core_ffi_signal_wrapper_Qt3DCore_QSkeletonLoader_Status_ptr(ptr.as_raw_ptr() as *mut ::qt_core::QObject)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::StaticUpcast<::qt_core::QObject> for crate::SignalOfStatus {
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(ctr_qt_3d_core_ffi_signal_wrapper_Qt3DCore_QSkeletonLoader_Status* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::SignalOfStatus>,
) -> ::cpp_core::Ptr<::qt_core::QObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_QObject_ptr37(
ptr.as_raw_ptr() as *mut crate::SignalOfStatus
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::std::ops::Deref for crate::SignalOfStatus {
type Target = ::qt_core::QObject;
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(ctr_qt_3d_core_ffi_signal_wrapper_Qt3DCore_QSkeletonLoader_Status* ptr)```</span>.
#[inline(always)]
fn deref(&self) -> &::qt_core::QObject {
let ffi_result = {
unsafe {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_QObject_ptr37(
self as *const crate::SignalOfStatus as *mut crate::SignalOfStatus,
)
}
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::DynamicCast<crate::SignalOfStatus> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```ctr_qt_3d_core_ffi_signal_wrapper_Qt3DCore_QSkeletonLoader_Status* dynamic_cast<ctr_qt_3d_core_ffi_signal_wrapper_Qt3DCore_QSkeletonLoader_Status*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::SignalOfStatus> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_dynamic_cast_ctr_qt_3d_core_ffi_signal_wrapper_Qt3DCore_QSkeletonLoader_Status_ptr(ptr.as_raw_ptr() as *mut ::qt_core::QObject)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::SignalOfQQuaternion> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```ctr_qt_3d_core_ffi_signal_wrapper_QQuaternion_const_ref* static_cast<ctr_qt_3d_core_ffi_signal_wrapper_QQuaternion_const_ref*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::SignalOfQQuaternion> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_ctr_qt_3d_core_ffi_signal_wrapper_QQuaternion_const_ref_ptr(ptr.as_raw_ptr() as *mut ::qt_core::QObject)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_core::QObject> for crate::SignalOfQQuaternion {
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(ctr_qt_3d_core_ffi_signal_wrapper_QQuaternion_const_ref* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::SignalOfQQuaternion>,
) -> ::cpp_core::Ptr<::qt_core::QObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_QObject_ptr39(
ptr.as_raw_ptr() as *mut crate::SignalOfQQuaternion
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::std::ops::Deref for crate::SignalOfQQuaternion {
type Target = ::qt_core::QObject;
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(ctr_qt_3d_core_ffi_signal_wrapper_QQuaternion_const_ref* ptr)```</span>.
#[inline(always)]
fn deref(&self) -> &::qt_core::QObject {
let ffi_result = {
unsafe {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_QObject_ptr39(
self as *const crate::SignalOfQQuaternion as *mut crate::SignalOfQQuaternion,
)
}
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_core::DynamicCast<crate::SignalOfQQuaternion> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```ctr_qt_3d_core_ffi_signal_wrapper_QQuaternion_const_ref* dynamic_cast<ctr_qt_3d_core_ffi_signal_wrapper_QQuaternion_const_ref*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::SignalOfQQuaternion> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_dynamic_cast_ctr_qt_3d_core_ffi_signal_wrapper_QQuaternion_const_ref_ptr(ptr.as_raw_ptr() as *mut ::qt_core::QObject)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::CppDeletable for crate::SlotOfStatus {
/// Calls C++ function: <span style='color: green;'>```[destructor] void ctr_qt_3d_core_ffi_slot_wrapper_Qt3DCore_QSkeletonLoader_Status::~ctr_qt_3d_core_ffi_slot_wrapper_Qt3DCore_QSkeletonLoader_Status()```</span>.
#[inline(always)]
unsafe fn delete(&self) {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_slot_wrapper_Qt3DCore_QSkeletonLoader_Status_dctr_qt_3d_core_ffi_slot_wrapper_Qt3DCore_QSkeletonLoader_Status(self as *const crate::SlotOfStatus as *mut crate::SlotOfStatus)
}
}
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::CppDeletable for crate::SlotOfQAbstractSkeleton {
/// Calls C++ function: <span style='color: green;'>```[destructor] void ctr_qt_3d_core_ffi_slot_wrapper_Qt3DCore_QAbstractSkeleton_ptr::~ctr_qt_3d_core_ffi_slot_wrapper_Qt3DCore_QAbstractSkeleton_ptr()```</span>.
#[inline(always)]
unsafe fn delete(&self) {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_slot_wrapper_Qt3DCore_QAbstractSkeleton_ptr_dctr_qt_3d_core_ffi_slot_wrapper_Qt3DCore_QAbstractSkeleton_ptr(self as *const crate::SlotOfQAbstractSkeleton as *mut crate::SlotOfQAbstractSkeleton)
}
}
impl ::cpp_core::CppDeletable for crate::SlotOfPropertyTrackingMode {
/// Calls C++ function: <span style='color: green;'>```[destructor] void ctr_qt_3d_core_ffi_slot_wrapper_Qt3DCore_QNode_PropertyTrackingMode::~ctr_qt_3d_core_ffi_slot_wrapper_Qt3DCore_QNode_PropertyTrackingMode()```</span>.
#[inline(always)]
unsafe fn delete(&self) {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_slot_wrapper_Qt3DCore_QNode_PropertyTrackingMode_dctr_qt_3d_core_ffi_slot_wrapper_Qt3DCore_QNode_PropertyTrackingMode(self as *const crate::SlotOfPropertyTrackingMode as *mut crate::SlotOfPropertyTrackingMode)
}
}
impl ::cpp_core::CppDeletable for crate::SlotOfQQuaternion {
/// Calls C++ function: <span style='color: green;'>```[destructor] void ctr_qt_3d_core_ffi_slot_wrapper_QQuaternion_const_ref::~ctr_qt_3d_core_ffi_slot_wrapper_QQuaternion_const_ref()```</span>.
#[inline(always)]
unsafe fn delete(&self) {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_slot_wrapper_QQuaternion_const_ref_dctr_qt_3d_core_ffi_slot_wrapper_QQuaternion_const_ref(self as *const crate::SlotOfQQuaternion as *mut crate::SlotOfQQuaternion)
}
}
impl ::cpp_core::CppDeletable for crate::SlotOfQEntity {
/// Calls C++ function: <span style='color: green;'>```[destructor] void ctr_qt_3d_core_ffi_slot_wrapper_Qt3DCore_QEntity_ptr::~ctr_qt_3d_core_ffi_slot_wrapper_Qt3DCore_QEntity_ptr()```</span>.
#[inline(always)]
unsafe fn delete(&self) {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_slot_wrapper_Qt3DCore_QEntity_ptr_dctr_qt_3d_core_ffi_slot_wrapper_Qt3DCore_QEntity_ptr(self as *const crate::SlotOfQEntity as *mut crate::SlotOfQEntity)
}
}
impl ::cpp_core::CppDeletable for crate::SlotOfQMatrix4X4 {
/// Calls C++ function: <span style='color: green;'>```[destructor] void ctr_qt_3d_core_ffi_slot_wrapper_QMatrix4x4_const_ref::~ctr_qt_3d_core_ffi_slot_wrapper_QMatrix4x4_const_ref()```</span>.
#[inline(always)]
unsafe fn delete(&self) {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_slot_wrapper_QMatrix4x4_const_ref_dctr_qt_3d_core_ffi_slot_wrapper_QMatrix4x4_const_ref(self as *const crate::SlotOfQMatrix4X4 as *mut crate::SlotOfQMatrix4X4)
}
}
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::CppDeletable for crate::SlotOfQJoint {
/// Calls C++ function: <span style='color: green;'>```[destructor] void ctr_qt_3d_core_ffi_slot_wrapper_Qt3DCore_QJoint_ptr::~ctr_qt_3d_core_ffi_slot_wrapper_Qt3DCore_QJoint_ptr()```</span>.
#[inline(always)]
unsafe fn delete(&self) {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_slot_wrapper_Qt3DCore_QJoint_ptr_dctr_qt_3d_core_ffi_slot_wrapper_Qt3DCore_QJoint_ptr(self as *const crate::SlotOfQJoint as *mut crate::SlotOfQJoint)
}
}
impl ::cpp_core::CppDeletable for crate::SlotOfFloat {
/// Calls C++ function: <span style='color: green;'>```[destructor] void ctr_qt_3d_core_ffi_slot_wrapper_float::~ctr_qt_3d_core_ffi_slot_wrapper_float()```</span>.
#[inline(always)]
unsafe fn delete(&self) {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_slot_wrapper_float_dctr_qt_3d_core_ffi_slot_wrapper_float(self as *const crate::SlotOfFloat as *mut crate::SlotOfFloat)
}
}
impl ::cpp_core::CppDeletable for crate::SlotOfQVector3D {
/// Calls C++ function: <span style='color: green;'>```[destructor] void ctr_qt_3d_core_ffi_slot_wrapper_QVector3D_const_ref::~ctr_qt_3d_core_ffi_slot_wrapper_QVector3D_const_ref()```</span>.
#[inline(always)]
unsafe fn delete(&self) {
crate::__ffi::ctr_qt_3d_core_ffi_ctr_qt_3d_core_ffi_slot_wrapper_QVector3D_const_ref_dctr_qt_3d_core_ffi_slot_wrapper_QVector3D_const_ref(self as *const crate::SlotOfQVector3D as *mut crate::SlotOfQVector3D)
}
}
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::StaticDowncast<crate::SlotOfStatus> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```ctr_qt_3d_core_ffi_slot_wrapper_Qt3DCore_QSkeletonLoader_Status* static_cast<ctr_qt_3d_core_ffi_slot_wrapper_Qt3DCore_QSkeletonLoader_Status*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::SlotOfStatus> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_ctr_qt_3d_core_ffi_slot_wrapper_Qt3DCore_QSkeletonLoader_Status_ptr(ptr.as_raw_ptr() as *mut ::qt_core::QObject)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::StaticUpcast<::qt_core::QObject> for crate::SlotOfStatus {
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(ctr_qt_3d_core_ffi_slot_wrapper_Qt3DCore_QSkeletonLoader_Status* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::SlotOfStatus>,
) -> ::cpp_core::Ptr<::qt_core::QObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_QObject_ptr40(
ptr.as_raw_ptr() as *mut crate::SlotOfStatus
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::std::ops::Deref for crate::SlotOfStatus {
type Target = ::qt_core::QObject;
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(ctr_qt_3d_core_ffi_slot_wrapper_Qt3DCore_QSkeletonLoader_Status* ptr)```</span>.
#[inline(always)]
fn deref(&self) -> &::qt_core::QObject {
let ffi_result = {
unsafe {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_QObject_ptr40(
self as *const crate::SlotOfStatus as *mut crate::SlotOfStatus,
)
}
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::DynamicCast<crate::SlotOfStatus> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```ctr_qt_3d_core_ffi_slot_wrapper_Qt3DCore_QSkeletonLoader_Status* dynamic_cast<ctr_qt_3d_core_ffi_slot_wrapper_Qt3DCore_QSkeletonLoader_Status*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::SlotOfStatus> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_dynamic_cast_ctr_qt_3d_core_ffi_slot_wrapper_Qt3DCore_QSkeletonLoader_Status_ptr(ptr.as_raw_ptr() as *mut ::qt_core::QObject)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::StaticDowncast<crate::SlotOfQAbstractSkeleton> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```ctr_qt_3d_core_ffi_slot_wrapper_Qt3DCore_QAbstractSkeleton_ptr* static_cast<ctr_qt_3d_core_ffi_slot_wrapper_Qt3DCore_QAbstractSkeleton_ptr*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::SlotOfQAbstractSkeleton> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_ctr_qt_3d_core_ffi_slot_wrapper_Qt3DCore_QAbstractSkeleton_ptr_ptr(ptr.as_raw_ptr() as *mut ::qt_core::QObject)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::StaticUpcast<::qt_core::QObject> for crate::SlotOfQAbstractSkeleton {
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(ctr_qt_3d_core_ffi_slot_wrapper_Qt3DCore_QAbstractSkeleton_ptr* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::SlotOfQAbstractSkeleton>,
) -> ::cpp_core::Ptr<::qt_core::QObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_QObject_ptr41(
ptr.as_raw_ptr() as *mut crate::SlotOfQAbstractSkeleton
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::std::ops::Deref for crate::SlotOfQAbstractSkeleton {
type Target = ::qt_core::QObject;
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(ctr_qt_3d_core_ffi_slot_wrapper_Qt3DCore_QAbstractSkeleton_ptr* ptr)```</span>.
#[inline(always)]
fn deref(&self) -> &::qt_core::QObject {
let ffi_result = {
unsafe {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_QObject_ptr41(
self as *const crate::SlotOfQAbstractSkeleton
as *mut crate::SlotOfQAbstractSkeleton,
)
}
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::DynamicCast<crate::SlotOfQAbstractSkeleton> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```ctr_qt_3d_core_ffi_slot_wrapper_Qt3DCore_QAbstractSkeleton_ptr* dynamic_cast<ctr_qt_3d_core_ffi_slot_wrapper_Qt3DCore_QAbstractSkeleton_ptr*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::SlotOfQAbstractSkeleton> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_dynamic_cast_ctr_qt_3d_core_ffi_slot_wrapper_Qt3DCore_QAbstractSkeleton_ptr_ptr(ptr.as_raw_ptr() as *mut ::qt_core::QObject)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::SlotOfPropertyTrackingMode> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```ctr_qt_3d_core_ffi_slot_wrapper_Qt3DCore_QNode_PropertyTrackingMode* static_cast<ctr_qt_3d_core_ffi_slot_wrapper_Qt3DCore_QNode_PropertyTrackingMode*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::SlotOfPropertyTrackingMode> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_ctr_qt_3d_core_ffi_slot_wrapper_Qt3DCore_QNode_PropertyTrackingMode_ptr(ptr.as_raw_ptr() as *mut ::qt_core::QObject)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_core::QObject> for crate::SlotOfPropertyTrackingMode {
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(ctr_qt_3d_core_ffi_slot_wrapper_Qt3DCore_QNode_PropertyTrackingMode* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::SlotOfPropertyTrackingMode>,
) -> ::cpp_core::Ptr<::qt_core::QObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_QObject_ptr42(
ptr.as_raw_ptr() as *mut crate::SlotOfPropertyTrackingMode
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::std::ops::Deref for crate::SlotOfPropertyTrackingMode {
type Target = ::qt_core::QObject;
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(ctr_qt_3d_core_ffi_slot_wrapper_Qt3DCore_QNode_PropertyTrackingMode* ptr)```</span>.
#[inline(always)]
fn deref(&self) -> &::qt_core::QObject {
let ffi_result = {
unsafe {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_QObject_ptr42(
self as *const crate::SlotOfPropertyTrackingMode
as *mut crate::SlotOfPropertyTrackingMode,
)
}
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_core::DynamicCast<crate::SlotOfPropertyTrackingMode> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```ctr_qt_3d_core_ffi_slot_wrapper_Qt3DCore_QNode_PropertyTrackingMode* dynamic_cast<ctr_qt_3d_core_ffi_slot_wrapper_Qt3DCore_QNode_PropertyTrackingMode*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::SlotOfPropertyTrackingMode> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_dynamic_cast_ctr_qt_3d_core_ffi_slot_wrapper_Qt3DCore_QNode_PropertyTrackingMode_ptr(ptr.as_raw_ptr() as *mut ::qt_core::QObject)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::SlotOfQQuaternion> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```ctr_qt_3d_core_ffi_slot_wrapper_QQuaternion_const_ref* static_cast<ctr_qt_3d_core_ffi_slot_wrapper_QQuaternion_const_ref*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::SlotOfQQuaternion> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_ctr_qt_3d_core_ffi_slot_wrapper_QQuaternion_const_ref_ptr(ptr.as_raw_ptr() as *mut ::qt_core::QObject)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_core::QObject> for crate::SlotOfQQuaternion {
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(ctr_qt_3d_core_ffi_slot_wrapper_QQuaternion_const_ref* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::SlotOfQQuaternion>,
) -> ::cpp_core::Ptr<::qt_core::QObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_QObject_ptr43(
ptr.as_raw_ptr() as *mut crate::SlotOfQQuaternion
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::std::ops::Deref for crate::SlotOfQQuaternion {
type Target = ::qt_core::QObject;
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(ctr_qt_3d_core_ffi_slot_wrapper_QQuaternion_const_ref* ptr)```</span>.
#[inline(always)]
fn deref(&self) -> &::qt_core::QObject {
let ffi_result = {
unsafe {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_QObject_ptr43(
self as *const crate::SlotOfQQuaternion as *mut crate::SlotOfQQuaternion,
)
}
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_core::DynamicCast<crate::SlotOfQQuaternion> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```ctr_qt_3d_core_ffi_slot_wrapper_QQuaternion_const_ref* dynamic_cast<ctr_qt_3d_core_ffi_slot_wrapper_QQuaternion_const_ref*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::SlotOfQQuaternion> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_dynamic_cast_ctr_qt_3d_core_ffi_slot_wrapper_QQuaternion_const_ref_ptr(ptr.as_raw_ptr() as *mut ::qt_core::QObject)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::SlotOfQEntity> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```ctr_qt_3d_core_ffi_slot_wrapper_Qt3DCore_QEntity_ptr* static_cast<ctr_qt_3d_core_ffi_slot_wrapper_Qt3DCore_QEntity_ptr*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::SlotOfQEntity> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_ctr_qt_3d_core_ffi_slot_wrapper_Qt3DCore_QEntity_ptr_ptr(ptr.as_raw_ptr() as *mut ::qt_core::QObject)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_core::QObject> for crate::SlotOfQEntity {
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(ctr_qt_3d_core_ffi_slot_wrapper_Qt3DCore_QEntity_ptr* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::SlotOfQEntity>,
) -> ::cpp_core::Ptr<::qt_core::QObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_QObject_ptr44(
ptr.as_raw_ptr() as *mut crate::SlotOfQEntity
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::std::ops::Deref for crate::SlotOfQEntity {
type Target = ::qt_core::QObject;
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(ctr_qt_3d_core_ffi_slot_wrapper_Qt3DCore_QEntity_ptr* ptr)```</span>.
#[inline(always)]
fn deref(&self) -> &::qt_core::QObject {
let ffi_result = {
unsafe {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_QObject_ptr44(
self as *const crate::SlotOfQEntity as *mut crate::SlotOfQEntity,
)
}
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_core::DynamicCast<crate::SlotOfQEntity> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```ctr_qt_3d_core_ffi_slot_wrapper_Qt3DCore_QEntity_ptr* dynamic_cast<ctr_qt_3d_core_ffi_slot_wrapper_Qt3DCore_QEntity_ptr*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::SlotOfQEntity> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_dynamic_cast_ctr_qt_3d_core_ffi_slot_wrapper_Qt3DCore_QEntity_ptr_ptr(ptr.as_raw_ptr() as *mut ::qt_core::QObject)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::SlotOfQMatrix4X4> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```ctr_qt_3d_core_ffi_slot_wrapper_QMatrix4x4_const_ref* static_cast<ctr_qt_3d_core_ffi_slot_wrapper_QMatrix4x4_const_ref*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::SlotOfQMatrix4X4> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_ctr_qt_3d_core_ffi_slot_wrapper_QMatrix4x4_const_ref_ptr(ptr.as_raw_ptr() as *mut ::qt_core::QObject)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_core::QObject> for crate::SlotOfQMatrix4X4 {
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(ctr_qt_3d_core_ffi_slot_wrapper_QMatrix4x4_const_ref* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::SlotOfQMatrix4X4>,
) -> ::cpp_core::Ptr<::qt_core::QObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_QObject_ptr45(
ptr.as_raw_ptr() as *mut crate::SlotOfQMatrix4X4
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::std::ops::Deref for crate::SlotOfQMatrix4X4 {
type Target = ::qt_core::QObject;
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(ctr_qt_3d_core_ffi_slot_wrapper_QMatrix4x4_const_ref* ptr)```</span>.
#[inline(always)]
fn deref(&self) -> &::qt_core::QObject {
let ffi_result = {
unsafe {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_QObject_ptr45(
self as *const crate::SlotOfQMatrix4X4 as *mut crate::SlotOfQMatrix4X4,
)
}
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_core::DynamicCast<crate::SlotOfQMatrix4X4> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```ctr_qt_3d_core_ffi_slot_wrapper_QMatrix4x4_const_ref* dynamic_cast<ctr_qt_3d_core_ffi_slot_wrapper_QMatrix4x4_const_ref*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::SlotOfQMatrix4X4> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_dynamic_cast_ctr_qt_3d_core_ffi_slot_wrapper_QMatrix4x4_const_ref_ptr(ptr.as_raw_ptr() as *mut ::qt_core::QObject)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::StaticDowncast<crate::SlotOfQJoint> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```ctr_qt_3d_core_ffi_slot_wrapper_Qt3DCore_QJoint_ptr* static_cast<ctr_qt_3d_core_ffi_slot_wrapper_Qt3DCore_QJoint_ptr*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::SlotOfQJoint> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_ctr_qt_3d_core_ffi_slot_wrapper_Qt3DCore_QJoint_ptr_ptr(ptr.as_raw_ptr() as *mut ::qt_core::QObject)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::StaticUpcast<::qt_core::QObject> for crate::SlotOfQJoint {
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(ctr_qt_3d_core_ffi_slot_wrapper_Qt3DCore_QJoint_ptr* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::SlotOfQJoint>,
) -> ::cpp_core::Ptr<::qt_core::QObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_QObject_ptr46(
ptr.as_raw_ptr() as *mut crate::SlotOfQJoint
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::std::ops::Deref for crate::SlotOfQJoint {
type Target = ::qt_core::QObject;
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(ctr_qt_3d_core_ffi_slot_wrapper_Qt3DCore_QJoint_ptr* ptr)```</span>.
#[inline(always)]
fn deref(&self) -> &::qt_core::QObject {
let ffi_result = {
unsafe {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_QObject_ptr46(
self as *const crate::SlotOfQJoint as *mut crate::SlotOfQJoint,
)
}
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.14.0",
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::DynamicCast<crate::SlotOfQJoint> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```ctr_qt_3d_core_ffi_slot_wrapper_Qt3DCore_QJoint_ptr* dynamic_cast<ctr_qt_3d_core_ffi_slot_wrapper_Qt3DCore_QJoint_ptr*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::SlotOfQJoint> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_dynamic_cast_ctr_qt_3d_core_ffi_slot_wrapper_Qt3DCore_QJoint_ptr_ptr(ptr.as_raw_ptr() as *mut ::qt_core::QObject)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::SlotOfFloat> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```ctr_qt_3d_core_ffi_slot_wrapper_float* static_cast<ctr_qt_3d_core_ffi_slot_wrapper_float*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::SlotOfFloat> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_ctr_qt_3d_core_ffi_slot_wrapper_float_ptr(
ptr.as_raw_ptr() as *mut ::qt_core::QObject,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_core::QObject> for crate::SlotOfFloat {
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(ctr_qt_3d_core_ffi_slot_wrapper_float* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::SlotOfFloat>,
) -> ::cpp_core::Ptr<::qt_core::QObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_QObject_ptr47(
ptr.as_raw_ptr() as *mut crate::SlotOfFloat
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::std::ops::Deref for crate::SlotOfFloat {
type Target = ::qt_core::QObject;
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(ctr_qt_3d_core_ffi_slot_wrapper_float* ptr)```</span>.
#[inline(always)]
fn deref(&self) -> &::qt_core::QObject {
let ffi_result = {
unsafe {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_QObject_ptr47(
self as *const crate::SlotOfFloat as *mut crate::SlotOfFloat,
)
}
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_core::DynamicCast<crate::SlotOfFloat> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```ctr_qt_3d_core_ffi_slot_wrapper_float* dynamic_cast<ctr_qt_3d_core_ffi_slot_wrapper_float*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::SlotOfFloat> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_dynamic_cast_ctr_qt_3d_core_ffi_slot_wrapper_float_ptr(
ptr.as_raw_ptr() as *mut ::qt_core::QObject,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::SlotOfQVector3D> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```ctr_qt_3d_core_ffi_slot_wrapper_QVector3D_const_ref* static_cast<ctr_qt_3d_core_ffi_slot_wrapper_QVector3D_const_ref*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::SlotOfQVector3D> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_ctr_qt_3d_core_ffi_slot_wrapper_QVector3D_const_ref_ptr(ptr.as_raw_ptr() as *mut ::qt_core::QObject)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_core::QObject> for crate::SlotOfQVector3D {
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(ctr_qt_3d_core_ffi_slot_wrapper_QVector3D_const_ref* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::SlotOfQVector3D>,
) -> ::cpp_core::Ptr<::qt_core::QObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_QObject_ptr48(
ptr.as_raw_ptr() as *mut crate::SlotOfQVector3D
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::std::ops::Deref for crate::SlotOfQVector3D {
type Target = ::qt_core::QObject;
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(ctr_qt_3d_core_ffi_slot_wrapper_QVector3D_const_ref* ptr)```</span>.
#[inline(always)]
fn deref(&self) -> &::qt_core::QObject {
let ffi_result = {
unsafe {
crate::__ffi::ctr_qt_3d_core_ffi_static_cast_QObject_ptr48(
self as *const crate::SlotOfQVector3D as *mut crate::SlotOfQVector3D,
)
}
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_core::DynamicCast<crate::SlotOfQVector3D> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```ctr_qt_3d_core_ffi_slot_wrapper_QVector3D_const_ref* dynamic_cast<ctr_qt_3d_core_ffi_slot_wrapper_QVector3D_const_ref*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::SlotOfQVector3D> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_dynamic_cast_ctr_qt_3d_core_ffi_slot_wrapper_QVector3D_const_ref_ptr(ptr.as_raw_ptr() as *mut ::qt_core::QObject)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
/// <p>Returns hash of node with <i>id</i> and optional <i>seed</i>.</p>
///
/// Calls C++ function: <span style='color: green;'>```unsigned int Qt3DCore::qHash(Qt3DCore::QNodeId id, unsigned int seed = …)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qnodeid.html#qHash">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns hash of node with <i>id</i> and optional <i>seed</i>.</p></div>
#[inline(always)]
pub unsafe fn q_hash_q_node_id_uint(
id: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QNodeId>>,
seed: ::std::os::raw::c_uint,
) -> ::std::os::raw::c_uint {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_qHash(
::cpp_core::CastInto::<::cpp_core::Ref<crate::QNodeId>>::cast_into(id).as_raw_ptr(),
seed,
)
}
/// Calls C++ function: <span style='color: green;'>```unsigned int qHash(const QVector<Qt3DCore::QAbstractAspect*>& key, unsigned int seed = …)```</span>.
#[inline(always)]
pub unsafe fn q_hash_q_vector_of_q_abstract_aspect_uint(
key: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QVectorOfQAbstractAspect>>,
seed: ::std::os::raw::c_uint,
) -> ::std::os::raw::c_uint {
crate::__ffi::ctr_qt_3d_core_ffi_qHash(
::cpp_core::CastInto::<::cpp_core::Ref<crate::QVectorOfQAbstractAspect>>::cast_into(key)
.as_raw_ptr(),
seed,
)
}
/// Calls C++ function: <span style='color: green;'>```unsigned int qHash(const QVector<Qt3DCore::QNode*>& key, unsigned int seed = …)```</span>.
#[inline(always)]
pub unsafe fn q_hash_q_vector_of_q_node_uint(
key: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QVectorOfQNode>>,
seed: ::std::os::raw::c_uint,
) -> ::std::os::raw::c_uint {
crate::__ffi::ctr_qt_3d_core_ffi_qHash1(
::cpp_core::CastInto::<::cpp_core::Ref<crate::QVectorOfQNode>>::cast_into(key).as_raw_ptr(),
seed,
)
}
/// Calls C++ function: <span style='color: green;'>```unsigned int qHash(const QVector<Qt3DCore::QNodeId>& key, unsigned int seed = …)```</span>.
#[inline(always)]
pub unsafe fn q_hash_q_vector_of_q_node_id_uint(
key: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QVectorOfQNodeId>>,
seed: ::std::os::raw::c_uint,
) -> ::std::os::raw::c_uint {
crate::__ffi::ctr_qt_3d_core_ffi_qHash2(
::cpp_core::CastInto::<::cpp_core::Ref<crate::QVectorOfQNodeId>>::cast_into(key)
.as_raw_ptr(),
seed,
)
}
/// Calls C++ function: <span style='color: green;'>```unsigned int qHash(const QVector<Qt3DCore::QEntity*>& key, unsigned int seed = …)```</span>.
#[inline(always)]
pub unsafe fn q_hash_q_vector_of_q_entity_uint(
key: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QVectorOfQEntity>>,
seed: ::std::os::raw::c_uint,
) -> ::std::os::raw::c_uint {
crate::__ffi::ctr_qt_3d_core_ffi_qHash3(
::cpp_core::CastInto::<::cpp_core::Ref<crate::QVectorOfQEntity>>::cast_into(key)
.as_raw_ptr(),
seed,
)
}
/// Calls C++ function: <span style='color: green;'>```unsigned int qHash(const QVector<Qt3DCore::QComponent*>& key, unsigned int seed = …)```</span>.
#[inline(always)]
pub unsafe fn q_hash_q_vector_of_q_component_uint(
key: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QVectorOfQComponent>>,
seed: ::std::os::raw::c_uint,
) -> ::std::os::raw::c_uint {
crate::__ffi::ctr_qt_3d_core_ffi_qHash4(
::cpp_core::CastInto::<::cpp_core::Ref<crate::QVectorOfQComponent>>::cast_into(key)
.as_raw_ptr(),
seed,
)
}
/// Calls C++ function: <span style='color: green;'>```unsigned int qHash(const QVector<Qt3DCore::QAbstractAspect*>& key)```</span>.
#[inline(always)]
pub unsafe fn q_hash_q_vector_of_q_abstract_aspect(
key: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QVectorOfQAbstractAspect>>,
) -> ::std::os::raw::c_uint {
crate::__ffi::ctr_qt_3d_core_ffi_qHash6(
::cpp_core::CastInto::<::cpp_core::Ref<crate::QVectorOfQAbstractAspect>>::cast_into(key)
.as_raw_ptr(),
)
}
/// Calls C++ function: <span style='color: green;'>```unsigned int qHash(const QVector<Qt3DCore::QNode*>& key)```</span>.
#[inline(always)]
pub unsafe fn q_hash_q_vector_of_q_node(
key: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QVectorOfQNode>>,
) -> ::std::os::raw::c_uint {
crate::__ffi::ctr_qt_3d_core_ffi_qHash7(
::cpp_core::CastInto::<::cpp_core::Ref<crate::QVectorOfQNode>>::cast_into(key).as_raw_ptr(),
)
}
/// Calls C++ function: <span style='color: green;'>```unsigned int qHash(const QVector<Qt3DCore::QNodeId>& key)```</span>.
#[inline(always)]
pub unsafe fn q_hash_q_vector_of_q_node_id(
key: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QVectorOfQNodeId>>,
) -> ::std::os::raw::c_uint {
crate::__ffi::ctr_qt_3d_core_ffi_qHash8(
::cpp_core::CastInto::<::cpp_core::Ref<crate::QVectorOfQNodeId>>::cast_into(key)
.as_raw_ptr(),
)
}
/// Calls C++ function: <span style='color: green;'>```unsigned int qHash(const QVector<Qt3DCore::QEntity*>& key)```</span>.
#[inline(always)]
pub unsafe fn q_hash_q_vector_of_q_entity(
key: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QVectorOfQEntity>>,
) -> ::std::os::raw::c_uint {
crate::__ffi::ctr_qt_3d_core_ffi_qHash9(
::cpp_core::CastInto::<::cpp_core::Ref<crate::QVectorOfQEntity>>::cast_into(key)
.as_raw_ptr(),
)
}
/// Calls C++ function: <span style='color: green;'>```unsigned int qHash(const QVector<Qt3DCore::QComponent*>& key)```</span>.
#[inline(always)]
pub unsafe fn q_hash_q_vector_of_q_component(
key: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QVectorOfQComponent>>,
) -> ::std::os::raw::c_uint {
crate::__ffi::ctr_qt_3d_core_ffi_qHash10(
::cpp_core::CastInto::<::cpp_core::Ref<crate::QVectorOfQComponent>>::cast_into(key)
.as_raw_ptr(),
)
}
/// <p>Returns hash of node with <i>id</i> and optional <i>seed</i>.</p>
///
/// Calls C++ function: <span style='color: green;'>```unsigned int Qt3DCore::qHash(Qt3DCore::QNodeId id)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qnodeid.html#qHash">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns hash of node with <i>id</i> and optional <i>seed</i>.</p></div>
#[inline(always)]
pub unsafe fn q_hash_q_node_id(
id: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QNodeId>>,
) -> ::std::os::raw::c_uint {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_qHash1(
::cpp_core::CastInto::<::cpp_core::Ref<crate::QNodeId>>::cast_into(id).as_raw_ptr(),
)
}
/// Calls C++ function: <span style='color: green;'>```unsigned int qHash(const QVector<Qt3DCore::QJoint*>& key, unsigned int seed = …)```</span>.
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn q_hash_q_vector_of_q_joint_uint(
key: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QVectorOfQJoint>>,
seed: ::std::os::raw::c_uint,
) -> ::std::os::raw::c_uint {
crate::__ffi::ctr_qt_3d_core_ffi_qHash24(
::cpp_core::CastInto::<::cpp_core::Ref<crate::QVectorOfQJoint>>::cast_into(key)
.as_raw_ptr(),
seed,
)
}
/// Calls C++ function: <span style='color: green;'>```unsigned int qHash(const QVector<Qt3DCore::QJoint*>& key)```</span>.
#[inline(always)]
#[cfg_attr(
feature = "ritual_rustdoc_nightly",
doc(cfg(any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
)))
)]
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0",
cpp_lib_version = "5.14.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn q_hash_q_vector_of_q_joint(
key: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QVectorOfQJoint>>,
) -> ::std::os::raw::c_uint {
crate::__ffi::ctr_qt_3d_core_ffi_qHash25(
::cpp_core::CastInto::<::cpp_core::Ref<crate::QVectorOfQJoint>>::cast_into(key)
.as_raw_ptr(),
)
}
/// <p>Returns node id for <i>node</i>.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNodeId Qt3DCore::qIdForNode(Qt3DCore::QNode* node)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html#qIdForNode">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns node id for <i>node</i>.</p></div>
#[inline(always)]
pub unsafe fn q_id_for_node(
node: impl ::cpp_core::CastInto<::cpp_core::Ptr<crate::QNode>>,
) -> ::cpp_core::CppBox<crate::QNodeId> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_qIdForNode(
::cpp_core::CastInto::<::cpp_core::Ptr<crate::QNode>>::cast_into(node).as_raw_ptr()
as *mut crate::QNode,
)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p><< with <i>d</i> and <i>id</i>. Returns <a href="http://doc.qt.io/qt-5/qdebug.html">QDebug</a>.</p>
///
/// Calls C++ function: <span style='color: green;'>```QDebug Qt3DCore::operator<<(QDebug d, Qt3DCore::QNodeId id)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore.html#operator-lt-lt">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p><< with <i>d</i> and <i>id</i>. Returns <a href="http://doc.qt.io/qt-5/qdebug.html">QDebug</a>.</p></div>
#[inline(always)]
pub unsafe fn shl(
d: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_core::QDebug>>,
id: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QNodeId>>,
) -> ::cpp_core::CppBox<::qt_core::QDebug> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_core_ffi_Qt3DCore_operator__(
::cpp_core::CastInto::<::cpp_core::Ref<::qt_core::QDebug>>::cast_into(d).as_raw_ptr(),
::cpp_core::CastInto::<::cpp_core::Ref<crate::QNodeId>>::cast_into(id).as_raw_ptr(),
)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}