#![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_3d_core;
pub use ::qt_core;
pub use ::qt_gui;
/// <p><a href="http://doc.qt.io/qt-5/qt3dinput-qabstractactioninput.html">QAbstractActionInput</a> is the base class for the Action Input and all Aggregate Action Inputs.</p>
///
/// C++ class: <span style='color: green;'>```Qt3DInput::QAbstractActionInput```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qabstractactioninput.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p><a href="http://doc.qt.io/qt-5/qt3dinput-qabstractactioninput.html">QAbstractActionInput</a> is the base class for the Action Input and all Aggregate Action Inputs.</p></div>
#[repr(C)]
pub struct QAbstractActionInput {
_unused: u8,
}
impl QAbstractActionInput {
/// Calls C++ function: <span style='color: green;'>```virtual const QMetaObject* Qt3DInput::QAbstractActionInput::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_input_ffi_Qt3DInput_QAbstractActionInput_metaObject(
self as *const crate::QAbstractActionInput,
)
};
::cpp_core::Ptr::from_raw(ffi_result as *mut ::qt_core::QMetaObject)
}
/// Calls C++ function: <span style='color: green;'>```virtual int Qt3DInput::QAbstractActionInput::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_input_ffi_Qt3DInput_QAbstractActionInput_qt_metacall(
self as *const crate::QAbstractActionInput as *mut crate::QAbstractActionInput,
arg1,
arg2,
arg3,
)
}
/// Calls C++ function: <span style='color: green;'>```virtual void* Qt3DInput::QAbstractActionInput::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_input_ffi_Qt3DInput_QAbstractActionInput_qt_metacast(
self as *const crate::QAbstractActionInput as *mut crate::QAbstractActionInput,
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_input_ffi_Qt3DInput_QAbstractActionInput_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 Qt3DInput::QAbstractActionInput::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_input_ffi_Qt3DInput_QAbstractActionInput_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 Qt3DInput::QAbstractActionInput::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_input_ffi_Qt3DInput_QAbstractActionInput_trUtf8(s, c, n) };
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
}
/// <p><a href="http://doc.qt.io/qt-5/qt3dinput-qabstractphysicaldevice.html">QAbstractPhysicalDevice</a> is the base class used by Qt3d to interact with arbitrary input devices.</p>
///
/// C++ class: <span style='color: green;'>```Qt3DInput::QAbstractPhysicalDevice```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qabstractphysicaldevice.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p><a href="http://doc.qt.io/qt-5/qt3dinput-qabstractphysicaldevice.html">QAbstractPhysicalDevice</a> is the base class used by Qt3d to interact with arbitrary input devices.</p></div>
#[repr(C)]
pub struct QAbstractPhysicalDevice {
_unused: u8,
}
impl QAbstractPhysicalDevice {
/// <p>Add the axisSetting <i>axisSetting</i> to this device.</p>
///
/// Calls C++ function: <span style='color: green;'>```void Qt3DInput::QAbstractPhysicalDevice::addAxisSetting(Qt3DInput::QAxisSetting* axisSetting)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qabstractphysicaldevice.html#addAxisSetting">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Add the axisSetting <i>axisSetting</i> to this device.</p></div>
#[inline(always)]
pub unsafe fn add_axis_setting(
&self,
axis_setting: impl ::cpp_core::CastInto<::cpp_core::Ptr<crate::QAxisSetting>>,
) {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QAbstractPhysicalDevice_addAxisSetting(
self as *const crate::QAbstractPhysicalDevice as *mut crate::QAbstractPhysicalDevice,
::cpp_core::CastInto::<::cpp_core::Ptr<crate::QAxisSetting>>::cast_into(axis_setting)
.as_raw_ptr() as *mut crate::QAxisSetting,
)
}
/// <p>Returns the number of axis this device has.</p>
///
/// Calls C++ function: <span style='color: green;'>```virtual int Qt3DInput::QAbstractPhysicalDevice::axisCount() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qabstractphysicaldevice.html#axisCount">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the number of axis this device has.</p></div>
#[inline(always)]
pub unsafe fn axis_count(&self) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QAbstractPhysicalDevice_axisCount(
self as *const crate::QAbstractPhysicalDevice,
)
}
/// <p>Returns the integer identifer of the axis <i>name</i> or -1 if it does not exist on this device.</p>
///
/// Calls C++ function: <span style='color: green;'>```virtual int Qt3DInput::QAbstractPhysicalDevice::axisIdentifier(const QString& name) const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qabstractphysicaldevice.html#axisIdentifier">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the integer identifer of the axis <i>name</i> or -1 if it does not exist on this device.</p></div>
#[inline(always)]
pub unsafe fn axis_identifier(
&self,
name: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_core::QString>>,
) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QAbstractPhysicalDevice_axisIdentifier(
self as *const crate::QAbstractPhysicalDevice,
::cpp_core::CastInto::<::cpp_core::Ref<::qt_core::QString>>::cast_into(name)
.as_raw_ptr(),
)
}
/// <p>Returns a list of the names of device's axis.</p>
///
/// Calls C++ function: <span style='color: green;'>```virtual QStringList Qt3DInput::QAbstractPhysicalDevice::axisNames() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qabstractphysicaldevice.html#axisNames">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns a list of the names of device's axis.</p></div>
#[inline(always)]
pub unsafe fn axis_names(&self) -> ::cpp_core::CppBox<::qt_core::QStringList> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QAbstractPhysicalDevice_axisNames(
self as *const crate::QAbstractPhysicalDevice,
)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Returns the axisSettings associated with this device.</p>
///
/// Calls C++ function: <span style='color: green;'>```QVector<Qt3DInput::QAxisSetting*> Qt3DInput::QAbstractPhysicalDevice::axisSettings() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qabstractphysicaldevice.html#axisSettings">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the axisSettings associated with this device.</p></div>
#[inline(always)]
pub unsafe fn axis_settings(&self) -> ::cpp_core::CppBox<crate::QVectorOfQAxisSetting> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QAbstractPhysicalDevice_axisSettings(
self as *const crate::QAbstractPhysicalDevice,
)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Returns the number of buttons this device has.</p>
///
/// Calls C++ function: <span style='color: green;'>```virtual int Qt3DInput::QAbstractPhysicalDevice::buttonCount() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qabstractphysicaldevice.html#buttonCount">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the number of buttons this device has.</p></div>
#[inline(always)]
pub unsafe fn button_count(&self) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QAbstractPhysicalDevice_buttonCount(
self as *const crate::QAbstractPhysicalDevice,
)
}
/// <p>Returns the integer identifer of the button <i>name</i> or -1 if it does not exist on this device.</p>
///
/// Calls C++ function: <span style='color: green;'>```virtual int Qt3DInput::QAbstractPhysicalDevice::buttonIdentifier(const QString& name) const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qabstractphysicaldevice.html#buttonIdentifier">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the integer identifer of the button <i>name</i> or -1 if it does not exist on this device.</p></div>
#[inline(always)]
pub unsafe fn button_identifier(
&self,
name: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_core::QString>>,
) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QAbstractPhysicalDevice_buttonIdentifier(
self as *const crate::QAbstractPhysicalDevice,
::cpp_core::CastInto::<::cpp_core::Ref<::qt_core::QString>>::cast_into(name)
.as_raw_ptr(),
)
}
/// <p>Returns a list of the names of device's buttons.</p>
///
/// Calls C++ function: <span style='color: green;'>```virtual QStringList Qt3DInput::QAbstractPhysicalDevice::buttonNames() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qabstractphysicaldevice.html#buttonNames">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns a list of the names of device's buttons.</p></div>
#[inline(always)]
pub unsafe fn button_names(&self) -> ::cpp_core::CppBox<::qt_core::QStringList> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QAbstractPhysicalDevice_buttonNames(
self as *const crate::QAbstractPhysicalDevice,
)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// Calls C++ function: <span style='color: green;'>```virtual const QMetaObject* Qt3DInput::QAbstractPhysicalDevice::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_input_ffi_Qt3DInput_QAbstractPhysicalDevice_metaObject(
self as *const crate::QAbstractPhysicalDevice,
)
};
::cpp_core::Ptr::from_raw(ffi_result as *mut ::qt_core::QMetaObject)
}
/// <p>Constructs a new <a href="http://doc.qt.io/qt-5/qt3dinput-qabstractphysicaldevice.html">QAbstractPhysicalDevice</a> instance with <i>parent</i>.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DInput::QAbstractPhysicalDevice::QAbstractPhysicalDevice(Qt3DCore::QNode* parent = …)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qabstractphysicaldevice.html#QAbstractPhysicalDevice">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/qt3dinput-qabstractphysicaldevice.html">QAbstractPhysicalDevice</a> instance with <i>parent</i>.</p></div>
#[inline(always)]
pub unsafe fn new_1a(
parent: impl ::cpp_core::CastInto<::cpp_core::Ptr<::qt_3d_core::QNode>>,
) -> ::qt_core::QBox<crate::QAbstractPhysicalDevice> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QAbstractPhysicalDevice_QAbstractPhysicalDevice(::cpp_core::CastInto::<::cpp_core::Ptr<::qt_3d_core::QNode>>::cast_into(parent).as_raw_ptr() as *mut ::qt_3d_core::QNode)
};
::qt_core::QBox::from_raw(ffi_result)
}
/// <p><a href="http://doc.qt.io/qt-5/qt3dinput-qabstractphysicaldevice.html">QAbstractPhysicalDevice</a> is the base class used by Qt3d to interact with arbitrary input devices.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DInput::QAbstractPhysicalDevice::QAbstractPhysicalDevice()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qabstractphysicaldevice.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p><a href="http://doc.qt.io/qt-5/qt3dinput-qabstractphysicaldevice.html">QAbstractPhysicalDevice</a> is the base class used by Qt3d to interact with arbitrary input devices.</p></div>
#[inline(always)]
pub unsafe fn new_0a() -> ::qt_core::QBox<crate::QAbstractPhysicalDevice> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QAbstractPhysicalDevice_QAbstractPhysicalDevice1()
};
::qt_core::QBox::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```virtual int Qt3DInput::QAbstractPhysicalDevice::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_input_ffi_Qt3DInput_QAbstractPhysicalDevice_qt_metacall(
self as *const crate::QAbstractPhysicalDevice as *mut crate::QAbstractPhysicalDevice,
arg1,
arg2,
arg3,
)
}
/// Calls C++ function: <span style='color: green;'>```virtual void* Qt3DInput::QAbstractPhysicalDevice::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_input_ffi_Qt3DInput_QAbstractPhysicalDevice_qt_metacast(
self as *const crate::QAbstractPhysicalDevice as *mut crate::QAbstractPhysicalDevice,
arg1,
)
}
/// <p>Remove the axisSetting <i>axisSetting</i> to this device.</p>
///
/// Calls C++ function: <span style='color: green;'>```void Qt3DInput::QAbstractPhysicalDevice::removeAxisSetting(Qt3DInput::QAxisSetting* axisSetting)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qabstractphysicaldevice.html#removeAxisSetting">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Remove the axisSetting <i>axisSetting</i> to this device.</p></div>
#[inline(always)]
pub unsafe fn remove_axis_setting(
&self,
axis_setting: impl ::cpp_core::CastInto<::cpp_core::Ptr<crate::QAxisSetting>>,
) {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QAbstractPhysicalDevice_removeAxisSetting(
self as *const crate::QAbstractPhysicalDevice as *mut crate::QAbstractPhysicalDevice,
::cpp_core::CastInto::<::cpp_core::Ptr<crate::QAxisSetting>>::cast_into(axis_setting)
.as_raw_ptr() as *mut crate::QAxisSetting,
)
}
/// 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_input_ffi_Qt3DInput_QAbstractPhysicalDevice_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 Qt3DInput::QAbstractPhysicalDevice::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_input_ffi_Qt3DInput_QAbstractPhysicalDevice_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 Qt3DInput::QAbstractPhysicalDevice::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_input_ffi_Qt3DInput_QAbstractPhysicalDevice_trUtf8(s, c, n) };
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
}
/// <p><a href="http://doc.qt.io/qt-5/qt3dinput-qabstractactioninput.html">QAbstractActionInput</a> is the base class for all Axis Input.</p>
///
/// C++ class: <span style='color: green;'>```Qt3DInput::QAbstractAxisInput```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qabstractaxisinput.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p><a href="http://doc.qt.io/qt-5/qt3dinput-qabstractactioninput.html">QAbstractActionInput</a> is the base class for all Axis Input.</p></div>
#[repr(C)]
pub struct QAbstractAxisInput {
_unused: u8,
}
impl QAbstractAxisInput {
/// <p>The source device for the <a href="http://doc.qt.io/qt-5/qt3dinput-qabstractaxisinput.html">QAbstractAxisInput</a>.</p>
///
/// Returns a built-in Qt slot `Qt3DInput::QAbstractAxisInput::setSourceDevice` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qabstractaxisinput.html#sourceDevice-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>The source device for the <a href="http://doc.qt.io/qt-5/qt3dinput-qabstractaxisinput.html">QAbstractAxisInput</a>.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QAbstractPhysicalDevice *</td><td class="memItemRight bottomAlign"><span class="name"><b>sourceDevice</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setSourceDevice</b></span>(QAbstractPhysicalDevice *<i>sourceDevice</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>sourceDeviceChanged</b></span>(QAbstractPhysicalDevice *<i>sourceDevice</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub fn slot_set_source_device(
&self,
) -> ::qt_core::Receiver<(*mut crate::QAbstractPhysicalDevice,)> {
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"1setSourceDevice(Qt3DInput::QAbstractPhysicalDevice *)\0",
),
)
}
}
/// <p>The source device for the <a href="http://doc.qt.io/qt-5/qt3dinput-qabstractaxisinput.html">QAbstractAxisInput</a>.</p>
///
/// Returns a built-in Qt signal `Qt3DInput::QAbstractAxisInput::sourceDeviceChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qabstractaxisinput.html#sourceDevice-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>The source device for the <a href="http://doc.qt.io/qt-5/qt3dinput-qabstractaxisinput.html">QAbstractAxisInput</a>.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QAbstractPhysicalDevice *</td><td class="memItemRight bottomAlign"><span class="name"><b>sourceDevice</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setSourceDevice</b></span>(QAbstractPhysicalDevice *<i>sourceDevice</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>sourceDeviceChanged</b></span>(QAbstractPhysicalDevice *<i>sourceDevice</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub fn source_device_changed(
&self,
) -> ::qt_core::Signal<(*mut crate::QAbstractPhysicalDevice,)> {
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"2sourceDeviceChanged(Qt3DInput::QAbstractPhysicalDevice *)\0",
),
)
}
}
/// Calls C++ function: <span style='color: green;'>```virtual const QMetaObject* Qt3DInput::QAbstractAxisInput::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_input_ffi_Qt3DInput_QAbstractAxisInput_metaObject(
self as *const crate::QAbstractAxisInput,
)
};
::cpp_core::Ptr::from_raw(ffi_result as *mut ::qt_core::QMetaObject)
}
/// Calls C++ function: <span style='color: green;'>```virtual int Qt3DInput::QAbstractAxisInput::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_input_ffi_Qt3DInput_QAbstractAxisInput_qt_metacall(
self as *const crate::QAbstractAxisInput as *mut crate::QAbstractAxisInput,
arg1,
arg2,
arg3,
)
}
/// Calls C++ function: <span style='color: green;'>```virtual void* Qt3DInput::QAbstractAxisInput::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_input_ffi_Qt3DInput_QAbstractAxisInput_qt_metacast(
self as *const crate::QAbstractAxisInput as *mut crate::QAbstractAxisInput,
arg1,
)
}
/// <p>The source device for the <a href="http://doc.qt.io/qt-5/qt3dinput-qabstractaxisinput.html">QAbstractAxisInput</a>.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DInput::QAbstractAxisInput::setSourceDevice(Qt3DInput::QAbstractPhysicalDevice* sourceDevice)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qabstractaxisinput.html#sourceDevice-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>The source device for the <a href="http://doc.qt.io/qt-5/qt3dinput-qabstractaxisinput.html">QAbstractAxisInput</a>.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QAbstractPhysicalDevice *</td><td class="memItemRight bottomAlign"><span class="name"><b>sourceDevice</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setSourceDevice</b></span>(QAbstractPhysicalDevice *<i>sourceDevice</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>sourceDeviceChanged</b></span>(QAbstractPhysicalDevice *<i>sourceDevice</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub unsafe fn set_source_device(
&self,
source_device: impl ::cpp_core::CastInto<::cpp_core::Ptr<crate::QAbstractPhysicalDevice>>,
) {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QAbstractAxisInput_setSourceDevice(
self as *const crate::QAbstractAxisInput as *mut crate::QAbstractAxisInput,
::cpp_core::CastInto::<::cpp_core::Ptr<crate::QAbstractPhysicalDevice>>::cast_into(
source_device,
)
.as_raw_ptr() as *mut crate::QAbstractPhysicalDevice,
)
}
/// <p>The source device for the <a href="http://doc.qt.io/qt-5/qt3dinput-qabstractaxisinput.html">QAbstractAxisInput</a>.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QAbstractPhysicalDevice* Qt3DInput::QAbstractAxisInput::sourceDevice() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qabstractaxisinput.html#sourceDevice-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>The source device for the <a href="http://doc.qt.io/qt-5/qt3dinput-qabstractaxisinput.html">QAbstractAxisInput</a>.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QAbstractPhysicalDevice *</td><td class="memItemRight bottomAlign"><span class="name"><b>sourceDevice</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setSourceDevice</b></span>(QAbstractPhysicalDevice *<i>sourceDevice</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>sourceDeviceChanged</b></span>(QAbstractPhysicalDevice *<i>sourceDevice</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub unsafe fn source_device(&self) -> ::qt_core::QPtr<crate::QAbstractPhysicalDevice> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QAbstractAxisInput_sourceDevice(
self as *const crate::QAbstractAxisInput,
)
};
::qt_core::QPtr::from_raw(ffi_result)
}
/// 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_input_ffi_Qt3DInput_QAbstractAxisInput_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 Qt3DInput::QAbstractAxisInput::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_input_ffi_Qt3DInput_QAbstractAxisInput_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 Qt3DInput::QAbstractAxisInput::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_input_ffi_Qt3DInput_QAbstractAxisInput_trUtf8(s, c, n) };
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
}
/// <p>Links a set of <a href="http://doc.qt.io/qt-5/qt3dinput-qabstractactioninput.html">QAbstractActionInput</a> that trigger the same event.</p>
///
/// C++ class: <span style='color: green;'>```Qt3DInput::QAction```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qaction.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Links a set of <a href="http://doc.qt.io/qt-5/qt3dinput-qabstractactioninput.html">QAbstractActionInput</a> that trigger the same event.</p></div>
#[repr(C)]
pub struct QAction {
_unused: u8,
}
impl QAction {
/// <p>Holds <code>true</code> if the action is active.</p>
///
/// Returns a built-in Qt signal `Qt3DInput::QAction::activeChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qaction.html#active-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds <code>true</code> if the action is active.</p>
/// <p>Note this property is not updated when the action is disabled.</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>isActive</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>activeChanged</b></span>(bool <i>isActive</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub fn active_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"2activeChanged(bool)\0"),
)
}
}
/// <p>Append <a href="http://doc.qt.io/qt-5/qt3dinput-qabstractactioninput.html">QAbstractActionInput</a> <i>input</i> to the list of inputs that can trigger this action.</p>
///
/// Calls C++ function: <span style='color: green;'>```void Qt3DInput::QAction::addInput(Qt3DInput::QAbstractActionInput* input)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qaction.html#addInput">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Append <a href="http://doc.qt.io/qt-5/qt3dinput-qabstractactioninput.html">QAbstractActionInput</a> <i>input</i> to the list of inputs that can trigger this action.</p></div>
#[inline(always)]
pub unsafe fn add_input(
&self,
input: impl ::cpp_core::CastInto<::cpp_core::Ptr<crate::QAbstractActionInput>>,
) {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QAction_addInput(
self as *const crate::QAction as *mut crate::QAction,
::cpp_core::CastInto::<::cpp_core::Ptr<crate::QAbstractActionInput>>::cast_into(input)
.as_raw_ptr() as *mut crate::QAbstractActionInput,
)
}
/// <p>Returns the list of inputs that can trigger this action.</p>
///
/// Calls C++ function: <span style='color: green;'>```QVector<Qt3DInput::QAbstractActionInput*> Qt3DInput::QAction::inputs() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qaction.html#inputs">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the list of inputs that can trigger this action.</p></div>
#[inline(always)]
pub unsafe fn inputs(&self) -> ::cpp_core::CppBox<crate::QVectorOfQAbstractActionInput> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QAction_inputs(
self as *const crate::QAction,
)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Holds <code>true</code> if the action is active.</p>
///
/// Calls C++ function: <span style='color: green;'>```bool Qt3DInput::QAction::isActive() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qaction.html#active-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds <code>true</code> if the action is active.</p>
/// <p>Note this property is not updated when the action is disabled.</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>isActive</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>activeChanged</b></span>(bool <i>isActive</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub unsafe fn is_active(&self) -> bool {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QAction_isActive(self as *const crate::QAction)
}
/// Calls C++ function: <span style='color: green;'>```virtual const QMetaObject* Qt3DInput::QAction::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_input_ffi_Qt3DInput_QAction_metaObject(
self as *const crate::QAction,
)
};
::cpp_core::Ptr::from_raw(ffi_result as *mut ::qt_core::QMetaObject)
}
/// <p>Constructs a new <a href="http://doc.qt.io/qt-5/qt3dinput-qaction.html">QAction</a> instance with parent <i>parent</i>.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DInput::QAction::QAction(Qt3DCore::QNode* parent = …)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qaction.html#QAction">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/qt3dinput-qaction.html">QAction</a> instance with parent <i>parent</i>.</p></div>
#[inline(always)]
pub unsafe fn new_1a(
parent: impl ::cpp_core::CastInto<::cpp_core::Ptr<::qt_3d_core::QNode>>,
) -> ::qt_core::QBox<crate::QAction> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QAction_QAction(
::cpp_core::CastInto::<::cpp_core::Ptr<::qt_3d_core::QNode>>::cast_into(parent)
.as_raw_ptr() as *mut ::qt_3d_core::QNode,
)
};
::qt_core::QBox::from_raw(ffi_result)
}
/// <p>Links a set of <a href="http://doc.qt.io/qt-5/qt3dinput-qabstractactioninput.html">QAbstractActionInput</a> that trigger the same event.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DInput::QAction::QAction()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qaction.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Links a set of <a href="http://doc.qt.io/qt-5/qt3dinput-qabstractactioninput.html">QAbstractActionInput</a> that trigger the same event.</p></div>
#[inline(always)]
pub unsafe fn new_0a() -> ::qt_core::QBox<crate::QAction> {
let ffi_result = { crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QAction_QAction1() };
::qt_core::QBox::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```virtual int Qt3DInput::QAction::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_input_ffi_Qt3DInput_QAction_qt_metacall(
self as *const crate::QAction as *mut crate::QAction,
arg1,
arg2,
arg3,
)
}
/// Calls C++ function: <span style='color: green;'>```virtual void* Qt3DInput::QAction::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_input_ffi_Qt3DInput_QAction_qt_metacast(
self as *const crate::QAction as *mut crate::QAction,
arg1,
)
}
/// <p>Remove <a href="http://doc.qt.io/qt-5/qt3dinput-qabstractactioninput.html">QAbstractActionInput</a> <i>input</i> to the list of inputs that can trigger this action.</p>
///
/// Calls C++ function: <span style='color: green;'>```void Qt3DInput::QAction::removeInput(Qt3DInput::QAbstractActionInput* input)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qaction.html#removeInput">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Remove <a href="http://doc.qt.io/qt-5/qt3dinput-qabstractactioninput.html">QAbstractActionInput</a> <i>input</i> to the list of inputs that can trigger this action.</p></div>
#[inline(always)]
pub unsafe fn remove_input(
&self,
input: impl ::cpp_core::CastInto<::cpp_core::Ptr<crate::QAbstractActionInput>>,
) {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QAction_removeInput(
self as *const crate::QAction as *mut crate::QAction,
::cpp_core::CastInto::<::cpp_core::Ptr<crate::QAbstractActionInput>>::cast_into(input)
.as_raw_ptr() as *mut crate::QAbstractActionInput,
)
}
/// 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_input_ffi_Qt3DInput_QAction_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 Qt3DInput::QAction::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_input_ffi_Qt3DInput_QAction_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 Qt3DInput::QAction::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_input_ffi_Qt3DInput_QAction_trUtf8(s, c, n) };
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
}
/// <p><a href="http://doc.qt.io/qt-5/qt3dinput-qactioninput.html">QActionInput</a> stores Device and Buttons used to trigger an input event.</p>
///
/// C++ class: <span style='color: green;'>```Qt3DInput::QActionInput```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qactioninput.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p><a href="http://doc.qt.io/qt-5/qt3dinput-qactioninput.html">QActionInput</a> stores Device and Buttons used to trigger an input event.</p></div>
#[repr(C)]
pub struct QActionInput {
_unused: u8,
}
impl QActionInput {
/// <p>The current source device of the <a href="http://doc.qt.io/qt-5/qt3dinput-qactioninput.html">QActionInput</a>.</p>
///
/// Returns a built-in Qt slot `Qt3DInput::QActionInput::setSourceDevice` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qactioninput.html#sourceDevice-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>The current source device of the <a href="http://doc.qt.io/qt-5/qt3dinput-qactioninput.html">QActionInput</a>.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QAbstractPhysicalDevice *</td><td class="memItemRight bottomAlign"><span class="name"><b>sourceDevice</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setSourceDevice</b></span>(QAbstractPhysicalDevice *<i>sourceDevice</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><a href="http://doc.qt.io/qt-5/qt3dinput-qactioninput.html#sourceDeviceChanged">sourceDeviceChanged</a></b></span>(QAbstractPhysicalDevice *<i>sourceDevice</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub fn slot_set_source_device(
&self,
) -> ::qt_core::Receiver<(*mut crate::QAbstractPhysicalDevice,)> {
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"1setSourceDevice(Qt3DInput::QAbstractPhysicalDevice *)\0",
),
)
}
}
/// <p>Set the buttons to trigger the <a href="http://doc.qt.io/qt-5/qt3dinput-qactioninput.html">QActionInput</a> instance to <i>buttons</i>.</p>
///
/// Returns a built-in Qt slot `Qt3DInput::QActionInput::setButtons` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qactioninput.html#setButtons">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Set the buttons to trigger the <a href="http://doc.qt.io/qt-5/qt3dinput-qactioninput.html">QActionInput</a> instance to <i>buttons</i>.</p>
/// <p><b>Note:</b> Setter function for property <a href="http://doc.qt.io/qt-5/qt3dinput-qactioninput.html#buttons-prop">buttons</a>. </p><p><b>See also </b><a href="http://doc.qt.io/qt-5/qt3dinput-qactioninput.html#buttons-prop">buttons</a>().</p></div>
#[inline(always)]
pub fn slot_set_buttons(&self) -> ::qt_core::Receiver<(*const ::qt_core::QVectorOfInt,)> {
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"1setButtons(QVector< int > const &)\0",
),
)
}
}
/// <p>This signal is emitted when the source device associated with the action input is changed to <i>sourceDevice</i>.</p>
///
/// Returns a built-in Qt signal `Qt3DInput::QActionInput::sourceDeviceChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qactioninput.html#sourceDeviceChanged">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This signal is emitted when the source device associated with the action input is changed to <i>sourceDevice</i>.</p>
/// <p><b>Note:</b> Notifier signal for property <a href="http://doc.qt.io/qt-5/qt3dinput-qactioninput.html#sourceDevice-prop">sourceDevice</a>. </p></div>
#[inline(always)]
pub fn source_device_changed(
&self,
) -> ::qt_core::Signal<(*mut crate::QAbstractPhysicalDevice,)> {
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"2sourceDeviceChanged(Qt3DInput::QAbstractPhysicalDevice *)\0",
),
)
}
}
/// <p>This signal is emitted when the buttons associated with the action input is changed. The buttons changed are <i>buttons</i></p>
///
/// Returns a built-in Qt signal `Qt3DInput::QActionInput::buttonsChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qactioninput.html#buttonsChanged">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This signal is emitted when the buttons associated with the action input is changed. The buttons changed are <i>buttons</i></p>
/// <p><b>Note:</b> Notifier signal for property <a href="http://doc.qt.io/qt-5/qt3dinput-qactioninput.html#buttons-prop">buttons</a>. </p></div>
#[inline(always)]
pub fn buttons_changed(&self) -> ::qt_core::Signal<(*const ::qt_core::QVectorOfInt,)> {
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"2buttonsChanged(QVector< int > const &)\0",
),
)
}
}
/// <p>Holds the buttons that can trigger this Action.</p>
///
/// Calls C++ function: <span style='color: green;'>```QVector<int> Qt3DInput::QActionInput::buttons() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qactioninput.html#buttons-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the buttons that can trigger this Action.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QVector<int> </td><td class="memItemRight bottomAlign"><span class="name"><b>buttons</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="http://doc.qt.io/qt-5/qt3dinput-qactioninput.html#setButtons">setButtons</a></b></span>(const QVector<int> &<i>buttons</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><a href="http://doc.qt.io/qt-5/qt3dinput-qactioninput.html#buttonsChanged">buttonsChanged</a></b></span>(const QVector<int> &<i>buttons</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub unsafe fn buttons(&self) -> ::cpp_core::CppBox<::qt_core::QVectorOfInt> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QActionInput_buttons(
self as *const crate::QActionInput,
)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// Calls C++ function: <span style='color: green;'>```virtual const QMetaObject* Qt3DInput::QActionInput::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_input_ffi_Qt3DInput_QActionInput_metaObject(
self as *const crate::QActionInput,
)
};
::cpp_core::Ptr::from_raw(ffi_result as *mut ::qt_core::QMetaObject)
}
/// <p>Constructs a new <a href="http://doc.qt.io/qt-5/qt3dinput-qactioninput.html">QActionInput</a> instance with <i>parent</i>.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DInput::QActionInput::QActionInput(Qt3DCore::QNode* parent = …)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qactioninput.html#QActionInput">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/qt3dinput-qactioninput.html">QActionInput</a> instance with <i>parent</i>.</p></div>
#[inline(always)]
pub unsafe fn new_1a(
parent: impl ::cpp_core::CastInto<::cpp_core::Ptr<::qt_3d_core::QNode>>,
) -> ::qt_core::QBox<crate::QActionInput> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QActionInput_QActionInput(
::cpp_core::CastInto::<::cpp_core::Ptr<::qt_3d_core::QNode>>::cast_into(parent)
.as_raw_ptr() as *mut ::qt_3d_core::QNode,
)
};
::qt_core::QBox::from_raw(ffi_result)
}
/// <p><a href="http://doc.qt.io/qt-5/qt3dinput-qactioninput.html">QActionInput</a> stores Device and Buttons used to trigger an input event.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DInput::QActionInput::QActionInput()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qactioninput.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p><a href="http://doc.qt.io/qt-5/qt3dinput-qactioninput.html">QActionInput</a> stores Device and Buttons used to trigger an input event.</p></div>
#[inline(always)]
pub unsafe fn new_0a() -> ::qt_core::QBox<crate::QActionInput> {
let ffi_result =
{ crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QActionInput_QActionInput1() };
::qt_core::QBox::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```virtual int Qt3DInput::QActionInput::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_input_ffi_Qt3DInput_QActionInput_qt_metacall(
self as *const crate::QActionInput as *mut crate::QActionInput,
arg1,
arg2,
arg3,
)
}
/// Calls C++ function: <span style='color: green;'>```virtual void* Qt3DInput::QActionInput::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_input_ffi_Qt3DInput_QActionInput_qt_metacast(
self as *const crate::QActionInput as *mut crate::QActionInput,
arg1,
)
}
/// <p>Set the buttons to trigger the <a href="http://doc.qt.io/qt-5/qt3dinput-qactioninput.html">QActionInput</a> instance to <i>buttons</i>.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DInput::QActionInput::setButtons(const QVector<int>& buttons)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qactioninput.html#setButtons">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Set the buttons to trigger the <a href="http://doc.qt.io/qt-5/qt3dinput-qactioninput.html">QActionInput</a> instance to <i>buttons</i>.</p>
/// <p><b>Note:</b> Setter function for property <a href="http://doc.qt.io/qt-5/qt3dinput-qactioninput.html#buttons-prop">buttons</a>. </p><p><b>See also </b><a href="http://doc.qt.io/qt-5/qt3dinput-qactioninput.html#buttons-prop">buttons</a>().</p></div>
#[inline(always)]
pub unsafe fn set_buttons(
&self,
buttons: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_core::QVectorOfInt>>,
) {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QActionInput_setButtons(
self as *const crate::QActionInput as *mut crate::QActionInput,
::cpp_core::CastInto::<::cpp_core::Ref<::qt_core::QVectorOfInt>>::cast_into(buttons)
.as_raw_ptr(),
)
}
/// <p>The current source device of the <a href="http://doc.qt.io/qt-5/qt3dinput-qactioninput.html">QActionInput</a>.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DInput::QActionInput::setSourceDevice(Qt3DInput::QAbstractPhysicalDevice* sourceDevice)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qactioninput.html#sourceDevice-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>The current source device of the <a href="http://doc.qt.io/qt-5/qt3dinput-qactioninput.html">QActionInput</a>.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QAbstractPhysicalDevice *</td><td class="memItemRight bottomAlign"><span class="name"><b>sourceDevice</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setSourceDevice</b></span>(QAbstractPhysicalDevice *<i>sourceDevice</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><a href="http://doc.qt.io/qt-5/qt3dinput-qactioninput.html#sourceDeviceChanged">sourceDeviceChanged</a></b></span>(QAbstractPhysicalDevice *<i>sourceDevice</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub unsafe fn set_source_device(
&self,
source_device: impl ::cpp_core::CastInto<::cpp_core::Ptr<crate::QAbstractPhysicalDevice>>,
) {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QActionInput_setSourceDevice(
self as *const crate::QActionInput as *mut crate::QActionInput,
::cpp_core::CastInto::<::cpp_core::Ptr<crate::QAbstractPhysicalDevice>>::cast_into(
source_device,
)
.as_raw_ptr() as *mut crate::QAbstractPhysicalDevice,
)
}
/// <p>The current source device of the <a href="http://doc.qt.io/qt-5/qt3dinput-qactioninput.html">QActionInput</a>.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QAbstractPhysicalDevice* Qt3DInput::QActionInput::sourceDevice() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qactioninput.html#sourceDevice-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>The current source device of the <a href="http://doc.qt.io/qt-5/qt3dinput-qactioninput.html">QActionInput</a>.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QAbstractPhysicalDevice *</td><td class="memItemRight bottomAlign"><span class="name"><b>sourceDevice</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setSourceDevice</b></span>(QAbstractPhysicalDevice *<i>sourceDevice</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><a href="http://doc.qt.io/qt-5/qt3dinput-qactioninput.html#sourceDeviceChanged">sourceDeviceChanged</a></b></span>(QAbstractPhysicalDevice *<i>sourceDevice</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub unsafe fn source_device(&self) -> ::qt_core::QPtr<crate::QAbstractPhysicalDevice> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QActionInput_sourceDevice(
self as *const crate::QActionInput,
)
};
::qt_core::QPtr::from_raw(ffi_result)
}
/// 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_input_ffi_Qt3DInput_QActionInput_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 Qt3DInput::QActionInput::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_input_ffi_Qt3DInput_QActionInput_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 Qt3DInput::QActionInput::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_input_ffi_Qt3DInput_QActionInput_trUtf8(s, c, n) };
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
}
/// <p>An axis input controlled by an analog input The axis value is controlled like a traditional analog input such as a joystick.</p>
///
/// C++ class: <span style='color: green;'>```Qt3DInput::QAnalogAxisInput```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qanalogaxisinput.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>An axis input controlled by an analog input The axis value is controlled like a traditional analog input such as a joystick.</p></div>
#[repr(C)]
pub struct QAnalogAxisInput {
_unused: u8,
}
impl QAnalogAxisInput {
/// <p>Axis for the analog input.</p>
///
/// Returns a built-in Qt slot `Qt3DInput::QAnalogAxisInput::setAxis` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qanalogaxisinput.html#axis-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Axis for the analog input.</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>axis</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setAxis</b></span>(int <i>axis</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>axisChanged</b></span>(int <i>axis</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qt3dinput-qmousedevice.html#Axis-enum">Qt3DInput::QMouseDevice::Axis</a>.</p></div>
#[inline(always)]
pub fn slot_set_axis(&self) -> ::qt_core::Receiver<(::std::os::raw::c_int,)> {
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"1setAxis(int)\0"),
)
}
}
/// <p>Axis for the analog input.</p>
///
/// Returns a built-in Qt signal `Qt3DInput::QAnalogAxisInput::axisChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qanalogaxisinput.html#axis-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Axis for the analog input.</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>axis</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setAxis</b></span>(int <i>axis</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>axisChanged</b></span>(int <i>axis</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qt3dinput-qmousedevice.html#Axis-enum">Qt3DInput::QMouseDevice::Axis</a>.</p></div>
#[inline(always)]
pub fn axis_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"2axisChanged(int)\0"),
)
}
}
/// <p>Axis for the analog input.</p>
///
/// Calls C++ function: <span style='color: green;'>```int Qt3DInput::QAnalogAxisInput::axis() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qanalogaxisinput.html#axis-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Axis for the analog input.</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>axis</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setAxis</b></span>(int <i>axis</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>axisChanged</b></span>(int <i>axis</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qt3dinput-qmousedevice.html#Axis-enum">Qt3DInput::QMouseDevice::Axis</a>.</p></div>
#[inline(always)]
pub unsafe fn axis(&self) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QAnalogAxisInput_axis(
self as *const crate::QAnalogAxisInput,
)
}
/// Calls C++ function: <span style='color: green;'>```virtual const QMetaObject* Qt3DInput::QAnalogAxisInput::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_input_ffi_Qt3DInput_QAnalogAxisInput_metaObject(
self as *const crate::QAnalogAxisInput,
)
};
::cpp_core::Ptr::from_raw(ffi_result as *mut ::qt_core::QMetaObject)
}
/// <p>Constructs a new <a href="http://doc.qt.io/qt-5/qt3dinput-qanalogaxisinput.html">QAnalogAxisInput</a> instance with <i>parent</i>.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DInput::QAnalogAxisInput::QAnalogAxisInput(Qt3DCore::QNode* parent = …)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qanalogaxisinput.html#QAnalogAxisInput">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/qt3dinput-qanalogaxisinput.html">QAnalogAxisInput</a> instance with <i>parent</i>.</p></div>
#[inline(always)]
pub unsafe fn new_1a(
parent: impl ::cpp_core::CastInto<::cpp_core::Ptr<::qt_3d_core::QNode>>,
) -> ::qt_core::QBox<crate::QAnalogAxisInput> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QAnalogAxisInput_QAnalogAxisInput(
::cpp_core::CastInto::<::cpp_core::Ptr<::qt_3d_core::QNode>>::cast_into(parent)
.as_raw_ptr() as *mut ::qt_3d_core::QNode,
)
};
::qt_core::QBox::from_raw(ffi_result)
}
/// <p>An axis input controlled by an analog input The axis value is controlled like a traditional analog input such as a joystick.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DInput::QAnalogAxisInput::QAnalogAxisInput()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qanalogaxisinput.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>An axis input controlled by an analog input The axis value is controlled like a traditional analog input such as a joystick.</p></div>
#[inline(always)]
pub unsafe fn new_0a() -> ::qt_core::QBox<crate::QAnalogAxisInput> {
let ffi_result =
{ crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QAnalogAxisInput_QAnalogAxisInput1() };
::qt_core::QBox::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```virtual int Qt3DInput::QAnalogAxisInput::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_input_ffi_Qt3DInput_QAnalogAxisInput_qt_metacall(
self as *const crate::QAnalogAxisInput as *mut crate::QAnalogAxisInput,
arg1,
arg2,
arg3,
)
}
/// Calls C++ function: <span style='color: green;'>```virtual void* Qt3DInput::QAnalogAxisInput::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_input_ffi_Qt3DInput_QAnalogAxisInput_qt_metacast(
self as *const crate::QAnalogAxisInput as *mut crate::QAnalogAxisInput,
arg1,
)
}
/// <p>Axis for the analog input.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DInput::QAnalogAxisInput::setAxis(int axis)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qanalogaxisinput.html#axis-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Axis for the analog input.</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>axis</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setAxis</b></span>(int <i>axis</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>axisChanged</b></span>(int <i>axis</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qt3dinput-qmousedevice.html#Axis-enum">Qt3DInput::QMouseDevice::Axis</a>.</p></div>
#[inline(always)]
pub unsafe fn set_axis(&self, axis: ::std::os::raw::c_int) {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QAnalogAxisInput_setAxis(
self as *const crate::QAnalogAxisInput as *mut crate::QAnalogAxisInput,
axis,
)
}
/// 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_input_ffi_Qt3DInput_QAnalogAxisInput_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 Qt3DInput::QAnalogAxisInput::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_input_ffi_Qt3DInput_QAnalogAxisInput_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 Qt3DInput::QAnalogAxisInput::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_input_ffi_Qt3DInput_QAnalogAxisInput_trUtf8(s, c, n) };
::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/qt3dinput-qaxis.html">QAxis</a> instance with <i>parent</i>.</p>
///
/// C++ class: <span style='color: green;'>```Qt3DInput::QAxis```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qaxis.html">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/qt3dinput-qaxis.html">QAxis</a> instance with <i>parent</i>.</p>
/// <p><a href="http://doc.qt.io/qt-5/qt3dinput-qaxis.html">QAxis</a> stores QAbstractAxisInputs used to trigger an input event.</p></div>
#[repr(C)]
pub struct QAxis {
_unused: u8,
}
impl QAxis {
/// <p>The value of the axis.</p>
///
/// Returns a built-in Qt signal `Qt3DInput::QAxis::valueChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qaxis.html#value-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>The value of the axis.</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>value</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>valueChanged</b></span>(float <i>value</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub fn value_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"2valueChanged(float)\0"),
)
}
}
/// <p>QAxis::addInput Adds an <i>input</i> for the axis.</p>
///
/// Calls C++ function: <span style='color: green;'>```void Qt3DInput::QAxis::addInput(Qt3DInput::QAbstractAxisInput* input)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qaxis.html#addInput">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>QAxis::addInput Adds an <i>input</i> for the axis.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qt3dinput-qabstractaxisinput.html">Qt3DInput::QAbstractAxisInput</a>.</p></div>
#[inline(always)]
pub unsafe fn add_input(
&self,
input: impl ::cpp_core::CastInto<::cpp_core::Ptr<crate::QAbstractAxisInput>>,
) {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QAxis_addInput(
self as *const crate::QAxis as *mut crate::QAxis,
::cpp_core::CastInto::<::cpp_core::Ptr<crate::QAbstractAxisInput>>::cast_into(input)
.as_raw_ptr() as *mut crate::QAbstractAxisInput,
)
}
/// <p>QAxis::inputs</p>
///
/// Calls C++ function: <span style='color: green;'>```QVector<Qt3DInput::QAbstractAxisInput*> Qt3DInput::QAxis::inputs() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qaxis.html#inputs">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>QAxis::inputs</p>
/// <p>Returns vector of all inputs added to the axis.</p></div>
#[inline(always)]
pub unsafe fn inputs(&self) -> ::cpp_core::CppBox<crate::QVectorOfQAbstractAxisInput> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QAxis_inputs(self as *const crate::QAxis)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// Calls C++ function: <span style='color: green;'>```virtual const QMetaObject* Qt3DInput::QAxis::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_input_ffi_Qt3DInput_QAxis_metaObject(
self as *const crate::QAxis,
)
};
::cpp_core::Ptr::from_raw(ffi_result as *mut ::qt_core::QMetaObject)
}
/// <p>Constructs a new <a href="http://doc.qt.io/qt-5/qt3dinput-qaxis.html">QAxis</a> instance with parent <i>parent</i>.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DInput::QAxis::QAxis(Qt3DCore::QNode* parent = …)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qaxis.html#QAxis">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/qt3dinput-qaxis.html">QAxis</a> instance with parent <i>parent</i>.</p></div>
#[inline(always)]
pub unsafe fn new_1a(
parent: impl ::cpp_core::CastInto<::cpp_core::Ptr<::qt_3d_core::QNode>>,
) -> ::qt_core::QBox<crate::QAxis> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QAxis_QAxis(
::cpp_core::CastInto::<::cpp_core::Ptr<::qt_3d_core::QNode>>::cast_into(parent)
.as_raw_ptr() as *mut ::qt_3d_core::QNode,
)
};
::qt_core::QBox::from_raw(ffi_result)
}
/// <p>Constructs a new <a href="http://doc.qt.io/qt-5/qt3dinput-qaxis.html">QAxis</a> instance with <i>parent</i>.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DInput::QAxis::QAxis()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qaxis.html">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/qt3dinput-qaxis.html">QAxis</a> instance with <i>parent</i>.</p>
/// <p><a href="http://doc.qt.io/qt-5/qt3dinput-qaxis.html">QAxis</a> stores QAbstractAxisInputs used to trigger an input event.</p></div>
#[inline(always)]
pub unsafe fn new_0a() -> ::qt_core::QBox<crate::QAxis> {
let ffi_result = { crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QAxis_QAxis1() };
::qt_core::QBox::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```virtual int Qt3DInput::QAxis::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_input_ffi_Qt3DInput_QAxis_qt_metacall(
self as *const crate::QAxis as *mut crate::QAxis,
arg1,
arg2,
arg3,
)
}
/// Calls C++ function: <span style='color: green;'>```virtual void* Qt3DInput::QAxis::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_input_ffi_Qt3DInput_QAxis_qt_metacast(
self as *const crate::QAxis as *mut crate::QAxis,
arg1,
)
}
/// <p>QAxis::removeInput</p>
///
/// Calls C++ function: <span style='color: green;'>```void Qt3DInput::QAxis::removeInput(Qt3DInput::QAbstractAxisInput* input)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qaxis.html#removeInput">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>QAxis::removeInput</p>
/// <p>Removes an <i>input</i> from the axis.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qt3dinput-qabstractaxisinput.html">Qt3DInput::QAbstractAxisInput</a>.</p></div>
#[inline(always)]
pub unsafe fn remove_input(
&self,
input: impl ::cpp_core::CastInto<::cpp_core::Ptr<crate::QAbstractAxisInput>>,
) {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QAxis_removeInput(
self as *const crate::QAxis as *mut crate::QAxis,
::cpp_core::CastInto::<::cpp_core::Ptr<crate::QAbstractAxisInput>>::cast_into(input)
.as_raw_ptr() as *mut crate::QAbstractAxisInput,
)
}
/// 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_input_ffi_Qt3DInput_QAxis_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 Qt3DInput::QAxis::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_input_ffi_Qt3DInput_QAxis_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 Qt3DInput::QAxis::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_input_ffi_Qt3DInput_QAxis_trUtf8(s, c, n) };
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>The value of the axis.</p>
///
/// Calls C++ function: <span style='color: green;'>```float Qt3DInput::QAxis::value() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qaxis.html#value-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>The value of the axis.</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>value</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>valueChanged</b></span>(float <i>value</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub unsafe fn value(&self) -> ::std::os::raw::c_float {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QAxis_value(self as *const crate::QAxis)
}
}
pub mod q_axis_accumulator {
//! C++ type: <span style='color: green;'>```Qt3DInput::QAxisAccumulator```</span>
/// C++ enum: <span style='color: green;'>```Qt3DInput::QAxisAccumulator::SourceAxisType```</span>.
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
#[repr(transparent)]
pub struct SourceAxisType(::std::os::raw::c_int);
impl From<::std::os::raw::c_int> for SourceAxisType {
fn from(value: ::std::os::raw::c_int) -> Self {
SourceAxisType(value)
}
}
impl From<SourceAxisType> for ::std::os::raw::c_int {
fn from(value: SourceAxisType) -> Self {
value.0
}
}
impl SourceAxisType {
pub fn to_int(&self) -> ::std::os::raw::c_int {
self.0
}
}
impl SourceAxisType {
/// C++ enum variant: <span style='color: green;'>```Velocity = 0```</span>
#[allow(non_upper_case_globals)]
pub const Velocity: crate::q_axis_accumulator::SourceAxisType =
crate::q_axis_accumulator::SourceAxisType(0);
/// C++ enum variant: <span style='color: green;'>```Acceleration = 1```</span>
#[allow(non_upper_case_globals)]
pub const Acceleration: crate::q_axis_accumulator::SourceAxisType =
crate::q_axis_accumulator::SourceAxisType(1);
}
}
/// <p>Constructs a new <a href="http://doc.qt.io/qt-5/qt3dinput-qaxisaccumulator.html">QAxisAccumulator</a> instance with <i>parent</i>.</p>
///
/// C++ class: <span style='color: green;'>```Qt3DInput::QAxisAccumulator```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qaxisaccumulator.html">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/qt3dinput-qaxisaccumulator.html">QAxisAccumulator</a> instance with <i>parent</i>.</p>
/// <p><a href="http://doc.qt.io/qt-5/qt3dinput-qaxisaccumulator.html">QAxisAccumulator</a> processes velocity or acceleration data from a <a href="http://doc.qt.io/qt-5/qt3dinput-qaxis.html">QAxis</a>.</p>
/// <p>A <a href="http://doc.qt.io/qt-5/qt3dinput-qaxis.html">Qt3DInput::QAxis</a> reports the current position of an axis on an input device. When the axis is returned to its neutral position the value of that axis returns to 0. Often, it is required to have the input from an axis control a variable in other ways, for example treating the value from the <a href="http://doc.qt.io/qt-5/qt3dinput-qaxis.html">Qt3DInput::QAxis</a> as a velocity (first derivative with respect to time) or as an acceleration (second derivative with respect to time). This can be done with user code or with a <a href="http://doc.qt.io/qt-5/qt3dlogic-qframeaction.html">Qt3DLogic::QFrameAction</a> but those approached are not ideal as they add more work to the main thread and are inherently imperative. The <a href="http://doc.qt.io/qt-5/qt3dinput-qaxisaccumulator.html">Qt3DInput::QAxisAccumulator</a> class allows for this common task to be performed on the Qt 3D backend and be specified in a declarative manner.</p></div>
#[repr(C)]
pub struct QAxisAccumulator {
_unused: u8,
}
impl QAxisAccumulator {
/// <p><b>Access functions:</b></p>
///
/// Returns a built-in Qt slot `Qt3DInput::QAxisAccumulator::setSourceAxis` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qaxisaccumulator.html#sourceAxis-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"> Qt3DInput::QAxis *</td><td class="memItemRight bottomAlign"><span class="name"><b><a href="http://doc.qt.io/qt-5/qt3dinput-qaxisaccumulator.html#sourceAxis">sourceAxis</a></b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setSourceAxis</b></span>(Qt3DInput::QAxis *<i>sourceAxis</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>sourceAxisChanged</b></span>(Qt3DInput::QAxis *<i>sourceAxis</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub fn slot_set_source_axis(&self) -> ::qt_core::Receiver<(*mut crate::QAxis,)> {
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"1setSourceAxis(Qt3DInput::QAxis *)\0",
),
)
}
}
/// <p>Sets how the accumulator treats the values originating from the <i>sourceAxisType</i>.</p>
///
/// Returns a built-in Qt slot `Qt3DInput::QAxisAccumulator::setSourceAxisType` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qaxisaccumulator.html#setSourceAxisType">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Sets how the accumulator treats the values originating from the <i>sourceAxisType</i>.</p>
/// <p><b>Note:</b> Setter function for property <a href="http://doc.qt.io/qt-5/qt3dinput-qaxisaccumulator.html#sourceAxisType-prop">sourceAxisType</a>. </p><p><b>See also </b><a href="http://doc.qt.io/qt-5/qt3dinput-qaxisaccumulator.html#sourceAxisType">sourceAxisType</a>().</p></div>
#[inline(always)]
pub fn slot_set_source_axis_type(
&self,
) -> ::qt_core::Receiver<(crate::q_axis_accumulator::SourceAxisType,)> {
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"1setSourceAxisType(Qt3DInput::QAxisAccumulator::SourceAxisType)\0",
),
)
}
}
/// <p><b>Access functions:</b></p>
///
/// Returns a built-in Qt slot `Qt3DInput::QAxisAccumulator::setScale` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qaxisaccumulator.html#scale-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"> float </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="http://doc.qt.io/qt-5/qt3dinput-qaxisaccumulator.html#scale">scale</a></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><b>Access functions:</b></p>
///
/// Returns a built-in Qt signal `Qt3DInput::QAxisAccumulator::sourceAxisChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qaxisaccumulator.html#sourceAxis-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"> Qt3DInput::QAxis *</td><td class="memItemRight bottomAlign"><span class="name"><b><a href="http://doc.qt.io/qt-5/qt3dinput-qaxisaccumulator.html#sourceAxis">sourceAxis</a></b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setSourceAxis</b></span>(Qt3DInput::QAxis *<i>sourceAxis</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>sourceAxisChanged</b></span>(Qt3DInput::QAxis *<i>sourceAxis</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub fn source_axis_changed(&self) -> ::qt_core::Signal<(*mut crate::QAxis,)> {
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"2sourceAxisChanged(Qt3DInput::QAxis *)\0",
),
)
}
}
/// <p><b>Access functions:</b></p>
///
/// Returns a built-in Qt signal `Qt3DInput::QAxisAccumulator::sourceAxisTypeChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qaxisaccumulator.html#sourceAxisType-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"> SourceAxisType </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="http://doc.qt.io/qt-5/qt3dinput-qaxisaccumulator.html#sourceAxisType">sourceAxisType</a></b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="http://doc.qt.io/qt-5/qt3dinput-qaxisaccumulator.html#setSourceAxisType">setSourceAxisType</a></b></span>(QAxisAccumulator::SourceAxisType <i>sourceAxisType</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>sourceAxisTypeChanged</b></span>(QAxisAccumulator::SourceAxisType <i>sourceAxisType</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub fn source_axis_type_changed(
&self,
) -> ::qt_core::Signal<(crate::q_axis_accumulator::SourceAxisType,)> {
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"2sourceAxisTypeChanged(Qt3DInput::QAxisAccumulator::SourceAxisType)\0",
),
)
}
}
/// <p>Returns the accumulated (integrated) value.</p>
///
/// Returns a built-in Qt signal `Qt3DInput::QAxisAccumulator::valueChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qaxisaccumulator.html#value-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the accumulated (integrated) value.</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>value</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>valueChanged</b></span>(float <i>value</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub fn value_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"2valueChanged(float)\0"),
)
}
}
/// <p><b>Access functions:</b></p>
///
/// Returns a built-in Qt signal `Qt3DInput::QAxisAccumulator::velocityChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qaxisaccumulator.html#velocity-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"> float </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="http://doc.qt.io/qt-5/qt3dinput-qaxisaccumulator.html#velocity">velocity</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>velocityChanged</b></span>(float <i>value</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub fn velocity_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"2velocityChanged(float)\0"),
)
}
}
/// <p><b>Access functions:</b></p>
///
/// Returns a built-in Qt signal `Qt3DInput::QAxisAccumulator::scaleChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qaxisaccumulator.html#scale-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"> float </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="http://doc.qt.io/qt-5/qt3dinput-qaxisaccumulator.html#scale">scale</a></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"),
)
}
}
/// Calls C++ function: <span style='color: green;'>```virtual const QMetaObject* Qt3DInput::QAxisAccumulator::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_input_ffi_Qt3DInput_QAxisAccumulator_metaObject(
self as *const crate::QAxisAccumulator,
)
};
::cpp_core::Ptr::from_raw(ffi_result as *mut ::qt_core::QMetaObject)
}
/// <p>Constructs a new <a href="http://doc.qt.io/qt-5/qt3dinput-qaxisaccumulator.html">QAxisAccumulator</a> instance with parent <i>parent</i>.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DInput::QAxisAccumulator::QAxisAccumulator(Qt3DCore::QNode* parent = …)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qaxisaccumulator.html#QAxisAccumulator">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/qt3dinput-qaxisaccumulator.html">QAxisAccumulator</a> instance with parent <i>parent</i>.</p></div>
#[inline(always)]
pub unsafe fn new_1a(
parent: impl ::cpp_core::CastInto<::cpp_core::Ptr<::qt_3d_core::QNode>>,
) -> ::qt_core::QBox<crate::QAxisAccumulator> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QAxisAccumulator_QAxisAccumulator(
::cpp_core::CastInto::<::cpp_core::Ptr<::qt_3d_core::QNode>>::cast_into(parent)
.as_raw_ptr() as *mut ::qt_3d_core::QNode,
)
};
::qt_core::QBox::from_raw(ffi_result)
}
/// <p>Constructs a new <a href="http://doc.qt.io/qt-5/qt3dinput-qaxisaccumulator.html">QAxisAccumulator</a> instance with <i>parent</i>.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DInput::QAxisAccumulator::QAxisAccumulator()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qaxisaccumulator.html">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/qt3dinput-qaxisaccumulator.html">QAxisAccumulator</a> instance with <i>parent</i>.</p>
/// <p><a href="http://doc.qt.io/qt-5/qt3dinput-qaxisaccumulator.html">QAxisAccumulator</a> processes velocity or acceleration data from a <a href="http://doc.qt.io/qt-5/qt3dinput-qaxis.html">QAxis</a>.</p>
/// <p>A <a href="http://doc.qt.io/qt-5/qt3dinput-qaxis.html">Qt3DInput::QAxis</a> reports the current position of an axis on an input device. When the axis is returned to its neutral position the value of that axis returns to 0. Often, it is required to have the input from an axis control a variable in other ways, for example treating the value from the <a href="http://doc.qt.io/qt-5/qt3dinput-qaxis.html">Qt3DInput::QAxis</a> as a velocity (first derivative with respect to time) or as an acceleration (second derivative with respect to time). This can be done with user code or with a <a href="http://doc.qt.io/qt-5/qt3dlogic-qframeaction.html">Qt3DLogic::QFrameAction</a> but those approached are not ideal as they add more work to the main thread and are inherently imperative. The <a href="http://doc.qt.io/qt-5/qt3dinput-qaxisaccumulator.html">Qt3DInput::QAxisAccumulator</a> class allows for this common task to be performed on the Qt 3D backend and be specified in a declarative manner.</p></div>
#[inline(always)]
pub unsafe fn new_0a() -> ::qt_core::QBox<crate::QAxisAccumulator> {
let ffi_result =
{ crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QAxisAccumulator_QAxisAccumulator1() };
::qt_core::QBox::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```virtual int Qt3DInput::QAxisAccumulator::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_input_ffi_Qt3DInput_QAxisAccumulator_qt_metacall(
self as *const crate::QAxisAccumulator as *mut crate::QAxisAccumulator,
arg1,
arg2,
arg3,
)
}
/// Calls C++ function: <span style='color: green;'>```virtual void* Qt3DInput::QAxisAccumulator::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_input_ffi_Qt3DInput_QAxisAccumulator_qt_metacast(
self as *const crate::QAxisAccumulator as *mut crate::QAxisAccumulator,
arg1,
)
}
/// <p><b>Access functions:</b></p>
///
/// Calls C++ function: <span style='color: green;'>```float Qt3DInput::QAxisAccumulator::scale() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qaxisaccumulator.html#scale-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"> float </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="http://doc.qt.io/qt-5/qt3dinput-qaxisaccumulator.html#scale">scale</a></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_input_ffi_Qt3DInput_QAxisAccumulator_scale(
self as *const crate::QAxisAccumulator,
)
}
/// <p><b>Access functions:</b></p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DInput::QAxisAccumulator::setScale(float scale)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qaxisaccumulator.html#scale-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"> float </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="http://doc.qt.io/qt-5/qt3dinput-qaxisaccumulator.html#scale">scale</a></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_input_ffi_Qt3DInput_QAxisAccumulator_setScale(
self as *const crate::QAxisAccumulator as *mut crate::QAxisAccumulator,
scale,
)
}
/// <p><b>Access functions:</b></p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DInput::QAxisAccumulator::setSourceAxis(Qt3DInput::QAxis* sourceAxis)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qaxisaccumulator.html#sourceAxis-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"> Qt3DInput::QAxis *</td><td class="memItemRight bottomAlign"><span class="name"><b><a href="http://doc.qt.io/qt-5/qt3dinput-qaxisaccumulator.html#sourceAxis">sourceAxis</a></b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setSourceAxis</b></span>(Qt3DInput::QAxis *<i>sourceAxis</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>sourceAxisChanged</b></span>(Qt3DInput::QAxis *<i>sourceAxis</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub unsafe fn set_source_axis(
&self,
source_axis: impl ::cpp_core::CastInto<::cpp_core::Ptr<crate::QAxis>>,
) {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QAxisAccumulator_setSourceAxis(
self as *const crate::QAxisAccumulator as *mut crate::QAxisAccumulator,
::cpp_core::CastInto::<::cpp_core::Ptr<crate::QAxis>>::cast_into(source_axis)
.as_raw_ptr() as *mut crate::QAxis,
)
}
/// <p>Sets how the accumulator treats the values originating from the <i>sourceAxisType</i>.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DInput::QAxisAccumulator::setSourceAxisType(Qt3DInput::QAxisAccumulator::SourceAxisType sourceAxisType)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qaxisaccumulator.html#setSourceAxisType">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Sets how the accumulator treats the values originating from the <i>sourceAxisType</i>.</p>
/// <p><b>Note:</b> Setter function for property <a href="http://doc.qt.io/qt-5/qt3dinput-qaxisaccumulator.html#sourceAxisType-prop">sourceAxisType</a>. </p><p><b>See also </b><a href="http://doc.qt.io/qt-5/qt3dinput-qaxisaccumulator.html#sourceAxisType">sourceAxisType</a>().</p></div>
#[inline(always)]
pub unsafe fn set_source_axis_type(
&self,
source_axis_type: crate::q_axis_accumulator::SourceAxisType,
) {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QAxisAccumulator_setSourceAxisType(
self as *const crate::QAxisAccumulator as *mut crate::QAxisAccumulator,
source_axis_type,
)
}
/// <p><b>Access functions:</b></p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QAxis* Qt3DInput::QAxisAccumulator::sourceAxis() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qaxisaccumulator.html#sourceAxis-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"> Qt3DInput::QAxis *</td><td class="memItemRight bottomAlign"><span class="name"><b><a href="http://doc.qt.io/qt-5/qt3dinput-qaxisaccumulator.html#sourceAxis">sourceAxis</a></b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setSourceAxis</b></span>(Qt3DInput::QAxis *<i>sourceAxis</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>sourceAxisChanged</b></span>(Qt3DInput::QAxis *<i>sourceAxis</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub unsafe fn source_axis(&self) -> ::qt_core::QPtr<crate::QAxis> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QAxisAccumulator_sourceAxis(
self as *const crate::QAxisAccumulator,
)
};
::qt_core::QPtr::from_raw(ffi_result)
}
/// <p><b>Access functions:</b></p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QAxisAccumulator::SourceAxisType Qt3DInput::QAxisAccumulator::sourceAxisType() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qaxisaccumulator.html#sourceAxisType-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"> SourceAxisType </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="http://doc.qt.io/qt-5/qt3dinput-qaxisaccumulator.html#sourceAxisType">sourceAxisType</a></b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="http://doc.qt.io/qt-5/qt3dinput-qaxisaccumulator.html#setSourceAxisType">setSourceAxisType</a></b></span>(QAxisAccumulator::SourceAxisType <i>sourceAxisType</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>sourceAxisTypeChanged</b></span>(QAxisAccumulator::SourceAxisType <i>sourceAxisType</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub unsafe fn source_axis_type(&self) -> crate::q_axis_accumulator::SourceAxisType {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QAxisAccumulator_sourceAxisType(
self as *const crate::QAxisAccumulator,
)
}
/// 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_input_ffi_Qt3DInput_QAxisAccumulator_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 Qt3DInput::QAxisAccumulator::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_input_ffi_Qt3DInput_QAxisAccumulator_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 Qt3DInput::QAxisAccumulator::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_input_ffi_Qt3DInput_QAxisAccumulator_trUtf8(s, c, n) };
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Returns the accumulated (integrated) value.</p>
///
/// Calls C++ function: <span style='color: green;'>```float Qt3DInput::QAxisAccumulator::value() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qaxisaccumulator.html#value-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the accumulated (integrated) value.</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>value</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>valueChanged</b></span>(float <i>value</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub unsafe fn value(&self) -> ::std::os::raw::c_float {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QAxisAccumulator_value(
self as *const crate::QAxisAccumulator,
)
}
/// <p><b>Access functions:</b></p>
///
/// Calls C++ function: <span style='color: green;'>```float Qt3DInput::QAxisAccumulator::velocity() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qaxisaccumulator.html#velocity-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"> float </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="http://doc.qt.io/qt-5/qt3dinput-qaxisaccumulator.html#velocity">velocity</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>velocityChanged</b></span>(float <i>value</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub unsafe fn velocity(&self) -> ::std::os::raw::c_float {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QAxisAccumulator_velocity(
self as *const crate::QAxisAccumulator,
)
}
}
/// <p><a href="http://doc.qt.io/qt-5/qt3dinput-qaxissetting.html">QAxisSetting</a> stores settings for the specified list of Axis.</p>
///
/// C++ class: <span style='color: green;'>```Qt3DInput::QAxisSetting```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qaxissetting.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p><a href="http://doc.qt.io/qt-5/qt3dinput-qaxissetting.html">QAxisSetting</a> stores settings for the specified list of Axis.</p>
/// <p>Stores the dead zone associated with this axis and defines if smoothing is enabled</p></div>
#[repr(C)]
pub struct QAxisSetting {
_unused: u8,
}
impl QAxisSetting {
/// <p>Set the current dead zone radius of the <a href="http://doc.qt.io/qt-5/qt3dinput-qaxissetting.html">QAxisSetting</a> instance to <i>deadZoneRadius</i>.</p>
///
/// Returns a built-in Qt slot `Qt3DInput::QAxisSetting::setDeadZoneRadius` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qaxissetting.html#setDeadZoneRadius">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Set the current dead zone radius of the <a href="http://doc.qt.io/qt-5/qt3dinput-qaxissetting.html">QAxisSetting</a> instance to <i>deadZoneRadius</i>.</p>
/// <p><b>Note:</b> Setter function for property <a href="http://doc.qt.io/qt-5/qt3dinput-qaxissetting.html#deadZoneRadius-prop">deadZoneRadius</a>. </p><p><b>See also </b><a href="http://doc.qt.io/qt-5/qt3dinput-qaxissetting.html#deadZoneRadius">deadZoneRadius</a>().</p></div>
#[inline(always)]
pub fn slot_set_dead_zone_radius(&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"1setDeadZoneRadius(float)\0"),
)
}
}
/// <p>Set the current axes of the <a href="http://doc.qt.io/qt-5/qt3dinput-qaxissetting.html">QAxisSetting</a> instance to <i>axes</i>.</p>
///
/// Returns a built-in Qt slot `Qt3DInput::QAxisSetting::setAxes` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qaxissetting.html#setAxes">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Set the current axes of the <a href="http://doc.qt.io/qt-5/qt3dinput-qaxissetting.html">QAxisSetting</a> instance to <i>axes</i>.</p>
/// <p><b>Note:</b> Setter function for property <a href="http://doc.qt.io/qt-5/qt3dinput-qaxissetting.html#axes-prop">axes</a>. </p><p><b>See also </b><a href="http://doc.qt.io/qt-5/qt3dinput-qaxissetting.html#axes">axes</a>().</p></div>
#[inline(always)]
pub fn slot_set_axes(&self) -> ::qt_core::Receiver<(*const ::qt_core::QVectorOfInt,)> {
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"1setAxes(QVector< int > const &)\0",
),
)
}
}
/// <p>Set the current state of the QAxisSettings smoothing to <i>enabled</i>.</p>
///
/// Returns a built-in Qt slot `Qt3DInput::QAxisSetting::setSmoothEnabled` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qaxissetting.html#setSmoothEnabled">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Set the current state of the QAxisSettings smoothing to <i>enabled</i>.</p>
/// <p><b>Note:</b> Setter function for property <a href="http://doc.qt.io/qt-5/qt3dinput-qaxissetting.html#smooth-prop">smooth</a>. </p><p><b>See also </b><a href="http://doc.qt.io/qt-5/qt3dinput-qaxissetting.html#isSmoothEnabled">isSmoothEnabled</a>().</p></div>
#[inline(always)]
pub fn slot_set_smooth_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"1setSmoothEnabled(bool)\0"),
)
}
}
/// <p>This signal is emitted when the Dead Zone radius associated with the axis setting is changed to <i>deadZoneRadius</i>.</p>
///
/// Returns a built-in Qt signal `Qt3DInput::QAxisSetting::deadZoneRadiusChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qaxissetting.html#deadZoneRadiusChanged">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This signal is emitted when the Dead Zone radius associated with the axis setting is changed to <i>deadZoneRadius</i>.</p>
/// <p><b>Note:</b> Notifier signal for property <a href="http://doc.qt.io/qt-5/qt3dinput-qaxissetting.html#deadZoneRadius-prop">deadZoneRadius</a>. </p></div>
#[inline(always)]
pub fn dead_zone_radius_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"2deadZoneRadiusChanged(float)\0"),
)
}
}
/// <p>This signal is emitted when the axes associated with the axis setting is changed to <i>axes</i>.</p>
///
/// Returns a built-in Qt signal `Qt3DInput::QAxisSetting::axesChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qaxissetting.html#axesChanged">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This signal is emitted when the axes associated with the axis setting is changed to <i>axes</i>.</p>
/// <p><b>Note:</b> Notifier signal for property <a href="http://doc.qt.io/qt-5/qt3dinput-qaxissetting.html#axes-prop">axes</a>. </p></div>
#[inline(always)]
pub fn axes_changed(&self) -> ::qt_core::Signal<(*const ::qt_core::QVectorOfInt,)> {
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"2axesChanged(QVector< int > const &)\0",
),
)
}
}
/// <p>This signal is emitted when the smoothing state is changed to <i>smooth</i>.</p>
///
/// Returns a built-in Qt signal `Qt3DInput::QAxisSetting::smoothChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qaxissetting.html#smoothChanged">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This signal is emitted when the smoothing state is changed to <i>smooth</i>.</p>
/// <p><b>Note:</b> Notifier signal for property <a href="http://doc.qt.io/qt-5/qt3dinput-qaxissetting.html#smooth-prop">smooth</a>. </p></div>
#[inline(always)]
pub fn smooth_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"2smoothChanged(bool)\0"),
)
}
}
/// <p><b>Access functions:</b></p>
///
/// Calls C++ function: <span style='color: green;'>```QVector<int> Qt3DInput::QAxisSetting::axes() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qaxissetting.html#axes-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"> QVector<int> </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="http://doc.qt.io/qt-5/qt3dinput-qaxissetting.html#axes">axes</a></b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="http://doc.qt.io/qt-5/qt3dinput-qaxissetting.html#setAxes">setAxes</a></b></span>(const QVector<int> &<i>axes</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><a href="http://doc.qt.io/qt-5/qt3dinput-qaxissetting.html#axesChanged">axesChanged</a></b></span>(const QVector<int> &<i>axes</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub unsafe fn axes(&self) -> ::cpp_core::CppBox<::qt_core::QVectorOfInt> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QAxisSetting_axes(
self as *const crate::QAxisSetting,
)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p><b>Access functions:</b></p>
///
/// Calls C++ function: <span style='color: green;'>```float Qt3DInput::QAxisSetting::deadZoneRadius() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qaxissetting.html#deadZoneRadius-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"> float </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="http://doc.qt.io/qt-5/qt3dinput-qaxissetting.html#deadZoneRadius">deadZoneRadius</a></b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="http://doc.qt.io/qt-5/qt3dinput-qaxissetting.html#setDeadZoneRadius">setDeadZoneRadius</a></b></span>(float <i>deadZoneRadius</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><a href="http://doc.qt.io/qt-5/qt3dinput-qaxissetting.html#deadZoneRadiusChanged">deadZoneRadiusChanged</a></b></span>(float <i>deadZoneRadius</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub unsafe fn dead_zone_radius(&self) -> ::std::os::raw::c_float {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QAxisSetting_deadZoneRadius(
self as *const crate::QAxisSetting,
)
}
/// <p>QAxisSetting::isSmoothEnabled Returns if smoothing is enabled.</p>
///
/// Calls C++ function: <span style='color: green;'>```bool Qt3DInput::QAxisSetting::isSmoothEnabled() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qaxissetting.html#isSmoothEnabled">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>QAxisSetting::isSmoothEnabled Returns if smoothing is enabled.</p>
/// <p><b>Note:</b> Getter function for property <a href="http://doc.qt.io/qt-5/qt3dinput-qaxissetting.html#smooth-prop">smooth</a>. </p></div>
#[inline(always)]
pub unsafe fn is_smooth_enabled(&self) -> bool {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QAxisSetting_isSmoothEnabled(
self as *const crate::QAxisSetting,
)
}
/// Calls C++ function: <span style='color: green;'>```virtual const QMetaObject* Qt3DInput::QAxisSetting::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_input_ffi_Qt3DInput_QAxisSetting_metaObject(
self as *const crate::QAxisSetting,
)
};
::cpp_core::Ptr::from_raw(ffi_result as *mut ::qt_core::QMetaObject)
}
/// <p>Constructs a new <a href="http://doc.qt.io/qt-5/qt3dinput-qaxissetting.html">QAxisSetting</a> instance with <i>parent</i>.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DInput::QAxisSetting::QAxisSetting(Qt3DCore::QNode* parent = …)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qaxissetting.html#QAxisSetting">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/qt3dinput-qaxissetting.html">QAxisSetting</a> instance with <i>parent</i>.</p></div>
#[inline(always)]
pub unsafe fn new_1a(
parent: impl ::cpp_core::CastInto<::cpp_core::Ptr<::qt_3d_core::QNode>>,
) -> ::qt_core::QBox<crate::QAxisSetting> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QAxisSetting_QAxisSetting(
::cpp_core::CastInto::<::cpp_core::Ptr<::qt_3d_core::QNode>>::cast_into(parent)
.as_raw_ptr() as *mut ::qt_3d_core::QNode,
)
};
::qt_core::QBox::from_raw(ffi_result)
}
/// <p><a href="http://doc.qt.io/qt-5/qt3dinput-qaxissetting.html">QAxisSetting</a> stores settings for the specified list of Axis.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DInput::QAxisSetting::QAxisSetting()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qaxissetting.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p><a href="http://doc.qt.io/qt-5/qt3dinput-qaxissetting.html">QAxisSetting</a> stores settings for the specified list of Axis.</p>
/// <p>Stores the dead zone associated with this axis and defines if smoothing is enabled</p></div>
#[inline(always)]
pub unsafe fn new_0a() -> ::qt_core::QBox<crate::QAxisSetting> {
let ffi_result =
{ crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QAxisSetting_QAxisSetting1() };
::qt_core::QBox::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```virtual int Qt3DInput::QAxisSetting::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_input_ffi_Qt3DInput_QAxisSetting_qt_metacall(
self as *const crate::QAxisSetting as *mut crate::QAxisSetting,
arg1,
arg2,
arg3,
)
}
/// Calls C++ function: <span style='color: green;'>```virtual void* Qt3DInput::QAxisSetting::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_input_ffi_Qt3DInput_QAxisSetting_qt_metacast(
self as *const crate::QAxisSetting as *mut crate::QAxisSetting,
arg1,
)
}
/// <p>Set the current axes of the <a href="http://doc.qt.io/qt-5/qt3dinput-qaxissetting.html">QAxisSetting</a> instance to <i>axes</i>.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DInput::QAxisSetting::setAxes(const QVector<int>& axes)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qaxissetting.html#setAxes">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Set the current axes of the <a href="http://doc.qt.io/qt-5/qt3dinput-qaxissetting.html">QAxisSetting</a> instance to <i>axes</i>.</p>
/// <p><b>Note:</b> Setter function for property <a href="http://doc.qt.io/qt-5/qt3dinput-qaxissetting.html#axes-prop">axes</a>. </p><p><b>See also </b><a href="http://doc.qt.io/qt-5/qt3dinput-qaxissetting.html#axes">axes</a>().</p></div>
#[inline(always)]
pub unsafe fn set_axes(
&self,
axes: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_core::QVectorOfInt>>,
) {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QAxisSetting_setAxes(
self as *const crate::QAxisSetting as *mut crate::QAxisSetting,
::cpp_core::CastInto::<::cpp_core::Ref<::qt_core::QVectorOfInt>>::cast_into(axes)
.as_raw_ptr(),
)
}
/// <p>Set the current dead zone radius of the <a href="http://doc.qt.io/qt-5/qt3dinput-qaxissetting.html">QAxisSetting</a> instance to <i>deadZoneRadius</i>.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DInput::QAxisSetting::setDeadZoneRadius(float deadZoneRadius)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qaxissetting.html#setDeadZoneRadius">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Set the current dead zone radius of the <a href="http://doc.qt.io/qt-5/qt3dinput-qaxissetting.html">QAxisSetting</a> instance to <i>deadZoneRadius</i>.</p>
/// <p><b>Note:</b> Setter function for property <a href="http://doc.qt.io/qt-5/qt3dinput-qaxissetting.html#deadZoneRadius-prop">deadZoneRadius</a>. </p><p><b>See also </b><a href="http://doc.qt.io/qt-5/qt3dinput-qaxissetting.html#deadZoneRadius">deadZoneRadius</a>().</p></div>
#[inline(always)]
pub unsafe fn set_dead_zone_radius(&self, dead_zone_radius: ::std::os::raw::c_float) {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QAxisSetting_setDeadZoneRadius(
self as *const crate::QAxisSetting as *mut crate::QAxisSetting,
dead_zone_radius,
)
}
/// <p>Set the current state of the QAxisSettings smoothing to <i>enabled</i>.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DInput::QAxisSetting::setSmoothEnabled(bool enabled)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qaxissetting.html#setSmoothEnabled">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Set the current state of the QAxisSettings smoothing to <i>enabled</i>.</p>
/// <p><b>Note:</b> Setter function for property <a href="http://doc.qt.io/qt-5/qt3dinput-qaxissetting.html#smooth-prop">smooth</a>. </p><p><b>See also </b><a href="http://doc.qt.io/qt-5/qt3dinput-qaxissetting.html#isSmoothEnabled">isSmoothEnabled</a>().</p></div>
#[inline(always)]
pub unsafe fn set_smooth_enabled(&self, enabled: bool) {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QAxisSetting_setSmoothEnabled(
self as *const crate::QAxisSetting as *mut crate::QAxisSetting,
enabled,
)
}
/// 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_input_ffi_Qt3DInput_QAxisSetting_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 Qt3DInput::QAxisSetting::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_input_ffi_Qt3DInput_QAxisSetting_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 Qt3DInput::QAxisSetting::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_input_ffi_Qt3DInput_QAxisSetting_trUtf8(s, c, n) };
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
}
/// <p>An axis input controlled by buttons The axis value is controlled by buttons rather than a traditional analog input such as a joystick.</p>
///
/// C++ class: <span style='color: green;'>```Qt3DInput::QButtonAxisInput```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qbuttonaxisinput.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>An axis input controlled by buttons The axis value is controlled by buttons rather than a traditional analog input such as a joystick.</p></div>
#[repr(C)]
pub struct QButtonAxisInput {
_unused: u8,
}
impl QButtonAxisInput {
/// <p>Specifies how the axis output value is scaled. No scaling is applied by default so it defaults to 1.</p>
///
/// Returns a built-in Qt slot `Qt3DInput::QButtonAxisInput::setScale` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qbuttonaxisinput.html#scale-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Specifies how the axis output value is scaled. No scaling is applied by default so it defaults to 1.</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>Specifies the buttons which control the axis</p>
///
/// Returns a built-in Qt slot `Qt3DInput::QButtonAxisInput::setButtons` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qbuttonaxisinput.html#buttons-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Specifies the buttons which control the axis</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QVector<int> </td><td class="memItemRight bottomAlign"><span class="name"><b>buttons</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setButtons</b></span>(const QVector<int> &<i>buttons</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>buttonsChanged</b></span>(const QVector<int> &<i>buttons</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub fn slot_set_buttons(&self) -> ::qt_core::Receiver<(*const ::qt_core::QVectorOfInt,)> {
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"1setButtons(QVector< int > const &)\0",
),
)
}
}
/// <p>Specifies the rate at which the axis value changes when a button is held</p>
///
/// Returns a built-in Qt slot `Qt3DInput::QButtonAxisInput::setAcceleration` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qbuttonaxisinput.html#acceleration-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Specifies the rate at which the axis value changes when a button is held</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>acceleration</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setAcceleration</b></span>(float <i>acceleration</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>accelerationChanged</b></span>(float <i>acceleration</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub fn slot_set_acceleration(&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"1setAcceleration(float)\0"),
)
}
}
/// <p>Specifies the rate at which the axis value returns to normal when a button is released</p>
///
/// Returns a built-in Qt slot `Qt3DInput::QButtonAxisInput::setDeceleration` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qbuttonaxisinput.html#deceleration-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Specifies the rate at which the axis value returns to normal when a button is released</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>deceleration</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setDeceleration</b></span>(float <i>deceleration</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>decelerationChanged</b></span>(float <i>deceleration</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub fn slot_set_deceleration(&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"1setDeceleration(float)\0"),
)
}
}
/// <p>Specifies how the axis output value is scaled. No scaling is applied by default so it defaults to 1.</p>
///
/// Returns a built-in Qt signal `Qt3DInput::QButtonAxisInput::scaleChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qbuttonaxisinput.html#scale-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Specifies how the axis output value is scaled. No scaling is applied by default so it defaults to 1.</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>Specifies the buttons which control the axis</p>
///
/// Returns a built-in Qt signal `Qt3DInput::QButtonAxisInput::buttonsChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qbuttonaxisinput.html#buttons-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Specifies the buttons which control the axis</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QVector<int> </td><td class="memItemRight bottomAlign"><span class="name"><b>buttons</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setButtons</b></span>(const QVector<int> &<i>buttons</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>buttonsChanged</b></span>(const QVector<int> &<i>buttons</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub fn buttons_changed(&self) -> ::qt_core::Signal<(*const ::qt_core::QVectorOfInt,)> {
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"2buttonsChanged(QVector< int > const &)\0",
),
)
}
}
/// <p>Specifies the rate at which the axis value changes when a button is held</p>
///
/// Returns a built-in Qt signal `Qt3DInput::QButtonAxisInput::accelerationChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qbuttonaxisinput.html#acceleration-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Specifies the rate at which the axis value changes when a button is held</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>acceleration</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setAcceleration</b></span>(float <i>acceleration</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>accelerationChanged</b></span>(float <i>acceleration</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub fn acceleration_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"2accelerationChanged(float)\0"),
)
}
}
/// <p>Specifies the rate at which the axis value returns to normal when a button is released</p>
///
/// Returns a built-in Qt signal `Qt3DInput::QButtonAxisInput::decelerationChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qbuttonaxisinput.html#deceleration-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Specifies the rate at which the axis value returns to normal when a button is released</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>deceleration</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setDeceleration</b></span>(float <i>deceleration</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>decelerationChanged</b></span>(float <i>deceleration</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub fn deceleration_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"2decelerationChanged(float)\0"),
)
}
}
/// <p>Specifies the rate at which the axis value changes when a button is held</p>
///
/// Calls C++ function: <span style='color: green;'>```float Qt3DInput::QButtonAxisInput::acceleration() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qbuttonaxisinput.html#acceleration-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Specifies the rate at which the axis value changes when a button is held</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>acceleration</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setAcceleration</b></span>(float <i>acceleration</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>accelerationChanged</b></span>(float <i>acceleration</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub unsafe fn acceleration(&self) -> ::std::os::raw::c_float {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QButtonAxisInput_acceleration(
self as *const crate::QButtonAxisInput,
)
}
/// <p>Specifies the buttons which control the axis</p>
///
/// Calls C++ function: <span style='color: green;'>```QVector<int> Qt3DInput::QButtonAxisInput::buttons() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qbuttonaxisinput.html#buttons-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Specifies the buttons which control the axis</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QVector<int> </td><td class="memItemRight bottomAlign"><span class="name"><b>buttons</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setButtons</b></span>(const QVector<int> &<i>buttons</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>buttonsChanged</b></span>(const QVector<int> &<i>buttons</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub unsafe fn buttons(&self) -> ::cpp_core::CppBox<::qt_core::QVectorOfInt> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QButtonAxisInput_buttons(
self as *const crate::QButtonAxisInput,
)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Specifies the rate at which the axis value returns to normal when a button is released</p>
///
/// Calls C++ function: <span style='color: green;'>```float Qt3DInput::QButtonAxisInput::deceleration() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qbuttonaxisinput.html#deceleration-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Specifies the rate at which the axis value returns to normal when a button is released</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>deceleration</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setDeceleration</b></span>(float <i>deceleration</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>decelerationChanged</b></span>(float <i>deceleration</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub unsafe fn deceleration(&self) -> ::std::os::raw::c_float {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QButtonAxisInput_deceleration(
self as *const crate::QButtonAxisInput,
)
}
/// Calls C++ function: <span style='color: green;'>```virtual const QMetaObject* Qt3DInput::QButtonAxisInput::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_input_ffi_Qt3DInput_QButtonAxisInput_metaObject(
self as *const crate::QButtonAxisInput,
)
};
::cpp_core::Ptr::from_raw(ffi_result as *mut ::qt_core::QMetaObject)
}
/// <p>Constructs a new <a href="http://doc.qt.io/qt-5/qt3dinput-qbuttonaxisinput.html">QButtonAxisInput</a> instance with <i>parent</i>.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DInput::QButtonAxisInput::QButtonAxisInput(Qt3DCore::QNode* parent = …)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qbuttonaxisinput.html#QButtonAxisInput">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/qt3dinput-qbuttonaxisinput.html">QButtonAxisInput</a> instance with <i>parent</i>.</p></div>
#[inline(always)]
pub unsafe fn new_1a(
parent: impl ::cpp_core::CastInto<::cpp_core::Ptr<::qt_3d_core::QNode>>,
) -> ::qt_core::QBox<crate::QButtonAxisInput> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QButtonAxisInput_QButtonAxisInput(
::cpp_core::CastInto::<::cpp_core::Ptr<::qt_3d_core::QNode>>::cast_into(parent)
.as_raw_ptr() as *mut ::qt_3d_core::QNode,
)
};
::qt_core::QBox::from_raw(ffi_result)
}
/// <p>An axis input controlled by buttons The axis value is controlled by buttons rather than a traditional analog input such as a joystick.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DInput::QButtonAxisInput::QButtonAxisInput()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qbuttonaxisinput.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>An axis input controlled by buttons The axis value is controlled by buttons rather than a traditional analog input such as a joystick.</p></div>
#[inline(always)]
pub unsafe fn new_0a() -> ::qt_core::QBox<crate::QButtonAxisInput> {
let ffi_result =
{ crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QButtonAxisInput_QButtonAxisInput1() };
::qt_core::QBox::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```virtual int Qt3DInput::QButtonAxisInput::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_input_ffi_Qt3DInput_QButtonAxisInput_qt_metacall(
self as *const crate::QButtonAxisInput as *mut crate::QButtonAxisInput,
arg1,
arg2,
arg3,
)
}
/// Calls C++ function: <span style='color: green;'>```virtual void* Qt3DInput::QButtonAxisInput::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_input_ffi_Qt3DInput_QButtonAxisInput_qt_metacast(
self as *const crate::QButtonAxisInput as *mut crate::QButtonAxisInput,
arg1,
)
}
/// <p>Specifies how the axis output value is scaled. No scaling is applied by default so it defaults to 1.</p>
///
/// Calls C++ function: <span style='color: green;'>```float Qt3DInput::QButtonAxisInput::scale() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qbuttonaxisinput.html#scale-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Specifies how the axis output value is scaled. No scaling is applied by default so it defaults to 1.</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_input_ffi_Qt3DInput_QButtonAxisInput_scale(
self as *const crate::QButtonAxisInput,
)
}
/// <p>Specifies the rate at which the axis value changes when a button is held</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DInput::QButtonAxisInput::setAcceleration(float acceleration)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qbuttonaxisinput.html#acceleration-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Specifies the rate at which the axis value changes when a button is held</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>acceleration</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setAcceleration</b></span>(float <i>acceleration</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>accelerationChanged</b></span>(float <i>acceleration</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub unsafe fn set_acceleration(&self, acceleration: ::std::os::raw::c_float) {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QButtonAxisInput_setAcceleration(
self as *const crate::QButtonAxisInput as *mut crate::QButtonAxisInput,
acceleration,
)
}
/// <p>Specifies the buttons which control the axis</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DInput::QButtonAxisInput::setButtons(const QVector<int>& buttons)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qbuttonaxisinput.html#buttons-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Specifies the buttons which control the axis</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QVector<int> </td><td class="memItemRight bottomAlign"><span class="name"><b>buttons</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setButtons</b></span>(const QVector<int> &<i>buttons</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>buttonsChanged</b></span>(const QVector<int> &<i>buttons</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub unsafe fn set_buttons(
&self,
buttons: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_core::QVectorOfInt>>,
) {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QButtonAxisInput_setButtons(
self as *const crate::QButtonAxisInput as *mut crate::QButtonAxisInput,
::cpp_core::CastInto::<::cpp_core::Ref<::qt_core::QVectorOfInt>>::cast_into(buttons)
.as_raw_ptr(),
)
}
/// <p>Specifies the rate at which the axis value returns to normal when a button is released</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DInput::QButtonAxisInput::setDeceleration(float deceleration)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qbuttonaxisinput.html#deceleration-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Specifies the rate at which the axis value returns to normal when a button is released</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>deceleration</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setDeceleration</b></span>(float <i>deceleration</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>decelerationChanged</b></span>(float <i>deceleration</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub unsafe fn set_deceleration(&self, deceleration: ::std::os::raw::c_float) {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QButtonAxisInput_setDeceleration(
self as *const crate::QButtonAxisInput as *mut crate::QButtonAxisInput,
deceleration,
)
}
/// <p>Specifies how the axis output value is scaled. No scaling is applied by default so it defaults to 1.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DInput::QButtonAxisInput::setScale(float scale)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qbuttonaxisinput.html#scale-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Specifies how the axis output value is scaled. No scaling is applied by default so it defaults to 1.</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_input_ffi_Qt3DInput_QButtonAxisInput_setScale(
self as *const crate::QButtonAxisInput as *mut crate::QButtonAxisInput,
scale,
)
}
/// 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_input_ffi_Qt3DInput_QButtonAxisInput_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 Qt3DInput::QButtonAxisInput::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_input_ffi_Qt3DInput_QButtonAxisInput_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 Qt3DInput::QButtonAxisInput::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_input_ffi_Qt3DInput_QButtonAxisInput_trUtf8(s, c, n) };
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
}
/// <p>Responsible for creating physical devices and handling associated jobs.</p>
///
/// C++ class: <span style='color: green;'>```Qt3DInput::QInputAspect```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qinputaspect.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Responsible for creating physical devices and handling associated jobs.</p>
/// <p>Handles mapping between front and backend nodes</p>
/// <p><a href="http://doc.qt.io/qt-5/qt3dinput-qinputaspect.html">QInputAspect</a> is responsible for creating physical devices. It is also the object responsible establishing the jobs to run at a particular time from the current input setup.</p></div>
#[repr(C)]
pub struct QInputAspect {
_unused: u8,
}
impl QInputAspect {
/// <p>Returns a list of all available physical devices.</p>
///
/// Calls C++ function: <span style='color: green;'>```QStringList Qt3DInput::QInputAspect::availablePhysicalDevices() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qinputaspect.html#availablePhysicalDevices">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns a list of all available physical devices.</p></div>
#[inline(always)]
pub unsafe fn available_physical_devices(&self) -> ::cpp_core::CppBox<::qt_core::QStringList> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QInputAspect_availablePhysicalDevices(
self as *const crate::QInputAspect,
)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Create a physical device identified by <i>name</i> using the input device integrations present returns a Q_NULLPTR if it is not found.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QAbstractPhysicalDevice* Qt3DInput::QInputAspect::createPhysicalDevice(const QString& name)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qinputaspect.html#createPhysicalDevice">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Create a physical device identified by <i>name</i> using the input device integrations present returns a Q_NULLPTR if it is not found.</p>
/// <p><b>Note: </b>caller is responsible for ownership</p></div>
#[inline(always)]
pub unsafe fn create_physical_device(
&self,
name: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_core::QString>>,
) -> ::qt_core::QPtr<crate::QAbstractPhysicalDevice> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QInputAspect_createPhysicalDevice(
self as *const crate::QInputAspect as *mut crate::QInputAspect,
::cpp_core::CastInto::<::cpp_core::Ref<::qt_core::QString>>::cast_into(name)
.as_raw_ptr(),
)
};
::qt_core::QPtr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```virtual const QMetaObject* Qt3DInput::QInputAspect::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_input_ffi_Qt3DInput_QInputAspect_metaObject(
self as *const crate::QInputAspect,
)
};
::cpp_core::Ptr::from_raw(ffi_result as *mut ::qt_core::QMetaObject)
}
/// <p>Constructs a new <a href="http://doc.qt.io/qt-5/qt3dinput-qinputaspect.html">QInputAspect</a> with <i>parent</i>.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DInput::QInputAspect::QInputAspect(QObject* parent = …)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qinputaspect.html#QInputAspect">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/qt3dinput-qinputaspect.html">QInputAspect</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::QInputAspect> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QInputAspect_QInputAspect(
::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 creating physical devices and handling associated jobs.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DInput::QInputAspect::QInputAspect()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qinputaspect.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Responsible for creating physical devices and handling associated jobs.</p>
/// <p>Handles mapping between front and backend nodes</p>
/// <p><a href="http://doc.qt.io/qt-5/qt3dinput-qinputaspect.html">QInputAspect</a> is responsible for creating physical devices. It is also the object responsible establishing the jobs to run at a particular time from the current input setup.</p></div>
#[inline(always)]
pub unsafe fn new_0a() -> ::qt_core::QBox<crate::QInputAspect> {
let ffi_result =
{ crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QInputAspect_QInputAspect1() };
::qt_core::QBox::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```virtual int Qt3DInput::QInputAspect::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_input_ffi_Qt3DInput_QInputAspect_qt_metacall(
self as *const crate::QInputAspect as *mut crate::QInputAspect,
arg1,
arg2,
arg3,
)
}
/// Calls C++ function: <span style='color: green;'>```virtual void* Qt3DInput::QInputAspect::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_input_ffi_Qt3DInput_QInputAspect_qt_metacast(
self as *const crate::QInputAspect as *mut crate::QInputAspect,
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_input_ffi_Qt3DInput_QInputAspect_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 Qt3DInput::QInputAspect::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_input_ffi_Qt3DInput_QInputAspect_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 Qt3DInput::QInputAspect::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_input_ffi_Qt3DInput_QInputAspect_trUtf8(s, c, n) };
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
}
/// <p><a href="http://doc.qt.io/qt-5/qt3dinput-qinputchord.html">QInputChord</a> represents a set of <a href="http://doc.qt.io/qt-5/qt3dinput-qabstractactioninput.html">QAbstractActionInput</a>'s that must be triggerd at once.</p>
///
/// C++ class: <span style='color: green;'>```Qt3DInput::QInputChord```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qinputchord.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p><a href="http://doc.qt.io/qt-5/qt3dinput-qinputchord.html">QInputChord</a> represents a set of <a href="http://doc.qt.io/qt-5/qt3dinput-qabstractactioninput.html">QAbstractActionInput</a>'s that must be triggerd at once.</p></div>
#[repr(C)]
pub struct QInputChord {
_unused: u8,
}
impl QInputChord {
/// <p>Sets the time in which all <a href="http://doc.qt.io/qt-5/qt3dinput-qabstractactioninput.html">QAbstractActionInput</a>'s in the input chord must triggered within to <i>timeout</i>. The time is in milliseconds</p>
///
/// Returns a built-in Qt slot `Qt3DInput::QInputChord::setTimeout` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qinputchord.html#setTimeout">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Sets the time in which all <a href="http://doc.qt.io/qt-5/qt3dinput-qabstractactioninput.html">QAbstractActionInput</a>'s in the input chord must triggered within to <i>timeout</i>. The time is in milliseconds</p>
/// <p><b>Note:</b> Setter function for property <a href="http://doc.qt.io/qt-5/qt3dinput-qinputchord.html#timeout-prop">timeout</a>. </p><p><b>See also </b><a href="http://doc.qt.io/qt-5/qt3dinput-qinputchord.html#timeout-prop">timeout</a>().</p></div>
#[inline(always)]
pub fn slot_set_timeout(&self) -> ::qt_core::Receiver<(::std::os::raw::c_int,)> {
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"1setTimeout(int)\0"),
)
}
}
/// <p>The time in which all <a href="http://doc.qt.io/qt-5/qt3dinput-qabstractactioninput.html">QAbstractActionInput</a>'s in the input chord must triggered within. The time is in milliseconds.</p>
///
/// Returns a built-in Qt signal `Qt3DInput::QInputChord::timeoutChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qinputchord.html#timeout-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>The time in which all <a href="http://doc.qt.io/qt-5/qt3dinput-qabstractactioninput.html">QAbstractActionInput</a>'s in the input chord must triggered within. The time is in milliseconds.</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>timeout</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="http://doc.qt.io/qt-5/qt3dinput-qinputchord.html#setTimeout">setTimeout</a></b></span>(int <i>timeout</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>timeoutChanged</b></span>(int <i>timeout</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub fn timeout_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"2timeoutChanged(int)\0"),
)
}
}
/// <p>Append the <a href="http://doc.qt.io/qt-5/qt3dinput-qabstractactioninput.html">QAbstractActionInput</a> <i>input</i> to the end of this <a href="http://doc.qt.io/qt-5/qt3dinput-qinputchord.html">QInputChord</a>'s chord vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```void Qt3DInput::QInputChord::addChord(Qt3DInput::QAbstractActionInput* input)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qinputchord.html#addChord">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Append the <a href="http://doc.qt.io/qt-5/qt3dinput-qabstractactioninput.html">QAbstractActionInput</a> <i>input</i> to the end of this <a href="http://doc.qt.io/qt-5/qt3dinput-qinputchord.html">QInputChord</a>'s chord vector.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qt3dinput-qinputchord.html#removeChord">removeChord</a>.</p></div>
#[inline(always)]
pub unsafe fn add_chord(
&self,
input: impl ::cpp_core::CastInto<::cpp_core::Ptr<crate::QAbstractActionInput>>,
) {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QInputChord_addChord(
self as *const crate::QInputChord as *mut crate::QInputChord,
::cpp_core::CastInto::<::cpp_core::Ptr<crate::QAbstractActionInput>>::cast_into(input)
.as_raw_ptr() as *mut crate::QAbstractActionInput,
)
}
/// <p>Returns the <a href="http://doc.qt.io/qt-5/qt3dinput-qinputchord.html">QInputChord</a>'s chord vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```QVector<Qt3DInput::QAbstractActionInput*> Qt3DInput::QInputChord::chords() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qinputchord.html#chords">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the <a href="http://doc.qt.io/qt-5/qt3dinput-qinputchord.html">QInputChord</a>'s chord vector.</p></div>
#[inline(always)]
pub unsafe fn chords(&self) -> ::cpp_core::CppBox<crate::QVectorOfQAbstractActionInput> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QInputChord_chords(
self as *const crate::QInputChord,
)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// Calls C++ function: <span style='color: green;'>```virtual const QMetaObject* Qt3DInput::QInputChord::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_input_ffi_Qt3DInput_QInputChord_metaObject(
self as *const crate::QInputChord,
)
};
::cpp_core::Ptr::from_raw(ffi_result as *mut ::qt_core::QMetaObject)
}
/// <p>Constructs a new <a href="http://doc.qt.io/qt-5/qt3dinput-qinputchord.html">QInputChord</a> with parent <i>parent</i>.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DInput::QInputChord::QInputChord(Qt3DCore::QNode* parent = …)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qinputchord.html#QInputChord">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/qt3dinput-qinputchord.html">QInputChord</a> with parent <i>parent</i>.</p></div>
#[inline(always)]
pub unsafe fn new_1a(
parent: impl ::cpp_core::CastInto<::cpp_core::Ptr<::qt_3d_core::QNode>>,
) -> ::qt_core::QBox<crate::QInputChord> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QInputChord_QInputChord(
::cpp_core::CastInto::<::cpp_core::Ptr<::qt_3d_core::QNode>>::cast_into(parent)
.as_raw_ptr() as *mut ::qt_3d_core::QNode,
)
};
::qt_core::QBox::from_raw(ffi_result)
}
/// <p><a href="http://doc.qt.io/qt-5/qt3dinput-qinputchord.html">QInputChord</a> represents a set of <a href="http://doc.qt.io/qt-5/qt3dinput-qabstractactioninput.html">QAbstractActionInput</a>'s that must be triggerd at once.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DInput::QInputChord::QInputChord()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qinputchord.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p><a href="http://doc.qt.io/qt-5/qt3dinput-qinputchord.html">QInputChord</a> represents a set of <a href="http://doc.qt.io/qt-5/qt3dinput-qabstractactioninput.html">QAbstractActionInput</a>'s that must be triggerd at once.</p></div>
#[inline(always)]
pub unsafe fn new_0a() -> ::qt_core::QBox<crate::QInputChord> {
let ffi_result = { crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QInputChord_QInputChord1() };
::qt_core::QBox::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```virtual int Qt3DInput::QInputChord::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_input_ffi_Qt3DInput_QInputChord_qt_metacall(
self as *const crate::QInputChord as *mut crate::QInputChord,
arg1,
arg2,
arg3,
)
}
/// Calls C++ function: <span style='color: green;'>```virtual void* Qt3DInput::QInputChord::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_input_ffi_Qt3DInput_QInputChord_qt_metacast(
self as *const crate::QInputChord as *mut crate::QInputChord,
arg1,
)
}
/// <p>Remove the <a href="http://doc.qt.io/qt-5/qt3dinput-qabstractactioninput.html">QAbstractActionInput</a> <i>input</i> from this <a href="http://doc.qt.io/qt-5/qt3dinput-qinputchord.html">QInputChord</a>'s chord vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```void Qt3DInput::QInputChord::removeChord(Qt3DInput::QAbstractActionInput* input)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qinputchord.html#removeChord">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Remove the <a href="http://doc.qt.io/qt-5/qt3dinput-qabstractactioninput.html">QAbstractActionInput</a> <i>input</i> from this <a href="http://doc.qt.io/qt-5/qt3dinput-qinputchord.html">QInputChord</a>'s chord vector.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qt3dinput-qinputchord.html#addChord">addChord</a>.</p></div>
#[inline(always)]
pub unsafe fn remove_chord(
&self,
input: impl ::cpp_core::CastInto<::cpp_core::Ptr<crate::QAbstractActionInput>>,
) {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QInputChord_removeChord(
self as *const crate::QInputChord as *mut crate::QInputChord,
::cpp_core::CastInto::<::cpp_core::Ptr<crate::QAbstractActionInput>>::cast_into(input)
.as_raw_ptr() as *mut crate::QAbstractActionInput,
)
}
/// <p>Sets the time in which all <a href="http://doc.qt.io/qt-5/qt3dinput-qabstractactioninput.html">QAbstractActionInput</a>'s in the input chord must triggered within to <i>timeout</i>. The time is in milliseconds</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DInput::QInputChord::setTimeout(int timeout)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qinputchord.html#setTimeout">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Sets the time in which all <a href="http://doc.qt.io/qt-5/qt3dinput-qabstractactioninput.html">QAbstractActionInput</a>'s in the input chord must triggered within to <i>timeout</i>. The time is in milliseconds</p>
/// <p><b>Note:</b> Setter function for property <a href="http://doc.qt.io/qt-5/qt3dinput-qinputchord.html#timeout-prop">timeout</a>. </p><p><b>See also </b><a href="http://doc.qt.io/qt-5/qt3dinput-qinputchord.html#timeout-prop">timeout</a>().</p></div>
#[inline(always)]
pub unsafe fn set_timeout(&self, timeout: ::std::os::raw::c_int) {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QInputChord_setTimeout(
self as *const crate::QInputChord as *mut crate::QInputChord,
timeout,
)
}
/// 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_input_ffi_Qt3DInput_QInputChord_staticMetaObject() };
::cpp_core::Ref::from_raw(ffi_result as *mut ::qt_core::QMetaObject)
.expect("attempted to construct a null Ref")
}
/// <p>The time in which all <a href="http://doc.qt.io/qt-5/qt3dinput-qabstractactioninput.html">QAbstractActionInput</a>'s in the input chord must triggered within. The time is in milliseconds.</p>
///
/// Calls C++ function: <span style='color: green;'>```int Qt3DInput::QInputChord::timeout() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qinputchord.html#timeout-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>The time in which all <a href="http://doc.qt.io/qt-5/qt3dinput-qabstractactioninput.html">QAbstractActionInput</a>'s in the input chord must triggered within. The time is in milliseconds.</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>timeout</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="http://doc.qt.io/qt-5/qt3dinput-qinputchord.html#setTimeout">setTimeout</a></b></span>(int <i>timeout</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>timeoutChanged</b></span>(int <i>timeout</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub unsafe fn timeout(&self) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QInputChord_timeout(
self as *const crate::QInputChord,
)
}
/// Calls C++ function: <span style='color: green;'>```static QString Qt3DInput::QInputChord::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_input_ffi_Qt3DInput_QInputChord_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 Qt3DInput::QInputChord::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_input_ffi_Qt3DInput_QInputChord_trUtf8(s, c, n) };
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
}
/// <p><a href="http://doc.qt.io/qt-5/qt3dinput-qinputsequence.html">QInputSequence</a> represents a set of <a href="http://doc.qt.io/qt-5/qt3dinput-qabstractactioninput.html">QAbstractActionInput</a>'s that must be triggerd one after the other.</p>
///
/// C++ class: <span style='color: green;'>```Qt3DInput::QInputSequence```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qinputsequence.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p><a href="http://doc.qt.io/qt-5/qt3dinput-qinputsequence.html">QInputSequence</a> represents a set of <a href="http://doc.qt.io/qt-5/qt3dinput-qabstractactioninput.html">QAbstractActionInput</a>'s that must be triggerd one after the other.</p></div>
#[repr(C)]
pub struct QInputSequence {
_unused: u8,
}
impl QInputSequence {
/// <p>The time in which all <a href="http://doc.qt.io/qt-5/qt3dinput-qabstractactioninput.html">QAbstractActionInput</a>'s in the input sequence must triggered within. The time is in milliseconds.</p>
///
/// Returns a built-in Qt slot `Qt3DInput::QInputSequence::setTimeout` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qinputsequence.html#timeout-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>The time in which all <a href="http://doc.qt.io/qt-5/qt3dinput-qabstractactioninput.html">QAbstractActionInput</a>'s in the input sequence must triggered within. The time is in milliseconds.</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><a href="http://doc.qt.io/qt-5/qt3dinput-qinputsequence.html#timeout">timeout</a></b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setTimeout</b></span>(int <i>timeout</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>timeoutChanged</b></span>(int <i>timeout</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub fn slot_set_timeout(&self) -> ::qt_core::Receiver<(::std::os::raw::c_int,)> {
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"1setTimeout(int)\0"),
)
}
}
/// <p>The maximum time in between consecutive <a href="http://doc.qt.io/qt-5/qt3dinput-qabstractactioninput.html">QAbstractActionInput</a>'s in the input sequence. The time is in milliseconds.</p>
///
/// Returns a built-in Qt slot `Qt3DInput::QInputSequence::setButtonInterval` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qinputsequence.html#buttonInterval-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>The maximum time in between consecutive <a href="http://doc.qt.io/qt-5/qt3dinput-qabstractactioninput.html">QAbstractActionInput</a>'s in the input sequence. The time is in milliseconds.</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><a href="http://doc.qt.io/qt-5/qt3dinput-qinputsequence.html#buttonInterval">buttonInterval</a></b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setButtonInterval</b></span>(int <i>buttonInterval</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>buttonIntervalChanged</b></span>(int <i>buttonInterval</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub fn slot_set_button_interval(&self) -> ::qt_core::Receiver<(::std::os::raw::c_int,)> {
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"1setButtonInterval(int)\0"),
)
}
}
/// <p>The time in which all <a href="http://doc.qt.io/qt-5/qt3dinput-qabstractactioninput.html">QAbstractActionInput</a>'s in the input sequence must triggered within. The time is in milliseconds.</p>
///
/// Returns a built-in Qt signal `Qt3DInput::QInputSequence::timeoutChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qinputsequence.html#timeout-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>The time in which all <a href="http://doc.qt.io/qt-5/qt3dinput-qabstractactioninput.html">QAbstractActionInput</a>'s in the input sequence must triggered within. The time is in milliseconds.</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><a href="http://doc.qt.io/qt-5/qt3dinput-qinputsequence.html#timeout">timeout</a></b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setTimeout</b></span>(int <i>timeout</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>timeoutChanged</b></span>(int <i>timeout</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub fn timeout_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"2timeoutChanged(int)\0"),
)
}
}
/// <p>The maximum time in between consecutive <a href="http://doc.qt.io/qt-5/qt3dinput-qabstractactioninput.html">QAbstractActionInput</a>'s in the input sequence. The time is in milliseconds.</p>
///
/// Returns a built-in Qt signal `Qt3DInput::QInputSequence::buttonIntervalChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qinputsequence.html#buttonInterval-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>The maximum time in between consecutive <a href="http://doc.qt.io/qt-5/qt3dinput-qabstractactioninput.html">QAbstractActionInput</a>'s in the input sequence. The time is in milliseconds.</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><a href="http://doc.qt.io/qt-5/qt3dinput-qinputsequence.html#buttonInterval">buttonInterval</a></b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setButtonInterval</b></span>(int <i>buttonInterval</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>buttonIntervalChanged</b></span>(int <i>buttonInterval</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub fn button_interval_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"2buttonIntervalChanged(int)\0"),
)
}
}
/// <p>Append the <a href="http://doc.qt.io/qt-5/qt3dinput-qabstractactioninput.html">QAbstractActionInput</a> <i>input</i> to the end of this <a href="http://doc.qt.io/qt-5/qt3dinput-qinputsequence.html">QInputSequence</a>'s sequence vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```void Qt3DInput::QInputSequence::addSequence(Qt3DInput::QAbstractActionInput* input)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qinputsequence.html#addSequence">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Append the <a href="http://doc.qt.io/qt-5/qt3dinput-qabstractactioninput.html">QAbstractActionInput</a> <i>input</i> to the end of this <a href="http://doc.qt.io/qt-5/qt3dinput-qinputsequence.html">QInputSequence</a>'s sequence vector.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qt3dinput-qinputsequence.html#removeSequence">removeSequence</a>.</p></div>
#[inline(always)]
pub unsafe fn add_sequence(
&self,
input: impl ::cpp_core::CastInto<::cpp_core::Ptr<crate::QAbstractActionInput>>,
) {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QInputSequence_addSequence(
self as *const crate::QInputSequence as *mut crate::QInputSequence,
::cpp_core::CastInto::<::cpp_core::Ptr<crate::QAbstractActionInput>>::cast_into(input)
.as_raw_ptr() as *mut crate::QAbstractActionInput,
)
}
/// <p>The maximum time in between consecutive <a href="http://doc.qt.io/qt-5/qt3dinput-qabstractactioninput.html">QAbstractActionInput</a>'s in the input sequence. The time is in milliseconds.</p>
///
/// Calls C++ function: <span style='color: green;'>```int Qt3DInput::QInputSequence::buttonInterval() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qinputsequence.html#buttonInterval-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>The maximum time in between consecutive <a href="http://doc.qt.io/qt-5/qt3dinput-qabstractactioninput.html">QAbstractActionInput</a>'s in the input sequence. The time is in milliseconds.</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><a href="http://doc.qt.io/qt-5/qt3dinput-qinputsequence.html#buttonInterval">buttonInterval</a></b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setButtonInterval</b></span>(int <i>buttonInterval</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>buttonIntervalChanged</b></span>(int <i>buttonInterval</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub unsafe fn button_interval(&self) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QInputSequence_buttonInterval(
self as *const crate::QInputSequence,
)
}
/// Calls C++ function: <span style='color: green;'>```virtual const QMetaObject* Qt3DInput::QInputSequence::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_input_ffi_Qt3DInput_QInputSequence_metaObject(
self as *const crate::QInputSequence,
)
};
::cpp_core::Ptr::from_raw(ffi_result as *mut ::qt_core::QMetaObject)
}
/// <p>Constructs a new <a href="http://doc.qt.io/qt-5/qt3dinput-qinputsequence.html">QInputSequence</a> with parent <i>parent</i>.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DInput::QInputSequence::QInputSequence(Qt3DCore::QNode* parent = …)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qinputsequence.html#QInputSequence">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/qt3dinput-qinputsequence.html">QInputSequence</a> with parent <i>parent</i>.</p></div>
#[inline(always)]
pub unsafe fn new_1a(
parent: impl ::cpp_core::CastInto<::cpp_core::Ptr<::qt_3d_core::QNode>>,
) -> ::qt_core::QBox<crate::QInputSequence> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QInputSequence_QInputSequence(
::cpp_core::CastInto::<::cpp_core::Ptr<::qt_3d_core::QNode>>::cast_into(parent)
.as_raw_ptr() as *mut ::qt_3d_core::QNode,
)
};
::qt_core::QBox::from_raw(ffi_result)
}
/// <p><a href="http://doc.qt.io/qt-5/qt3dinput-qinputsequence.html">QInputSequence</a> represents a set of <a href="http://doc.qt.io/qt-5/qt3dinput-qabstractactioninput.html">QAbstractActionInput</a>'s that must be triggerd one after the other.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DInput::QInputSequence::QInputSequence()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qinputsequence.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p><a href="http://doc.qt.io/qt-5/qt3dinput-qinputsequence.html">QInputSequence</a> represents a set of <a href="http://doc.qt.io/qt-5/qt3dinput-qabstractactioninput.html">QAbstractActionInput</a>'s that must be triggerd one after the other.</p></div>
#[inline(always)]
pub unsafe fn new_0a() -> ::qt_core::QBox<crate::QInputSequence> {
let ffi_result =
{ crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QInputSequence_QInputSequence1() };
::qt_core::QBox::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```virtual int Qt3DInput::QInputSequence::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_input_ffi_Qt3DInput_QInputSequence_qt_metacall(
self as *const crate::QInputSequence as *mut crate::QInputSequence,
arg1,
arg2,
arg3,
)
}
/// Calls C++ function: <span style='color: green;'>```virtual void* Qt3DInput::QInputSequence::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_input_ffi_Qt3DInput_QInputSequence_qt_metacast(
self as *const crate::QInputSequence as *mut crate::QInputSequence,
arg1,
)
}
/// <p>Remove the <a href="http://doc.qt.io/qt-5/qt3dinput-qabstractactioninput.html">QAbstractActionInput</a> <i>input</i> from this <a href="http://doc.qt.io/qt-5/qt3dinput-qinputsequence.html">QInputSequence</a>'s sequence vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```void Qt3DInput::QInputSequence::removeSequence(Qt3DInput::QAbstractActionInput* input)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qinputsequence.html#removeSequence">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Remove the <a href="http://doc.qt.io/qt-5/qt3dinput-qabstractactioninput.html">QAbstractActionInput</a> <i>input</i> from this <a href="http://doc.qt.io/qt-5/qt3dinput-qinputsequence.html">QInputSequence</a>'s sequence vector.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qt3dinput-qinputsequence.html#addSequence">addSequence</a>.</p></div>
#[inline(always)]
pub unsafe fn remove_sequence(
&self,
input: impl ::cpp_core::CastInto<::cpp_core::Ptr<crate::QAbstractActionInput>>,
) {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QInputSequence_removeSequence(
self as *const crate::QInputSequence as *mut crate::QInputSequence,
::cpp_core::CastInto::<::cpp_core::Ptr<crate::QAbstractActionInput>>::cast_into(input)
.as_raw_ptr() as *mut crate::QAbstractActionInput,
)
}
/// <p>Returns the <a href="http://doc.qt.io/qt-5/qt3dinput-qinputsequence.html">QInputSequence</a>'s sequence vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```QVector<Qt3DInput::QAbstractActionInput*> Qt3DInput::QInputSequence::sequences() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qinputsequence.html#sequences">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the <a href="http://doc.qt.io/qt-5/qt3dinput-qinputsequence.html">QInputSequence</a>'s sequence vector.</p></div>
#[inline(always)]
pub unsafe fn sequences(&self) -> ::cpp_core::CppBox<crate::QVectorOfQAbstractActionInput> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QInputSequence_sequences(
self as *const crate::QInputSequence,
)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>The maximum time in between consecutive <a href="http://doc.qt.io/qt-5/qt3dinput-qabstractactioninput.html">QAbstractActionInput</a>'s in the input sequence. The time is in milliseconds.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DInput::QInputSequence::setButtonInterval(int buttonInterval)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qinputsequence.html#buttonInterval-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>The maximum time in between consecutive <a href="http://doc.qt.io/qt-5/qt3dinput-qabstractactioninput.html">QAbstractActionInput</a>'s in the input sequence. The time is in milliseconds.</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><a href="http://doc.qt.io/qt-5/qt3dinput-qinputsequence.html#buttonInterval">buttonInterval</a></b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setButtonInterval</b></span>(int <i>buttonInterval</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>buttonIntervalChanged</b></span>(int <i>buttonInterval</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub unsafe fn set_button_interval(&self, button_interval: ::std::os::raw::c_int) {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QInputSequence_setButtonInterval(
self as *const crate::QInputSequence as *mut crate::QInputSequence,
button_interval,
)
}
/// <p>The time in which all <a href="http://doc.qt.io/qt-5/qt3dinput-qabstractactioninput.html">QAbstractActionInput</a>'s in the input sequence must triggered within. The time is in milliseconds.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DInput::QInputSequence::setTimeout(int timeout)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qinputsequence.html#timeout-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>The time in which all <a href="http://doc.qt.io/qt-5/qt3dinput-qabstractactioninput.html">QAbstractActionInput</a>'s in the input sequence must triggered within. The time is in milliseconds.</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><a href="http://doc.qt.io/qt-5/qt3dinput-qinputsequence.html#timeout">timeout</a></b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setTimeout</b></span>(int <i>timeout</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>timeoutChanged</b></span>(int <i>timeout</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub unsafe fn set_timeout(&self, timeout: ::std::os::raw::c_int) {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QInputSequence_setTimeout(
self as *const crate::QInputSequence as *mut crate::QInputSequence,
timeout,
)
}
/// 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_input_ffi_Qt3DInput_QInputSequence_staticMetaObject() };
::cpp_core::Ref::from_raw(ffi_result as *mut ::qt_core::QMetaObject)
.expect("attempted to construct a null Ref")
}
/// <p>The time in which all <a href="http://doc.qt.io/qt-5/qt3dinput-qabstractactioninput.html">QAbstractActionInput</a>'s in the input sequence must triggered within. The time is in milliseconds.</p>
///
/// Calls C++ function: <span style='color: green;'>```int Qt3DInput::QInputSequence::timeout() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qinputsequence.html#timeout-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>The time in which all <a href="http://doc.qt.io/qt-5/qt3dinput-qabstractactioninput.html">QAbstractActionInput</a>'s in the input sequence must triggered within. The time is in milliseconds.</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><a href="http://doc.qt.io/qt-5/qt3dinput-qinputsequence.html#timeout">timeout</a></b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setTimeout</b></span>(int <i>timeout</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>timeoutChanged</b></span>(int <i>timeout</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub unsafe fn timeout(&self) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QInputSequence_timeout(
self as *const crate::QInputSequence,
)
}
/// Calls C++ function: <span style='color: green;'>```static QString Qt3DInput::QInputSequence::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_input_ffi_Qt3DInput_QInputSequence_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 Qt3DInput::QInputSequence::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_input_ffi_Qt3DInput_QInputSequence_trUtf8(s, c, n) };
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
}
/// <p><a href="http://doc.qt.io/qt-5/qt3dinput-qinputsettings.html">QInputSettings</a> class holds the pointer to an input event source object.</p>
///
/// C++ class: <span style='color: green;'>```Qt3DInput::QInputSettings```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qinputsettings.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p><a href="http://doc.qt.io/qt-5/qt3dinput-qinputsettings.html">QInputSettings</a> class holds the pointer to an input event source object.</p>
/// <p>The <a href="http://doc.qt.io/qt-5/qt3dinput-qinputsettings.html">QInputSettings</a> component must be set as a component of the scene root entity. It stores a pointer to the object that acts as the source of input events to be handled by various input classes. For example, a <a href="http://doc.qt.io/qt-5/qwindow.html">QWindow</a> instance can be an event source.</p></div>
#[repr(C)]
pub struct QInputSettings {
_unused: u8,
}
impl QInputSettings {
/// <p>Holds the current event source. An event source is an object that is capable of receiving various input events, such as mouse or keyboard events. Typically it is a <a href="http://doc.qt.io/qt-5/qwindow.html">QWindow</a> instance.</p>
///
/// Returns a built-in Qt slot `Qt3DInput::QInputSettings::setEventSource` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qinputsettings.html#eventSource-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current event source. An event source is an object that is capable of receiving various input events, such as mouse or keyboard events. Typically it is a <a href="http://doc.qt.io/qt-5/qwindow.html">QWindow</a> instance.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QObject *</td><td class="memItemRight bottomAlign"><span class="name"><b>eventSource</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setEventSource</b></span>(QObject *<i>eventSource</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>eventSourceChanged</b></span>(<i>QObject *</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub fn slot_set_event_source(&self) -> ::qt_core::Receiver<(*mut ::qt_core::QObject,)> {
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"1setEventSource(QObject *)\0"),
)
}
}
/// <p>Holds the current event source. An event source is an object that is capable of receiving various input events, such as mouse or keyboard events. Typically it is a <a href="http://doc.qt.io/qt-5/qwindow.html">QWindow</a> instance.</p>
///
/// Returns a built-in Qt signal `Qt3DInput::QInputSettings::eventSourceChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qinputsettings.html#eventSource-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current event source. An event source is an object that is capable of receiving various input events, such as mouse or keyboard events. Typically it is a <a href="http://doc.qt.io/qt-5/qwindow.html">QWindow</a> instance.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QObject *</td><td class="memItemRight bottomAlign"><span class="name"><b>eventSource</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setEventSource</b></span>(QObject *<i>eventSource</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>eventSourceChanged</b></span>(<i>QObject *</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub fn event_source_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"2eventSourceChanged(QObject *)\0",
),
)
}
}
/// <p>Holds the current event source. An event source is an object that is capable of receiving various input events, such as mouse or keyboard events. Typically it is a <a href="http://doc.qt.io/qt-5/qwindow.html">QWindow</a> instance.</p>
///
/// Calls C++ function: <span style='color: green;'>```QObject* Qt3DInput::QInputSettings::eventSource() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qinputsettings.html#eventSource-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current event source. An event source is an object that is capable of receiving various input events, such as mouse or keyboard events. Typically it is a <a href="http://doc.qt.io/qt-5/qwindow.html">QWindow</a> instance.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QObject *</td><td class="memItemRight bottomAlign"><span class="name"><b>eventSource</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setEventSource</b></span>(QObject *<i>eventSource</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>eventSourceChanged</b></span>(<i>QObject *</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub unsafe fn event_source(&self) -> ::qt_core::QPtr<::qt_core::QObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QInputSettings_eventSource(
self as *const crate::QInputSettings,
)
};
::qt_core::QPtr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```virtual const QMetaObject* Qt3DInput::QInputSettings::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_input_ffi_Qt3DInput_QInputSettings_metaObject(
self as *const crate::QInputSettings,
)
};
::cpp_core::Ptr::from_raw(ffi_result as *mut ::qt_core::QMetaObject)
}
/// <p>Default constructs an instance of QInputSettings.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DInput::QInputSettings::QInputSettings(Qt3DCore::QNode* parent = …)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qinputsettings.html#QInputSettings">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Default constructs an instance of QInputSettings.</p></div>
#[inline(always)]
pub unsafe fn new_1a(
parent: impl ::cpp_core::CastInto<::cpp_core::Ptr<::qt_3d_core::QNode>>,
) -> ::qt_core::QBox<crate::QInputSettings> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QInputSettings_QInputSettings(
::cpp_core::CastInto::<::cpp_core::Ptr<::qt_3d_core::QNode>>::cast_into(parent)
.as_raw_ptr() as *mut ::qt_3d_core::QNode,
)
};
::qt_core::QBox::from_raw(ffi_result)
}
/// <p><a href="http://doc.qt.io/qt-5/qt3dinput-qinputsettings.html">QInputSettings</a> class holds the pointer to an input event source object.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DInput::QInputSettings::QInputSettings()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qinputsettings.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p><a href="http://doc.qt.io/qt-5/qt3dinput-qinputsettings.html">QInputSettings</a> class holds the pointer to an input event source object.</p>
/// <p>The <a href="http://doc.qt.io/qt-5/qt3dinput-qinputsettings.html">QInputSettings</a> component must be set as a component of the scene root entity. It stores a pointer to the object that acts as the source of input events to be handled by various input classes. For example, a <a href="http://doc.qt.io/qt-5/qwindow.html">QWindow</a> instance can be an event source.</p></div>
#[inline(always)]
pub unsafe fn new_0a() -> ::qt_core::QBox<crate::QInputSettings> {
let ffi_result =
{ crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QInputSettings_QInputSettings1() };
::qt_core::QBox::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```virtual int Qt3DInput::QInputSettings::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_input_ffi_Qt3DInput_QInputSettings_qt_metacall(
self as *const crate::QInputSettings as *mut crate::QInputSettings,
arg1,
arg2,
arg3,
)
}
/// Calls C++ function: <span style='color: green;'>```virtual void* Qt3DInput::QInputSettings::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_input_ffi_Qt3DInput_QInputSettings_qt_metacast(
self as *const crate::QInputSettings as *mut crate::QInputSettings,
arg1,
)
}
/// <p>Holds the current event source. An event source is an object that is capable of receiving various input events, such as mouse or keyboard events. Typically it is a <a href="http://doc.qt.io/qt-5/qwindow.html">QWindow</a> instance.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DInput::QInputSettings::setEventSource(QObject* eventSource)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qinputsettings.html#eventSource-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current event source. An event source is an object that is capable of receiving various input events, such as mouse or keyboard events. Typically it is a <a href="http://doc.qt.io/qt-5/qwindow.html">QWindow</a> instance.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QObject *</td><td class="memItemRight bottomAlign"><span class="name"><b>eventSource</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setEventSource</b></span>(QObject *<i>eventSource</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>eventSourceChanged</b></span>(<i>QObject *</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub unsafe fn set_event_source(
&self,
event_source: impl ::cpp_core::CastInto<::cpp_core::Ptr<::qt_core::QObject>>,
) {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QInputSettings_setEventSource(
self as *const crate::QInputSettings as *mut crate::QInputSettings,
::cpp_core::CastInto::<::cpp_core::Ptr<::qt_core::QObject>>::cast_into(event_source)
.as_raw_ptr() as *mut ::qt_core::QObject,
)
}
/// 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_input_ffi_Qt3DInput_QInputSettings_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 Qt3DInput::QInputSettings::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_input_ffi_Qt3DInput_QInputSettings_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 Qt3DInput::QInputSettings::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_input_ffi_Qt3DInput_QInputSettings_trUtf8(s, c, n) };
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
}
/// <p><a href="http://doc.qt.io/qt-5/qt3dinput-qkeyevent.html">QKeyEvent</a> event type send by KeyBoardHandler.</p>
///
/// C++ class: <span style='color: green;'>```Qt3DInput::QKeyEvent```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qkeyevent.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p><a href="http://doc.qt.io/qt-5/qt3dinput-qkeyevent.html">QKeyEvent</a> event type send by KeyBoardHandler.</p>
/// <p>Contains parameters that describe a key event</p></div>
#[repr(C)]
pub struct QKeyEvent {
_unused: u8,
}
impl QKeyEvent {
/// <p>Holds the number of keys involved in this event. If <a href="http://doc.qt.io/qt-5/qt3dinput-qkeyevent.html#text-prop">text</a> is not empty, this is simply the length of the string.</p>
///
/// Calls C++ function: <span style='color: green;'>```int Qt3DInput::QKeyEvent::count() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qkeyevent.html#count-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the number of keys involved in this event. If <a href="http://doc.qt.io/qt-5/qt3dinput-qkeyevent.html#text-prop">text</a> is not empty, this is simply the length of the string.</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>count</b></span>() const</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub unsafe fn count(&self) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QKeyEvent_count(self as *const crate::QKeyEvent)
}
/// <p>Setting <i>accepted</i> to <code>true</code> prevents the key event from being propagated to the item's parent.</p>
///
/// Calls C++ function: <span style='color: green;'>```bool Qt3DInput::QKeyEvent::isAccepted() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qkeyevent.html#accepted-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Setting <i>accepted</i> to <code>true</code> prevents the key event from being propagated to the item's parent.</p>
/// <p>Generally, if the item acts on the key event then it should be accepted so that ancestor items do not also respond to the same event.</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>isAccepted</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setAccepted</b></span>(bool <i>accepted</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub unsafe fn is_accepted(&self) -> bool {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QKeyEvent_isAccepted(
self as *const crate::QKeyEvent,
)
}
/// <p>Holds whether this event comes from an auto-repeating key.</p>
///
/// Calls C++ function: <span style='color: green;'>```bool Qt3DInput::QKeyEvent::isAutoRepeat() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qkeyevent.html#isAutoRepeat-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds whether this event comes from an auto-repeating key.</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>isAutoRepeat</b></span>() const</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub unsafe fn is_auto_repeat(&self) -> bool {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QKeyEvent_isAutoRepeat(
self as *const crate::QKeyEvent,
)
}
/// <p>This property holds the code of the key that was pressed or released.</p>
///
/// Calls C++ function: <span style='color: green;'>```int Qt3DInput::QKeyEvent::key() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qkeyevent.html#key-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This property holds the code of the key that was pressed or released.</p>
/// <p>See <a href="http://doc.qt.io/qt-5/qt.html#Key-enum">Qt.Key</a> for the list of keyboard codes.</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>key</b></span>() const</td></tr>
/// </tbody></table></div>
/// <p><b>See also </b>QKeyEvent::key.</p></div>
#[inline(always)]
pub unsafe fn key(&self) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QKeyEvent_key(self as *const crate::QKeyEvent)
}
/// <p>Returns <code>true</code> if the key event matches the given standard key <i>key_</i>; otherwise returns <code>false</code>.</p>
///
/// Calls C++ function: <span style='color: green;'>```bool Qt3DInput::QKeyEvent::matches(QKeySequence::StandardKey key_) const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qkeyevent.html#matches">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns <code>true</code> if the key event matches the given standard key <i>key_</i>; otherwise returns <code>false</code>.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qkeysequence.html#StandardKey-enum">QKeySequence::StandardKey</a>.</p></div>
#[inline(always)]
pub unsafe fn matches(&self, key: ::qt_gui::q_key_sequence::StandardKey) -> bool {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QKeyEvent_matches(
self as *const crate::QKeyEvent,
key,
)
}
/// Calls C++ function: <span style='color: green;'>```virtual const QMetaObject* Qt3DInput::QKeyEvent::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_input_ffi_Qt3DInput_QKeyEvent_metaObject(
self as *const crate::QKeyEvent,
)
};
::cpp_core::Ptr::from_raw(ffi_result as *mut ::qt_core::QMetaObject)
}
/// <p>This property holds the keyboard modifier flags that existed immediately before the event occurred.</p>
///
/// Calls C++ function: <span style='color: green;'>```int Qt3DInput::QKeyEvent::modifiers() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qkeyevent.html#modifiers-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This property holds the keyboard modifier flags that existed immediately before the event occurred.</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>modifiers</b></span>() const</td></tr>
/// </tbody></table></div>
/// <p><b>See also </b>QKeyEvent::modifiers.</p></div>
#[inline(always)]
pub unsafe fn modifiers(&self) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QKeyEvent_modifiers(
self as *const crate::QKeyEvent,
)
}
/// <p>This property contains the native scan code of the key that was pressed. It is passed through from <a href="http://doc.qt.io/qt-5/qt3dinput-qkeyevent.html">QKeyEvent</a> unchanged.</p>
///
/// Calls C++ function: <span style='color: green;'>```quint32 Qt3DInput::QKeyEvent::nativeScanCode() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qkeyevent.html#nativeScanCode-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This property contains the native scan code of the key that was pressed. It is passed through from <a href="http://doc.qt.io/qt-5/qt3dinput-qkeyevent.html">QKeyEvent</a> unchanged.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> quint32 </td><td class="memItemRight bottomAlign"><span class="name"><b>nativeScanCode</b></span>() const</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub unsafe fn native_scan_code(&self) -> u32 {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QKeyEvent_nativeScanCode(
self as *const crate::QKeyEvent,
)
}
/// <p>Default constructs an instance of QKeyEvent.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DInput::QKeyEvent::QKeyEvent(QEvent::Type type, int key, QFlags<Qt::KeyboardModifier> modifiers, const QString& text = …, bool autorep = …, unsigned short count = …)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qkeyevent.html#QKeyEvent">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Default constructs an instance of QKeyEvent.</p></div>
#[inline(always)]
pub unsafe fn new_6a(
type_: ::qt_core::q_event::Type,
key: ::std::os::raw::c_int,
modifiers: ::qt_core::QFlags<::qt_core::KeyboardModifier>,
text: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_core::QString>>,
autorep: bool,
count: ::std::os::raw::c_ushort,
) -> ::qt_core::QBox<crate::QKeyEvent> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QKeyEvent_QKeyEvent(
type_,
key,
modifiers.to_int(),
::cpp_core::CastInto::<::cpp_core::Ref<::qt_core::QString>>::cast_into(text)
.as_raw_ptr(),
autorep,
count,
)
};
::qt_core::QBox::from_raw(ffi_result)
}
/// <p>Copy constructor.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DInput::QKeyEvent::QKeyEvent(const QKeyEvent& ke)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qkeyevent.html#QKeyEvent-1">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Copy constructor.</p></div>
#[inline(always)]
pub unsafe fn new_1a(
ke: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_gui::QKeyEvent>>,
) -> ::qt_core::QBox<crate::QKeyEvent> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QKeyEvent_QKeyEvent1(
::cpp_core::CastInto::<::cpp_core::Ref<::qt_gui::QKeyEvent>>::cast_into(ke)
.as_raw_ptr(),
)
};
::qt_core::QBox::from_raw(ffi_result)
}
/// <p>Default constructs an instance of QKeyEvent.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DInput::QKeyEvent::QKeyEvent(QEvent::Type type, int key, QFlags<Qt::KeyboardModifier> modifiers, const QString& text = …, bool autorep = …)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qkeyevent.html#QKeyEvent">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Default constructs an instance of QKeyEvent.</p></div>
#[inline(always)]
pub unsafe fn new_5a(
type_: ::qt_core::q_event::Type,
key: ::std::os::raw::c_int,
modifiers: ::qt_core::QFlags<::qt_core::KeyboardModifier>,
text: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_core::QString>>,
autorep: bool,
) -> ::qt_core::QBox<crate::QKeyEvent> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QKeyEvent_QKeyEvent4(
type_,
key,
modifiers.to_int(),
::cpp_core::CastInto::<::cpp_core::Ref<::qt_core::QString>>::cast_into(text)
.as_raw_ptr(),
autorep,
)
};
::qt_core::QBox::from_raw(ffi_result)
}
/// <p>Default constructs an instance of QKeyEvent.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DInput::QKeyEvent::QKeyEvent(QEvent::Type type, int key, QFlags<Qt::KeyboardModifier> modifiers, const QString& text = …)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qkeyevent.html#QKeyEvent">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Default constructs an instance of QKeyEvent.</p></div>
#[inline(always)]
pub unsafe fn new_4a(
type_: ::qt_core::q_event::Type,
key: ::std::os::raw::c_int,
modifiers: ::qt_core::QFlags<::qt_core::KeyboardModifier>,
text: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_core::QString>>,
) -> ::qt_core::QBox<crate::QKeyEvent> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QKeyEvent_QKeyEvent5(
type_,
key,
modifiers.to_int(),
::cpp_core::CastInto::<::cpp_core::Ref<::qt_core::QString>>::cast_into(text)
.as_raw_ptr(),
)
};
::qt_core::QBox::from_raw(ffi_result)
}
/// <p>Default constructs an instance of QKeyEvent.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DInput::QKeyEvent::QKeyEvent(QEvent::Type type, int key, QFlags<Qt::KeyboardModifier> modifiers)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qkeyevent.html#QKeyEvent">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Default constructs an instance of QKeyEvent.</p></div>
#[inline(always)]
pub unsafe fn new_3a(
type_: ::qt_core::q_event::Type,
key: ::std::os::raw::c_int,
modifiers: ::qt_core::QFlags<::qt_core::KeyboardModifier>,
) -> ::qt_core::QBox<crate::QKeyEvent> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QKeyEvent_QKeyEvent6(
type_,
key,
modifiers.to_int(),
)
};
::qt_core::QBox::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```virtual int Qt3DInput::QKeyEvent::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_input_ffi_Qt3DInput_QKeyEvent_qt_metacall(
self as *const crate::QKeyEvent as *mut crate::QKeyEvent,
arg1,
arg2,
arg3,
)
}
/// Calls C++ function: <span style='color: green;'>```virtual void* Qt3DInput::QKeyEvent::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_input_ffi_Qt3DInput_QKeyEvent_qt_metacast(
self as *const crate::QKeyEvent as *mut crate::QKeyEvent,
arg1,
)
}
/// <p>Setting <i>accepted</i> to <code>true</code> prevents the key event from being propagated to the item's parent.</p>
///
/// Calls C++ function: <span style='color: green;'>```void Qt3DInput::QKeyEvent::setAccepted(bool accepted)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qkeyevent.html#accepted-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Setting <i>accepted</i> to <code>true</code> prevents the key event from being propagated to the item's parent.</p>
/// <p>Generally, if the item acts on the key event then it should be accepted so that ancestor items do not also respond to the same event.</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>isAccepted</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setAccepted</b></span>(bool <i>accepted</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub unsafe fn set_accepted(&self, accepted: bool) {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QKeyEvent_setAccepted(
self as *const crate::QKeyEvent as *mut crate::QKeyEvent,
accepted,
)
}
/// 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_input_ffi_Qt3DInput_QKeyEvent_staticMetaObject() };
::cpp_core::Ref::from_raw(ffi_result as *mut ::qt_core::QMetaObject)
.expect("attempted to construct a null Ref")
}
/// <p>This property holds the Unicode text that the key generated. The text returned can be an empty string in cases where modifier keys, such as Shift, Control, Alt, and Meta, are being pressed or released. In such cases <a href="http://doc.qt.io/qt-5/qt3dinput-qkeyevent.html#key-prop">key</a> will contain a valid value.</p>
///
/// Calls C++ function: <span style='color: green;'>```QString Qt3DInput::QKeyEvent::text() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qkeyevent.html#text-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This property holds the Unicode text that the key generated. The text returned can be an empty string in cases where modifier keys, such as Shift, Control, Alt, and Meta, are being pressed or released. In such cases <a href="http://doc.qt.io/qt-5/qt3dinput-qkeyevent.html#key-prop">key</a> will contain a valid value.</p>
/// <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>text</b></span>() const</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub unsafe fn text(&self) -> ::cpp_core::CppBox<::qt_core::QString> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QKeyEvent_text(
self as *const crate::QKeyEvent,
)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// Calls C++ function: <span style='color: green;'>```static QString Qt3DInput::QKeyEvent::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_input_ffi_Qt3DInput_QKeyEvent_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 Qt3DInput::QKeyEvent::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_input_ffi_Qt3DInput_QKeyEvent_trUtf8(s, c, n) };
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Returns the type of event</p>
///
/// Calls C++ function: <span style='color: green;'>```QEvent::Type Qt3DInput::QKeyEvent::type() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qkeyevent.html#type">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the type of event</p></div>
#[inline(always)]
pub unsafe fn type_(&self) -> ::qt_core::q_event::Type {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QKeyEvent_type(self as *const crate::QKeyEvent)
}
}
/// <p>Provides keyboard event notification</p>
///
/// C++ class: <span style='color: green;'>```Qt3DInput::QKeyboardHandler```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qkeyboardhandler.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Provides keyboard event notification</p></div>
#[repr(C)]
pub struct QKeyboardHandler {
_unused: u8,
}
impl QKeyboardHandler {
/// <p>Holds the keyboard device of the <a href="http://doc.qt.io/qt-5/qt3dinput-qkeyboardhandler.html">QKeyboardHandler</a>. Without a valid device, the <a href="http://doc.qt.io/qt-5/qt3dinput-qkeyboardhandler.html">QKeyboardHandler</a> won't receive any event.</p>
///
/// Returns a built-in Qt slot `Qt3DInput::QKeyboardHandler::setSourceDevice` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qkeyboardhandler.html#sourceDevice-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the keyboard device of the <a href="http://doc.qt.io/qt-5/qt3dinput-qkeyboardhandler.html">QKeyboardHandler</a>. Without a valid device, the <a href="http://doc.qt.io/qt-5/qt3dinput-qkeyboardhandler.html">QKeyboardHandler</a> won't receive any event.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DInput::QKeyboardDevice *</td><td class="memItemRight bottomAlign"><span class="name"><b><a href="http://doc.qt.io/qt-5/qt3dinput-qkeyboardhandler.html#sourceDevice">sourceDevice</a></b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setSourceDevice</b></span>(Qt3DInput::QKeyboardDevice *<i>keyboardDevice</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>sourceDeviceChanged</b></span>(QKeyboardDevice *<i>keyboardDevice</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub fn slot_set_source_device(&self) -> ::qt_core::Receiver<(*mut crate::QKeyboardDevice,)> {
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"1setSourceDevice(Qt3DInput::QKeyboardDevice *)\0",
),
)
}
}
/// <p>Sets the focus to <i>focus</i>. If focus is not currently set to <code>true</code>, this component will receive keyboard focus.</p>
///
/// Returns a built-in Qt slot `Qt3DInput::QKeyboardHandler::setFocus` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qkeyboardhandler.html#setFocus">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Sets the focus to <i>focus</i>. If focus is not currently set to <code>true</code>, this component will receive keyboard focus.</p>
/// <p><b>Note:</b> Setter function for property <a href="http://doc.qt.io/qt-5/qt3dinput-qkeyboardhandler.html#focus-prop">focus</a>. </p><p><b>See also </b><a href="http://doc.qt.io/qt-5/qt3dinput-qkeyboardhandler.html#focus-prop">focus</a>().</p></div>
#[inline(always)]
pub fn slot_set_focus(&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"1setFocus(bool)\0"),
)
}
}
/// <p>Holds the keyboard device of the <a href="http://doc.qt.io/qt-5/qt3dinput-qkeyboardhandler.html">QKeyboardHandler</a>. Without a valid device, the <a href="http://doc.qt.io/qt-5/qt3dinput-qkeyboardhandler.html">QKeyboardHandler</a> won't receive any event.</p>
///
/// Returns a built-in Qt signal `Qt3DInput::QKeyboardHandler::sourceDeviceChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qkeyboardhandler.html#sourceDevice-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the keyboard device of the <a href="http://doc.qt.io/qt-5/qt3dinput-qkeyboardhandler.html">QKeyboardHandler</a>. Without a valid device, the <a href="http://doc.qt.io/qt-5/qt3dinput-qkeyboardhandler.html">QKeyboardHandler</a> won't receive any event.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DInput::QKeyboardDevice *</td><td class="memItemRight bottomAlign"><span class="name"><b><a href="http://doc.qt.io/qt-5/qt3dinput-qkeyboardhandler.html#sourceDevice">sourceDevice</a></b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setSourceDevice</b></span>(Qt3DInput::QKeyboardDevice *<i>keyboardDevice</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>sourceDeviceChanged</b></span>(QKeyboardDevice *<i>keyboardDevice</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub fn source_device_changed(&self) -> ::qt_core::Signal<(*mut crate::QKeyboardDevice,)> {
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"2sourceDeviceChanged(Qt3DInput::QKeyboardDevice *)\0",
),
)
}
}
/// <p>Holds <code>true</code> if the QKeyboardHandlers has focus.</p>
///
/// Returns a built-in Qt signal `Qt3DInput::QKeyboardHandler::focusChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qkeyboardhandler.html#focus-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds <code>true</code> if the QKeyboardHandlers has focus.</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>focus</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="http://doc.qt.io/qt-5/qt3dinput-qkeyboardhandler.html#setFocus">setFocus</a></b></span>(bool <i>focus</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>focusChanged</b></span>(bool <i>focus</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub fn focus_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"2focusChanged(bool)\0"),
)
}
}
/// <p>This signal is emitted when the 0 key is pressed with the event details being contained within <i>event</i></p>
///
/// Returns a built-in Qt signal `Qt3DInput::QKeyboardHandler::digit0Pressed` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qkeyboardhandler.html#digit0Pressed">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This signal is emitted when the 0 key is pressed with the event details being contained within <i>event</i></p></div>
#[inline(always)]
pub fn digit0_pressed(&self) -> ::qt_core::Signal<(*mut crate::QKeyEvent,)> {
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"2digit0Pressed(Qt3DInput::QKeyEvent *)\0",
),
)
}
}
/// <p>This signal is emitted when the 1 key is pressed with the event details being contained within <i>event</i></p>
///
/// Returns a built-in Qt signal `Qt3DInput::QKeyboardHandler::digit1Pressed` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qkeyboardhandler.html#digit1Pressed">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This signal is emitted when the 1 key is pressed with the event details being contained within <i>event</i></p></div>
#[inline(always)]
pub fn digit1_pressed(&self) -> ::qt_core::Signal<(*mut crate::QKeyEvent,)> {
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"2digit1Pressed(Qt3DInput::QKeyEvent *)\0",
),
)
}
}
/// <p>This signal is emitted when the 2 key is pressed with the event details being contained within <i>event</i></p>
///
/// Returns a built-in Qt signal `Qt3DInput::QKeyboardHandler::digit2Pressed` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qkeyboardhandler.html#digit2Pressed">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This signal is emitted when the 2 key is pressed with the event details being contained within <i>event</i></p></div>
#[inline(always)]
pub fn digit2_pressed(&self) -> ::qt_core::Signal<(*mut crate::QKeyEvent,)> {
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"2digit2Pressed(Qt3DInput::QKeyEvent *)\0",
),
)
}
}
/// <p>This signal is emitted when the 3 key is pressed with the event details being contained within <i>event</i></p>
///
/// Returns a built-in Qt signal `Qt3DInput::QKeyboardHandler::digit3Pressed` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qkeyboardhandler.html#digit3Pressed">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This signal is emitted when the 3 key is pressed with the event details being contained within <i>event</i></p></div>
#[inline(always)]
pub fn digit3_pressed(&self) -> ::qt_core::Signal<(*mut crate::QKeyEvent,)> {
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"2digit3Pressed(Qt3DInput::QKeyEvent *)\0",
),
)
}
}
/// <p>This signal is emitted when the 4 key is pressed with the event details being contained within <i>event</i></p>
///
/// Returns a built-in Qt signal `Qt3DInput::QKeyboardHandler::digit4Pressed` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qkeyboardhandler.html#digit4Pressed">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This signal is emitted when the 4 key is pressed with the event details being contained within <i>event</i></p></div>
#[inline(always)]
pub fn digit4_pressed(&self) -> ::qt_core::Signal<(*mut crate::QKeyEvent,)> {
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"2digit4Pressed(Qt3DInput::QKeyEvent *)\0",
),
)
}
}
/// <p>This signal is emitted when the 5 key is pressed with the event details being contained within <i>event</i></p>
///
/// Returns a built-in Qt signal `Qt3DInput::QKeyboardHandler::digit5Pressed` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qkeyboardhandler.html#digit5Pressed">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This signal is emitted when the 5 key is pressed with the event details being contained within <i>event</i></p></div>
#[inline(always)]
pub fn digit5_pressed(&self) -> ::qt_core::Signal<(*mut crate::QKeyEvent,)> {
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"2digit5Pressed(Qt3DInput::QKeyEvent *)\0",
),
)
}
}
/// <p>This signal is emitted when the 6 key is pressed with the event details being contained within <i>event</i></p>
///
/// Returns a built-in Qt signal `Qt3DInput::QKeyboardHandler::digit6Pressed` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qkeyboardhandler.html#digit6Pressed">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This signal is emitted when the 6 key is pressed with the event details being contained within <i>event</i></p></div>
#[inline(always)]
pub fn digit6_pressed(&self) -> ::qt_core::Signal<(*mut crate::QKeyEvent,)> {
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"2digit6Pressed(Qt3DInput::QKeyEvent *)\0",
),
)
}
}
/// <p>This signal is emitted when the 7 key is pressed with the event details being contained within <i>event</i></p>
///
/// Returns a built-in Qt signal `Qt3DInput::QKeyboardHandler::digit7Pressed` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qkeyboardhandler.html#digit7Pressed">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This signal is emitted when the 7 key is pressed with the event details being contained within <i>event</i></p></div>
#[inline(always)]
pub fn digit7_pressed(&self) -> ::qt_core::Signal<(*mut crate::QKeyEvent,)> {
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"2digit7Pressed(Qt3DInput::QKeyEvent *)\0",
),
)
}
}
/// <p>This signal is emitted when the 8 key is pressed with the event details being contained within <i>event</i></p>
///
/// Returns a built-in Qt signal `Qt3DInput::QKeyboardHandler::digit8Pressed` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qkeyboardhandler.html#digit8Pressed">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This signal is emitted when the 8 key is pressed with the event details being contained within <i>event</i></p></div>
#[inline(always)]
pub fn digit8_pressed(&self) -> ::qt_core::Signal<(*mut crate::QKeyEvent,)> {
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"2digit8Pressed(Qt3DInput::QKeyEvent *)\0",
),
)
}
}
/// <p>This signal is emitted when the 9 key is pressed with the event details being contained within <i>event</i></p>
///
/// Returns a built-in Qt signal `Qt3DInput::QKeyboardHandler::digit9Pressed` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qkeyboardhandler.html#digit9Pressed">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This signal is emitted when the 9 key is pressed with the event details being contained within <i>event</i></p></div>
#[inline(always)]
pub fn digit9_pressed(&self) -> ::qt_core::Signal<(*mut crate::QKeyEvent,)> {
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"2digit9Pressed(Qt3DInput::QKeyEvent *)\0",
),
)
}
}
/// <p>This signal is emitted when the left key is pressed with the event details being contained within <i>event</i></p>
///
/// Returns a built-in Qt signal `Qt3DInput::QKeyboardHandler::leftPressed` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qkeyboardhandler.html#leftPressed">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This signal is emitted when the left key is pressed with the event details being contained within <i>event</i></p></div>
#[inline(always)]
pub fn left_pressed(&self) -> ::qt_core::Signal<(*mut crate::QKeyEvent,)> {
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"2leftPressed(Qt3DInput::QKeyEvent *)\0",
),
)
}
}
/// <p>This signal is emitted when the right key is pressed with the event details being contained within <i>event</i></p>
///
/// Returns a built-in Qt signal `Qt3DInput::QKeyboardHandler::rightPressed` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qkeyboardhandler.html#rightPressed">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This signal is emitted when the right key is pressed with the event details being contained within <i>event</i></p></div>
#[inline(always)]
pub fn right_pressed(&self) -> ::qt_core::Signal<(*mut crate::QKeyEvent,)> {
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"2rightPressed(Qt3DInput::QKeyEvent *)\0",
),
)
}
}
/// <p>This signal is emitted when the up key is pressed with the event details being contained within <i>event</i></p>
///
/// Returns a built-in Qt signal `Qt3DInput::QKeyboardHandler::upPressed` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qkeyboardhandler.html#upPressed">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This signal is emitted when the up key is pressed with the event details being contained within <i>event</i></p></div>
#[inline(always)]
pub fn up_pressed(&self) -> ::qt_core::Signal<(*mut crate::QKeyEvent,)> {
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"2upPressed(Qt3DInput::QKeyEvent *)\0",
),
)
}
}
/// <p>This signal is emitted when the down key is pressed with the event details being contained within <i>event</i></p>
///
/// Returns a built-in Qt signal `Qt3DInput::QKeyboardHandler::downPressed` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qkeyboardhandler.html#downPressed">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This signal is emitted when the down key is pressed with the event details being contained within <i>event</i></p></div>
#[inline(always)]
pub fn down_pressed(&self) -> ::qt_core::Signal<(*mut crate::QKeyEvent,)> {
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"2downPressed(Qt3DInput::QKeyEvent *)\0",
),
)
}
}
/// <p>This signal is emitted when the tab key is pressed with the event details being contained within <i>event</i></p>
///
/// Returns a built-in Qt signal `Qt3DInput::QKeyboardHandler::tabPressed` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qkeyboardhandler.html#tabPressed">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This signal is emitted when the tab key is pressed with the event details being contained within <i>event</i></p></div>
#[inline(always)]
pub fn tab_pressed(&self) -> ::qt_core::Signal<(*mut crate::QKeyEvent,)> {
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"2tabPressed(Qt3DInput::QKeyEvent *)\0",
),
)
}
}
/// <p>This signal is emitted when the backtab key is pressed with the event details being contained within <i>event</i></p>
///
/// Returns a built-in Qt signal `Qt3DInput::QKeyboardHandler::backtabPressed` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qkeyboardhandler.html#backtabPressed">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This signal is emitted when the backtab key is pressed with the event details being contained within <i>event</i></p></div>
#[inline(always)]
pub fn backtab_pressed(&self) -> ::qt_core::Signal<(*mut crate::QKeyEvent,)> {
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"2backtabPressed(Qt3DInput::QKeyEvent *)\0",
),
)
}
}
/// <p>This signal is emitted when the * key is pressed with the event details being contained within <i>event</i></p>
///
/// Returns a built-in Qt signal `Qt3DInput::QKeyboardHandler::asteriskPressed` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qkeyboardhandler.html#asteriskPressed">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This signal is emitted when the * key is pressed with the event details being contained within <i>event</i></p></div>
#[inline(always)]
pub fn asterisk_pressed(&self) -> ::qt_core::Signal<(*mut crate::QKeyEvent,)> {
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"2asteriskPressed(Qt3DInput::QKeyEvent *)\0",
),
)
}
}
/// <p>This signal is emitted when the number sign key is pressed with the event details being contained within <i>event</i></p>
///
/// Returns a built-in Qt signal `Qt3DInput::QKeyboardHandler::numberSignPressed` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qkeyboardhandler.html#numberSignPressed">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This signal is emitted when the number sign key is pressed with the event details being contained within <i>event</i></p></div>
#[inline(always)]
pub fn number_sign_pressed(&self) -> ::qt_core::Signal<(*mut crate::QKeyEvent,)> {
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"2numberSignPressed(Qt3DInput::QKeyEvent *)\0",
),
)
}
}
/// <p>This signal is emitted when the escape key is pressed with the event details being contained within <i>event</i></p>
///
/// Returns a built-in Qt signal `Qt3DInput::QKeyboardHandler::escapePressed` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qkeyboardhandler.html#escapePressed">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This signal is emitted when the escape key is pressed with the event details being contained within <i>event</i></p></div>
#[inline(always)]
pub fn escape_pressed(&self) -> ::qt_core::Signal<(*mut crate::QKeyEvent,)> {
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"2escapePressed(Qt3DInput::QKeyEvent *)\0",
),
)
}
}
/// <p>This signal is emitted when the return key is pressed with the event details being contained within <i>event</i></p>
///
/// Returns a built-in Qt signal `Qt3DInput::QKeyboardHandler::returnPressed` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qkeyboardhandler.html#returnPressed">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This signal is emitted when the return key is pressed with the event details being contained within <i>event</i></p></div>
#[inline(always)]
pub fn return_pressed(&self) -> ::qt_core::Signal<(*mut crate::QKeyEvent,)> {
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"2returnPressed(Qt3DInput::QKeyEvent *)\0",
),
)
}
}
/// <p>This signal is emitted when the enter key is pressed with the event details being contained within <i>event</i></p>
///
/// Returns a built-in Qt signal `Qt3DInput::QKeyboardHandler::enterPressed` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qkeyboardhandler.html#enterPressed">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This signal is emitted when the enter key is pressed with the event details being contained within <i>event</i></p></div>
#[inline(always)]
pub fn enter_pressed(&self) -> ::qt_core::Signal<(*mut crate::QKeyEvent,)> {
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"2enterPressed(Qt3DInput::QKeyEvent *)\0",
),
)
}
}
/// <p>This signal is emitted when the delete key is pressed with the event details being contained within <i>event</i></p>
///
/// Returns a built-in Qt signal `Qt3DInput::QKeyboardHandler::deletePressed` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qkeyboardhandler.html#deletePressed">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This signal is emitted when the delete key is pressed with the event details being contained within <i>event</i></p></div>
#[inline(always)]
pub fn delete_pressed(&self) -> ::qt_core::Signal<(*mut crate::QKeyEvent,)> {
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"2deletePressed(Qt3DInput::QKeyEvent *)\0",
),
)
}
}
/// <p>This signal is emitted when the space key is pressed with the event details being contained within <i>event</i></p>
///
/// Returns a built-in Qt signal `Qt3DInput::QKeyboardHandler::spacePressed` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qkeyboardhandler.html#spacePressed">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This signal is emitted when the space key is pressed with the event details being contained within <i>event</i></p></div>
#[inline(always)]
pub fn space_pressed(&self) -> ::qt_core::Signal<(*mut crate::QKeyEvent,)> {
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"2spacePressed(Qt3DInput::QKeyEvent *)\0",
),
)
}
}
/// <p>This signal is emitted when the back key is pressed with the event details being contained within <i>event</i></p>
///
/// Returns a built-in Qt signal `Qt3DInput::QKeyboardHandler::backPressed` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qkeyboardhandler.html#backPressed">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This signal is emitted when the back key is pressed with the event details being contained within <i>event</i></p></div>
#[inline(always)]
pub fn back_pressed(&self) -> ::qt_core::Signal<(*mut crate::QKeyEvent,)> {
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"2backPressed(Qt3DInput::QKeyEvent *)\0",
),
)
}
}
/// <p>This signal is emitted when the cancel key is pressed with the event details being contained within <i>event</i></p>
///
/// Returns a built-in Qt signal `Qt3DInput::QKeyboardHandler::cancelPressed` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qkeyboardhandler.html#cancelPressed">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This signal is emitted when the cancel key is pressed with the event details being contained within <i>event</i></p></div>
#[inline(always)]
pub fn cancel_pressed(&self) -> ::qt_core::Signal<(*mut crate::QKeyEvent,)> {
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"2cancelPressed(Qt3DInput::QKeyEvent *)\0",
),
)
}
}
/// <p>This signal is emitted when the select key is pressed with the event details being contained within <i>event</i></p>
///
/// Returns a built-in Qt signal `Qt3DInput::QKeyboardHandler::selectPressed` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qkeyboardhandler.html#selectPressed">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This signal is emitted when the select key is pressed with the event details being contained within <i>event</i></p></div>
#[inline(always)]
pub fn select_pressed(&self) -> ::qt_core::Signal<(*mut crate::QKeyEvent,)> {
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"2selectPressed(Qt3DInput::QKeyEvent *)\0",
),
)
}
}
/// <p>This signal is emitted when the yes key is pressed with the event details being contained within <i>event</i></p>
///
/// Returns a built-in Qt signal `Qt3DInput::QKeyboardHandler::yesPressed` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qkeyboardhandler.html#yesPressed">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This signal is emitted when the yes key is pressed with the event details being contained within <i>event</i></p></div>
#[inline(always)]
pub fn yes_pressed(&self) -> ::qt_core::Signal<(*mut crate::QKeyEvent,)> {
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"2yesPressed(Qt3DInput::QKeyEvent *)\0",
),
)
}
}
/// <p>This signal is emitted when the yes key is pressed with the event details being contained within <i>event</i></p>
///
/// Returns a built-in Qt signal `Qt3DInput::QKeyboardHandler::noPressed` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qkeyboardhandler.html#noPressed">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This signal is emitted when the yes key is pressed with the event details being contained within <i>event</i></p></div>
#[inline(always)]
pub fn no_pressed(&self) -> ::qt_core::Signal<(*mut crate::QKeyEvent,)> {
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"2noPressed(Qt3DInput::QKeyEvent *)\0",
),
)
}
}
/// <p>This signal is emitted when the context 1 key is pressed with the event details being contained within <i>event</i></p>
///
/// Returns a built-in Qt signal `Qt3DInput::QKeyboardHandler::context1Pressed` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qkeyboardhandler.html#context1Pressed">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This signal is emitted when the context 1 key is pressed with the event details being contained within <i>event</i></p></div>
#[inline(always)]
pub fn context1_pressed(&self) -> ::qt_core::Signal<(*mut crate::QKeyEvent,)> {
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"2context1Pressed(Qt3DInput::QKeyEvent *)\0",
),
)
}
}
/// <p>This signal is emitted when the context 2 key is pressed with the event details being contained within <i>event</i></p>
///
/// Returns a built-in Qt signal `Qt3DInput::QKeyboardHandler::context2Pressed` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qkeyboardhandler.html#context2Pressed">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This signal is emitted when the context 2 key is pressed with the event details being contained within <i>event</i></p></div>
#[inline(always)]
pub fn context2_pressed(&self) -> ::qt_core::Signal<(*mut crate::QKeyEvent,)> {
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"2context2Pressed(Qt3DInput::QKeyEvent *)\0",
),
)
}
}
/// <p>This signal is emitted when the context 2 key is pressed with the event details being contained within <i>event</i></p>
///
/// Returns a built-in Qt signal `Qt3DInput::QKeyboardHandler::context3Pressed` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qkeyboardhandler.html#context3Pressed">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This signal is emitted when the context 2 key is pressed with the event details being contained within <i>event</i></p></div>
#[inline(always)]
pub fn context3_pressed(&self) -> ::qt_core::Signal<(*mut crate::QKeyEvent,)> {
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"2context3Pressed(Qt3DInput::QKeyEvent *)\0",
),
)
}
}
/// <p>This signal is emitted when the context 4 key is pressed with the event details being contained within <i>event</i></p>
///
/// Returns a built-in Qt signal `Qt3DInput::QKeyboardHandler::context4Pressed` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qkeyboardhandler.html#context4Pressed">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This signal is emitted when the context 4 key is pressed with the event details being contained within <i>event</i></p></div>
#[inline(always)]
pub fn context4_pressed(&self) -> ::qt_core::Signal<(*mut crate::QKeyEvent,)> {
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"2context4Pressed(Qt3DInput::QKeyEvent *)\0",
),
)
}
}
/// <p>This signal is emitted when the call key is pressed with the event details being contained within <i>event</i></p>
///
/// Returns a built-in Qt signal `Qt3DInput::QKeyboardHandler::callPressed` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qkeyboardhandler.html#callPressed">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This signal is emitted when the call key is pressed with the event details being contained within <i>event</i></p></div>
#[inline(always)]
pub fn call_pressed(&self) -> ::qt_core::Signal<(*mut crate::QKeyEvent,)> {
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"2callPressed(Qt3DInput::QKeyEvent *)\0",
),
)
}
}
/// <p>This signal is emitted when the hangup key is pressed with the event details being contained within <i>event</i></p>
///
/// Returns a built-in Qt signal `Qt3DInput::QKeyboardHandler::hangupPressed` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qkeyboardhandler.html#hangupPressed">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This signal is emitted when the hangup key is pressed with the event details being contained within <i>event</i></p></div>
#[inline(always)]
pub fn hangup_pressed(&self) -> ::qt_core::Signal<(*mut crate::QKeyEvent,)> {
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"2hangupPressed(Qt3DInput::QKeyEvent *)\0",
),
)
}
}
/// <p>This signal is emitted when the flip key is pressed with the event details being contained within <i>event</i></p>
///
/// Returns a built-in Qt signal `Qt3DInput::QKeyboardHandler::flipPressed` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qkeyboardhandler.html#flipPressed">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This signal is emitted when the flip key is pressed with the event details being contained within <i>event</i></p></div>
#[inline(always)]
pub fn flip_pressed(&self) -> ::qt_core::Signal<(*mut crate::QKeyEvent,)> {
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"2flipPressed(Qt3DInput::QKeyEvent *)\0",
),
)
}
}
/// <p>This signal is emitted when the menu key is pressed with the event details being contained within <i>event</i></p>
///
/// Returns a built-in Qt signal `Qt3DInput::QKeyboardHandler::menuPressed` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qkeyboardhandler.html#menuPressed">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This signal is emitted when the menu key is pressed with the event details being contained within <i>event</i></p></div>
#[inline(always)]
pub fn menu_pressed(&self) -> ::qt_core::Signal<(*mut crate::QKeyEvent,)> {
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"2menuPressed(Qt3DInput::QKeyEvent *)\0",
),
)
}
}
/// <p>This signal is emitted when the volume up key is pressed with the event details being contained within <i>event</i></p>
///
/// Returns a built-in Qt signal `Qt3DInput::QKeyboardHandler::volumeUpPressed` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qkeyboardhandler.html#volumeUpPressed">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This signal is emitted when the volume up key is pressed with the event details being contained within <i>event</i></p></div>
#[inline(always)]
pub fn volume_up_pressed(&self) -> ::qt_core::Signal<(*mut crate::QKeyEvent,)> {
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"2volumeUpPressed(Qt3DInput::QKeyEvent *)\0",
),
)
}
}
/// <p>This signal is emitted when the volume down key is pressed with the event details being contained within <i>event</i></p>
///
/// Returns a built-in Qt signal `Qt3DInput::QKeyboardHandler::volumeDownPressed` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qkeyboardhandler.html#volumeDownPressed">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This signal is emitted when the volume down key is pressed with the event details being contained within <i>event</i></p></div>
#[inline(always)]
pub fn volume_down_pressed(&self) -> ::qt_core::Signal<(*mut crate::QKeyEvent,)> {
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"2volumeDownPressed(Qt3DInput::QKeyEvent *)\0",
),
)
}
}
/// <p>This signal is emitted when a key is pressed with the event details being contained within <i>event</i></p>
///
/// Returns a built-in Qt signal `Qt3DInput::QKeyboardHandler::pressed` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qkeyboardhandler.html#pressed">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This signal is emitted when a key is pressed with the event details being contained within <i>event</i></p></div>
#[inline(always)]
pub fn pressed(&self) -> ::qt_core::Signal<(*mut crate::QKeyEvent,)> {
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"2pressed(Qt3DInput::QKeyEvent *)\0",
),
)
}
}
/// <p>This signal is emitted when a key is released with the event details being contained within <i>event</i></p>
///
/// Returns a built-in Qt signal `Qt3DInput::QKeyboardHandler::released` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qkeyboardhandler.html#released">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This signal is emitted when a key is released with the event details being contained within <i>event</i></p></div>
#[inline(always)]
pub fn released(&self) -> ::qt_core::Signal<(*mut crate::QKeyEvent,)> {
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"2released(Qt3DInput::QKeyEvent *)\0",
),
)
}
}
/// <p>Holds <code>true</code> if the QKeyboardHandlers has focus.</p>
///
/// Calls C++ function: <span style='color: green;'>```bool Qt3DInput::QKeyboardHandler::focus() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qkeyboardhandler.html#focus-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds <code>true</code> if the QKeyboardHandlers has focus.</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>focus</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="http://doc.qt.io/qt-5/qt3dinput-qkeyboardhandler.html#setFocus">setFocus</a></b></span>(bool <i>focus</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>focusChanged</b></span>(bool <i>focus</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub unsafe fn focus(&self) -> bool {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QKeyboardHandler_focus(
self as *const crate::QKeyboardHandler,
)
}
/// Calls C++ function: <span style='color: green;'>```virtual const QMetaObject* Qt3DInput::QKeyboardHandler::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_input_ffi_Qt3DInput_QKeyboardHandler_metaObject(
self as *const crate::QKeyboardHandler,
)
};
::cpp_core::Ptr::from_raw(ffi_result as *mut ::qt_core::QMetaObject)
}
/// <p>Constructs a new <a href="http://doc.qt.io/qt-5/qt3dinput-qkeyboardhandler.html">QKeyboardHandler</a> instance with parent <i>parent</i>.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DInput::QKeyboardHandler::QKeyboardHandler(Qt3DCore::QNode* parent = …)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qkeyboardhandler.html#QKeyboardHandler">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/qt3dinput-qkeyboardhandler.html">QKeyboardHandler</a> instance with parent <i>parent</i>.</p></div>
#[inline(always)]
pub unsafe fn new_1a(
parent: impl ::cpp_core::CastInto<::cpp_core::Ptr<::qt_3d_core::QNode>>,
) -> ::qt_core::QBox<crate::QKeyboardHandler> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QKeyboardHandler_QKeyboardHandler(
::cpp_core::CastInto::<::cpp_core::Ptr<::qt_3d_core::QNode>>::cast_into(parent)
.as_raw_ptr() as *mut ::qt_3d_core::QNode,
)
};
::qt_core::QBox::from_raw(ffi_result)
}
/// <p>Provides keyboard event notification</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DInput::QKeyboardHandler::QKeyboardHandler()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qkeyboardhandler.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Provides keyboard event notification</p></div>
#[inline(always)]
pub unsafe fn new_0a() -> ::qt_core::QBox<crate::QKeyboardHandler> {
let ffi_result =
{ crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QKeyboardHandler_QKeyboardHandler1() };
::qt_core::QBox::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```virtual int Qt3DInput::QKeyboardHandler::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_input_ffi_Qt3DInput_QKeyboardHandler_qt_metacall(
self as *const crate::QKeyboardHandler as *mut crate::QKeyboardHandler,
arg1,
arg2,
arg3,
)
}
/// Calls C++ function: <span style='color: green;'>```virtual void* Qt3DInput::QKeyboardHandler::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_input_ffi_Qt3DInput_QKeyboardHandler_qt_metacast(
self as *const crate::QKeyboardHandler as *mut crate::QKeyboardHandler,
arg1,
)
}
/// <p>Sets the focus to <i>focus</i>. If focus is not currently set to <code>true</code>, this component will receive keyboard focus.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DInput::QKeyboardHandler::setFocus(bool focus)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qkeyboardhandler.html#setFocus">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Sets the focus to <i>focus</i>. If focus is not currently set to <code>true</code>, this component will receive keyboard focus.</p>
/// <p><b>Note:</b> Setter function for property <a href="http://doc.qt.io/qt-5/qt3dinput-qkeyboardhandler.html#focus-prop">focus</a>. </p><p><b>See also </b><a href="http://doc.qt.io/qt-5/qt3dinput-qkeyboardhandler.html#focus-prop">focus</a>().</p></div>
#[inline(always)]
pub unsafe fn set_focus(&self, focus: bool) {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QKeyboardHandler_setFocus(
self as *const crate::QKeyboardHandler as *mut crate::QKeyboardHandler,
focus,
)
}
/// <p>Holds the keyboard device of the <a href="http://doc.qt.io/qt-5/qt3dinput-qkeyboardhandler.html">QKeyboardHandler</a>. Without a valid device, the <a href="http://doc.qt.io/qt-5/qt3dinput-qkeyboardhandler.html">QKeyboardHandler</a> won't receive any event.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DInput::QKeyboardHandler::setSourceDevice(Qt3DInput::QKeyboardDevice* keyboardDevice)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qkeyboardhandler.html#sourceDevice-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the keyboard device of the <a href="http://doc.qt.io/qt-5/qt3dinput-qkeyboardhandler.html">QKeyboardHandler</a>. Without a valid device, the <a href="http://doc.qt.io/qt-5/qt3dinput-qkeyboardhandler.html">QKeyboardHandler</a> won't receive any event.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DInput::QKeyboardDevice *</td><td class="memItemRight bottomAlign"><span class="name"><b><a href="http://doc.qt.io/qt-5/qt3dinput-qkeyboardhandler.html#sourceDevice">sourceDevice</a></b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setSourceDevice</b></span>(Qt3DInput::QKeyboardDevice *<i>keyboardDevice</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>sourceDeviceChanged</b></span>(QKeyboardDevice *<i>keyboardDevice</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub unsafe fn set_source_device(
&self,
keyboard_device: impl ::cpp_core::CastInto<::cpp_core::Ptr<crate::QKeyboardDevice>>,
) {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QKeyboardHandler_setSourceDevice(
self as *const crate::QKeyboardHandler as *mut crate::QKeyboardHandler,
::cpp_core::CastInto::<::cpp_core::Ptr<crate::QKeyboardDevice>>::cast_into(
keyboard_device,
)
.as_raw_ptr() as *mut crate::QKeyboardDevice,
)
}
/// <p>Holds the keyboard device of the <a href="http://doc.qt.io/qt-5/qt3dinput-qkeyboardhandler.html">QKeyboardHandler</a>. Without a valid device, the <a href="http://doc.qt.io/qt-5/qt3dinput-qkeyboardhandler.html">QKeyboardHandler</a> won't receive any event.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QKeyboardDevice* Qt3DInput::QKeyboardHandler::sourceDevice() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qkeyboardhandler.html#sourceDevice-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the keyboard device of the <a href="http://doc.qt.io/qt-5/qt3dinput-qkeyboardhandler.html">QKeyboardHandler</a>. Without a valid device, the <a href="http://doc.qt.io/qt-5/qt3dinput-qkeyboardhandler.html">QKeyboardHandler</a> won't receive any event.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DInput::QKeyboardDevice *</td><td class="memItemRight bottomAlign"><span class="name"><b><a href="http://doc.qt.io/qt-5/qt3dinput-qkeyboardhandler.html#sourceDevice">sourceDevice</a></b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setSourceDevice</b></span>(Qt3DInput::QKeyboardDevice *<i>keyboardDevice</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>sourceDeviceChanged</b></span>(QKeyboardDevice *<i>keyboardDevice</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub unsafe fn source_device(&self) -> ::qt_core::QPtr<crate::QKeyboardDevice> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QKeyboardHandler_sourceDevice(
self as *const crate::QKeyboardHandler,
)
};
::qt_core::QPtr::from_raw(ffi_result)
}
/// 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_input_ffi_Qt3DInput_QKeyboardHandler_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 Qt3DInput::QKeyboardHandler::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_input_ffi_Qt3DInput_QKeyboardHandler_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 Qt3DInput::QKeyboardHandler::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_input_ffi_Qt3DInput_QKeyboardHandler_trUtf8(s, c, n) };
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
}
/// <p><a href="http://doc.qt.io/qt-5/qt3dinput-qkeyboarddevice.html">QKeyboardDevice</a> is in charge of dispatching keyboard events to attached QQKeyboardHandler objects.</p>
///
/// C++ class: <span style='color: green;'>```Qt3DInput::QKeyboardDevice```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qkeyboarddevice.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p><a href="http://doc.qt.io/qt-5/qt3dinput-qkeyboarddevice.html">QKeyboardDevice</a> is in charge of dispatching keyboard events to attached QQKeyboardHandler objects.</p></div>
#[repr(C)]
pub struct QKeyboardDevice {
_unused: u8,
}
impl QKeyboardDevice {
/// <p>Holds the active <a href="http://doc.qt.io/qt-5/qt3dinput-qkeyboardhandler.html">QKeyboardHandler</a> of the device.</p>
///
/// Returns a built-in Qt signal `Qt3DInput::QKeyboardDevice::activeInputChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qkeyboarddevice.html#activeInput-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the active <a href="http://doc.qt.io/qt-5/qt3dinput-qkeyboardhandler.html">QKeyboardHandler</a> of the device.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QKeyboardHandler *</td><td class="memItemRight bottomAlign"><span class="name"><b>activeInput</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>activeInputChanged</b></span>(QKeyboardHandler *<i>activeInput</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub fn active_input_changed(&self) -> ::qt_core::Signal<(*mut crate::QKeyboardHandler,)> {
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"2activeInputChanged(Qt3DInput::QKeyboardHandler *)\0",
),
)
}
}
/// <p>Holds the active <a href="http://doc.qt.io/qt-5/qt3dinput-qkeyboardhandler.html">QKeyboardHandler</a> of the device.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QKeyboardHandler* Qt3DInput::QKeyboardDevice::activeInput() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qkeyboarddevice.html#activeInput-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the active <a href="http://doc.qt.io/qt-5/qt3dinput-qkeyboardhandler.html">QKeyboardHandler</a> of the device.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QKeyboardHandler *</td><td class="memItemRight bottomAlign"><span class="name"><b>activeInput</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>activeInputChanged</b></span>(QKeyboardHandler *<i>activeInput</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub unsafe fn active_input(&self) -> ::qt_core::QPtr<crate::QKeyboardHandler> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QKeyboardDevice_activeInput(
self as *const crate::QKeyboardDevice,
)
};
::qt_core::QPtr::from_raw(ffi_result)
}
/// <p>Reimplemented from <a href="http://doc.qt.io/qt-5/qt3dinput-qabstractphysicaldevice.html#axisCount">QAbstractPhysicalDevice::axisCount</a>().</p>
///
/// Calls C++ function: <span style='color: green;'>```virtual int Qt3DInput::QKeyboardDevice::axisCount() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qkeyboarddevice.html#axisCount">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Reimplemented from <a href="http://doc.qt.io/qt-5/qt3dinput-qabstractphysicaldevice.html#axisCount">QAbstractPhysicalDevice::axisCount</a>().</p>
/// <p>Returns the axis count.</p>
/// <p><b>Note: </b>Currently always returns zero.</p></div>
#[inline(always)]
pub unsafe fn axis_count(&self) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QKeyboardDevice_axisCount(
self as *const crate::QKeyboardDevice,
)
}
/// <p>Reimplemented from <a href="http://doc.qt.io/qt-5/qt3dinput-qabstractphysicaldevice.html#axisIdentifier">QAbstractPhysicalDevice::axisIdentifier</a>().</p>
///
/// Calls C++ function: <span style='color: green;'>```virtual int Qt3DInput::QKeyboardDevice::axisIdentifier(const QString& name) const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qkeyboarddevice.html#axisIdentifier">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Reimplemented from <a href="http://doc.qt.io/qt-5/qt3dinput-qabstractphysicaldevice.html#axisIdentifier">QAbstractPhysicalDevice::axisIdentifier</a>().</p>
/// <p>Returns the axisIdentifier matching the <i>name</i>.</p></div>
#[inline(always)]
pub unsafe fn axis_identifier(
&self,
name: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_core::QString>>,
) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QKeyboardDevice_axisIdentifier(
self as *const crate::QKeyboardDevice,
::cpp_core::CastInto::<::cpp_core::Ref<::qt_core::QString>>::cast_into(name)
.as_raw_ptr(),
)
}
/// <p>Reimplemented from <a href="http://doc.qt.io/qt-5/qt3dinput-qabstractphysicaldevice.html#axisNames">QAbstractPhysicalDevice::axisNames</a>().</p>
///
/// Calls C++ function: <span style='color: green;'>```virtual QStringList Qt3DInput::QKeyboardDevice::axisNames() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qkeyboarddevice.html#axisNames">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Reimplemented from <a href="http://doc.qt.io/qt-5/qt3dinput-qabstractphysicaldevice.html#axisNames">QAbstractPhysicalDevice::axisNames</a>().</p>
/// <p>Returns the axis names.</p>
/// <p><b>Note: </b>Currently always returns empty <a href="http://doc.qt.io/qt-5/qstringlist.html">QStringList</a>.</p></div>
#[inline(always)]
pub unsafe fn axis_names(&self) -> ::cpp_core::CppBox<::qt_core::QStringList> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QKeyboardDevice_axisNames(
self as *const crate::QKeyboardDevice,
)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Reimplemented from <a href="http://doc.qt.io/qt-5/qt3dinput-qabstractphysicaldevice.html#buttonCount">QAbstractPhysicalDevice::buttonCount</a>().</p>
///
/// Calls C++ function: <span style='color: green;'>```virtual int Qt3DInput::QKeyboardDevice::buttonCount() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qkeyboarddevice.html#buttonCount">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Reimplemented from <a href="http://doc.qt.io/qt-5/qt3dinput-qabstractphysicaldevice.html#buttonCount">QAbstractPhysicalDevice::buttonCount</a>().</p>
/// <p>Returns the button count.</p></div>
#[inline(always)]
pub unsafe fn button_count(&self) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QKeyboardDevice_buttonCount(
self as *const crate::QKeyboardDevice,
)
}
/// <p>Reimplemented from <a href="http://doc.qt.io/qt-5/qt3dinput-qabstractphysicaldevice.html#buttonIdentifier">QAbstractPhysicalDevice::buttonIdentifier</a>().</p>
///
/// Calls C++ function: <span style='color: green;'>```virtual int Qt3DInput::QKeyboardDevice::buttonIdentifier(const QString& name) const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qkeyboarddevice.html#buttonIdentifier">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Reimplemented from <a href="http://doc.qt.io/qt-5/qt3dinput-qabstractphysicaldevice.html#buttonIdentifier">QAbstractPhysicalDevice::buttonIdentifier</a>().</p>
/// <p>Returns the buttonIdentifier matching the <i>name</i>.</p></div>
#[inline(always)]
pub unsafe fn button_identifier(
&self,
name: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_core::QString>>,
) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QKeyboardDevice_buttonIdentifier(
self as *const crate::QKeyboardDevice,
::cpp_core::CastInto::<::cpp_core::Ref<::qt_core::QString>>::cast_into(name)
.as_raw_ptr(),
)
}
/// <p>Reimplemented from <a href="http://doc.qt.io/qt-5/qt3dinput-qabstractphysicaldevice.html#buttonNames">QAbstractPhysicalDevice::buttonNames</a>().</p>
///
/// Calls C++ function: <span style='color: green;'>```virtual QStringList Qt3DInput::QKeyboardDevice::buttonNames() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qkeyboarddevice.html#buttonNames">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Reimplemented from <a href="http://doc.qt.io/qt-5/qt3dinput-qabstractphysicaldevice.html#buttonNames">QAbstractPhysicalDevice::buttonNames</a>().</p>
/// <p>Returns the button names.</p></div>
#[inline(always)]
pub unsafe fn button_names(&self) -> ::cpp_core::CppBox<::qt_core::QStringList> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QKeyboardDevice_buttonNames(
self as *const crate::QKeyboardDevice,
)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// Calls C++ function: <span style='color: green;'>```virtual const QMetaObject* Qt3DInput::QKeyboardDevice::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_input_ffi_Qt3DInput_QKeyboardDevice_metaObject(
self as *const crate::QKeyboardDevice,
)
};
::cpp_core::Ptr::from_raw(ffi_result as *mut ::qt_core::QMetaObject)
}
/// <p>Constructs a new <a href="http://doc.qt.io/qt-5/qt3dinput-qkeyboarddevice.html">QKeyboardDevice</a> instance with <i>parent</i>.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DInput::QKeyboardDevice::QKeyboardDevice(Qt3DCore::QNode* parent = …)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qkeyboarddevice.html#QKeyboardDevice">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/qt3dinput-qkeyboarddevice.html">QKeyboardDevice</a> instance with <i>parent</i>.</p></div>
#[inline(always)]
pub unsafe fn new_1a(
parent: impl ::cpp_core::CastInto<::cpp_core::Ptr<::qt_3d_core::QNode>>,
) -> ::qt_core::QBox<crate::QKeyboardDevice> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QKeyboardDevice_QKeyboardDevice(
::cpp_core::CastInto::<::cpp_core::Ptr<::qt_3d_core::QNode>>::cast_into(parent)
.as_raw_ptr() as *mut ::qt_3d_core::QNode,
)
};
::qt_core::QBox::from_raw(ffi_result)
}
/// <p><a href="http://doc.qt.io/qt-5/qt3dinput-qkeyboarddevice.html">QKeyboardDevice</a> is in charge of dispatching keyboard events to attached QQKeyboardHandler objects.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DInput::QKeyboardDevice::QKeyboardDevice()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qkeyboarddevice.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p><a href="http://doc.qt.io/qt-5/qt3dinput-qkeyboarddevice.html">QKeyboardDevice</a> is in charge of dispatching keyboard events to attached QQKeyboardHandler objects.</p></div>
#[inline(always)]
pub unsafe fn new_0a() -> ::qt_core::QBox<crate::QKeyboardDevice> {
let ffi_result =
{ crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QKeyboardDevice_QKeyboardDevice1() };
::qt_core::QBox::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```virtual int Qt3DInput::QKeyboardDevice::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_input_ffi_Qt3DInput_QKeyboardDevice_qt_metacall(
self as *const crate::QKeyboardDevice as *mut crate::QKeyboardDevice,
arg1,
arg2,
arg3,
)
}
/// Calls C++ function: <span style='color: green;'>```virtual void* Qt3DInput::QKeyboardDevice::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_input_ffi_Qt3DInput_QKeyboardDevice_qt_metacast(
self as *const crate::QKeyboardDevice as *mut crate::QKeyboardDevice,
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_input_ffi_Qt3DInput_QKeyboardDevice_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 Qt3DInput::QKeyboardDevice::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_input_ffi_Qt3DInput_QKeyboardDevice_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 Qt3DInput::QKeyboardDevice::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_input_ffi_Qt3DInput_QKeyboardDevice_trUtf8(s, c, n) };
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
}
/// <p><a href="http://doc.qt.io/qt-5/qt3dinput-qlogicaldevice.html">QLogicalDevice</a> allows the user to define a set of actions that they wish to use within an application.</p>
///
/// C++ class: <span style='color: green;'>```Qt3DInput::QLogicalDevice```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qlogicaldevice.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p><a href="http://doc.qt.io/qt-5/qt3dinput-qlogicaldevice.html">QLogicalDevice</a> allows the user to define a set of actions that they wish to use within an application.</p></div>
#[repr(C)]
pub struct QLogicalDevice {
_unused: u8,
}
impl QLogicalDevice {
/// <p>Returns the list of actions.</p>
///
/// Calls C++ function: <span style='color: green;'>```QVector<Qt3DInput::QAction*> Qt3DInput::QLogicalDevice::actions() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qlogicaldevice.html#actions">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the list of actions.</p></div>
#[inline(always)]
pub unsafe fn actions(&self) -> ::cpp_core::CppBox<crate::QVectorOfQAction> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QLogicalDevice_actions(
self as *const crate::QLogicalDevice,
)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Add an <i>action</i> to the list of actions.</p>
///
/// Calls C++ function: <span style='color: green;'>```void Qt3DInput::QLogicalDevice::addAction(Qt3DInput::QAction* action)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qlogicaldevice.html#addAction">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Add an <i>action</i> to the list of actions.</p></div>
#[inline(always)]
pub unsafe fn add_action(
&self,
action: impl ::cpp_core::CastInto<::cpp_core::Ptr<crate::QAction>>,
) {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QLogicalDevice_addAction(
self as *const crate::QLogicalDevice as *mut crate::QLogicalDevice,
::cpp_core::CastInto::<::cpp_core::Ptr<crate::QAction>>::cast_into(action).as_raw_ptr()
as *mut crate::QAction,
)
}
/// <p>Add an <i>axis</i> to the list of axis.</p>
///
/// Calls C++ function: <span style='color: green;'>```void Qt3DInput::QLogicalDevice::addAxis(Qt3DInput::QAxis* axis)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qlogicaldevice.html#addAxis">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Add an <i>axis</i> to the list of axis.</p></div>
#[inline(always)]
pub unsafe fn add_axis(&self, axis: impl ::cpp_core::CastInto<::cpp_core::Ptr<crate::QAxis>>) {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QLogicalDevice_addAxis(
self as *const crate::QLogicalDevice as *mut crate::QLogicalDevice,
::cpp_core::CastInto::<::cpp_core::Ptr<crate::QAxis>>::cast_into(axis).as_raw_ptr()
as *mut crate::QAxis,
)
}
/// <p>Returns the list of axis.</p>
///
/// Calls C++ function: <span style='color: green;'>```QVector<Qt3DInput::QAxis*> Qt3DInput::QLogicalDevice::axes() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qlogicaldevice.html#axes">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the list of axis.</p></div>
#[inline(always)]
pub unsafe fn axes(&self) -> ::cpp_core::CppBox<crate::QVectorOfQAxis> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QLogicalDevice_axes(
self as *const crate::QLogicalDevice,
)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// Calls C++ function: <span style='color: green;'>```virtual const QMetaObject* Qt3DInput::QLogicalDevice::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_input_ffi_Qt3DInput_QLogicalDevice_metaObject(
self as *const crate::QLogicalDevice,
)
};
::cpp_core::Ptr::from_raw(ffi_result as *mut ::qt_core::QMetaObject)
}
/// <p>Constructs a new <a href="http://doc.qt.io/qt-5/qt3dinput-qlogicaldevice.html">QLogicalDevice</a> instance with parent <i>parent</i>.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DInput::QLogicalDevice::QLogicalDevice(Qt3DCore::QNode* parent = …)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qlogicaldevice.html#QLogicalDevice">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/qt3dinput-qlogicaldevice.html">QLogicalDevice</a> instance with parent <i>parent</i>.</p></div>
#[inline(always)]
pub unsafe fn new_1a(
parent: impl ::cpp_core::CastInto<::cpp_core::Ptr<::qt_3d_core::QNode>>,
) -> ::qt_core::QBox<crate::QLogicalDevice> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QLogicalDevice_QLogicalDevice(
::cpp_core::CastInto::<::cpp_core::Ptr<::qt_3d_core::QNode>>::cast_into(parent)
.as_raw_ptr() as *mut ::qt_3d_core::QNode,
)
};
::qt_core::QBox::from_raw(ffi_result)
}
/// <p><a href="http://doc.qt.io/qt-5/qt3dinput-qlogicaldevice.html">QLogicalDevice</a> allows the user to define a set of actions that they wish to use within an application.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DInput::QLogicalDevice::QLogicalDevice()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qlogicaldevice.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p><a href="http://doc.qt.io/qt-5/qt3dinput-qlogicaldevice.html">QLogicalDevice</a> allows the user to define a set of actions that they wish to use within an application.</p></div>
#[inline(always)]
pub unsafe fn new_0a() -> ::qt_core::QBox<crate::QLogicalDevice> {
let ffi_result =
{ crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QLogicalDevice_QLogicalDevice1() };
::qt_core::QBox::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```virtual int Qt3DInput::QLogicalDevice::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_input_ffi_Qt3DInput_QLogicalDevice_qt_metacall(
self as *const crate::QLogicalDevice as *mut crate::QLogicalDevice,
arg1,
arg2,
arg3,
)
}
/// Calls C++ function: <span style='color: green;'>```virtual void* Qt3DInput::QLogicalDevice::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_input_ffi_Qt3DInput_QLogicalDevice_qt_metacast(
self as *const crate::QLogicalDevice as *mut crate::QLogicalDevice,
arg1,
)
}
/// <p>Remove an <i>action</i> from the list of actions.</p>
///
/// Calls C++ function: <span style='color: green;'>```void Qt3DInput::QLogicalDevice::removeAction(Qt3DInput::QAction* action)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qlogicaldevice.html#removeAction">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Remove an <i>action</i> from the list of actions.</p></div>
#[inline(always)]
pub unsafe fn remove_action(
&self,
action: impl ::cpp_core::CastInto<::cpp_core::Ptr<crate::QAction>>,
) {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QLogicalDevice_removeAction(
self as *const crate::QLogicalDevice as *mut crate::QLogicalDevice,
::cpp_core::CastInto::<::cpp_core::Ptr<crate::QAction>>::cast_into(action).as_raw_ptr()
as *mut crate::QAction,
)
}
/// <p>Remove an <i>axis</i> drom the list of axis.</p>
///
/// Calls C++ function: <span style='color: green;'>```void Qt3DInput::QLogicalDevice::removeAxis(Qt3DInput::QAxis* axis)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qlogicaldevice.html#removeAxis">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Remove an <i>axis</i> drom the list of axis.</p></div>
#[inline(always)]
pub unsafe fn remove_axis(
&self,
axis: impl ::cpp_core::CastInto<::cpp_core::Ptr<crate::QAxis>>,
) {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QLogicalDevice_removeAxis(
self as *const crate::QLogicalDevice as *mut crate::QLogicalDevice,
::cpp_core::CastInto::<::cpp_core::Ptr<crate::QAxis>>::cast_into(axis).as_raw_ptr()
as *mut crate::QAxis,
)
}
/// 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_input_ffi_Qt3DInput_QLogicalDevice_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 Qt3DInput::QLogicalDevice::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_input_ffi_Qt3DInput_QLogicalDevice_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 Qt3DInput::QLogicalDevice::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_input_ffi_Qt3DInput_QLogicalDevice_trUtf8(s, c, n) };
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
}
pub mod q_mouse_device {
//! C++ type: <span style='color: green;'>```Qt3DInput::QMouseDevice```</span>
/// C++ enum: <span style='color: green;'>```Qt3DInput::QMouseDevice::Axis```</span>.
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
#[repr(transparent)]
pub struct Axis(::std::os::raw::c_int);
impl From<::std::os::raw::c_int> for Axis {
fn from(value: ::std::os::raw::c_int) -> Self {
Axis(value)
}
}
impl From<Axis> for ::std::os::raw::c_int {
fn from(value: Axis) -> Self {
value.0
}
}
impl Axis {
pub fn to_int(&self) -> ::std::os::raw::c_int {
self.0
}
}
impl Axis {
/// C++ enum variant: <span style='color: green;'>```X = 0```</span>
#[allow(non_upper_case_globals)]
pub const X: crate::q_mouse_device::Axis = crate::q_mouse_device::Axis(0);
/// C++ enum variant: <span style='color: green;'>```Y = 1```</span>
#[allow(non_upper_case_globals)]
pub const Y: crate::q_mouse_device::Axis = crate::q_mouse_device::Axis(1);
/// C++ enum variant: <span style='color: green;'>```WheelX = 2```</span>
#[allow(non_upper_case_globals)]
pub const WheelX: crate::q_mouse_device::Axis = crate::q_mouse_device::Axis(2);
/// C++ enum variant: <span style='color: green;'>```WheelY = 3```</span>
#[allow(non_upper_case_globals)]
pub const WheelY: crate::q_mouse_device::Axis = crate::q_mouse_device::Axis(3);
}
}
/// <p>Delegates mouse events to the attached <a href="http://doc.qt.io/qt-5/qml-qt3d-input-mousehandler.html">MouseHandler</a> objects.</p>
///
/// C++ class: <span style='color: green;'>```Qt3DInput::QMouseDevice```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qmousedevice.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Delegates mouse events to the attached <a href="http://doc.qt.io/qt-5/qml-qt3d-input-mousehandler.html">MouseHandler</a> objects.</p>
/// <p>A <a href="http://doc.qt.io/qt-5/qt3dinput-qmousedevice.html">QMouseDevice</a> delegates mouse events from physical mouse device to <a href="http://doc.qt.io/qt-5/qt3dinput-qmousehandler.html">QMouseHandler</a> objects. The sensitivity of the mouse can be controlled with the <a href="http://doc.qt.io/qt-5/qt3dinput-qmousedevice.html#sensitivity-prop">QMouseDevice::sensitivity</a> property, which specifies the rate in which the logical mouse coordinates change in response to physical movement of the mouse.</p></div>
#[repr(C)]
pub struct QMouseDevice {
_unused: u8,
}
impl QMouseDevice {
/// <p>Holds the sensitivity of the mouse device. The default is 0.1.</p>
///
/// Returns a built-in Qt slot `Qt3DInput::QMouseDevice::setSensitivity` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qmousedevice.html#sensitivity-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the sensitivity of the mouse device. The default is 0.1.</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>sensitivity</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setSensitivity</b></span>(float <i>value</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>sensitivityChanged</b></span>(float <i>value</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub fn slot_set_sensitivity(&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"1setSensitivity(float)\0"),
)
}
}
/// <p>Holds the sensitivity of the mouse device. The default is 0.1.</p>
///
/// Returns a built-in Qt signal `Qt3DInput::QMouseDevice::sensitivityChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qmousedevice.html#sensitivity-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the sensitivity of the mouse device. The default is 0.1.</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>sensitivity</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setSensitivity</b></span>(float <i>value</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>sensitivityChanged</b></span>(float <i>value</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub fn sensitivity_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"2sensitivityChanged(float)\0"),
)
}
}
/// <p>Reimplemented from <a href="http://doc.qt.io/qt-5/qt3dinput-qabstractphysicaldevice.html#axisCount">QAbstractPhysicalDevice::axisCount</a>().</p>
///
/// Calls C++ function: <span style='color: green;'>```virtual int Qt3DInput::QMouseDevice::axisCount() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qmousedevice.html#axisCount">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Reimplemented from <a href="http://doc.qt.io/qt-5/qt3dinput-qabstractphysicaldevice.html#axisCount">QAbstractPhysicalDevice::axisCount</a>().</p>
/// <p>Returns the axis count.</p>
/// <p><b>Note: </b>Currently always returns 4.</p></div>
#[inline(always)]
pub unsafe fn axis_count(&self) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QMouseDevice_axisCount(
self as *const crate::QMouseDevice,
)
}
/// <p>Reimplemented from <a href="http://doc.qt.io/qt-5/qt3dinput-qabstractphysicaldevice.html#axisIdentifier">QAbstractPhysicalDevice::axisIdentifier</a>().</p>
///
/// Calls C++ function: <span style='color: green;'>```virtual int Qt3DInput::QMouseDevice::axisIdentifier(const QString& name) const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qmousedevice.html#axisIdentifier">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Reimplemented from <a href="http://doc.qt.io/qt-5/qt3dinput-qabstractphysicaldevice.html#axisIdentifier">QAbstractPhysicalDevice::axisIdentifier</a>().</p>
/// <p>Convert axis <i>name</i> to axis identifier.</p></div>
#[inline(always)]
pub unsafe fn axis_identifier(
&self,
name: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_core::QString>>,
) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QMouseDevice_axisIdentifier(
self as *const crate::QMouseDevice,
::cpp_core::CastInto::<::cpp_core::Ref<::qt_core::QString>>::cast_into(name)
.as_raw_ptr(),
)
}
/// <p>Reimplemented from <a href="http://doc.qt.io/qt-5/qt3dinput-qabstractphysicaldevice.html#axisNames">QAbstractPhysicalDevice::axisNames</a>().</p>
///
/// Calls C++ function: <span style='color: green;'>```virtual QStringList Qt3DInput::QMouseDevice::axisNames() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qmousedevice.html#axisNames">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Reimplemented from <a href="http://doc.qt.io/qt-5/qt3dinput-qabstractphysicaldevice.html#axisNames">QAbstractPhysicalDevice::axisNames</a>().</p>
/// <p>Returns the names of the axis.</p>
/// <p><b>Note: </b>Currently always returns StringList["X", "Y"]</p></div>
#[inline(always)]
pub unsafe fn axis_names(&self) -> ::cpp_core::CppBox<::qt_core::QStringList> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QMouseDevice_axisNames(
self as *const crate::QMouseDevice,
)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Reimplemented from <a href="http://doc.qt.io/qt-5/qt3dinput-qabstractphysicaldevice.html#buttonCount">QAbstractPhysicalDevice::buttonCount</a>().</p>
///
/// Calls C++ function: <span style='color: green;'>```virtual int Qt3DInput::QMouseDevice::buttonCount() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qmousedevice.html#buttonCount">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Reimplemented from <a href="http://doc.qt.io/qt-5/qt3dinput-qabstractphysicaldevice.html#buttonCount">QAbstractPhysicalDevice::buttonCount</a>().</p>
/// <p>Returns the button count.</p>
/// <p><b>Note: </b>Currently always returns 3.</p></div>
#[inline(always)]
pub unsafe fn button_count(&self) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QMouseDevice_buttonCount(
self as *const crate::QMouseDevice,
)
}
/// <p>Reimplemented from <a href="http://doc.qt.io/qt-5/qt3dinput-qabstractphysicaldevice.html#buttonIdentifier">QAbstractPhysicalDevice::buttonIdentifier</a>().</p>
///
/// Calls C++ function: <span style='color: green;'>```virtual int Qt3DInput::QMouseDevice::buttonIdentifier(const QString& name) const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qmousedevice.html#buttonIdentifier">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Reimplemented from <a href="http://doc.qt.io/qt-5/qt3dinput-qabstractphysicaldevice.html#buttonIdentifier">QAbstractPhysicalDevice::buttonIdentifier</a>().</p>
/// <p>Returns the button identifier that corresponds with the specified <i>name</i>. The possible return values are documented in <a href="http://doc.qt.io/qt-5/qt3dinput-qmouseevent.html#Buttons-enum">QMouseEvent::Buttons</a>.</p></div>
#[inline(always)]
pub unsafe fn button_identifier(
&self,
name: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_core::QString>>,
) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QMouseDevice_buttonIdentifier(
self as *const crate::QMouseDevice,
::cpp_core::CastInto::<::cpp_core::Ref<::qt_core::QString>>::cast_into(name)
.as_raw_ptr(),
)
}
/// <p>Reimplemented from <a href="http://doc.qt.io/qt-5/qt3dinput-qabstractphysicaldevice.html#buttonNames">QAbstractPhysicalDevice::buttonNames</a>().</p>
///
/// Calls C++ function: <span style='color: green;'>```virtual QStringList Qt3DInput::QMouseDevice::buttonNames() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qmousedevice.html#buttonNames">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Reimplemented from <a href="http://doc.qt.io/qt-5/qt3dinput-qabstractphysicaldevice.html#buttonNames">QAbstractPhysicalDevice::buttonNames</a>().</p>
/// <p>Returns the names of the buttons.</p>
/// <p><b>Note: </b>Currently always returns StringList["Left", "Right", "Center"]</p></div>
#[inline(always)]
pub unsafe fn button_names(&self) -> ::cpp_core::CppBox<::qt_core::QStringList> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QMouseDevice_buttonNames(
self as *const crate::QMouseDevice,
)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// Calls C++ function: <span style='color: green;'>```virtual const QMetaObject* Qt3DInput::QMouseDevice::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_input_ffi_Qt3DInput_QMouseDevice_metaObject(
self as *const crate::QMouseDevice,
)
};
::cpp_core::Ptr::from_raw(ffi_result as *mut ::qt_core::QMetaObject)
}
/// <p>Default constructs an instance of QMouseDevice.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DInput::QMouseDevice::QMouseDevice(Qt3DCore::QNode* parent = …)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qmousedevice.html#QMouseDevice">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Default constructs an instance of QMouseDevice.</p></div>
#[inline(always)]
pub unsafe fn new_1a(
parent: impl ::cpp_core::CastInto<::cpp_core::Ptr<::qt_3d_core::QNode>>,
) -> ::qt_core::QBox<crate::QMouseDevice> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QMouseDevice_QMouseDevice(
::cpp_core::CastInto::<::cpp_core::Ptr<::qt_3d_core::QNode>>::cast_into(parent)
.as_raw_ptr() as *mut ::qt_3d_core::QNode,
)
};
::qt_core::QBox::from_raw(ffi_result)
}
/// <p>Delegates mouse events to the attached <a href="http://doc.qt.io/qt-5/qml-qt3d-input-mousehandler.html">MouseHandler</a> objects.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DInput::QMouseDevice::QMouseDevice()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qmousedevice.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Delegates mouse events to the attached <a href="http://doc.qt.io/qt-5/qml-qt3d-input-mousehandler.html">MouseHandler</a> objects.</p>
/// <p>A <a href="http://doc.qt.io/qt-5/qt3dinput-qmousedevice.html">QMouseDevice</a> delegates mouse events from physical mouse device to <a href="http://doc.qt.io/qt-5/qt3dinput-qmousehandler.html">QMouseHandler</a> objects. The sensitivity of the mouse can be controlled with the <a href="http://doc.qt.io/qt-5/qt3dinput-qmousedevice.html#sensitivity-prop">QMouseDevice::sensitivity</a> property, which specifies the rate in which the logical mouse coordinates change in response to physical movement of the mouse.</p></div>
#[inline(always)]
pub unsafe fn new_0a() -> ::qt_core::QBox<crate::QMouseDevice> {
let ffi_result =
{ crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QMouseDevice_QMouseDevice1() };
::qt_core::QBox::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```virtual int Qt3DInput::QMouseDevice::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_input_ffi_Qt3DInput_QMouseDevice_qt_metacall(
self as *const crate::QMouseDevice as *mut crate::QMouseDevice,
arg1,
arg2,
arg3,
)
}
/// Calls C++ function: <span style='color: green;'>```virtual void* Qt3DInput::QMouseDevice::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_input_ffi_Qt3DInput_QMouseDevice_qt_metacast(
self as *const crate::QMouseDevice as *mut crate::QMouseDevice,
arg1,
)
}
/// <p>Holds the sensitivity of the mouse device. The default is 0.1.</p>
///
/// Calls C++ function: <span style='color: green;'>```float Qt3DInput::QMouseDevice::sensitivity() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qmousedevice.html#sensitivity-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the sensitivity of the mouse device. The default is 0.1.</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>sensitivity</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setSensitivity</b></span>(float <i>value</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>sensitivityChanged</b></span>(float <i>value</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub unsafe fn sensitivity(&self) -> ::std::os::raw::c_float {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QMouseDevice_sensitivity(
self as *const crate::QMouseDevice,
)
}
/// <p>Holds the sensitivity of the mouse device. The default is 0.1.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DInput::QMouseDevice::setSensitivity(float value)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qmousedevice.html#sensitivity-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the sensitivity of the mouse device. The default is 0.1.</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>sensitivity</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setSensitivity</b></span>(float <i>value</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>sensitivityChanged</b></span>(float <i>value</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub unsafe fn set_sensitivity(&self, value: ::std::os::raw::c_float) {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QMouseDevice_setSensitivity(
self as *const crate::QMouseDevice as *mut crate::QMouseDevice,
value,
)
}
/// 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_input_ffi_Qt3DInput_QMouseDevice_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 Qt3DInput::QMouseDevice::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_input_ffi_Qt3DInput_QMouseDevice_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 Qt3DInput::QMouseDevice::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_input_ffi_Qt3DInput_QMouseDevice_trUtf8(s, c, n) };
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
}
pub mod q_mouse_event {
//! C++ type: <span style='color: green;'>```Qt3DInput::QMouseEvent```</span>
/// C++ enum: <span style='color: green;'>```Qt3DInput::QMouseEvent::Buttons```</span>.
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
#[repr(transparent)]
pub struct Buttons(::std::os::raw::c_int);
impl From<::std::os::raw::c_int> for Buttons {
fn from(value: ::std::os::raw::c_int) -> Self {
Buttons(value)
}
}
impl From<Buttons> for ::std::os::raw::c_int {
fn from(value: Buttons) -> Self {
value.0
}
}
impl Buttons {
pub fn to_int(&self) -> ::std::os::raw::c_int {
self.0
}
}
impl Buttons {
/// C++ enum variant: <span style='color: green;'>```LeftButton = 1```</span>
#[allow(non_upper_case_globals)]
pub const LeftButton: crate::q_mouse_event::Buttons = crate::q_mouse_event::Buttons(1);
/// C++ enum variant: <span style='color: green;'>```RightButton = 2```</span>
#[allow(non_upper_case_globals)]
pub const RightButton: crate::q_mouse_event::Buttons = crate::q_mouse_event::Buttons(2);
/// C++ enum variant: <span style='color: green;'>```MiddleButton = 4```</span>
#[allow(non_upper_case_globals)]
pub const MiddleButton: crate::q_mouse_event::Buttons = crate::q_mouse_event::Buttons(4);
/// C++ enum variant: <span style='color: green;'>```BackButton = 8```</span>
#[allow(non_upper_case_globals)]
pub const BackButton: crate::q_mouse_event::Buttons = crate::q_mouse_event::Buttons(8);
/// C++ enum variant: <span style='color: green;'>```NoButton = 0```</span>
#[allow(non_upper_case_globals)]
pub const NoButton: crate::q_mouse_event::Buttons = crate::q_mouse_event::Buttons(0);
}
/// C++ enum: <span style='color: green;'>```Qt3DInput::QMouseEvent::Modifiers```</span>.
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
#[repr(transparent)]
pub struct Modifiers(::std::os::raw::c_int);
impl From<::std::os::raw::c_int> for Modifiers {
fn from(value: ::std::os::raw::c_int) -> Self {
Modifiers(value)
}
}
impl From<Modifiers> for ::std::os::raw::c_int {
fn from(value: Modifiers) -> Self {
value.0
}
}
impl Modifiers {
pub fn to_int(&self) -> ::std::os::raw::c_int {
self.0
}
}
impl Modifiers {
/// C++ enum variant: <span style='color: green;'>```NoModifier = 0```</span>
#[allow(non_upper_case_globals)]
pub const NoModifier: crate::q_mouse_event::Modifiers = crate::q_mouse_event::Modifiers(0);
/// C++ enum variant: <span style='color: green;'>```ShiftModifier = 33554432```</span>
#[allow(non_upper_case_globals)]
pub const ShiftModifier: crate::q_mouse_event::Modifiers =
crate::q_mouse_event::Modifiers(33554432);
/// C++ enum variant: <span style='color: green;'>```ControlModifier = 67108864```</span>
#[allow(non_upper_case_globals)]
pub const ControlModifier: crate::q_mouse_event::Modifiers =
crate::q_mouse_event::Modifiers(67108864);
/// C++ enum variant: <span style='color: green;'>```AltModifier = 134217728```</span>
#[allow(non_upper_case_globals)]
pub const AltModifier: crate::q_mouse_event::Modifiers =
crate::q_mouse_event::Modifiers(134217728);
/// C++ enum variant: <span style='color: green;'>```MetaModifier = 268435456```</span>
#[allow(non_upper_case_globals)]
pub const MetaModifier: crate::q_mouse_event::Modifiers =
crate::q_mouse_event::Modifiers(268435456);
/// C++ enum variant: <span style='color: green;'>```KeypadModifier = 536870912```</span>
#[allow(non_upper_case_globals)]
pub const KeypadModifier: crate::q_mouse_event::Modifiers =
crate::q_mouse_event::Modifiers(536870912);
}
}
/// <p>The Qt3DCore::QMouseEvent contains parameters that describe a mouse event.</p>
///
/// C++ class: <span style='color: green;'>```Qt3DInput::QMouseEvent```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qmouseevent.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>The Qt3DCore::QMouseEvent contains parameters that describe a mouse event.</p>
/// <p>Mouse events occur when a mouse button is pressed and the ray traversing the view, originating from the mouse position intersects with one or more elements of the scene.</p></div>
#[repr(C)]
pub struct QMouseEvent {
_unused: u8,
}
impl QMouseEvent {
/// <p>Specifies the button triggering the mouse event</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QMouseEvent::Buttons Qt3DInput::QMouseEvent::button() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qmouseevent.html#button-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Specifies the button triggering the mouse event</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Buttons </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="http://doc.qt.io/qt-5/qt3dinput-qmouseevent.html#button">button</a></b></span>() const</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub unsafe fn button(&self) -> crate::q_mouse_event::Buttons {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QMouseEvent_button(
self as *const crate::QMouseEvent,
)
}
/// <p>Specifies the button triggering the mouse event</p>
///
/// Calls C++ function: <span style='color: green;'>```int Qt3DInput::QMouseEvent::buttons() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qmouseevent.html#buttons-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Specifies the button triggering the mouse event</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><a href="http://doc.qt.io/qt-5/qt3dinput-qmouseevent.html#buttons">buttons</a></b></span>() const</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub unsafe fn buttons(&self) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QMouseEvent_buttons(
self as *const crate::QMouseEvent,
)
}
/// <p>Returns whether the event was accepted.</p>
///
/// Calls C++ function: <span style='color: green;'>```bool Qt3DInput::QMouseEvent::isAccepted() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qmouseevent.html#isAccepted">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns whether the event was accepted.</p>
/// <p><b>Note:</b> Getter function for property <a href="http://doc.qt.io/qt-5/qt3dinput-qmouseevent.html#accepted-prop">accepted</a>. </p></div>
#[inline(always)]
pub unsafe fn is_accepted(&self) -> bool {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QMouseEvent_isAccepted(
self as *const crate::QMouseEvent,
)
}
/// Calls C++ function: <span style='color: green;'>```virtual const QMetaObject* Qt3DInput::QMouseEvent::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_input_ffi_Qt3DInput_QMouseEvent_metaObject(
self as *const crate::QMouseEvent,
)
};
::cpp_core::Ptr::from_raw(ffi_result as *mut ::qt_core::QMetaObject)
}
/// <p>Specifies if any modifiers were applied to the mouse event</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QMouseEvent::Modifiers Qt3DInput::QMouseEvent::modifiers() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qmouseevent.html#modifiers-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Specifies if any modifiers were applied to the mouse event</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Modifiers </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="http://doc.qt.io/qt-5/qt3dinput-qmouseevent.html#modifiers">modifiers</a></b></span>() const</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub unsafe fn modifiers(&self) -> crate::q_mouse_event::Modifiers {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QMouseEvent_modifiers(
self as *const crate::QMouseEvent,
)
}
/// <p>Constructs a new <a href="http://doc.qt.io/qt-5/qt3dinput-qmouseevent.html">QMouseEvent</a> instance for the <a href="http://doc.qt.io/qt-5/qt3dinput-qmouseevent.html">QMouseEvent</a> <i>e</i>.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DInput::QMouseEvent::QMouseEvent(const QMouseEvent& e)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qmouseevent.html#QMouseEvent">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/qt3dinput-qmouseevent.html">QMouseEvent</a> instance for the <a href="http://doc.qt.io/qt-5/qt3dinput-qmouseevent.html">QMouseEvent</a> <i>e</i>.</p></div>
#[inline(always)]
pub unsafe fn new(
e: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_gui::QMouseEvent>>,
) -> ::qt_core::QBox<crate::QMouseEvent> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QMouseEvent_QMouseEvent(
::cpp_core::CastInto::<::cpp_core::Ref<::qt_gui::QMouseEvent>>::cast_into(e)
.as_raw_ptr(),
)
};
::qt_core::QBox::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```virtual int Qt3DInput::QMouseEvent::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_input_ffi_Qt3DInput_QMouseEvent_qt_metacall(
self as *const crate::QMouseEvent as *mut crate::QMouseEvent,
arg1,
arg2,
arg3,
)
}
/// Calls C++ function: <span style='color: green;'>```virtual void* Qt3DInput::QMouseEvent::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_input_ffi_Qt3DInput_QMouseEvent_qt_metacast(
self as *const crate::QMouseEvent as *mut crate::QMouseEvent,
arg1,
)
}
/// <p>Sets the event as accepted if <i>accepted</i> is true.</p>
///
/// Calls C++ function: <span style='color: green;'>```void Qt3DInput::QMouseEvent::setAccepted(bool accepted)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qmouseevent.html#setAccepted">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Sets the event as accepted if <i>accepted</i> is true.</p>
/// <p><b>Note: </b>When an event is accepted, it will prevent further propagation to other listeners.</p><p><b>Note:</b> Setter function for property <a href="http://doc.qt.io/qt-5/qt3dinput-qmouseevent.html#accepted-prop">accepted</a>. </p><p><b>See also </b><a href="http://doc.qt.io/qt-5/qt3dinput-qmouseevent.html#isAccepted">isAccepted</a>().</p></div>
#[inline(always)]
pub unsafe fn set_accepted(&self, accepted: bool) {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QMouseEvent_setAccepted(
self as *const crate::QMouseEvent as *mut crate::QMouseEvent,
accepted,
)
}
/// 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_input_ffi_Qt3DInput_QMouseEvent_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 Qt3DInput::QMouseEvent::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_input_ffi_Qt3DInput_QMouseEvent_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 Qt3DInput::QMouseEvent::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_input_ffi_Qt3DInput_QMouseEvent_trUtf8(s, c, n) };
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Returns the <a href="http://doc.qt.io/qt-5/qevent.html#Type-enum">QEvent::Type</a> of the event.</p>
///
/// Calls C++ function: <span style='color: green;'>```QEvent::Type Qt3DInput::QMouseEvent::type() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qmouseevent.html#type">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the <a href="http://doc.qt.io/qt-5/qevent.html#Type-enum">QEvent::Type</a> of the event.</p></div>
#[inline(always)]
pub unsafe fn type_(&self) -> ::qt_core::q_event::Type {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QMouseEvent_type(
self as *const crate::QMouseEvent,
)
}
/// <p>Specifies if a mouse button was held down during the mouse event</p>
///
/// Calls C++ function: <span style='color: green;'>```bool Qt3DInput::QMouseEvent::wasHeld() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qmouseevent.html#wasHeld-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Specifies if a mouse button was held down during the mouse event</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>wasHeld</b></span>() const</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub unsafe fn was_held(&self) -> bool {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QMouseEvent_wasHeld(
self as *const crate::QMouseEvent,
)
}
/// <p>Specifies The X coordinate of the mouse event</p>
///
/// Calls C++ function: <span style='color: green;'>```int Qt3DInput::QMouseEvent::x() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qmouseevent.html#x-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Specifies The X coordinate of the mouse event</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><a href="http://doc.qt.io/qt-5/qt3dinput-qmouseevent.html#x">x</a></b></span>() const</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub unsafe fn x(&self) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QMouseEvent_x(self as *const crate::QMouseEvent)
}
/// <p>Specifies The y coordinate of the mouse event</p>
///
/// Calls C++ function: <span style='color: green;'>```int Qt3DInput::QMouseEvent::y() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qmouseevent.html#y-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Specifies The y coordinate of the mouse event</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><a href="http://doc.qt.io/qt-5/qt3dinput-qmouseevent.html#y">y</a></b></span>() const</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub unsafe fn y(&self) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QMouseEvent_y(self as *const crate::QMouseEvent)
}
}
pub mod q_wheel_event {
//! C++ type: <span style='color: green;'>```Qt3DInput::QWheelEvent```</span>
/// C++ enum: <span style='color: green;'>```Qt3DInput::QWheelEvent::Buttons```</span>.
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
#[repr(transparent)]
pub struct Buttons(::std::os::raw::c_int);
impl From<::std::os::raw::c_int> for Buttons {
fn from(value: ::std::os::raw::c_int) -> Self {
Buttons(value)
}
}
impl From<Buttons> for ::std::os::raw::c_int {
fn from(value: Buttons) -> Self {
value.0
}
}
impl Buttons {
pub fn to_int(&self) -> ::std::os::raw::c_int {
self.0
}
}
impl Buttons {
/// C++ enum variant: <span style='color: green;'>```LeftButton = 1```</span>
#[allow(non_upper_case_globals)]
pub const LeftButton: crate::q_wheel_event::Buttons = crate::q_wheel_event::Buttons(1);
/// C++ enum variant: <span style='color: green;'>```RightButton = 2```</span>
#[allow(non_upper_case_globals)]
pub const RightButton: crate::q_wheel_event::Buttons = crate::q_wheel_event::Buttons(2);
/// C++ enum variant: <span style='color: green;'>```MiddleButton = 4```</span>
#[allow(non_upper_case_globals)]
pub const MiddleButton: crate::q_wheel_event::Buttons = crate::q_wheel_event::Buttons(4);
/// C++ enum variant: <span style='color: green;'>```BackButton = 8```</span>
#[allow(non_upper_case_globals)]
pub const BackButton: crate::q_wheel_event::Buttons = crate::q_wheel_event::Buttons(8);
/// C++ enum variant: <span style='color: green;'>```NoButton = 0```</span>
#[allow(non_upper_case_globals)]
pub const NoButton: crate::q_wheel_event::Buttons = crate::q_wheel_event::Buttons(0);
}
/// C++ enum: <span style='color: green;'>```Qt3DInput::QWheelEvent::Modifiers```</span>.
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
#[repr(transparent)]
pub struct Modifiers(::std::os::raw::c_int);
impl From<::std::os::raw::c_int> for Modifiers {
fn from(value: ::std::os::raw::c_int) -> Self {
Modifiers(value)
}
}
impl From<Modifiers> for ::std::os::raw::c_int {
fn from(value: Modifiers) -> Self {
value.0
}
}
impl Modifiers {
pub fn to_int(&self) -> ::std::os::raw::c_int {
self.0
}
}
impl Modifiers {
/// C++ enum variant: <span style='color: green;'>```NoModifier = 0```</span>
#[allow(non_upper_case_globals)]
pub const NoModifier: crate::q_wheel_event::Modifiers = crate::q_wheel_event::Modifiers(0);
/// C++ enum variant: <span style='color: green;'>```ShiftModifier = 33554432```</span>
#[allow(non_upper_case_globals)]
pub const ShiftModifier: crate::q_wheel_event::Modifiers =
crate::q_wheel_event::Modifiers(33554432);
/// C++ enum variant: <span style='color: green;'>```ControlModifier = 67108864```</span>
#[allow(non_upper_case_globals)]
pub const ControlModifier: crate::q_wheel_event::Modifiers =
crate::q_wheel_event::Modifiers(67108864);
/// C++ enum variant: <span style='color: green;'>```AltModifier = 134217728```</span>
#[allow(non_upper_case_globals)]
pub const AltModifier: crate::q_wheel_event::Modifiers =
crate::q_wheel_event::Modifiers(134217728);
/// C++ enum variant: <span style='color: green;'>```MetaModifier = 268435456```</span>
#[allow(non_upper_case_globals)]
pub const MetaModifier: crate::q_wheel_event::Modifiers =
crate::q_wheel_event::Modifiers(268435456);
/// C++ enum variant: <span style='color: green;'>```KeypadModifier = 536870912```</span>
#[allow(non_upper_case_globals)]
pub const KeypadModifier: crate::q_wheel_event::Modifiers =
crate::q_wheel_event::Modifiers(536870912);
}
}
/// <p>The <a href="http://doc.qt.io/qt-5/qt3dinput-qwheelevent.html">QWheelEvent</a> class contains parameters that describe a mouse wheel event.</p>
///
/// C++ class: <span style='color: green;'>```Qt3DInput::QWheelEvent```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qwheelevent.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>The <a href="http://doc.qt.io/qt-5/qt3dinput-qwheelevent.html">QWheelEvent</a> class contains parameters that describe a mouse wheel event.</p>
/// <p>Mouse wheel events occur when the mouse is rotated.</p></div>
#[repr(C)]
pub struct QWheelEvent {
_unused: u8,
}
impl QWheelEvent {
/// <p>Specifies The change wheel angle of the mouse wheel event</p>
///
/// Calls C++ function: <span style='color: green;'>```QPoint Qt3DInput::QWheelEvent::angleDelta() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qwheelevent.html#angleDelta-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Specifies The change wheel angle of the mouse wheel event</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QPoint </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="http://doc.qt.io/qt-5/qt3dinput-qwheelevent.html#angleDelta">angleDelta</a></b></span>() const</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub unsafe fn angle_delta(&self) -> ::cpp_core::CppBox<::qt_core::QPoint> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QWheelEvent_angleDelta(
self as *const crate::QWheelEvent,
)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Specifies the button if present in the mouse wheel event</p>
///
/// Calls C++ function: <span style='color: green;'>```int Qt3DInput::QWheelEvent::buttons() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qwheelevent.html#buttons-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Specifies the button if present in the mouse wheel event</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><a href="http://doc.qt.io/qt-5/qt3dinput-qwheelevent.html#buttons">buttons</a></b></span>() const</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub unsafe fn buttons(&self) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QWheelEvent_buttons(
self as *const crate::QWheelEvent,
)
}
/// <p>Returns whether the event was accepted.</p>
///
/// Calls C++ function: <span style='color: green;'>```bool Qt3DInput::QWheelEvent::isAccepted() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qwheelevent.html#isAccepted">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns whether the event was accepted.</p>
/// <p><b>Note:</b> Getter function for property <a href="http://doc.qt.io/qt-5/qt3dinput-qwheelevent.html#accepted-prop">accepted</a>. </p></div>
#[inline(always)]
pub unsafe fn is_accepted(&self) -> bool {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QWheelEvent_isAccepted(
self as *const crate::QWheelEvent,
)
}
/// Calls C++ function: <span style='color: green;'>```virtual const QMetaObject* Qt3DInput::QWheelEvent::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_input_ffi_Qt3DInput_QWheelEvent_metaObject(
self as *const crate::QWheelEvent,
)
};
::cpp_core::Ptr::from_raw(ffi_result as *mut ::qt_core::QMetaObject)
}
/// <p>Specifies if any modifiers were applied to the mouse wheel event</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QWheelEvent::Modifiers Qt3DInput::QWheelEvent::modifiers() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qwheelevent.html#modifiers-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Specifies if any modifiers were applied to the mouse wheel event</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Modifiers </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="http://doc.qt.io/qt-5/qt3dinput-qwheelevent.html#modifiers">modifiers</a></b></span>() const</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub unsafe fn modifiers(&self) -> crate::q_wheel_event::Modifiers {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QWheelEvent_modifiers(
self as *const crate::QWheelEvent,
)
}
/// <p>Constructs a new <a href="http://doc.qt.io/qt-5/qt3dinput-qwheelevent.html">QWheelEvent</a> instance from the <a href="http://doc.qt.io/qt-5/qt3dinput-qwheelevent.html">QWheelEvent</a> <i>e</i>.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DInput::QWheelEvent::QWheelEvent(const QWheelEvent& e)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qwheelevent.html#QWheelEvent">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/qt3dinput-qwheelevent.html">QWheelEvent</a> instance from the <a href="http://doc.qt.io/qt-5/qt3dinput-qwheelevent.html">QWheelEvent</a> <i>e</i>.</p></div>
#[inline(always)]
pub unsafe fn new(
e: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_gui::QWheelEvent>>,
) -> ::qt_core::QBox<crate::QWheelEvent> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QWheelEvent_QWheelEvent(
::cpp_core::CastInto::<::cpp_core::Ref<::qt_gui::QWheelEvent>>::cast_into(e)
.as_raw_ptr(),
)
};
::qt_core::QBox::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```virtual int Qt3DInput::QWheelEvent::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_input_ffi_Qt3DInput_QWheelEvent_qt_metacall(
self as *const crate::QWheelEvent as *mut crate::QWheelEvent,
arg1,
arg2,
arg3,
)
}
/// Calls C++ function: <span style='color: green;'>```virtual void* Qt3DInput::QWheelEvent::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_input_ffi_Qt3DInput_QWheelEvent_qt_metacast(
self as *const crate::QWheelEvent as *mut crate::QWheelEvent,
arg1,
)
}
/// <p>Sets the event as accepted if <i>accepted</i> is true.</p>
///
/// Calls C++ function: <span style='color: green;'>```void Qt3DInput::QWheelEvent::setAccepted(bool accepted)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qwheelevent.html#setAccepted">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Sets the event as accepted if <i>accepted</i> is true.</p>
/// <p><b>Note: </b>When an event is accepted, it will prevent further propagation to other listeners.</p><p><b>Note:</b> Setter function for property <a href="http://doc.qt.io/qt-5/qt3dinput-qwheelevent.html#accepted-prop">accepted</a>. </p><p><b>See also </b><a href="http://doc.qt.io/qt-5/qt3dinput-qwheelevent.html#isAccepted">isAccepted</a>().</p></div>
#[inline(always)]
pub unsafe fn set_accepted(&self, accepted: bool) {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QWheelEvent_setAccepted(
self as *const crate::QWheelEvent as *mut crate::QWheelEvent,
accepted,
)
}
/// 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_input_ffi_Qt3DInput_QWheelEvent_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 Qt3DInput::QWheelEvent::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_input_ffi_Qt3DInput_QWheelEvent_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 Qt3DInput::QWheelEvent::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_input_ffi_Qt3DInput_QWheelEvent_trUtf8(s, c, n) };
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Returns the <a href="http://doc.qt.io/qt-5/qevent.html#Type-enum">QEvent::Type</a> of the event.</p>
///
/// Calls C++ function: <span style='color: green;'>```QEvent::Type Qt3DInput::QWheelEvent::type() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qwheelevent.html#type">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the <a href="http://doc.qt.io/qt-5/qevent.html#Type-enum">QEvent::Type</a> of the event.</p></div>
#[inline(always)]
pub unsafe fn type_(&self) -> ::qt_core::q_event::Type {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QWheelEvent_type(
self as *const crate::QWheelEvent,
)
}
/// <p>Specifies The X coordinate of the mouse wheel event</p>
///
/// Calls C++ function: <span style='color: green;'>```int Qt3DInput::QWheelEvent::x() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qwheelevent.html#x-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Specifies The X coordinate of the mouse wheel event</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><a href="http://doc.qt.io/qt-5/qt3dinput-qwheelevent.html#x">x</a></b></span>() const</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub unsafe fn x(&self) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QWheelEvent_x(self as *const crate::QWheelEvent)
}
/// <p>Specifies The Y coordinate of the mouse wheel event</p>
///
/// Calls C++ function: <span style='color: green;'>```int Qt3DInput::QWheelEvent::y() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qwheelevent.html#y-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Specifies The Y coordinate of the mouse wheel event</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><a href="http://doc.qt.io/qt-5/qt3dinput-qwheelevent.html#y">y</a></b></span>() const</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub unsafe fn y(&self) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QWheelEvent_y(self as *const crate::QWheelEvent)
}
}
/// <p>Provides a means of being notified about mouse events when attached to a <a href="http://doc.qt.io/qt-5/qt3dinput-qmousedevice.html">QMouseDevice</a> instance.</p>
///
/// C++ class: <span style='color: green;'>```Qt3DInput::QMouseHandler```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qmousehandler.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Provides a means of being notified about mouse events when attached to a <a href="http://doc.qt.io/qt-5/qt3dinput-qmousedevice.html">QMouseDevice</a> instance.</p>
/// <p><b>Note: </b><a href="http://doc.qt.io/qt-5/qt3dinput-qmousehandler.html">QMouseHandler</a> components shouldn't be shared, not respecting that condition will most likely result in undefined behaviors.</p></div>
#[repr(C)]
pub struct QMouseHandler {
_unused: u8,
}
impl QMouseHandler {
/// <p>Sets the mouse device of the <a href="http://doc.qt.io/qt-5/qt3dinput-qmousehandler.html">QMouseHandler</a> instance to <i>mouseDevice</i>.</p>
///
/// Returns a built-in Qt slot `Qt3DInput::QMouseHandler::setSourceDevice` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qmousehandler.html#setSourceDevice">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Sets the mouse device of the <a href="http://doc.qt.io/qt-5/qt3dinput-qmousehandler.html">QMouseHandler</a> instance to <i>mouseDevice</i>.</p>
/// <p><b>Note:</b> Setter function for property <a href="http://doc.qt.io/qt-5/qt3dinput-qmousehandler.html#sourceDevice-prop">sourceDevice</a>. </p><p><b>See also </b><a href="http://doc.qt.io/qt-5/qt3dinput-qmousehandler.html#sourceDevice-prop">sourceDevice</a>().</p></div>
#[inline(always)]
pub fn slot_set_source_device(&self) -> ::qt_core::Receiver<(*mut crate::QMouseDevice,)> {
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"1setSourceDevice(Qt3DInput::QMouseDevice *)\0",
),
)
}
}
/// <p>Holds the current mouse source device of the <a href="http://doc.qt.io/qt-5/qt3dinput-qmousehandler.html">QMouseHandler</a> instance.</p>
///
/// Returns a built-in Qt signal `Qt3DInput::QMouseHandler::sourceDeviceChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qmousehandler.html#sourceDevice-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current mouse source device of the <a href="http://doc.qt.io/qt-5/qt3dinput-qmousehandler.html">QMouseHandler</a> instance.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QMouseDevice *</td><td class="memItemRight bottomAlign"><span class="name"><b>sourceDevice</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="http://doc.qt.io/qt-5/qt3dinput-qmousehandler.html#setSourceDevice">setSourceDevice</a></b></span>(QMouseDevice *<i>mouseDevice</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>sourceDeviceChanged</b></span>(QMouseDevice *<i>mouseDevice</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub fn source_device_changed(&self) -> ::qt_core::Signal<(*mut crate::QMouseDevice,)> {
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"2sourceDeviceChanged(Qt3DInput::QMouseDevice *)\0",
),
)
}
}
/// <p>Holds <code>true</code> if the <a href="http://doc.qt.io/qt-5/qt3dinput-qmousehandler.html">QMouseHandler</a> currently contains the mouse.</p>
///
/// Returns a built-in Qt signal `Qt3DInput::QMouseHandler::containsMouseChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qmousehandler.html#containsMouse-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds <code>true</code> if the <a href="http://doc.qt.io/qt-5/qt3dinput-qmousehandler.html">QMouseHandler</a> currently contains the mouse.</p>
/// <p><b>Note: </b>In this context, contains mean that the ray originating from the mouse is intersecting with the <a href="http://doc.qt.io/qt-5/qt3dcore-qentity.html">Qt3DCore::QEntity</a> that aggregates the current <a href="http://doc.qt.io/qt-5/qt3dinput-qmousehandler.html">QMouseHandler</a> instance component.</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>containsMouse</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>containsMouseChanged</b></span>(bool <i>containsMouse</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub fn contains_mouse_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"2containsMouseChanged(bool)\0"),
)
}
}
/// <p>This signal is emitted when a mouse button is clicked with the event details being contained within <i>mouse</i></p>
///
/// Returns a built-in Qt signal `Qt3DInput::QMouseHandler::clicked` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qmousehandler.html#clicked">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This signal is emitted when a mouse button is clicked with the event details being contained within <i>mouse</i></p></div>
#[inline(always)]
pub fn clicked(&self) -> ::qt_core::Signal<(*mut crate::QMouseEvent,)> {
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"2clicked(Qt3DInput::QMouseEvent *)\0",
),
)
}
}
/// <p>This signal is emitted when a mouse button is double clicked with the event details being contained within <i>mouse</i></p>
///
/// Returns a built-in Qt signal `Qt3DInput::QMouseHandler::doubleClicked` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qmousehandler.html#doubleClicked">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This signal is emitted when a mouse button is double clicked with the event details being contained within <i>mouse</i></p></div>
#[inline(always)]
pub fn double_clicked(&self) -> ::qt_core::Signal<(*mut crate::QMouseEvent,)> {
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"2doubleClicked(Qt3DInput::QMouseEvent *)\0",
),
)
}
}
/// Returns a built-in Qt signal `Qt3DInput::QMouseHandler::entered` that can be passed to `qt_core::Signal::connect`.
#[inline(always)]
pub fn entered(&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"2entered()\0"),
)
}
}
/// Returns a built-in Qt signal `Qt3DInput::QMouseHandler::exited` that can be passed to `qt_core::Signal::connect`.
#[inline(always)]
pub fn exited(&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"2exited()\0"),
)
}
}
/// <p>This signal is emitted when a mouse button is pressed with the event details being contained within <i>mouse</i></p>
///
/// Returns a built-in Qt signal `Qt3DInput::QMouseHandler::pressed` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qmousehandler.html#pressed">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This signal is emitted when a mouse button is pressed with the event details being contained within <i>mouse</i></p></div>
#[inline(always)]
pub fn pressed(&self) -> ::qt_core::Signal<(*mut crate::QMouseEvent,)> {
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"2pressed(Qt3DInput::QMouseEvent *)\0",
),
)
}
}
/// <p>This signal is emitted when a mouse button is released with the event details being contained within <i>mouse</i></p>
///
/// Returns a built-in Qt signal `Qt3DInput::QMouseHandler::released` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qmousehandler.html#released">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This signal is emitted when a mouse button is released with the event details being contained within <i>mouse</i></p></div>
#[inline(always)]
pub fn released(&self) -> ::qt_core::Signal<(*mut crate::QMouseEvent,)> {
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"2released(Qt3DInput::QMouseEvent *)\0",
),
)
}
}
/// <p>This signal is emitted when a mouse button is pressed and held down with the event details being contained within <i>mouse</i></p>
///
/// Returns a built-in Qt signal `Qt3DInput::QMouseHandler::pressAndHold` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qmousehandler.html#pressAndHold">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This signal is emitted when a mouse button is pressed and held down with the event details being contained within <i>mouse</i></p></div>
#[inline(always)]
pub fn press_and_hold(&self) -> ::qt_core::Signal<(*mut crate::QMouseEvent,)> {
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"2pressAndHold(Qt3DInput::QMouseEvent *)\0",
),
)
}
}
/// <p>This signal is emitted when the mouse position changes with the event details being contained within <i>mouse</i></p>
///
/// Returns a built-in Qt signal `Qt3DInput::QMouseHandler::positionChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qmousehandler.html#positionChanged">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This signal is emitted when the mouse position changes with the event details being contained within <i>mouse</i></p></div>
#[inline(always)]
pub fn position_changed(&self) -> ::qt_core::Signal<(*mut crate::QMouseEvent,)> {
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"2positionChanged(Qt3DInput::QMouseEvent *)\0",
),
)
}
}
/// <p>This signal is emitted when the mouse wheel is used with the event details being contained within <i>wheel</i></p>
///
/// Returns a built-in Qt signal `Qt3DInput::QMouseHandler::wheel` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qmousehandler.html#wheel">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This signal is emitted when the mouse wheel is used with the event details being contained within <i>wheel</i></p></div>
#[inline(always)]
pub fn wheel(&self) -> ::qt_core::Signal<(*mut crate::QWheelEvent,)> {
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"2wheel(Qt3DInput::QWheelEvent *)\0",
),
)
}
}
/// <p>Holds <code>true</code> if the <a href="http://doc.qt.io/qt-5/qt3dinput-qmousehandler.html">QMouseHandler</a> currently contains the mouse.</p>
///
/// Calls C++ function: <span style='color: green;'>```bool Qt3DInput::QMouseHandler::containsMouse() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qmousehandler.html#containsMouse-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds <code>true</code> if the <a href="http://doc.qt.io/qt-5/qt3dinput-qmousehandler.html">QMouseHandler</a> currently contains the mouse.</p>
/// <p><b>Note: </b>In this context, contains mean that the ray originating from the mouse is intersecting with the <a href="http://doc.qt.io/qt-5/qt3dcore-qentity.html">Qt3DCore::QEntity</a> that aggregates the current <a href="http://doc.qt.io/qt-5/qt3dinput-qmousehandler.html">QMouseHandler</a> instance component.</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>containsMouse</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>containsMouseChanged</b></span>(bool <i>containsMouse</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub unsafe fn contains_mouse(&self) -> bool {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QMouseHandler_containsMouse(
self as *const crate::QMouseHandler,
)
}
/// Calls C++ function: <span style='color: green;'>```virtual const QMetaObject* Qt3DInput::QMouseHandler::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_input_ffi_Qt3DInput_QMouseHandler_metaObject(
self as *const crate::QMouseHandler,
)
};
::cpp_core::Ptr::from_raw(ffi_result as *mut ::qt_core::QMetaObject)
}
/// <p>Constructs a new <a href="http://doc.qt.io/qt-5/qt3dinput-qmousehandler.html">QMouseHandler</a> instance with parent <i>parent</i>.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DInput::QMouseHandler::QMouseHandler(Qt3DCore::QNode* parent = …)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qmousehandler.html#QMouseHandler">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/qt3dinput-qmousehandler.html">QMouseHandler</a> instance with parent <i>parent</i>.</p></div>
#[inline(always)]
pub unsafe fn new_1a(
parent: impl ::cpp_core::CastInto<::cpp_core::Ptr<::qt_3d_core::QNode>>,
) -> ::qt_core::QBox<crate::QMouseHandler> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QMouseHandler_QMouseHandler(
::cpp_core::CastInto::<::cpp_core::Ptr<::qt_3d_core::QNode>>::cast_into(parent)
.as_raw_ptr() as *mut ::qt_3d_core::QNode,
)
};
::qt_core::QBox::from_raw(ffi_result)
}
/// <p>Provides a means of being notified about mouse events when attached to a <a href="http://doc.qt.io/qt-5/qt3dinput-qmousedevice.html">QMouseDevice</a> instance.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DInput::QMouseHandler::QMouseHandler()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qmousehandler.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Provides a means of being notified about mouse events when attached to a <a href="http://doc.qt.io/qt-5/qt3dinput-qmousedevice.html">QMouseDevice</a> instance.</p>
/// <p><b>Note: </b><a href="http://doc.qt.io/qt-5/qt3dinput-qmousehandler.html">QMouseHandler</a> components shouldn't be shared, not respecting that condition will most likely result in undefined behaviors.</p></div>
#[inline(always)]
pub unsafe fn new_0a() -> ::qt_core::QBox<crate::QMouseHandler> {
let ffi_result =
{ crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QMouseHandler_QMouseHandler1() };
::qt_core::QBox::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```virtual int Qt3DInput::QMouseHandler::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_input_ffi_Qt3DInput_QMouseHandler_qt_metacall(
self as *const crate::QMouseHandler as *mut crate::QMouseHandler,
arg1,
arg2,
arg3,
)
}
/// Calls C++ function: <span style='color: green;'>```virtual void* Qt3DInput::QMouseHandler::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_input_ffi_Qt3DInput_QMouseHandler_qt_metacast(
self as *const crate::QMouseHandler as *mut crate::QMouseHandler,
arg1,
)
}
/// <p>Sets the mouse device of the <a href="http://doc.qt.io/qt-5/qt3dinput-qmousehandler.html">QMouseHandler</a> instance to <i>mouseDevice</i>.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DInput::QMouseHandler::setSourceDevice(Qt3DInput::QMouseDevice* mouseDevice)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qmousehandler.html#setSourceDevice">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Sets the mouse device of the <a href="http://doc.qt.io/qt-5/qt3dinput-qmousehandler.html">QMouseHandler</a> instance to <i>mouseDevice</i>.</p>
/// <p><b>Note:</b> Setter function for property <a href="http://doc.qt.io/qt-5/qt3dinput-qmousehandler.html#sourceDevice-prop">sourceDevice</a>. </p><p><b>See also </b><a href="http://doc.qt.io/qt-5/qt3dinput-qmousehandler.html#sourceDevice-prop">sourceDevice</a>().</p></div>
#[inline(always)]
pub unsafe fn set_source_device(
&self,
mouse_device: impl ::cpp_core::CastInto<::cpp_core::Ptr<crate::QMouseDevice>>,
) {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QMouseHandler_setSourceDevice(
self as *const crate::QMouseHandler as *mut crate::QMouseHandler,
::cpp_core::CastInto::<::cpp_core::Ptr<crate::QMouseDevice>>::cast_into(mouse_device)
.as_raw_ptr() as *mut crate::QMouseDevice,
)
}
/// <p>Holds the current mouse source device of the <a href="http://doc.qt.io/qt-5/qt3dinput-qmousehandler.html">QMouseHandler</a> instance.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QMouseDevice* Qt3DInput::QMouseHandler::sourceDevice() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qmousehandler.html#sourceDevice-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current mouse source device of the <a href="http://doc.qt.io/qt-5/qt3dinput-qmousehandler.html">QMouseHandler</a> instance.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QMouseDevice *</td><td class="memItemRight bottomAlign"><span class="name"><b>sourceDevice</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="http://doc.qt.io/qt-5/qt3dinput-qmousehandler.html#setSourceDevice">setSourceDevice</a></b></span>(QMouseDevice *<i>mouseDevice</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>sourceDeviceChanged</b></span>(QMouseDevice *<i>mouseDevice</i>)</td></tr>
/// </tbody></table></div></div>
#[inline(always)]
pub unsafe fn source_device(&self) -> ::qt_core::QPtr<crate::QMouseDevice> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QMouseHandler_sourceDevice(
self as *const crate::QMouseHandler,
)
};
::qt_core::QPtr::from_raw(ffi_result)
}
/// 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_input_ffi_Qt3DInput_QMouseHandler_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 Qt3DInput::QMouseHandler::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_input_ffi_Qt3DInput_QMouseHandler_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 Qt3DInput::QMouseHandler::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_input_ffi_Qt3DInput_QMouseHandler_trUtf8(s, c, n) };
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
}
/// <p>Base class for handling changes in physical devices.</p>
///
/// C++ class: <span style='color: green;'>```Qt3DInput::QPhysicalDeviceCreatedChangeBase```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qphysicaldevicecreatedchangebase.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Base class for handling changes in physical devices.</p></div>
#[repr(C)]
pub struct QPhysicalDeviceCreatedChangeBase {
_unused: u8,
}
impl QPhysicalDeviceCreatedChangeBase {
/// <p>Returns a list of node ids.</p>
///
/// Calls C++ function: <span style='color: green;'>```QVector<Qt3DCore::QNodeId> Qt3DInput::QPhysicalDeviceCreatedChangeBase::axisSettingIds() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qphysicaldevicecreatedchangebase.html#axisSettingIds">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns a list of node ids.</p></div>
#[inline(always)]
pub unsafe fn axis_setting_ids(&self) -> ::cpp_core::CppBox<::qt_3d_core::QVectorOfQNodeId> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QPhysicalDeviceCreatedChangeBase_axisSettingIds(self as *const crate::QPhysicalDeviceCreatedChangeBase)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Default constructs an instance of QPhysicalDeviceCreatedChangeBase.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DInput::QPhysicalDeviceCreatedChangeBase::QPhysicalDeviceCreatedChangeBase(const Qt3DInput::QAbstractPhysicalDevice* device)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qphysicaldevicecreatedchangebase.html#QPhysicalDeviceCreatedChangeBase">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Default constructs an instance of QPhysicalDeviceCreatedChangeBase.</p></div>
#[inline(always)]
pub unsafe fn new(
device: impl ::cpp_core::CastInto<::cpp_core::Ptr<crate::QAbstractPhysicalDevice>>,
) -> ::cpp_core::CppBox<crate::QPhysicalDeviceCreatedChangeBase> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QPhysicalDeviceCreatedChangeBase_QPhysicalDeviceCreatedChangeBase(::cpp_core::CastInto::<::cpp_core::Ptr<crate::QAbstractPhysicalDevice>>::cast_into(device).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<Qt3DInput::QAxisSetting*>```</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 QVectorOfQAxisSetting {
_unused: u8,
}
impl QVectorOfQAxisSetting {
/// <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<Qt3DInput::QAxisSetting*>& QVector<Qt3DInput::QAxisSetting*>::operator+=(const QVector<Qt3DInput::QAxisSetting*>& 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_axis_setting(
&self,
l: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QVectorOfQAxisSetting>>,
) -> ::cpp_core::Ref<crate::QVectorOfQAxisSetting> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAxisSetting_ptr_operator__4(
self as *const crate::QVectorOfQAxisSetting as *mut crate::QVectorOfQAxisSetting,
::cpp_core::CastInto::<::cpp_core::Ref<crate::QVectorOfQAxisSetting>>::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<Qt3DInput::QAxisSetting*>& QVector<Qt3DInput::QAxisSetting*>::operator+=(const Qt3DInput::QAxisSetting*& 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_axis_setting(
&self,
t: *const *mut crate::QAxisSetting,
) -> ::cpp_core::Ref<crate::QVectorOfQAxisSetting> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAxisSetting_ptr_operator__5(
self as *const crate::QVectorOfQAxisSetting as *mut crate::QVectorOfQAxisSetting,
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<Qt3DInput::QAxisSetting*>::append(const Qt3DInput::QAxisSetting*& 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_axis_setting(&self, t: *const *mut crate::QAxisSetting) {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAxisSetting_ptr_append(
self as *const crate::QVectorOfQAxisSetting as *mut crate::QVectorOfQAxisSetting,
t,
)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DInput::QAxisSetting*>::append(const QVector<Qt3DInput::QAxisSetting*>& 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_axis_setting(
&self,
l: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QVectorOfQAxisSetting>>,
) {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAxisSetting_ptr_append2(
self as *const crate::QVectorOfQAxisSetting as *mut crate::QVectorOfQAxisSetting,
::cpp_core::CastInto::<::cpp_core::Ref<crate::QVectorOfQAxisSetting>>::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 Qt3DInput::QAxisSetting*& QVector<Qt3DInput::QAxisSetting*>::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::QAxisSetting {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAxisSetting_ptr_at(
self as *const crate::QVectorOfQAxisSetting,
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;'>```Qt3DInput::QAxisSetting*& QVector<Qt3DInput::QAxisSetting*>::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::QAxisSetting {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAxisSetting_ptr_back(
self as *const crate::QVectorOfQAxisSetting as *mut crate::QVectorOfQAxisSetting,
)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```const Qt3DInput::QAxisSetting*& QVector<Qt3DInput::QAxisSetting*>::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::QAxisSetting {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAxisSetting_ptr_back1(
self as *const crate::QVectorOfQAxisSetting,
)
}
/// <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<Qt3DInput::QAxisSetting*>::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_input_ffi_QVector_Qt3DInput_QAxisSetting_ptr_capacity(
self as *const crate::QVectorOfQAxisSetting,
)
}
/// <p>Removes all the elements from the vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DInput::QAxisSetting*>::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_input_ffi_QVector_Qt3DInput_QAxisSetting_ptr_clear(
self as *const crate::QVectorOfQAxisSetting as *mut crate::QVectorOfQAxisSetting,
)
}
/// <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 Qt3DInput::QAxisSetting** QVector<Qt3DInput::QAxisSetting*>::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::QAxisSetting {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAxisSetting_ptr_constData(
self as *const crate::QVectorOfQAxisSetting,
)
}
/// <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 Qt3DInput::QAxisSetting*& QVector<Qt3DInput::QAxisSetting*>::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::QAxisSetting {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAxisSetting_ptr_constFirst(
self as *const crate::QVectorOfQAxisSetting,
)
}
/// <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 Qt3DInput::QAxisSetting*& QVector<Qt3DInput::QAxisSetting*>::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::QAxisSetting {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAxisSetting_ptr_constLast(
self as *const crate::QVectorOfQAxisSetting,
)
}
/// <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<Qt3DInput::QAxisSetting*>::contains(const Qt3DInput::QAxisSetting*& 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::QAxisSetting) -> bool {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAxisSetting_ptr_contains(
self as *const crate::QVectorOfQAxisSetting,
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<Qt3DInput::QAxisSetting*>& QVector<Qt3DInput::QAxisSetting*>::operator=(const QVector<Qt3DInput::QAxisSetting*>& 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::QVectorOfQAxisSetting>>,
) -> ::cpp_core::Ref<crate::QVectorOfQAxisSetting> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAxisSetting_ptr_operator_(
self as *const crate::QVectorOfQAxisSetting as *mut crate::QVectorOfQAxisSetting,
::cpp_core::CastInto::<::cpp_core::Ref<crate::QVectorOfQAxisSetting>>::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<Qt3DInput::QAxisSetting*>::count(const Qt3DInput::QAxisSetting*& 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::QAxisSetting) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAxisSetting_ptr_count(
self as *const crate::QVectorOfQAxisSetting,
t,
)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```int QVector<Qt3DInput::QAxisSetting*>::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_input_ffi_QVector_Qt3DInput_QAxisSetting_ptr_count1(
self as *const crate::QVectorOfQAxisSetting,
)
}
/// <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;'>```Qt3DInput::QAxisSetting** QVector<Qt3DInput::QAxisSetting*>::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::QAxisSetting {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAxisSetting_ptr_data(
self as *const crate::QVectorOfQAxisSetting as *mut crate::QVectorOfQAxisSetting,
)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```const Qt3DInput::QAxisSetting** QVector<Qt3DInput::QAxisSetting*>::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::QAxisSetting {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAxisSetting_ptr_data1(
self as *const crate::QVectorOfQAxisSetting,
)
}
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DInput::QAxisSetting*>::detach()```</span>.
#[inline(always)]
pub unsafe fn detach(&self) {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAxisSetting_ptr_detach(
self as *const crate::QVectorOfQAxisSetting as *mut crate::QVectorOfQAxisSetting,
)
}
/// <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<Qt3DInput::QAxisSetting*>::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_input_ffi_QVector_Qt3DInput_QAxisSetting_ptr_empty(
self as *const crate::QVectorOfQAxisSetting,
)
}
/// <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<Qt3DInput::QAxisSetting*>::endsWith(const Qt3DInput::QAxisSetting*& 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::QAxisSetting) -> bool {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAxisSetting_ptr_endsWith(
self as *const crate::QVectorOfQAxisSetting,
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<Qt3DInput::QAxisSetting*>& QVector<Qt3DInput::QAxisSetting*>::fill(const Qt3DInput::QAxisSetting*& 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::QAxisSetting,
size: ::std::os::raw::c_int,
) -> ::cpp_core::Ref<crate::QVectorOfQAxisSetting> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAxisSetting_ptr_fill(
self as *const crate::QVectorOfQAxisSetting as *mut crate::QVectorOfQAxisSetting,
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<Qt3DInput::QAxisSetting*>& QVector<Qt3DInput::QAxisSetting*>::fill(const Qt3DInput::QAxisSetting*& 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::QAxisSetting,
) -> ::cpp_core::Ref<crate::QVectorOfQAxisSetting> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAxisSetting_ptr_fill1(
self as *const crate::QVectorOfQAxisSetting as *mut crate::QVectorOfQAxisSetting,
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;'>```Qt3DInput::QAxisSetting*& QVector<Qt3DInput::QAxisSetting*>::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::QAxisSetting {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAxisSetting_ptr_first(
self as *const crate::QVectorOfQAxisSetting as *mut crate::QVectorOfQAxisSetting,
)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```const Qt3DInput::QAxisSetting*& QVector<Qt3DInput::QAxisSetting*>::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::QAxisSetting {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAxisSetting_ptr_first1(
self as *const crate::QVectorOfQAxisSetting,
)
}
/// <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;'>```Qt3DInput::QAxisSetting*& QVector<Qt3DInput::QAxisSetting*>::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::QAxisSetting {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAxisSetting_ptr_front(
self as *const crate::QVectorOfQAxisSetting as *mut crate::QVectorOfQAxisSetting,
)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```const Qt3DInput::QAxisSetting*& QVector<Qt3DInput::QAxisSetting*>::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::QAxisSetting {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAxisSetting_ptr_front1(
self as *const crate::QVectorOfQAxisSetting,
)
}
/// <p>Returns the item at index position <i>i</i> as a modifiable reference.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QAxisSetting*& QVector<Qt3DInput::QAxisSetting*>::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::QAxisSetting {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAxisSetting_ptr_operator__2(
self as *const crate::QVectorOfQAxisSetting as *mut crate::QVectorOfQAxisSetting,
i,
)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```const Qt3DInput::QAxisSetting*& QVector<Qt3DInput::QAxisSetting*>::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::QAxisSetting {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAxisSetting_ptr_operator__3(
self as *const crate::QVectorOfQAxisSetting,
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<Qt3DInput::QAxisSetting*>::indexOf(const Qt3DInput::QAxisSetting*& 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::QAxisSetting,
from: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAxisSetting_ptr_indexOf(
self as *const crate::QVectorOfQAxisSetting,
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<Qt3DInput::QAxisSetting*>::indexOf(const Qt3DInput::QAxisSetting*& 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::QAxisSetting) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAxisSetting_ptr_indexOf1(
self as *const crate::QVectorOfQAxisSetting,
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<Qt3DInput::QAxisSetting*>::insert(int i, const Qt3DInput::QAxisSetting*& 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::QAxisSetting) {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAxisSetting_ptr_insert(
self as *const crate::QVectorOfQAxisSetting as *mut crate::QVectorOfQAxisSetting,
i,
t,
)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DInput::QAxisSetting*>::insert(int i, int n, const Qt3DInput::QAxisSetting*& 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::QAxisSetting,
) {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAxisSetting_ptr_insert1(
self as *const crate::QVectorOfQAxisSetting as *mut crate::QVectorOfQAxisSetting,
i,
n,
t,
)
}
/// Calls C++ function: <span style='color: green;'>```bool QVector<Qt3DInput::QAxisSetting*>::isDetached() const```</span>.
#[inline(always)]
pub unsafe fn is_detached(&self) -> bool {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAxisSetting_ptr_isDetached(
self as *const crate::QVectorOfQAxisSetting,
)
}
/// <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<Qt3DInput::QAxisSetting*>::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_input_ffi_QVector_Qt3DInput_QAxisSetting_ptr_isEmpty(
self as *const crate::QVectorOfQAxisSetting,
)
}
/// Calls C++ function: <span style='color: green;'>```bool QVector<Qt3DInput::QAxisSetting*>::isSharedWith(const QVector<Qt3DInput::QAxisSetting*>& other) const```</span>.
#[inline(always)]
pub unsafe fn is_shared_with(
&self,
other: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QVectorOfQAxisSetting>>,
) -> bool {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAxisSetting_ptr_isSharedWith(
self as *const crate::QVectorOfQAxisSetting,
::cpp_core::CastInto::<::cpp_core::Ref<crate::QVectorOfQAxisSetting>>::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;'>```Qt3DInput::QAxisSetting*& QVector<Qt3DInput::QAxisSetting*>::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::QAxisSetting {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAxisSetting_ptr_last(
self as *const crate::QVectorOfQAxisSetting as *mut crate::QVectorOfQAxisSetting,
)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```const Qt3DInput::QAxisSetting*& QVector<Qt3DInput::QAxisSetting*>::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::QAxisSetting {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAxisSetting_ptr_last1(
self as *const crate::QVectorOfQAxisSetting,
)
}
/// <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<Qt3DInput::QAxisSetting*>::lastIndexOf(const Qt3DInput::QAxisSetting*& 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::QAxisSetting,
from: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAxisSetting_ptr_lastIndexOf(
self as *const crate::QVectorOfQAxisSetting,
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<Qt3DInput::QAxisSetting*>::lastIndexOf(const Qt3DInput::QAxisSetting*& 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::QAxisSetting,
) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAxisSetting_ptr_lastIndexOf1(
self as *const crate::QVectorOfQAxisSetting,
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<Qt3DInput::QAxisSetting*>::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_input_ffi_QVector_Qt3DInput_QAxisSetting_ptr_length(
self as *const crate::QVectorOfQAxisSetting,
)
}
/// <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<Qt3DInput::QAxisSetting*> QVector<Qt3DInput::QAxisSetting*>::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::QVectorOfQAxisSetting> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAxisSetting_ptr_mid(
self as *const crate::QVectorOfQAxisSetting,
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<Qt3DInput::QAxisSetting*> QVector<Qt3DInput::QAxisSetting*>::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::QVectorOfQAxisSetting> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAxisSetting_ptr_mid1(
self as *const crate::QVectorOfQAxisSetting,
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<Qt3DInput::QAxisSetting*>::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_input_ffi_QVector_Qt3DInput_QAxisSetting_ptr_move(
self as *const crate::QVectorOfQAxisSetting as *mut crate::QVectorOfQAxisSetting,
from,
to,
)
}
/// <p>Constructs an empty vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void QVector<Qt3DInput::QAxisSetting*>::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::QVectorOfQAxisSetting> {
let ffi_result =
{ crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAxisSetting_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<Qt3DInput::QAxisSetting*>::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::QVectorOfQAxisSetting> {
let ffi_result =
{ crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAxisSetting_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<Qt3DInput::QAxisSetting*>::QVector(int size, const Qt3DInput::QAxisSetting*& 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::QAxisSetting,
) -> ::cpp_core::CppBox<crate::QVectorOfQAxisSetting> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAxisSetting_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<Qt3DInput::QAxisSetting*>::QVector(const QVector<Qt3DInput::QAxisSetting*>& 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::QVectorOfQAxisSetting>>,
) -> ::cpp_core::CppBox<crate::QVectorOfQAxisSetting> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAxisSetting_ptr_QVector3(
::cpp_core::CastInto::<::cpp_core::Ref<crate::QVectorOfQAxisSetting>>::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<Qt3DInput::QAxisSetting*>::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_input_ffi_QVector_Qt3DInput_QAxisSetting_ptr_pop_back(
self as *const crate::QVectorOfQAxisSetting as *mut crate::QVectorOfQAxisSetting,
)
}
/// <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<Qt3DInput::QAxisSetting*>::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_input_ffi_QVector_Qt3DInput_QAxisSetting_ptr_pop_front(
self as *const crate::QVectorOfQAxisSetting as *mut crate::QVectorOfQAxisSetting,
)
}
/// <p>Inserts <i>value</i> at the beginning of the vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DInput::QAxisSetting*>::prepend(const Qt3DInput::QAxisSetting*& 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::QAxisSetting) {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAxisSetting_ptr_prepend(
self as *const crate::QVectorOfQAxisSetting as *mut crate::QVectorOfQAxisSetting,
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<Qt3DInput::QAxisSetting*>::push_back(const Qt3DInput::QAxisSetting*& 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::QAxisSetting) {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAxisSetting_ptr_push_back(
self as *const crate::QVectorOfQAxisSetting as *mut crate::QVectorOfQAxisSetting,
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<Qt3DInput::QAxisSetting*>::push_front(const Qt3DInput::QAxisSetting*& 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::QAxisSetting) {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAxisSetting_ptr_push_front(
self as *const crate::QVectorOfQAxisSetting as *mut crate::QVectorOfQAxisSetting,
t,
)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DInput::QAxisSetting*>::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_input_ffi_QVector_Qt3DInput_QAxisSetting_ptr_remove(
self as *const crate::QVectorOfQAxisSetting as *mut crate::QVectorOfQAxisSetting,
i,
)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DInput::QAxisSetting*>::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_input_ffi_QVector_Qt3DInput_QAxisSetting_ptr_remove1(
self as *const crate::QVectorOfQAxisSetting as *mut crate::QVectorOfQAxisSetting,
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<Qt3DInput::QAxisSetting*>::removeAll(const Qt3DInput::QAxisSetting*& 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::QAxisSetting) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAxisSetting_ptr_removeAll(
self as *const crate::QVectorOfQAxisSetting as *mut crate::QVectorOfQAxisSetting,
t,
)
}
/// <p>Removes the element at index position <i>i</i>. Equivalent to</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DInput::QAxisSetting*>::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_input_ffi_QVector_Qt3DInput_QAxisSetting_ptr_removeAt(
self as *const crate::QVectorOfQAxisSetting as *mut crate::QVectorOfQAxisSetting,
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<Qt3DInput::QAxisSetting*>::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_input_ffi_QVector_Qt3DInput_QAxisSetting_ptr_removeFirst(
self as *const crate::QVectorOfQAxisSetting as *mut crate::QVectorOfQAxisSetting,
)
}
/// <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<Qt3DInput::QAxisSetting*>::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_input_ffi_QVector_Qt3DInput_QAxisSetting_ptr_removeLast(
self as *const crate::QVectorOfQAxisSetting as *mut crate::QVectorOfQAxisSetting,
)
}
/// <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<Qt3DInput::QAxisSetting*>::removeOne(const Qt3DInput::QAxisSetting*& 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::QAxisSetting) -> bool {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAxisSetting_ptr_removeOne(
self as *const crate::QVectorOfQAxisSetting as *mut crate::QVectorOfQAxisSetting,
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<Qt3DInput::QAxisSetting*>::replace(int i, const Qt3DInput::QAxisSetting*& 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::QAxisSetting) {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAxisSetting_ptr_replace(
self as *const crate::QVectorOfQAxisSetting as *mut crate::QVectorOfQAxisSetting,
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<Qt3DInput::QAxisSetting*>::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_input_ffi_QVector_Qt3DInput_QAxisSetting_ptr_reserve(
self as *const crate::QVectorOfQAxisSetting as *mut crate::QVectorOfQAxisSetting,
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<Qt3DInput::QAxisSetting*>::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_input_ffi_QVector_Qt3DInput_QAxisSetting_ptr_resize(
self as *const crate::QVectorOfQAxisSetting as *mut crate::QVectorOfQAxisSetting,
size,
)
}
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DInput::QAxisSetting*>::setSharable(bool sharable)```</span>.
#[inline(always)]
pub unsafe fn set_sharable(&self, sharable: bool) {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAxisSetting_ptr_setSharable(
self as *const crate::QVectorOfQAxisSetting as *mut crate::QVectorOfQAxisSetting,
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<Qt3DInput::QAxisSetting*>::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_input_ffi_QVector_Qt3DInput_QAxisSetting_ptr_shrink_to_fit(
self as *const crate::QVectorOfQAxisSetting as *mut crate::QVectorOfQAxisSetting,
)
}
/// <p>Returns the number of items in the vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```int QVector<Qt3DInput::QAxisSetting*>::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_input_ffi_QVector_Qt3DInput_QAxisSetting_ptr_size(
self as *const crate::QVectorOfQAxisSetting,
)
}
/// <p>Releases any memory not required to store the items.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DInput::QAxisSetting*>::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_input_ffi_QVector_Qt3DInput_QAxisSetting_ptr_squeeze(
self as *const crate::QVectorOfQAxisSetting as *mut crate::QVectorOfQAxisSetting,
)
}
/// <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<Qt3DInput::QAxisSetting*>::startsWith(const Qt3DInput::QAxisSetting*& 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::QAxisSetting) -> bool {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAxisSetting_ptr_startsWith(
self as *const crate::QVectorOfQAxisSetting,
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<Qt3DInput::QAxisSetting*>::swap(QVector<Qt3DInput::QAxisSetting*>& 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::QVectorOfQAxisSetting>>,
) {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAxisSetting_ptr_swap(
self as *const crate::QVectorOfQAxisSetting as *mut crate::QVectorOfQAxisSetting,
::cpp_core::CastInto::<::cpp_core::Ref<crate::QVectorOfQAxisSetting>>::cast_into(other)
.as_raw_ptr() as *mut crate::QVectorOfQAxisSetting,
)
}
/// <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<Qt3DInput::QAxisSetting*>::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_input_ffi_QVector_Qt3DInput_QAxisSetting_ptr_swapItemsAt(
self as *const crate::QVectorOfQAxisSetting as *mut crate::QVectorOfQAxisSetting,
i,
j,
)
}
/// <p>Removes the element at index position <i>i</i> and returns it.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QAxisSetting* QVector<Qt3DInput::QAxisSetting*>::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::QAxisSetting> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAxisSetting_ptr_takeAt(
self as *const crate::QVectorOfQAxisSetting as *mut crate::QVectorOfQAxisSetting,
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;'>```Qt3DInput::QAxisSetting* QVector<Qt3DInput::QAxisSetting*>::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::QAxisSetting> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAxisSetting_ptr_takeFirst(
self as *const crate::QVectorOfQAxisSetting as *mut crate::QVectorOfQAxisSetting,
)
};
::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;'>```Qt3DInput::QAxisSetting* QVector<Qt3DInput::QAxisSetting*>::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::QAxisSetting> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAxisSetting_ptr_takeLast(
self as *const crate::QVectorOfQAxisSetting as *mut crate::QVectorOfQAxisSetting,
)
};
::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;'>```Qt3DInput::QAxisSetting* QVector<Qt3DInput::QAxisSetting*>::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::QAxisSetting> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAxisSetting_ptr_value(
self as *const crate::QVectorOfQAxisSetting,
i,
)
};
::qt_core::QPtr::from_raw(ffi_result)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QAxisSetting* QVector<Qt3DInput::QAxisSetting*>::value(int i, const Qt3DInput::QAxisSetting*& 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::QAxisSetting,
) -> ::qt_core::QPtr<crate::QAxisSetting> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAxisSetting_ptr_value1(
self as *const crate::QVectorOfQAxisSetting,
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<Qt3DInput::QAbstractActionInput*>```</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 QVectorOfQAbstractActionInput {
_unused: u8,
}
impl QVectorOfQAbstractActionInput {
/// <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<Qt3DInput::QAbstractActionInput*>& QVector<Qt3DInput::QAbstractActionInput*>::operator+=(const QVector<Qt3DInput::QAbstractActionInput*>& 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_action_input(
&self,
l: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QVectorOfQAbstractActionInput>>,
) -> ::cpp_core::Ref<crate::QVectorOfQAbstractActionInput> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAbstractActionInput_ptr_operator__4(self as *const crate::QVectorOfQAbstractActionInput as *mut crate::QVectorOfQAbstractActionInput, ::cpp_core::CastInto::<::cpp_core::Ref<crate::QVectorOfQAbstractActionInput>>::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<Qt3DInput::QAbstractActionInput*>& QVector<Qt3DInput::QAbstractActionInput*>::operator+=(const Qt3DInput::QAbstractActionInput*& 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_action_input(
&self,
t: *const *mut crate::QAbstractActionInput,
) -> ::cpp_core::Ref<crate::QVectorOfQAbstractActionInput> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAbstractActionInput_ptr_operator__5(
self as *const crate::QVectorOfQAbstractActionInput
as *mut crate::QVectorOfQAbstractActionInput,
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<Qt3DInput::QAbstractActionInput*>::append(const Qt3DInput::QAbstractActionInput*& 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_action_input(
&self,
t: *const *mut crate::QAbstractActionInput,
) {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAbstractActionInput_ptr_append(
self as *const crate::QVectorOfQAbstractActionInput
as *mut crate::QVectorOfQAbstractActionInput,
t,
)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DInput::QAbstractActionInput*>::append(const QVector<Qt3DInput::QAbstractActionInput*>& 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_action_input(
&self,
l: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QVectorOfQAbstractActionInput>>,
) {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAbstractActionInput_ptr_append2(self as *const crate::QVectorOfQAbstractActionInput as *mut crate::QVectorOfQAbstractActionInput, ::cpp_core::CastInto::<::cpp_core::Ref<crate::QVectorOfQAbstractActionInput>>::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 Qt3DInput::QAbstractActionInput*& QVector<Qt3DInput::QAbstractActionInput*>::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::QAbstractActionInput {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAbstractActionInput_ptr_at(
self as *const crate::QVectorOfQAbstractActionInput,
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;'>```Qt3DInput::QAbstractActionInput*& QVector<Qt3DInput::QAbstractActionInput*>::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::QAbstractActionInput {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAbstractActionInput_ptr_back(
self as *const crate::QVectorOfQAbstractActionInput
as *mut crate::QVectorOfQAbstractActionInput,
)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```const Qt3DInput::QAbstractActionInput*& QVector<Qt3DInput::QAbstractActionInput*>::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::QAbstractActionInput {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAbstractActionInput_ptr_back1(
self as *const crate::QVectorOfQAbstractActionInput,
)
}
/// <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<Qt3DInput::QAbstractActionInput*>::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_input_ffi_QVector_Qt3DInput_QAbstractActionInput_ptr_capacity(
self as *const crate::QVectorOfQAbstractActionInput,
)
}
/// <p>Removes all the elements from the vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DInput::QAbstractActionInput*>::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_input_ffi_QVector_Qt3DInput_QAbstractActionInput_ptr_clear(
self as *const crate::QVectorOfQAbstractActionInput
as *mut crate::QVectorOfQAbstractActionInput,
)
}
/// <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 Qt3DInput::QAbstractActionInput** QVector<Qt3DInput::QAbstractActionInput*>::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::QAbstractActionInput {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAbstractActionInput_ptr_constData(
self as *const crate::QVectorOfQAbstractActionInput,
)
}
/// <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 Qt3DInput::QAbstractActionInput*& QVector<Qt3DInput::QAbstractActionInput*>::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::QAbstractActionInput {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAbstractActionInput_ptr_constFirst(
self as *const crate::QVectorOfQAbstractActionInput,
)
}
/// <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 Qt3DInput::QAbstractActionInput*& QVector<Qt3DInput::QAbstractActionInput*>::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::QAbstractActionInput {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAbstractActionInput_ptr_constLast(
self as *const crate::QVectorOfQAbstractActionInput,
)
}
/// <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<Qt3DInput::QAbstractActionInput*>::contains(const Qt3DInput::QAbstractActionInput*& 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::QAbstractActionInput) -> bool {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAbstractActionInput_ptr_contains(
self as *const crate::QVectorOfQAbstractActionInput,
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<Qt3DInput::QAbstractActionInput*>& QVector<Qt3DInput::QAbstractActionInput*>::operator=(const QVector<Qt3DInput::QAbstractActionInput*>& 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::QVectorOfQAbstractActionInput>>,
) -> ::cpp_core::Ref<crate::QVectorOfQAbstractActionInput> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAbstractActionInput_ptr_operator_(self as *const crate::QVectorOfQAbstractActionInput as *mut crate::QVectorOfQAbstractActionInput, ::cpp_core::CastInto::<::cpp_core::Ref<crate::QVectorOfQAbstractActionInput>>::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<Qt3DInput::QAbstractActionInput*>::count(const Qt3DInput::QAbstractActionInput*& 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::QAbstractActionInput,
) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAbstractActionInput_ptr_count(
self as *const crate::QVectorOfQAbstractActionInput,
t,
)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```int QVector<Qt3DInput::QAbstractActionInput*>::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_input_ffi_QVector_Qt3DInput_QAbstractActionInput_ptr_count1(
self as *const crate::QVectorOfQAbstractActionInput,
)
}
/// <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;'>```Qt3DInput::QAbstractActionInput** QVector<Qt3DInput::QAbstractActionInput*>::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::QAbstractActionInput {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAbstractActionInput_ptr_data(
self as *const crate::QVectorOfQAbstractActionInput
as *mut crate::QVectorOfQAbstractActionInput,
)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```const Qt3DInput::QAbstractActionInput** QVector<Qt3DInput::QAbstractActionInput*>::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::QAbstractActionInput {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAbstractActionInput_ptr_data1(
self as *const crate::QVectorOfQAbstractActionInput,
)
}
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DInput::QAbstractActionInput*>::detach()```</span>.
#[inline(always)]
pub unsafe fn detach(&self) {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAbstractActionInput_ptr_detach(
self as *const crate::QVectorOfQAbstractActionInput
as *mut crate::QVectorOfQAbstractActionInput,
)
}
/// <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<Qt3DInput::QAbstractActionInput*>::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_input_ffi_QVector_Qt3DInput_QAbstractActionInput_ptr_empty(
self as *const crate::QVectorOfQAbstractActionInput,
)
}
/// <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<Qt3DInput::QAbstractActionInput*>::endsWith(const Qt3DInput::QAbstractActionInput*& 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::QAbstractActionInput) -> bool {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAbstractActionInput_ptr_endsWith(
self as *const crate::QVectorOfQAbstractActionInput,
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<Qt3DInput::QAbstractActionInput*>& QVector<Qt3DInput::QAbstractActionInput*>::fill(const Qt3DInput::QAbstractActionInput*& 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::QAbstractActionInput,
size: ::std::os::raw::c_int,
) -> ::cpp_core::Ref<crate::QVectorOfQAbstractActionInput> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAbstractActionInput_ptr_fill(
self as *const crate::QVectorOfQAbstractActionInput
as *mut crate::QVectorOfQAbstractActionInput,
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<Qt3DInput::QAbstractActionInput*>& QVector<Qt3DInput::QAbstractActionInput*>::fill(const Qt3DInput::QAbstractActionInput*& 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::QAbstractActionInput,
) -> ::cpp_core::Ref<crate::QVectorOfQAbstractActionInput> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAbstractActionInput_ptr_fill1(
self as *const crate::QVectorOfQAbstractActionInput
as *mut crate::QVectorOfQAbstractActionInput,
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;'>```Qt3DInput::QAbstractActionInput*& QVector<Qt3DInput::QAbstractActionInput*>::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::QAbstractActionInput {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAbstractActionInput_ptr_first(
self as *const crate::QVectorOfQAbstractActionInput
as *mut crate::QVectorOfQAbstractActionInput,
)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```const Qt3DInput::QAbstractActionInput*& QVector<Qt3DInput::QAbstractActionInput*>::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::QAbstractActionInput {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAbstractActionInput_ptr_first1(
self as *const crate::QVectorOfQAbstractActionInput,
)
}
/// <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;'>```Qt3DInput::QAbstractActionInput*& QVector<Qt3DInput::QAbstractActionInput*>::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::QAbstractActionInput {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAbstractActionInput_ptr_front(
self as *const crate::QVectorOfQAbstractActionInput
as *mut crate::QVectorOfQAbstractActionInput,
)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```const Qt3DInput::QAbstractActionInput*& QVector<Qt3DInput::QAbstractActionInput*>::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::QAbstractActionInput {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAbstractActionInput_ptr_front1(
self as *const crate::QVectorOfQAbstractActionInput,
)
}
/// <p>Returns the item at index position <i>i</i> as a modifiable reference.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QAbstractActionInput*& QVector<Qt3DInput::QAbstractActionInput*>::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::QAbstractActionInput {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAbstractActionInput_ptr_operator__2(
self as *const crate::QVectorOfQAbstractActionInput
as *mut crate::QVectorOfQAbstractActionInput,
i,
)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```const Qt3DInput::QAbstractActionInput*& QVector<Qt3DInput::QAbstractActionInput*>::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::QAbstractActionInput {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAbstractActionInput_ptr_operator__3(
self as *const crate::QVectorOfQAbstractActionInput,
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<Qt3DInput::QAbstractActionInput*>::indexOf(const Qt3DInput::QAbstractActionInput*& 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::QAbstractActionInput,
from: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAbstractActionInput_ptr_indexOf(
self as *const crate::QVectorOfQAbstractActionInput,
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<Qt3DInput::QAbstractActionInput*>::indexOf(const Qt3DInput::QAbstractActionInput*& 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::QAbstractActionInput,
) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAbstractActionInput_ptr_indexOf1(
self as *const crate::QVectorOfQAbstractActionInput,
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<Qt3DInput::QAbstractActionInput*>::insert(int i, const Qt3DInput::QAbstractActionInput*& 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::QAbstractActionInput,
) {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAbstractActionInput_ptr_insert(
self as *const crate::QVectorOfQAbstractActionInput
as *mut crate::QVectorOfQAbstractActionInput,
i,
t,
)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DInput::QAbstractActionInput*>::insert(int i, int n, const Qt3DInput::QAbstractActionInput*& 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::QAbstractActionInput,
) {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAbstractActionInput_ptr_insert1(
self as *const crate::QVectorOfQAbstractActionInput
as *mut crate::QVectorOfQAbstractActionInput,
i,
n,
t,
)
}
/// Calls C++ function: <span style='color: green;'>```bool QVector<Qt3DInput::QAbstractActionInput*>::isDetached() const```</span>.
#[inline(always)]
pub unsafe fn is_detached(&self) -> bool {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAbstractActionInput_ptr_isDetached(
self as *const crate::QVectorOfQAbstractActionInput,
)
}
/// <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<Qt3DInput::QAbstractActionInput*>::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_input_ffi_QVector_Qt3DInput_QAbstractActionInput_ptr_isEmpty(
self as *const crate::QVectorOfQAbstractActionInput,
)
}
/// Calls C++ function: <span style='color: green;'>```bool QVector<Qt3DInput::QAbstractActionInput*>::isSharedWith(const QVector<Qt3DInput::QAbstractActionInput*>& other) const```</span>.
#[inline(always)]
pub unsafe fn is_shared_with(
&self,
other: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QVectorOfQAbstractActionInput>>,
) -> bool {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAbstractActionInput_ptr_isSharedWith(self as *const crate::QVectorOfQAbstractActionInput, ::cpp_core::CastInto::<::cpp_core::Ref<crate::QVectorOfQAbstractActionInput>>::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;'>```Qt3DInput::QAbstractActionInput*& QVector<Qt3DInput::QAbstractActionInput*>::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::QAbstractActionInput {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAbstractActionInput_ptr_last(
self as *const crate::QVectorOfQAbstractActionInput
as *mut crate::QVectorOfQAbstractActionInput,
)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```const Qt3DInput::QAbstractActionInput*& QVector<Qt3DInput::QAbstractActionInput*>::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::QAbstractActionInput {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAbstractActionInput_ptr_last1(
self as *const crate::QVectorOfQAbstractActionInput,
)
}
/// <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<Qt3DInput::QAbstractActionInput*>::lastIndexOf(const Qt3DInput::QAbstractActionInput*& 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::QAbstractActionInput,
from: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAbstractActionInput_ptr_lastIndexOf(
self as *const crate::QVectorOfQAbstractActionInput,
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<Qt3DInput::QAbstractActionInput*>::lastIndexOf(const Qt3DInput::QAbstractActionInput*& 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::QAbstractActionInput,
) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAbstractActionInput_ptr_lastIndexOf1(
self as *const crate::QVectorOfQAbstractActionInput,
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<Qt3DInput::QAbstractActionInput*>::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_input_ffi_QVector_Qt3DInput_QAbstractActionInput_ptr_length(
self as *const crate::QVectorOfQAbstractActionInput,
)
}
/// <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<Qt3DInput::QAbstractActionInput*> QVector<Qt3DInput::QAbstractActionInput*>::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::QVectorOfQAbstractActionInput> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAbstractActionInput_ptr_mid(
self as *const crate::QVectorOfQAbstractActionInput,
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<Qt3DInput::QAbstractActionInput*> QVector<Qt3DInput::QAbstractActionInput*>::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::QVectorOfQAbstractActionInput> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAbstractActionInput_ptr_mid1(
self as *const crate::QVectorOfQAbstractActionInput,
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<Qt3DInput::QAbstractActionInput*>::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_input_ffi_QVector_Qt3DInput_QAbstractActionInput_ptr_move(
self as *const crate::QVectorOfQAbstractActionInput
as *mut crate::QVectorOfQAbstractActionInput,
from,
to,
)
}
/// <p>Constructs an empty vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void QVector<Qt3DInput::QAbstractActionInput*>::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::QVectorOfQAbstractActionInput> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAbstractActionInput_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<Qt3DInput::QAbstractActionInput*>::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::QVectorOfQAbstractActionInput> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAbstractActionInput_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<Qt3DInput::QAbstractActionInput*>::QVector(int size, const Qt3DInput::QAbstractActionInput*& 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::QAbstractActionInput,
) -> ::cpp_core::CppBox<crate::QVectorOfQAbstractActionInput> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAbstractActionInput_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<Qt3DInput::QAbstractActionInput*>::QVector(const QVector<Qt3DInput::QAbstractActionInput*>& 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::QVectorOfQAbstractActionInput>>,
) -> ::cpp_core::CppBox<crate::QVectorOfQAbstractActionInput> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAbstractActionInput_ptr_QVector3(::cpp_core::CastInto::<::cpp_core::Ref<crate::QVectorOfQAbstractActionInput>>::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<Qt3DInput::QAbstractActionInput*>::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_input_ffi_QVector_Qt3DInput_QAbstractActionInput_ptr_pop_back(
self as *const crate::QVectorOfQAbstractActionInput
as *mut crate::QVectorOfQAbstractActionInput,
)
}
/// <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<Qt3DInput::QAbstractActionInput*>::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_input_ffi_QVector_Qt3DInput_QAbstractActionInput_ptr_pop_front(
self as *const crate::QVectorOfQAbstractActionInput
as *mut crate::QVectorOfQAbstractActionInput,
)
}
/// <p>Inserts <i>value</i> at the beginning of the vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DInput::QAbstractActionInput*>::prepend(const Qt3DInput::QAbstractActionInput*& 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::QAbstractActionInput) {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAbstractActionInput_ptr_prepend(
self as *const crate::QVectorOfQAbstractActionInput
as *mut crate::QVectorOfQAbstractActionInput,
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<Qt3DInput::QAbstractActionInput*>::push_back(const Qt3DInput::QAbstractActionInput*& 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::QAbstractActionInput) {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAbstractActionInput_ptr_push_back(
self as *const crate::QVectorOfQAbstractActionInput
as *mut crate::QVectorOfQAbstractActionInput,
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<Qt3DInput::QAbstractActionInput*>::push_front(const Qt3DInput::QAbstractActionInput*& 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::QAbstractActionInput) {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAbstractActionInput_ptr_push_front(
self as *const crate::QVectorOfQAbstractActionInput
as *mut crate::QVectorOfQAbstractActionInput,
t,
)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DInput::QAbstractActionInput*>::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_input_ffi_QVector_Qt3DInput_QAbstractActionInput_ptr_remove(
self as *const crate::QVectorOfQAbstractActionInput
as *mut crate::QVectorOfQAbstractActionInput,
i,
)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DInput::QAbstractActionInput*>::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_input_ffi_QVector_Qt3DInput_QAbstractActionInput_ptr_remove1(
self as *const crate::QVectorOfQAbstractActionInput
as *mut crate::QVectorOfQAbstractActionInput,
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<Qt3DInput::QAbstractActionInput*>::removeAll(const Qt3DInput::QAbstractActionInput*& 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::QAbstractActionInput,
) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAbstractActionInput_ptr_removeAll(
self as *const crate::QVectorOfQAbstractActionInput
as *mut crate::QVectorOfQAbstractActionInput,
t,
)
}
/// <p>Removes the element at index position <i>i</i>. Equivalent to</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DInput::QAbstractActionInput*>::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_input_ffi_QVector_Qt3DInput_QAbstractActionInput_ptr_removeAt(
self as *const crate::QVectorOfQAbstractActionInput
as *mut crate::QVectorOfQAbstractActionInput,
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<Qt3DInput::QAbstractActionInput*>::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_input_ffi_QVector_Qt3DInput_QAbstractActionInput_ptr_removeFirst(
self as *const crate::QVectorOfQAbstractActionInput
as *mut crate::QVectorOfQAbstractActionInput,
)
}
/// <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<Qt3DInput::QAbstractActionInput*>::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_input_ffi_QVector_Qt3DInput_QAbstractActionInput_ptr_removeLast(
self as *const crate::QVectorOfQAbstractActionInput
as *mut crate::QVectorOfQAbstractActionInput,
)
}
/// <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<Qt3DInput::QAbstractActionInput*>::removeOne(const Qt3DInput::QAbstractActionInput*& 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::QAbstractActionInput) -> bool {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAbstractActionInput_ptr_removeOne(
self as *const crate::QVectorOfQAbstractActionInput
as *mut crate::QVectorOfQAbstractActionInput,
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<Qt3DInput::QAbstractActionInput*>::replace(int i, const Qt3DInput::QAbstractActionInput*& 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::QAbstractActionInput,
) {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAbstractActionInput_ptr_replace(
self as *const crate::QVectorOfQAbstractActionInput
as *mut crate::QVectorOfQAbstractActionInput,
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<Qt3DInput::QAbstractActionInput*>::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_input_ffi_QVector_Qt3DInput_QAbstractActionInput_ptr_reserve(
self as *const crate::QVectorOfQAbstractActionInput
as *mut crate::QVectorOfQAbstractActionInput,
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<Qt3DInput::QAbstractActionInput*>::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_input_ffi_QVector_Qt3DInput_QAbstractActionInput_ptr_resize(
self as *const crate::QVectorOfQAbstractActionInput
as *mut crate::QVectorOfQAbstractActionInput,
size,
)
}
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DInput::QAbstractActionInput*>::setSharable(bool sharable)```</span>.
#[inline(always)]
pub unsafe fn set_sharable(&self, sharable: bool) {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAbstractActionInput_ptr_setSharable(
self as *const crate::QVectorOfQAbstractActionInput
as *mut crate::QVectorOfQAbstractActionInput,
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<Qt3DInput::QAbstractActionInput*>::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_input_ffi_QVector_Qt3DInput_QAbstractActionInput_ptr_shrink_to_fit(
self as *const crate::QVectorOfQAbstractActionInput
as *mut crate::QVectorOfQAbstractActionInput,
)
}
/// <p>Returns the number of items in the vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```int QVector<Qt3DInput::QAbstractActionInput*>::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_input_ffi_QVector_Qt3DInput_QAbstractActionInput_ptr_size(
self as *const crate::QVectorOfQAbstractActionInput,
)
}
/// <p>Releases any memory not required to store the items.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DInput::QAbstractActionInput*>::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_input_ffi_QVector_Qt3DInput_QAbstractActionInput_ptr_squeeze(
self as *const crate::QVectorOfQAbstractActionInput
as *mut crate::QVectorOfQAbstractActionInput,
)
}
/// <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<Qt3DInput::QAbstractActionInput*>::startsWith(const Qt3DInput::QAbstractActionInput*& 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::QAbstractActionInput) -> bool {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAbstractActionInput_ptr_startsWith(
self as *const crate::QVectorOfQAbstractActionInput,
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<Qt3DInput::QAbstractActionInput*>::swap(QVector<Qt3DInput::QAbstractActionInput*>& 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::QVectorOfQAbstractActionInput>>,
) {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAbstractActionInput_ptr_swap(self as *const crate::QVectorOfQAbstractActionInput as *mut crate::QVectorOfQAbstractActionInput, ::cpp_core::CastInto::<::cpp_core::Ref<crate::QVectorOfQAbstractActionInput>>::cast_into(other).as_raw_ptr() as *mut crate::QVectorOfQAbstractActionInput)
}
/// <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<Qt3DInput::QAbstractActionInput*>::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_input_ffi_QVector_Qt3DInput_QAbstractActionInput_ptr_swapItemsAt(
self as *const crate::QVectorOfQAbstractActionInput
as *mut crate::QVectorOfQAbstractActionInput,
i,
j,
)
}
/// <p>Removes the element at index position <i>i</i> and returns it.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QAbstractActionInput* QVector<Qt3DInput::QAbstractActionInput*>::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::QAbstractActionInput> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAbstractActionInput_ptr_takeAt(
self as *const crate::QVectorOfQAbstractActionInput
as *mut crate::QVectorOfQAbstractActionInput,
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;'>```Qt3DInput::QAbstractActionInput* QVector<Qt3DInput::QAbstractActionInput*>::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::QAbstractActionInput> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAbstractActionInput_ptr_takeFirst(
self as *const crate::QVectorOfQAbstractActionInput
as *mut crate::QVectorOfQAbstractActionInput,
)
};
::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;'>```Qt3DInput::QAbstractActionInput* QVector<Qt3DInput::QAbstractActionInput*>::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::QAbstractActionInput> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAbstractActionInput_ptr_takeLast(
self as *const crate::QVectorOfQAbstractActionInput
as *mut crate::QVectorOfQAbstractActionInput,
)
};
::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;'>```Qt3DInput::QAbstractActionInput* QVector<Qt3DInput::QAbstractActionInput*>::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::QAbstractActionInput> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAbstractActionInput_ptr_value(
self as *const crate::QVectorOfQAbstractActionInput,
i,
)
};
::qt_core::QPtr::from_raw(ffi_result)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QAbstractActionInput* QVector<Qt3DInput::QAbstractActionInput*>::value(int i, const Qt3DInput::QAbstractActionInput*& 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::QAbstractActionInput,
) -> ::qt_core::QPtr<crate::QAbstractActionInput> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAbstractActionInput_ptr_value1(
self as *const crate::QVectorOfQAbstractActionInput,
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<Qt3DInput::QAbstractAxisInput*>```</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 QVectorOfQAbstractAxisInput {
_unused: u8,
}
impl QVectorOfQAbstractAxisInput {
/// <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<Qt3DInput::QAbstractAxisInput*>& QVector<Qt3DInput::QAbstractAxisInput*>::operator+=(const QVector<Qt3DInput::QAbstractAxisInput*>& 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_axis_input(
&self,
l: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QVectorOfQAbstractAxisInput>>,
) -> ::cpp_core::Ref<crate::QVectorOfQAbstractAxisInput> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAbstractAxisInput_ptr_operator__4(self as *const crate::QVectorOfQAbstractAxisInput as *mut crate::QVectorOfQAbstractAxisInput, ::cpp_core::CastInto::<::cpp_core::Ref<crate::QVectorOfQAbstractAxisInput>>::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<Qt3DInput::QAbstractAxisInput*>& QVector<Qt3DInput::QAbstractAxisInput*>::operator+=(const Qt3DInput::QAbstractAxisInput*& 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_axis_input(
&self,
t: *const *mut crate::QAbstractAxisInput,
) -> ::cpp_core::Ref<crate::QVectorOfQAbstractAxisInput> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAbstractAxisInput_ptr_operator__5(
self as *const crate::QVectorOfQAbstractAxisInput
as *mut crate::QVectorOfQAbstractAxisInput,
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<Qt3DInput::QAbstractAxisInput*>::append(const Qt3DInput::QAbstractAxisInput*& 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_axis_input(&self, t: *const *mut crate::QAbstractAxisInput) {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAbstractAxisInput_ptr_append(
self as *const crate::QVectorOfQAbstractAxisInput
as *mut crate::QVectorOfQAbstractAxisInput,
t,
)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DInput::QAbstractAxisInput*>::append(const QVector<Qt3DInput::QAbstractAxisInput*>& 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_axis_input(
&self,
l: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QVectorOfQAbstractAxisInput>>,
) {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAbstractAxisInput_ptr_append2(
self as *const crate::QVectorOfQAbstractAxisInput
as *mut crate::QVectorOfQAbstractAxisInput,
::cpp_core::CastInto::<::cpp_core::Ref<crate::QVectorOfQAbstractAxisInput>>::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 Qt3DInput::QAbstractAxisInput*& QVector<Qt3DInput::QAbstractAxisInput*>::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::QAbstractAxisInput {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAbstractAxisInput_ptr_at(
self as *const crate::QVectorOfQAbstractAxisInput,
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;'>```Qt3DInput::QAbstractAxisInput*& QVector<Qt3DInput::QAbstractAxisInput*>::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::QAbstractAxisInput {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAbstractAxisInput_ptr_back(
self as *const crate::QVectorOfQAbstractAxisInput
as *mut crate::QVectorOfQAbstractAxisInput,
)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```const Qt3DInput::QAbstractAxisInput*& QVector<Qt3DInput::QAbstractAxisInput*>::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::QAbstractAxisInput {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAbstractAxisInput_ptr_back1(
self as *const crate::QVectorOfQAbstractAxisInput,
)
}
/// <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<Qt3DInput::QAbstractAxisInput*>::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_input_ffi_QVector_Qt3DInput_QAbstractAxisInput_ptr_capacity(
self as *const crate::QVectorOfQAbstractAxisInput,
)
}
/// <p>Removes all the elements from the vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DInput::QAbstractAxisInput*>::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_input_ffi_QVector_Qt3DInput_QAbstractAxisInput_ptr_clear(
self as *const crate::QVectorOfQAbstractAxisInput
as *mut crate::QVectorOfQAbstractAxisInput,
)
}
/// <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 Qt3DInput::QAbstractAxisInput** QVector<Qt3DInput::QAbstractAxisInput*>::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::QAbstractAxisInput {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAbstractAxisInput_ptr_constData(
self as *const crate::QVectorOfQAbstractAxisInput,
)
}
/// <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 Qt3DInput::QAbstractAxisInput*& QVector<Qt3DInput::QAbstractAxisInput*>::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::QAbstractAxisInput {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAbstractAxisInput_ptr_constFirst(
self as *const crate::QVectorOfQAbstractAxisInput,
)
}
/// <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 Qt3DInput::QAbstractAxisInput*& QVector<Qt3DInput::QAbstractAxisInput*>::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::QAbstractAxisInput {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAbstractAxisInput_ptr_constLast(
self as *const crate::QVectorOfQAbstractAxisInput,
)
}
/// <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<Qt3DInput::QAbstractAxisInput*>::contains(const Qt3DInput::QAbstractAxisInput*& 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::QAbstractAxisInput) -> bool {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAbstractAxisInput_ptr_contains(
self as *const crate::QVectorOfQAbstractAxisInput,
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<Qt3DInput::QAbstractAxisInput*>& QVector<Qt3DInput::QAbstractAxisInput*>::operator=(const QVector<Qt3DInput::QAbstractAxisInput*>& 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::QVectorOfQAbstractAxisInput>>,
) -> ::cpp_core::Ref<crate::QVectorOfQAbstractAxisInput> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAbstractAxisInput_ptr_operator_(self as *const crate::QVectorOfQAbstractAxisInput as *mut crate::QVectorOfQAbstractAxisInput, ::cpp_core::CastInto::<::cpp_core::Ref<crate::QVectorOfQAbstractAxisInput>>::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<Qt3DInput::QAbstractAxisInput*>::count(const Qt3DInput::QAbstractAxisInput*& 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::QAbstractAxisInput,
) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAbstractAxisInput_ptr_count(
self as *const crate::QVectorOfQAbstractAxisInput,
t,
)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```int QVector<Qt3DInput::QAbstractAxisInput*>::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_input_ffi_QVector_Qt3DInput_QAbstractAxisInput_ptr_count1(
self as *const crate::QVectorOfQAbstractAxisInput,
)
}
/// <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;'>```Qt3DInput::QAbstractAxisInput** QVector<Qt3DInput::QAbstractAxisInput*>::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::QAbstractAxisInput {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAbstractAxisInput_ptr_data(
self as *const crate::QVectorOfQAbstractAxisInput
as *mut crate::QVectorOfQAbstractAxisInput,
)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```const Qt3DInput::QAbstractAxisInput** QVector<Qt3DInput::QAbstractAxisInput*>::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::QAbstractAxisInput {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAbstractAxisInput_ptr_data1(
self as *const crate::QVectorOfQAbstractAxisInput,
)
}
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DInput::QAbstractAxisInput*>::detach()```</span>.
#[inline(always)]
pub unsafe fn detach(&self) {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAbstractAxisInput_ptr_detach(
self as *const crate::QVectorOfQAbstractAxisInput
as *mut crate::QVectorOfQAbstractAxisInput,
)
}
/// <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<Qt3DInput::QAbstractAxisInput*>::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_input_ffi_QVector_Qt3DInput_QAbstractAxisInput_ptr_empty(
self as *const crate::QVectorOfQAbstractAxisInput,
)
}
/// <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<Qt3DInput::QAbstractAxisInput*>::endsWith(const Qt3DInput::QAbstractAxisInput*& 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::QAbstractAxisInput) -> bool {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAbstractAxisInput_ptr_endsWith(
self as *const crate::QVectorOfQAbstractAxisInput,
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<Qt3DInput::QAbstractAxisInput*>& QVector<Qt3DInput::QAbstractAxisInput*>::fill(const Qt3DInput::QAbstractAxisInput*& 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::QAbstractAxisInput,
size: ::std::os::raw::c_int,
) -> ::cpp_core::Ref<crate::QVectorOfQAbstractAxisInput> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAbstractAxisInput_ptr_fill(
self as *const crate::QVectorOfQAbstractAxisInput
as *mut crate::QVectorOfQAbstractAxisInput,
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<Qt3DInput::QAbstractAxisInput*>& QVector<Qt3DInput::QAbstractAxisInput*>::fill(const Qt3DInput::QAbstractAxisInput*& 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::QAbstractAxisInput,
) -> ::cpp_core::Ref<crate::QVectorOfQAbstractAxisInput> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAbstractAxisInput_ptr_fill1(
self as *const crate::QVectorOfQAbstractAxisInput
as *mut crate::QVectorOfQAbstractAxisInput,
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;'>```Qt3DInput::QAbstractAxisInput*& QVector<Qt3DInput::QAbstractAxisInput*>::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::QAbstractAxisInput {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAbstractAxisInput_ptr_first(
self as *const crate::QVectorOfQAbstractAxisInput
as *mut crate::QVectorOfQAbstractAxisInput,
)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```const Qt3DInput::QAbstractAxisInput*& QVector<Qt3DInput::QAbstractAxisInput*>::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::QAbstractAxisInput {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAbstractAxisInput_ptr_first1(
self as *const crate::QVectorOfQAbstractAxisInput,
)
}
/// <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;'>```Qt3DInput::QAbstractAxisInput*& QVector<Qt3DInput::QAbstractAxisInput*>::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::QAbstractAxisInput {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAbstractAxisInput_ptr_front(
self as *const crate::QVectorOfQAbstractAxisInput
as *mut crate::QVectorOfQAbstractAxisInput,
)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```const Qt3DInput::QAbstractAxisInput*& QVector<Qt3DInput::QAbstractAxisInput*>::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::QAbstractAxisInput {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAbstractAxisInput_ptr_front1(
self as *const crate::QVectorOfQAbstractAxisInput,
)
}
/// <p>Returns the item at index position <i>i</i> as a modifiable reference.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QAbstractAxisInput*& QVector<Qt3DInput::QAbstractAxisInput*>::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::QAbstractAxisInput {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAbstractAxisInput_ptr_operator__2(
self as *const crate::QVectorOfQAbstractAxisInput
as *mut crate::QVectorOfQAbstractAxisInput,
i,
)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```const Qt3DInput::QAbstractAxisInput*& QVector<Qt3DInput::QAbstractAxisInput*>::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::QAbstractAxisInput {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAbstractAxisInput_ptr_operator__3(
self as *const crate::QVectorOfQAbstractAxisInput,
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<Qt3DInput::QAbstractAxisInput*>::indexOf(const Qt3DInput::QAbstractAxisInput*& 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::QAbstractAxisInput,
from: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAbstractAxisInput_ptr_indexOf(
self as *const crate::QVectorOfQAbstractAxisInput,
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<Qt3DInput::QAbstractAxisInput*>::indexOf(const Qt3DInput::QAbstractAxisInput*& 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::QAbstractAxisInput,
) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAbstractAxisInput_ptr_indexOf1(
self as *const crate::QVectorOfQAbstractAxisInput,
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<Qt3DInput::QAbstractAxisInput*>::insert(int i, const Qt3DInput::QAbstractAxisInput*& 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::QAbstractAxisInput,
) {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAbstractAxisInput_ptr_insert(
self as *const crate::QVectorOfQAbstractAxisInput
as *mut crate::QVectorOfQAbstractAxisInput,
i,
t,
)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DInput::QAbstractAxisInput*>::insert(int i, int n, const Qt3DInput::QAbstractAxisInput*& 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::QAbstractAxisInput,
) {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAbstractAxisInput_ptr_insert1(
self as *const crate::QVectorOfQAbstractAxisInput
as *mut crate::QVectorOfQAbstractAxisInput,
i,
n,
t,
)
}
/// Calls C++ function: <span style='color: green;'>```bool QVector<Qt3DInput::QAbstractAxisInput*>::isDetached() const```</span>.
#[inline(always)]
pub unsafe fn is_detached(&self) -> bool {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAbstractAxisInput_ptr_isDetached(
self as *const crate::QVectorOfQAbstractAxisInput,
)
}
/// <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<Qt3DInput::QAbstractAxisInput*>::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_input_ffi_QVector_Qt3DInput_QAbstractAxisInput_ptr_isEmpty(
self as *const crate::QVectorOfQAbstractAxisInput,
)
}
/// Calls C++ function: <span style='color: green;'>```bool QVector<Qt3DInput::QAbstractAxisInput*>::isSharedWith(const QVector<Qt3DInput::QAbstractAxisInput*>& other) const```</span>.
#[inline(always)]
pub unsafe fn is_shared_with(
&self,
other: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QVectorOfQAbstractAxisInput>>,
) -> bool {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAbstractAxisInput_ptr_isSharedWith(
self as *const crate::QVectorOfQAbstractAxisInput,
::cpp_core::CastInto::<::cpp_core::Ref<crate::QVectorOfQAbstractAxisInput>>::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;'>```Qt3DInput::QAbstractAxisInput*& QVector<Qt3DInput::QAbstractAxisInput*>::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::QAbstractAxisInput {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAbstractAxisInput_ptr_last(
self as *const crate::QVectorOfQAbstractAxisInput
as *mut crate::QVectorOfQAbstractAxisInput,
)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```const Qt3DInput::QAbstractAxisInput*& QVector<Qt3DInput::QAbstractAxisInput*>::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::QAbstractAxisInput {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAbstractAxisInput_ptr_last1(
self as *const crate::QVectorOfQAbstractAxisInput,
)
}
/// <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<Qt3DInput::QAbstractAxisInput*>::lastIndexOf(const Qt3DInput::QAbstractAxisInput*& 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::QAbstractAxisInput,
from: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAbstractAxisInput_ptr_lastIndexOf(
self as *const crate::QVectorOfQAbstractAxisInput,
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<Qt3DInput::QAbstractAxisInput*>::lastIndexOf(const Qt3DInput::QAbstractAxisInput*& 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::QAbstractAxisInput,
) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAbstractAxisInput_ptr_lastIndexOf1(
self as *const crate::QVectorOfQAbstractAxisInput,
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<Qt3DInput::QAbstractAxisInput*>::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_input_ffi_QVector_Qt3DInput_QAbstractAxisInput_ptr_length(
self as *const crate::QVectorOfQAbstractAxisInput,
)
}
/// <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<Qt3DInput::QAbstractAxisInput*> QVector<Qt3DInput::QAbstractAxisInput*>::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::QVectorOfQAbstractAxisInput> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAbstractAxisInput_ptr_mid(
self as *const crate::QVectorOfQAbstractAxisInput,
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<Qt3DInput::QAbstractAxisInput*> QVector<Qt3DInput::QAbstractAxisInput*>::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::QVectorOfQAbstractAxisInput> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAbstractAxisInput_ptr_mid1(
self as *const crate::QVectorOfQAbstractAxisInput,
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<Qt3DInput::QAbstractAxisInput*>::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_input_ffi_QVector_Qt3DInput_QAbstractAxisInput_ptr_move(
self as *const crate::QVectorOfQAbstractAxisInput
as *mut crate::QVectorOfQAbstractAxisInput,
from,
to,
)
}
/// <p>Constructs an empty vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void QVector<Qt3DInput::QAbstractAxisInput*>::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::QVectorOfQAbstractAxisInput> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAbstractAxisInput_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<Qt3DInput::QAbstractAxisInput*>::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::QVectorOfQAbstractAxisInput> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAbstractAxisInput_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<Qt3DInput::QAbstractAxisInput*>::QVector(int size, const Qt3DInput::QAbstractAxisInput*& 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::QAbstractAxisInput,
) -> ::cpp_core::CppBox<crate::QVectorOfQAbstractAxisInput> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAbstractAxisInput_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<Qt3DInput::QAbstractAxisInput*>::QVector(const QVector<Qt3DInput::QAbstractAxisInput*>& 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::QVectorOfQAbstractAxisInput>>,
) -> ::cpp_core::CppBox<crate::QVectorOfQAbstractAxisInput> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAbstractAxisInput_ptr_QVector3(::cpp_core::CastInto::<::cpp_core::Ref<crate::QVectorOfQAbstractAxisInput>>::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<Qt3DInput::QAbstractAxisInput*>::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_input_ffi_QVector_Qt3DInput_QAbstractAxisInput_ptr_pop_back(
self as *const crate::QVectorOfQAbstractAxisInput
as *mut crate::QVectorOfQAbstractAxisInput,
)
}
/// <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<Qt3DInput::QAbstractAxisInput*>::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_input_ffi_QVector_Qt3DInput_QAbstractAxisInput_ptr_pop_front(
self as *const crate::QVectorOfQAbstractAxisInput
as *mut crate::QVectorOfQAbstractAxisInput,
)
}
/// <p>Inserts <i>value</i> at the beginning of the vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DInput::QAbstractAxisInput*>::prepend(const Qt3DInput::QAbstractAxisInput*& 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::QAbstractAxisInput) {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAbstractAxisInput_ptr_prepend(
self as *const crate::QVectorOfQAbstractAxisInput
as *mut crate::QVectorOfQAbstractAxisInput,
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<Qt3DInput::QAbstractAxisInput*>::push_back(const Qt3DInput::QAbstractAxisInput*& 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::QAbstractAxisInput) {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAbstractAxisInput_ptr_push_back(
self as *const crate::QVectorOfQAbstractAxisInput
as *mut crate::QVectorOfQAbstractAxisInput,
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<Qt3DInput::QAbstractAxisInput*>::push_front(const Qt3DInput::QAbstractAxisInput*& 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::QAbstractAxisInput) {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAbstractAxisInput_ptr_push_front(
self as *const crate::QVectorOfQAbstractAxisInput
as *mut crate::QVectorOfQAbstractAxisInput,
t,
)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DInput::QAbstractAxisInput*>::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_input_ffi_QVector_Qt3DInput_QAbstractAxisInput_ptr_remove(
self as *const crate::QVectorOfQAbstractAxisInput
as *mut crate::QVectorOfQAbstractAxisInput,
i,
)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DInput::QAbstractAxisInput*>::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_input_ffi_QVector_Qt3DInput_QAbstractAxisInput_ptr_remove1(
self as *const crate::QVectorOfQAbstractAxisInput
as *mut crate::QVectorOfQAbstractAxisInput,
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<Qt3DInput::QAbstractAxisInput*>::removeAll(const Qt3DInput::QAbstractAxisInput*& 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::QAbstractAxisInput,
) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAbstractAxisInput_ptr_removeAll(
self as *const crate::QVectorOfQAbstractAxisInput
as *mut crate::QVectorOfQAbstractAxisInput,
t,
)
}
/// <p>Removes the element at index position <i>i</i>. Equivalent to</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DInput::QAbstractAxisInput*>::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_input_ffi_QVector_Qt3DInput_QAbstractAxisInput_ptr_removeAt(
self as *const crate::QVectorOfQAbstractAxisInput
as *mut crate::QVectorOfQAbstractAxisInput,
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<Qt3DInput::QAbstractAxisInput*>::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_input_ffi_QVector_Qt3DInput_QAbstractAxisInput_ptr_removeFirst(
self as *const crate::QVectorOfQAbstractAxisInput
as *mut crate::QVectorOfQAbstractAxisInput,
)
}
/// <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<Qt3DInput::QAbstractAxisInput*>::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_input_ffi_QVector_Qt3DInput_QAbstractAxisInput_ptr_removeLast(
self as *const crate::QVectorOfQAbstractAxisInput
as *mut crate::QVectorOfQAbstractAxisInput,
)
}
/// <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<Qt3DInput::QAbstractAxisInput*>::removeOne(const Qt3DInput::QAbstractAxisInput*& 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::QAbstractAxisInput) -> bool {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAbstractAxisInput_ptr_removeOne(
self as *const crate::QVectorOfQAbstractAxisInput
as *mut crate::QVectorOfQAbstractAxisInput,
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<Qt3DInput::QAbstractAxisInput*>::replace(int i, const Qt3DInput::QAbstractAxisInput*& 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::QAbstractAxisInput,
) {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAbstractAxisInput_ptr_replace(
self as *const crate::QVectorOfQAbstractAxisInput
as *mut crate::QVectorOfQAbstractAxisInput,
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<Qt3DInput::QAbstractAxisInput*>::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_input_ffi_QVector_Qt3DInput_QAbstractAxisInput_ptr_reserve(
self as *const crate::QVectorOfQAbstractAxisInput
as *mut crate::QVectorOfQAbstractAxisInput,
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<Qt3DInput::QAbstractAxisInput*>::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_input_ffi_QVector_Qt3DInput_QAbstractAxisInput_ptr_resize(
self as *const crate::QVectorOfQAbstractAxisInput
as *mut crate::QVectorOfQAbstractAxisInput,
size,
)
}
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DInput::QAbstractAxisInput*>::setSharable(bool sharable)```</span>.
#[inline(always)]
pub unsafe fn set_sharable(&self, sharable: bool) {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAbstractAxisInput_ptr_setSharable(
self as *const crate::QVectorOfQAbstractAxisInput
as *mut crate::QVectorOfQAbstractAxisInput,
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<Qt3DInput::QAbstractAxisInput*>::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_input_ffi_QVector_Qt3DInput_QAbstractAxisInput_ptr_shrink_to_fit(
self as *const crate::QVectorOfQAbstractAxisInput
as *mut crate::QVectorOfQAbstractAxisInput,
)
}
/// <p>Returns the number of items in the vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```int QVector<Qt3DInput::QAbstractAxisInput*>::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_input_ffi_QVector_Qt3DInput_QAbstractAxisInput_ptr_size(
self as *const crate::QVectorOfQAbstractAxisInput,
)
}
/// <p>Releases any memory not required to store the items.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DInput::QAbstractAxisInput*>::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_input_ffi_QVector_Qt3DInput_QAbstractAxisInput_ptr_squeeze(
self as *const crate::QVectorOfQAbstractAxisInput
as *mut crate::QVectorOfQAbstractAxisInput,
)
}
/// <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<Qt3DInput::QAbstractAxisInput*>::startsWith(const Qt3DInput::QAbstractAxisInput*& 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::QAbstractAxisInput) -> bool {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAbstractAxisInput_ptr_startsWith(
self as *const crate::QVectorOfQAbstractAxisInput,
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<Qt3DInput::QAbstractAxisInput*>::swap(QVector<Qt3DInput::QAbstractAxisInput*>& 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::QVectorOfQAbstractAxisInput>>,
) {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAbstractAxisInput_ptr_swap(
self as *const crate::QVectorOfQAbstractAxisInput
as *mut crate::QVectorOfQAbstractAxisInput,
::cpp_core::CastInto::<::cpp_core::Ref<crate::QVectorOfQAbstractAxisInput>>::cast_into(
other,
)
.as_raw_ptr() as *mut crate::QVectorOfQAbstractAxisInput,
)
}
/// <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<Qt3DInput::QAbstractAxisInput*>::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_input_ffi_QVector_Qt3DInput_QAbstractAxisInput_ptr_swapItemsAt(
self as *const crate::QVectorOfQAbstractAxisInput
as *mut crate::QVectorOfQAbstractAxisInput,
i,
j,
)
}
/// <p>Removes the element at index position <i>i</i> and returns it.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QAbstractAxisInput* QVector<Qt3DInput::QAbstractAxisInput*>::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::QAbstractAxisInput> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAbstractAxisInput_ptr_takeAt(
self as *const crate::QVectorOfQAbstractAxisInput
as *mut crate::QVectorOfQAbstractAxisInput,
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;'>```Qt3DInput::QAbstractAxisInput* QVector<Qt3DInput::QAbstractAxisInput*>::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::QAbstractAxisInput> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAbstractAxisInput_ptr_takeFirst(
self as *const crate::QVectorOfQAbstractAxisInput
as *mut crate::QVectorOfQAbstractAxisInput,
)
};
::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;'>```Qt3DInput::QAbstractAxisInput* QVector<Qt3DInput::QAbstractAxisInput*>::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::QAbstractAxisInput> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAbstractAxisInput_ptr_takeLast(
self as *const crate::QVectorOfQAbstractAxisInput
as *mut crate::QVectorOfQAbstractAxisInput,
)
};
::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;'>```Qt3DInput::QAbstractAxisInput* QVector<Qt3DInput::QAbstractAxisInput*>::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::QAbstractAxisInput> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAbstractAxisInput_ptr_value(
self as *const crate::QVectorOfQAbstractAxisInput,
i,
)
};
::qt_core::QPtr::from_raw(ffi_result)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QAbstractAxisInput* QVector<Qt3DInput::QAbstractAxisInput*>::value(int i, const Qt3DInput::QAbstractAxisInput*& 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::QAbstractAxisInput,
) -> ::qt_core::QPtr<crate::QAbstractAxisInput> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAbstractAxisInput_ptr_value1(
self as *const crate::QVectorOfQAbstractAxisInput,
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<Qt3DInput::QAction*>```</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 QVectorOfQAction {
_unused: u8,
}
impl QVectorOfQAction {
/// <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<Qt3DInput::QAction*>& QVector<Qt3DInput::QAction*>::operator+=(const QVector<Qt3DInput::QAction*>& 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_action(
&self,
l: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QVectorOfQAction>>,
) -> ::cpp_core::Ref<crate::QVectorOfQAction> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAction_ptr_operator__4(
self as *const crate::QVectorOfQAction as *mut crate::QVectorOfQAction,
::cpp_core::CastInto::<::cpp_core::Ref<crate::QVectorOfQAction>>::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<Qt3DInput::QAction*>& QVector<Qt3DInput::QAction*>::operator+=(const Qt3DInput::QAction*& 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_action(
&self,
t: *const *mut crate::QAction,
) -> ::cpp_core::Ref<crate::QVectorOfQAction> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAction_ptr_operator__5(
self as *const crate::QVectorOfQAction as *mut crate::QVectorOfQAction,
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<Qt3DInput::QAction*>::append(const Qt3DInput::QAction*& 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_action(&self, t: *const *mut crate::QAction) {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAction_ptr_append(
self as *const crate::QVectorOfQAction as *mut crate::QVectorOfQAction,
t,
)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DInput::QAction*>::append(const QVector<Qt3DInput::QAction*>& 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_action(
&self,
l: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QVectorOfQAction>>,
) {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAction_ptr_append2(
self as *const crate::QVectorOfQAction as *mut crate::QVectorOfQAction,
::cpp_core::CastInto::<::cpp_core::Ref<crate::QVectorOfQAction>>::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 Qt3DInput::QAction*& QVector<Qt3DInput::QAction*>::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::QAction {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAction_ptr_at(
self as *const crate::QVectorOfQAction,
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;'>```Qt3DInput::QAction*& QVector<Qt3DInput::QAction*>::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::QAction {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAction_ptr_back(
self as *const crate::QVectorOfQAction as *mut crate::QVectorOfQAction,
)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```const Qt3DInput::QAction*& QVector<Qt3DInput::QAction*>::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::QAction {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAction_ptr_back1(
self as *const crate::QVectorOfQAction,
)
}
/// <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<Qt3DInput::QAction*>::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_input_ffi_QVector_Qt3DInput_QAction_ptr_capacity(
self as *const crate::QVectorOfQAction,
)
}
/// <p>Removes all the elements from the vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DInput::QAction*>::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_input_ffi_QVector_Qt3DInput_QAction_ptr_clear(
self as *const crate::QVectorOfQAction as *mut crate::QVectorOfQAction,
)
}
/// <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 Qt3DInput::QAction** QVector<Qt3DInput::QAction*>::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::QAction {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAction_ptr_constData(
self as *const crate::QVectorOfQAction,
)
}
/// <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 Qt3DInput::QAction*& QVector<Qt3DInput::QAction*>::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::QAction {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAction_ptr_constFirst(
self as *const crate::QVectorOfQAction,
)
}
/// <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 Qt3DInput::QAction*& QVector<Qt3DInput::QAction*>::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::QAction {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAction_ptr_constLast(
self as *const crate::QVectorOfQAction,
)
}
/// <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<Qt3DInput::QAction*>::contains(const Qt3DInput::QAction*& 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::QAction) -> bool {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAction_ptr_contains(
self as *const crate::QVectorOfQAction,
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<Qt3DInput::QAction*>& QVector<Qt3DInput::QAction*>::operator=(const QVector<Qt3DInput::QAction*>& 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::QVectorOfQAction>>,
) -> ::cpp_core::Ref<crate::QVectorOfQAction> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAction_ptr_operator_(
self as *const crate::QVectorOfQAction as *mut crate::QVectorOfQAction,
::cpp_core::CastInto::<::cpp_core::Ref<crate::QVectorOfQAction>>::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<Qt3DInput::QAction*>::count(const Qt3DInput::QAction*& 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::QAction) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAction_ptr_count(
self as *const crate::QVectorOfQAction,
t,
)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```int QVector<Qt3DInput::QAction*>::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_input_ffi_QVector_Qt3DInput_QAction_ptr_count1(
self as *const crate::QVectorOfQAction,
)
}
/// <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;'>```Qt3DInput::QAction** QVector<Qt3DInput::QAction*>::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::QAction {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAction_ptr_data(
self as *const crate::QVectorOfQAction as *mut crate::QVectorOfQAction,
)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```const Qt3DInput::QAction** QVector<Qt3DInput::QAction*>::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::QAction {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAction_ptr_data1(
self as *const crate::QVectorOfQAction,
)
}
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DInput::QAction*>::detach()```</span>.
#[inline(always)]
pub unsafe fn detach(&self) {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAction_ptr_detach(
self as *const crate::QVectorOfQAction as *mut crate::QVectorOfQAction,
)
}
/// <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<Qt3DInput::QAction*>::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_input_ffi_QVector_Qt3DInput_QAction_ptr_empty(
self as *const crate::QVectorOfQAction,
)
}
/// <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<Qt3DInput::QAction*>::endsWith(const Qt3DInput::QAction*& 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::QAction) -> bool {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAction_ptr_endsWith(
self as *const crate::QVectorOfQAction,
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<Qt3DInput::QAction*>& QVector<Qt3DInput::QAction*>::fill(const Qt3DInput::QAction*& 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::QAction,
size: ::std::os::raw::c_int,
) -> ::cpp_core::Ref<crate::QVectorOfQAction> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAction_ptr_fill(
self as *const crate::QVectorOfQAction as *mut crate::QVectorOfQAction,
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<Qt3DInput::QAction*>& QVector<Qt3DInput::QAction*>::fill(const Qt3DInput::QAction*& 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::QAction,
) -> ::cpp_core::Ref<crate::QVectorOfQAction> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAction_ptr_fill1(
self as *const crate::QVectorOfQAction as *mut crate::QVectorOfQAction,
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;'>```Qt3DInput::QAction*& QVector<Qt3DInput::QAction*>::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::QAction {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAction_ptr_first(
self as *const crate::QVectorOfQAction as *mut crate::QVectorOfQAction,
)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```const Qt3DInput::QAction*& QVector<Qt3DInput::QAction*>::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::QAction {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAction_ptr_first1(
self as *const crate::QVectorOfQAction,
)
}
/// <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;'>```Qt3DInput::QAction*& QVector<Qt3DInput::QAction*>::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::QAction {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAction_ptr_front(
self as *const crate::QVectorOfQAction as *mut crate::QVectorOfQAction,
)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```const Qt3DInput::QAction*& QVector<Qt3DInput::QAction*>::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::QAction {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAction_ptr_front1(
self as *const crate::QVectorOfQAction,
)
}
/// <p>Returns the item at index position <i>i</i> as a modifiable reference.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QAction*& QVector<Qt3DInput::QAction*>::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::QAction {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAction_ptr_operator__2(
self as *const crate::QVectorOfQAction as *mut crate::QVectorOfQAction,
i,
)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```const Qt3DInput::QAction*& QVector<Qt3DInput::QAction*>::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::QAction {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAction_ptr_operator__3(
self as *const crate::QVectorOfQAction,
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<Qt3DInput::QAction*>::indexOf(const Qt3DInput::QAction*& 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::QAction,
from: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAction_ptr_indexOf(
self as *const crate::QVectorOfQAction,
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<Qt3DInput::QAction*>::indexOf(const Qt3DInput::QAction*& 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::QAction) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAction_ptr_indexOf1(
self as *const crate::QVectorOfQAction,
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<Qt3DInput::QAction*>::insert(int i, const Qt3DInput::QAction*& 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::QAction) {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAction_ptr_insert(
self as *const crate::QVectorOfQAction as *mut crate::QVectorOfQAction,
i,
t,
)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DInput::QAction*>::insert(int i, int n, const Qt3DInput::QAction*& 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::QAction,
) {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAction_ptr_insert1(
self as *const crate::QVectorOfQAction as *mut crate::QVectorOfQAction,
i,
n,
t,
)
}
/// Calls C++ function: <span style='color: green;'>```bool QVector<Qt3DInput::QAction*>::isDetached() const```</span>.
#[inline(always)]
pub unsafe fn is_detached(&self) -> bool {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAction_ptr_isDetached(
self as *const crate::QVectorOfQAction,
)
}
/// <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<Qt3DInput::QAction*>::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_input_ffi_QVector_Qt3DInput_QAction_ptr_isEmpty(
self as *const crate::QVectorOfQAction,
)
}
/// Calls C++ function: <span style='color: green;'>```bool QVector<Qt3DInput::QAction*>::isSharedWith(const QVector<Qt3DInput::QAction*>& other) const```</span>.
#[inline(always)]
pub unsafe fn is_shared_with(
&self,
other: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QVectorOfQAction>>,
) -> bool {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAction_ptr_isSharedWith(
self as *const crate::QVectorOfQAction,
::cpp_core::CastInto::<::cpp_core::Ref<crate::QVectorOfQAction>>::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;'>```Qt3DInput::QAction*& QVector<Qt3DInput::QAction*>::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::QAction {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAction_ptr_last(
self as *const crate::QVectorOfQAction as *mut crate::QVectorOfQAction,
)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```const Qt3DInput::QAction*& QVector<Qt3DInput::QAction*>::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::QAction {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAction_ptr_last1(
self as *const crate::QVectorOfQAction,
)
}
/// <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<Qt3DInput::QAction*>::lastIndexOf(const Qt3DInput::QAction*& 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::QAction,
from: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAction_ptr_lastIndexOf(
self as *const crate::QVectorOfQAction,
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<Qt3DInput::QAction*>::lastIndexOf(const Qt3DInput::QAction*& 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::QAction) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAction_ptr_lastIndexOf1(
self as *const crate::QVectorOfQAction,
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<Qt3DInput::QAction*>::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_input_ffi_QVector_Qt3DInput_QAction_ptr_length(
self as *const crate::QVectorOfQAction,
)
}
/// <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<Qt3DInput::QAction*> QVector<Qt3DInput::QAction*>::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::QVectorOfQAction> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAction_ptr_mid(
self as *const crate::QVectorOfQAction,
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<Qt3DInput::QAction*> QVector<Qt3DInput::QAction*>::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::QVectorOfQAction> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAction_ptr_mid1(
self as *const crate::QVectorOfQAction,
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<Qt3DInput::QAction*>::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_input_ffi_QVector_Qt3DInput_QAction_ptr_move(
self as *const crate::QVectorOfQAction as *mut crate::QVectorOfQAction,
from,
to,
)
}
/// <p>Constructs an empty vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void QVector<Qt3DInput::QAction*>::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::QVectorOfQAction> {
let ffi_result =
{ crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAction_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<Qt3DInput::QAction*>::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::QVectorOfQAction> {
let ffi_result =
{ crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAction_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<Qt3DInput::QAction*>::QVector(int size, const Qt3DInput::QAction*& 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::QAction,
) -> ::cpp_core::CppBox<crate::QVectorOfQAction> {
let ffi_result =
{ crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAction_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<Qt3DInput::QAction*>::QVector(const QVector<Qt3DInput::QAction*>& 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::QVectorOfQAction>>,
) -> ::cpp_core::CppBox<crate::QVectorOfQAction> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAction_ptr_QVector3(
::cpp_core::CastInto::<::cpp_core::Ref<crate::QVectorOfQAction>>::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<Qt3DInput::QAction*>::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_input_ffi_QVector_Qt3DInput_QAction_ptr_pop_back(
self as *const crate::QVectorOfQAction as *mut crate::QVectorOfQAction,
)
}
/// <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<Qt3DInput::QAction*>::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_input_ffi_QVector_Qt3DInput_QAction_ptr_pop_front(
self as *const crate::QVectorOfQAction as *mut crate::QVectorOfQAction,
)
}
/// <p>Inserts <i>value</i> at the beginning of the vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DInput::QAction*>::prepend(const Qt3DInput::QAction*& 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::QAction) {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAction_ptr_prepend(
self as *const crate::QVectorOfQAction as *mut crate::QVectorOfQAction,
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<Qt3DInput::QAction*>::push_back(const Qt3DInput::QAction*& 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::QAction) {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAction_ptr_push_back(
self as *const crate::QVectorOfQAction as *mut crate::QVectorOfQAction,
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<Qt3DInput::QAction*>::push_front(const Qt3DInput::QAction*& 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::QAction) {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAction_ptr_push_front(
self as *const crate::QVectorOfQAction as *mut crate::QVectorOfQAction,
t,
)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DInput::QAction*>::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_input_ffi_QVector_Qt3DInput_QAction_ptr_remove(
self as *const crate::QVectorOfQAction as *mut crate::QVectorOfQAction,
i,
)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DInput::QAction*>::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_input_ffi_QVector_Qt3DInput_QAction_ptr_remove1(
self as *const crate::QVectorOfQAction as *mut crate::QVectorOfQAction,
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<Qt3DInput::QAction*>::removeAll(const Qt3DInput::QAction*& 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::QAction) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAction_ptr_removeAll(
self as *const crate::QVectorOfQAction as *mut crate::QVectorOfQAction,
t,
)
}
/// <p>Removes the element at index position <i>i</i>. Equivalent to</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DInput::QAction*>::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_input_ffi_QVector_Qt3DInput_QAction_ptr_removeAt(
self as *const crate::QVectorOfQAction as *mut crate::QVectorOfQAction,
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<Qt3DInput::QAction*>::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_input_ffi_QVector_Qt3DInput_QAction_ptr_removeFirst(
self as *const crate::QVectorOfQAction as *mut crate::QVectorOfQAction,
)
}
/// <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<Qt3DInput::QAction*>::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_input_ffi_QVector_Qt3DInput_QAction_ptr_removeLast(
self as *const crate::QVectorOfQAction as *mut crate::QVectorOfQAction,
)
}
/// <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<Qt3DInput::QAction*>::removeOne(const Qt3DInput::QAction*& 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::QAction) -> bool {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAction_ptr_removeOne(
self as *const crate::QVectorOfQAction as *mut crate::QVectorOfQAction,
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<Qt3DInput::QAction*>::replace(int i, const Qt3DInput::QAction*& 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::QAction) {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAction_ptr_replace(
self as *const crate::QVectorOfQAction as *mut crate::QVectorOfQAction,
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<Qt3DInput::QAction*>::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_input_ffi_QVector_Qt3DInput_QAction_ptr_reserve(
self as *const crate::QVectorOfQAction as *mut crate::QVectorOfQAction,
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<Qt3DInput::QAction*>::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_input_ffi_QVector_Qt3DInput_QAction_ptr_resize(
self as *const crate::QVectorOfQAction as *mut crate::QVectorOfQAction,
size,
)
}
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DInput::QAction*>::setSharable(bool sharable)```</span>.
#[inline(always)]
pub unsafe fn set_sharable(&self, sharable: bool) {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAction_ptr_setSharable(
self as *const crate::QVectorOfQAction as *mut crate::QVectorOfQAction,
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<Qt3DInput::QAction*>::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_input_ffi_QVector_Qt3DInput_QAction_ptr_shrink_to_fit(
self as *const crate::QVectorOfQAction as *mut crate::QVectorOfQAction,
)
}
/// <p>Returns the number of items in the vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```int QVector<Qt3DInput::QAction*>::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_input_ffi_QVector_Qt3DInput_QAction_ptr_size(
self as *const crate::QVectorOfQAction,
)
}
/// <p>Releases any memory not required to store the items.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DInput::QAction*>::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_input_ffi_QVector_Qt3DInput_QAction_ptr_squeeze(
self as *const crate::QVectorOfQAction as *mut crate::QVectorOfQAction,
)
}
/// <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<Qt3DInput::QAction*>::startsWith(const Qt3DInput::QAction*& 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::QAction) -> bool {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAction_ptr_startsWith(
self as *const crate::QVectorOfQAction,
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<Qt3DInput::QAction*>::swap(QVector<Qt3DInput::QAction*>& 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::QVectorOfQAction>>,
) {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAction_ptr_swap(
self as *const crate::QVectorOfQAction as *mut crate::QVectorOfQAction,
::cpp_core::CastInto::<::cpp_core::Ref<crate::QVectorOfQAction>>::cast_into(other)
.as_raw_ptr() as *mut crate::QVectorOfQAction,
)
}
/// <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<Qt3DInput::QAction*>::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_input_ffi_QVector_Qt3DInput_QAction_ptr_swapItemsAt(
self as *const crate::QVectorOfQAction as *mut crate::QVectorOfQAction,
i,
j,
)
}
/// <p>Removes the element at index position <i>i</i> and returns it.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QAction* QVector<Qt3DInput::QAction*>::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::QAction> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAction_ptr_takeAt(
self as *const crate::QVectorOfQAction as *mut crate::QVectorOfQAction,
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;'>```Qt3DInput::QAction* QVector<Qt3DInput::QAction*>::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::QAction> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAction_ptr_takeFirst(
self as *const crate::QVectorOfQAction as *mut crate::QVectorOfQAction,
)
};
::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;'>```Qt3DInput::QAction* QVector<Qt3DInput::QAction*>::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::QAction> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAction_ptr_takeLast(
self as *const crate::QVectorOfQAction as *mut crate::QVectorOfQAction,
)
};
::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;'>```Qt3DInput::QAction* QVector<Qt3DInput::QAction*>::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::QAction> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAction_ptr_value(
self as *const crate::QVectorOfQAction,
i,
)
};
::qt_core::QPtr::from_raw(ffi_result)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QAction* QVector<Qt3DInput::QAction*>::value(int i, const Qt3DInput::QAction*& 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::QAction,
) -> ::qt_core::QPtr<crate::QAction> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAction_ptr_value1(
self as *const crate::QVectorOfQAction,
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<Qt3DInput::QAxis*>```</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 QVectorOfQAxis {
_unused: u8,
}
impl QVectorOfQAxis {
/// <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<Qt3DInput::QAxis*>& QVector<Qt3DInput::QAxis*>::operator+=(const QVector<Qt3DInput::QAxis*>& 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_axis(
&self,
l: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QVectorOfQAxis>>,
) -> ::cpp_core::Ref<crate::QVectorOfQAxis> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAxis_ptr_operator__4(
self as *const crate::QVectorOfQAxis as *mut crate::QVectorOfQAxis,
::cpp_core::CastInto::<::cpp_core::Ref<crate::QVectorOfQAxis>>::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<Qt3DInput::QAxis*>& QVector<Qt3DInput::QAxis*>::operator+=(const Qt3DInput::QAxis*& 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_axis(
&self,
t: *const *mut crate::QAxis,
) -> ::cpp_core::Ref<crate::QVectorOfQAxis> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAxis_ptr_operator__5(
self as *const crate::QVectorOfQAxis as *mut crate::QVectorOfQAxis,
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<Qt3DInput::QAxis*>::append(const Qt3DInput::QAxis*& 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_axis(&self, t: *const *mut crate::QAxis) {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAxis_ptr_append(
self as *const crate::QVectorOfQAxis as *mut crate::QVectorOfQAxis,
t,
)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DInput::QAxis*>::append(const QVector<Qt3DInput::QAxis*>& 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_axis(
&self,
l: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QVectorOfQAxis>>,
) {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAxis_ptr_append2(
self as *const crate::QVectorOfQAxis as *mut crate::QVectorOfQAxis,
::cpp_core::CastInto::<::cpp_core::Ref<crate::QVectorOfQAxis>>::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 Qt3DInput::QAxis*& QVector<Qt3DInput::QAxis*>::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::QAxis {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAxis_ptr_at(
self as *const crate::QVectorOfQAxis,
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;'>```Qt3DInput::QAxis*& QVector<Qt3DInput::QAxis*>::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::QAxis {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAxis_ptr_back(
self as *const crate::QVectorOfQAxis as *mut crate::QVectorOfQAxis,
)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```const Qt3DInput::QAxis*& QVector<Qt3DInput::QAxis*>::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::QAxis {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAxis_ptr_back1(
self as *const crate::QVectorOfQAxis,
)
}
/// <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<Qt3DInput::QAxis*>::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_input_ffi_QVector_Qt3DInput_QAxis_ptr_capacity(
self as *const crate::QVectorOfQAxis,
)
}
/// <p>Removes all the elements from the vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DInput::QAxis*>::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_input_ffi_QVector_Qt3DInput_QAxis_ptr_clear(
self as *const crate::QVectorOfQAxis as *mut crate::QVectorOfQAxis,
)
}
/// <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 Qt3DInput::QAxis** QVector<Qt3DInput::QAxis*>::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::QAxis {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAxis_ptr_constData(
self as *const crate::QVectorOfQAxis,
)
}
/// <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 Qt3DInput::QAxis*& QVector<Qt3DInput::QAxis*>::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::QAxis {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAxis_ptr_constFirst(
self as *const crate::QVectorOfQAxis,
)
}
/// <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 Qt3DInput::QAxis*& QVector<Qt3DInput::QAxis*>::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::QAxis {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAxis_ptr_constLast(
self as *const crate::QVectorOfQAxis,
)
}
/// <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<Qt3DInput::QAxis*>::contains(const Qt3DInput::QAxis*& 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::QAxis) -> bool {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAxis_ptr_contains(
self as *const crate::QVectorOfQAxis,
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<Qt3DInput::QAxis*>& QVector<Qt3DInput::QAxis*>::operator=(const QVector<Qt3DInput::QAxis*>& 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::QVectorOfQAxis>>,
) -> ::cpp_core::Ref<crate::QVectorOfQAxis> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAxis_ptr_operator_(
self as *const crate::QVectorOfQAxis as *mut crate::QVectorOfQAxis,
::cpp_core::CastInto::<::cpp_core::Ref<crate::QVectorOfQAxis>>::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<Qt3DInput::QAxis*>::count(const Qt3DInput::QAxis*& 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::QAxis) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAxis_ptr_count(
self as *const crate::QVectorOfQAxis,
t,
)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```int QVector<Qt3DInput::QAxis*>::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_input_ffi_QVector_Qt3DInput_QAxis_ptr_count1(
self as *const crate::QVectorOfQAxis,
)
}
/// <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;'>```Qt3DInput::QAxis** QVector<Qt3DInput::QAxis*>::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::QAxis {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAxis_ptr_data(
self as *const crate::QVectorOfQAxis as *mut crate::QVectorOfQAxis,
)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```const Qt3DInput::QAxis** QVector<Qt3DInput::QAxis*>::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::QAxis {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAxis_ptr_data1(
self as *const crate::QVectorOfQAxis,
)
}
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DInput::QAxis*>::detach()```</span>.
#[inline(always)]
pub unsafe fn detach(&self) {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAxis_ptr_detach(
self as *const crate::QVectorOfQAxis as *mut crate::QVectorOfQAxis,
)
}
/// <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<Qt3DInput::QAxis*>::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_input_ffi_QVector_Qt3DInput_QAxis_ptr_empty(
self as *const crate::QVectorOfQAxis,
)
}
/// <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<Qt3DInput::QAxis*>::endsWith(const Qt3DInput::QAxis*& 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::QAxis) -> bool {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAxis_ptr_endsWith(
self as *const crate::QVectorOfQAxis,
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<Qt3DInput::QAxis*>& QVector<Qt3DInput::QAxis*>::fill(const Qt3DInput::QAxis*& 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::QAxis,
size: ::std::os::raw::c_int,
) -> ::cpp_core::Ref<crate::QVectorOfQAxis> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAxis_ptr_fill(
self as *const crate::QVectorOfQAxis as *mut crate::QVectorOfQAxis,
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<Qt3DInput::QAxis*>& QVector<Qt3DInput::QAxis*>::fill(const Qt3DInput::QAxis*& 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::QAxis,
) -> ::cpp_core::Ref<crate::QVectorOfQAxis> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAxis_ptr_fill1(
self as *const crate::QVectorOfQAxis as *mut crate::QVectorOfQAxis,
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;'>```Qt3DInput::QAxis*& QVector<Qt3DInput::QAxis*>::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::QAxis {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAxis_ptr_first(
self as *const crate::QVectorOfQAxis as *mut crate::QVectorOfQAxis,
)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```const Qt3DInput::QAxis*& QVector<Qt3DInput::QAxis*>::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::QAxis {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAxis_ptr_first1(
self as *const crate::QVectorOfQAxis,
)
}
/// <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;'>```Qt3DInput::QAxis*& QVector<Qt3DInput::QAxis*>::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::QAxis {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAxis_ptr_front(
self as *const crate::QVectorOfQAxis as *mut crate::QVectorOfQAxis,
)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```const Qt3DInput::QAxis*& QVector<Qt3DInput::QAxis*>::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::QAxis {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAxis_ptr_front1(
self as *const crate::QVectorOfQAxis,
)
}
/// <p>Returns the item at index position <i>i</i> as a modifiable reference.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QAxis*& QVector<Qt3DInput::QAxis*>::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::QAxis {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAxis_ptr_operator__2(
self as *const crate::QVectorOfQAxis as *mut crate::QVectorOfQAxis,
i,
)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```const Qt3DInput::QAxis*& QVector<Qt3DInput::QAxis*>::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::QAxis {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAxis_ptr_operator__3(
self as *const crate::QVectorOfQAxis,
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<Qt3DInput::QAxis*>::indexOf(const Qt3DInput::QAxis*& 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::QAxis,
from: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAxis_ptr_indexOf(
self as *const crate::QVectorOfQAxis,
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<Qt3DInput::QAxis*>::indexOf(const Qt3DInput::QAxis*& 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::QAxis) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAxis_ptr_indexOf1(
self as *const crate::QVectorOfQAxis,
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<Qt3DInput::QAxis*>::insert(int i, const Qt3DInput::QAxis*& 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::QAxis) {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAxis_ptr_insert(
self as *const crate::QVectorOfQAxis as *mut crate::QVectorOfQAxis,
i,
t,
)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DInput::QAxis*>::insert(int i, int n, const Qt3DInput::QAxis*& 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::QAxis,
) {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAxis_ptr_insert1(
self as *const crate::QVectorOfQAxis as *mut crate::QVectorOfQAxis,
i,
n,
t,
)
}
/// Calls C++ function: <span style='color: green;'>```bool QVector<Qt3DInput::QAxis*>::isDetached() const```</span>.
#[inline(always)]
pub unsafe fn is_detached(&self) -> bool {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAxis_ptr_isDetached(
self as *const crate::QVectorOfQAxis,
)
}
/// <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<Qt3DInput::QAxis*>::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_input_ffi_QVector_Qt3DInput_QAxis_ptr_isEmpty(
self as *const crate::QVectorOfQAxis,
)
}
/// Calls C++ function: <span style='color: green;'>```bool QVector<Qt3DInput::QAxis*>::isSharedWith(const QVector<Qt3DInput::QAxis*>& other) const```</span>.
#[inline(always)]
pub unsafe fn is_shared_with(
&self,
other: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QVectorOfQAxis>>,
) -> bool {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAxis_ptr_isSharedWith(
self as *const crate::QVectorOfQAxis,
::cpp_core::CastInto::<::cpp_core::Ref<crate::QVectorOfQAxis>>::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;'>```Qt3DInput::QAxis*& QVector<Qt3DInput::QAxis*>::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::QAxis {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAxis_ptr_last(
self as *const crate::QVectorOfQAxis as *mut crate::QVectorOfQAxis,
)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```const Qt3DInput::QAxis*& QVector<Qt3DInput::QAxis*>::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::QAxis {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAxis_ptr_last1(
self as *const crate::QVectorOfQAxis,
)
}
/// <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<Qt3DInput::QAxis*>::lastIndexOf(const Qt3DInput::QAxis*& 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::QAxis,
from: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAxis_ptr_lastIndexOf(
self as *const crate::QVectorOfQAxis,
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<Qt3DInput::QAxis*>::lastIndexOf(const Qt3DInput::QAxis*& 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::QAxis) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAxis_ptr_lastIndexOf1(
self as *const crate::QVectorOfQAxis,
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<Qt3DInput::QAxis*>::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_input_ffi_QVector_Qt3DInput_QAxis_ptr_length(
self as *const crate::QVectorOfQAxis,
)
}
/// <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<Qt3DInput::QAxis*> QVector<Qt3DInput::QAxis*>::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::QVectorOfQAxis> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAxis_ptr_mid(
self as *const crate::QVectorOfQAxis,
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<Qt3DInput::QAxis*> QVector<Qt3DInput::QAxis*>::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::QVectorOfQAxis> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAxis_ptr_mid1(
self as *const crate::QVectorOfQAxis,
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<Qt3DInput::QAxis*>::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_input_ffi_QVector_Qt3DInput_QAxis_ptr_move(
self as *const crate::QVectorOfQAxis as *mut crate::QVectorOfQAxis,
from,
to,
)
}
/// <p>Constructs an empty vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void QVector<Qt3DInput::QAxis*>::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::QVectorOfQAxis> {
let ffi_result =
{ crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAxis_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<Qt3DInput::QAxis*>::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::QVectorOfQAxis> {
let ffi_result =
{ crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAxis_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<Qt3DInput::QAxis*>::QVector(int size, const Qt3DInput::QAxis*& 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::QAxis,
) -> ::cpp_core::CppBox<crate::QVectorOfQAxis> {
let ffi_result =
{ crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAxis_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<Qt3DInput::QAxis*>::QVector(const QVector<Qt3DInput::QAxis*>& 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::QVectorOfQAxis>>,
) -> ::cpp_core::CppBox<crate::QVectorOfQAxis> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAxis_ptr_QVector3(
::cpp_core::CastInto::<::cpp_core::Ref<crate::QVectorOfQAxis>>::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<Qt3DInput::QAxis*>::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_input_ffi_QVector_Qt3DInput_QAxis_ptr_pop_back(
self as *const crate::QVectorOfQAxis as *mut crate::QVectorOfQAxis,
)
}
/// <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<Qt3DInput::QAxis*>::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_input_ffi_QVector_Qt3DInput_QAxis_ptr_pop_front(
self as *const crate::QVectorOfQAxis as *mut crate::QVectorOfQAxis,
)
}
/// <p>Inserts <i>value</i> at the beginning of the vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DInput::QAxis*>::prepend(const Qt3DInput::QAxis*& 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::QAxis) {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAxis_ptr_prepend(
self as *const crate::QVectorOfQAxis as *mut crate::QVectorOfQAxis,
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<Qt3DInput::QAxis*>::push_back(const Qt3DInput::QAxis*& 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::QAxis) {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAxis_ptr_push_back(
self as *const crate::QVectorOfQAxis as *mut crate::QVectorOfQAxis,
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<Qt3DInput::QAxis*>::push_front(const Qt3DInput::QAxis*& 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::QAxis) {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAxis_ptr_push_front(
self as *const crate::QVectorOfQAxis as *mut crate::QVectorOfQAxis,
t,
)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DInput::QAxis*>::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_input_ffi_QVector_Qt3DInput_QAxis_ptr_remove(
self as *const crate::QVectorOfQAxis as *mut crate::QVectorOfQAxis,
i,
)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DInput::QAxis*>::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_input_ffi_QVector_Qt3DInput_QAxis_ptr_remove1(
self as *const crate::QVectorOfQAxis as *mut crate::QVectorOfQAxis,
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<Qt3DInput::QAxis*>::removeAll(const Qt3DInput::QAxis*& 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::QAxis) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAxis_ptr_removeAll(
self as *const crate::QVectorOfQAxis as *mut crate::QVectorOfQAxis,
t,
)
}
/// <p>Removes the element at index position <i>i</i>. Equivalent to</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DInput::QAxis*>::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_input_ffi_QVector_Qt3DInput_QAxis_ptr_removeAt(
self as *const crate::QVectorOfQAxis as *mut crate::QVectorOfQAxis,
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<Qt3DInput::QAxis*>::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_input_ffi_QVector_Qt3DInput_QAxis_ptr_removeFirst(
self as *const crate::QVectorOfQAxis as *mut crate::QVectorOfQAxis,
)
}
/// <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<Qt3DInput::QAxis*>::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_input_ffi_QVector_Qt3DInput_QAxis_ptr_removeLast(
self as *const crate::QVectorOfQAxis as *mut crate::QVectorOfQAxis,
)
}
/// <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<Qt3DInput::QAxis*>::removeOne(const Qt3DInput::QAxis*& 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::QAxis) -> bool {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAxis_ptr_removeOne(
self as *const crate::QVectorOfQAxis as *mut crate::QVectorOfQAxis,
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<Qt3DInput::QAxis*>::replace(int i, const Qt3DInput::QAxis*& 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::QAxis) {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAxis_ptr_replace(
self as *const crate::QVectorOfQAxis as *mut crate::QVectorOfQAxis,
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<Qt3DInput::QAxis*>::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_input_ffi_QVector_Qt3DInput_QAxis_ptr_reserve(
self as *const crate::QVectorOfQAxis as *mut crate::QVectorOfQAxis,
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<Qt3DInput::QAxis*>::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_input_ffi_QVector_Qt3DInput_QAxis_ptr_resize(
self as *const crate::QVectorOfQAxis as *mut crate::QVectorOfQAxis,
size,
)
}
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DInput::QAxis*>::setSharable(bool sharable)```</span>.
#[inline(always)]
pub unsafe fn set_sharable(&self, sharable: bool) {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAxis_ptr_setSharable(
self as *const crate::QVectorOfQAxis as *mut crate::QVectorOfQAxis,
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<Qt3DInput::QAxis*>::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_input_ffi_QVector_Qt3DInput_QAxis_ptr_shrink_to_fit(
self as *const crate::QVectorOfQAxis as *mut crate::QVectorOfQAxis,
)
}
/// <p>Returns the number of items in the vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```int QVector<Qt3DInput::QAxis*>::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_input_ffi_QVector_Qt3DInput_QAxis_ptr_size(
self as *const crate::QVectorOfQAxis,
)
}
/// <p>Releases any memory not required to store the items.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DInput::QAxis*>::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_input_ffi_QVector_Qt3DInput_QAxis_ptr_squeeze(
self as *const crate::QVectorOfQAxis as *mut crate::QVectorOfQAxis,
)
}
/// <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<Qt3DInput::QAxis*>::startsWith(const Qt3DInput::QAxis*& 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::QAxis) -> bool {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAxis_ptr_startsWith(
self as *const crate::QVectorOfQAxis,
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<Qt3DInput::QAxis*>::swap(QVector<Qt3DInput::QAxis*>& 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::QVectorOfQAxis>>,
) {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAxis_ptr_swap(
self as *const crate::QVectorOfQAxis as *mut crate::QVectorOfQAxis,
::cpp_core::CastInto::<::cpp_core::Ref<crate::QVectorOfQAxis>>::cast_into(other)
.as_raw_ptr() as *mut crate::QVectorOfQAxis,
)
}
/// <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<Qt3DInput::QAxis*>::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_input_ffi_QVector_Qt3DInput_QAxis_ptr_swapItemsAt(
self as *const crate::QVectorOfQAxis as *mut crate::QVectorOfQAxis,
i,
j,
)
}
/// <p>Removes the element at index position <i>i</i> and returns it.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QAxis* QVector<Qt3DInput::QAxis*>::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::QAxis> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAxis_ptr_takeAt(
self as *const crate::QVectorOfQAxis as *mut crate::QVectorOfQAxis,
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;'>```Qt3DInput::QAxis* QVector<Qt3DInput::QAxis*>::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::QAxis> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAxis_ptr_takeFirst(
self as *const crate::QVectorOfQAxis as *mut crate::QVectorOfQAxis,
)
};
::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;'>```Qt3DInput::QAxis* QVector<Qt3DInput::QAxis*>::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::QAxis> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAxis_ptr_takeLast(
self as *const crate::QVectorOfQAxis as *mut crate::QVectorOfQAxis,
)
};
::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;'>```Qt3DInput::QAxis* QVector<Qt3DInput::QAxis*>::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::QAxis> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAxis_ptr_value(
self as *const crate::QVectorOfQAxis,
i,
)
};
::qt_core::QPtr::from_raw(ffi_result)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QAxis* QVector<Qt3DInput::QAxis*>::value(int i, const Qt3DInput::QAxis*& 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::QAxis,
) -> ::qt_core::QPtr<crate::QAxis> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAxis_ptr_value1(
self as *const crate::QVectorOfQAxis,
i,
default_value,
)
};
::qt_core::QPtr::from_raw(ffi_result)
}
}
impl ::qt_core::AsReceiver for crate::SignalOfQKeyEvent {
type Arguments = (*mut crate::QKeyEvent,);
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_(Qt3DInput::QKeyEvent *)\0",
),
)
}
}
}
impl crate::SignalOfQKeyEvent {
/// 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::QKeyEvent,): ::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::QKeyEvent,): ::qt_core::ArgumentsCompatible<R::Arguments>,
{
self.signal().connect(receiver)
}
}
/// Emits a Qt signal with arguments `*mut crate::QKeyEvent`.
///
/// Corresponding C++ argument types: (<span style='color: green;'>```Qt3DInput::QKeyEvent*```</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 SignalOfQKeyEvent {
_unused: u8,
}
impl SignalOfQKeyEvent {
/// 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::QKeyEvent,)> {
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_(Qt3DInput::QKeyEvent *)\0",
),
)
}
}
/// Emits the signal.
#[inline(always)]
pub unsafe fn emit(&self, arg0: impl ::cpp_core::CastInto<::cpp_core::Ptr<crate::QKeyEvent>>) {
crate::__ffi::ctr_qt_3d_input_ffi_ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QKeyEvent_ptr_emit_(self as *const crate::SignalOfQKeyEvent as *mut crate::SignalOfQKeyEvent, ::cpp_core::CastInto::<::cpp_core::Ptr<crate::QKeyEvent>>::cast_into(arg0).as_raw_ptr() as *mut crate::QKeyEvent)
}
#[inline(always)]
pub unsafe fn meta_object(&self) -> ::cpp_core::Ptr<::qt_core::QMetaObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QKeyEvent_ptr_metaObject(self as *const crate::SignalOfQKeyEvent)
};
::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::SignalOfQKeyEvent> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QKeyEvent_ptr_ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QKeyEvent_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_input_ffi_ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QKeyEvent_ptr_qt_metacall(self as *const crate::SignalOfQKeyEvent as *mut crate::SignalOfQKeyEvent, 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_input_ffi_ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QKeyEvent_ptr_qt_metacast(self as *const crate::SignalOfQKeyEvent as *mut crate::SignalOfQKeyEvent, arg1)
}
#[inline(always)]
pub unsafe fn static_meta_object() -> ::cpp_core::Ref<::qt_core::QMetaObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QKeyEvent_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_input_ffi_ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QKeyEvent_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_input_ffi_ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QKeyEvent_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::SignalOfQMouseDevice {
type Arguments = (*mut crate::QMouseDevice,);
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_(Qt3DInput::QMouseDevice *)\0",
),
)
}
}
}
impl crate::SignalOfQMouseDevice {
/// 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::QMouseDevice,): ::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::QMouseDevice,): ::qt_core::ArgumentsCompatible<R::Arguments>,
{
self.signal().connect(receiver)
}
}
/// Emits a Qt signal with arguments `*mut crate::QMouseDevice`.
///
/// Corresponding C++ argument types: (<span style='color: green;'>```Qt3DInput::QMouseDevice*```</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 SignalOfQMouseDevice {
_unused: u8,
}
impl SignalOfQMouseDevice {
/// 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::QMouseDevice,)> {
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_(Qt3DInput::QMouseDevice *)\0",
),
)
}
}
/// Emits the signal.
#[inline(always)]
pub unsafe fn emit(
&self,
arg0: impl ::cpp_core::CastInto<::cpp_core::Ptr<crate::QMouseDevice>>,
) {
crate::__ffi::ctr_qt_3d_input_ffi_ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QMouseDevice_ptr_emit_(self as *const crate::SignalOfQMouseDevice as *mut crate::SignalOfQMouseDevice, ::cpp_core::CastInto::<::cpp_core::Ptr<crate::QMouseDevice>>::cast_into(arg0).as_raw_ptr() as *mut crate::QMouseDevice)
}
#[inline(always)]
pub unsafe fn meta_object(&self) -> ::cpp_core::Ptr<::qt_core::QMetaObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QMouseDevice_ptr_metaObject(self as *const crate::SignalOfQMouseDevice)
};
::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::SignalOfQMouseDevice> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QMouseDevice_ptr_ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QMouseDevice_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_input_ffi_ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QMouseDevice_ptr_qt_metacall(self as *const crate::SignalOfQMouseDevice as *mut crate::SignalOfQMouseDevice, 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_input_ffi_ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QMouseDevice_ptr_qt_metacast(self as *const crate::SignalOfQMouseDevice as *mut crate::SignalOfQMouseDevice, arg1)
}
#[inline(always)]
pub unsafe fn static_meta_object() -> ::cpp_core::Ref<::qt_core::QMetaObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QMouseDevice_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_input_ffi_ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QMouseDevice_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_input_ffi_ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QMouseDevice_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::SignalOfQKeyboardHandler {
type Arguments = (*mut crate::QKeyboardHandler,);
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_(Qt3DInput::QKeyboardHandler *)\0",
),
)
}
}
}
impl crate::SignalOfQKeyboardHandler {
/// 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::QKeyboardHandler,): ::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::QKeyboardHandler,): ::qt_core::ArgumentsCompatible<R::Arguments>,
{
self.signal().connect(receiver)
}
}
/// Emits a Qt signal with arguments `*mut crate::QKeyboardHandler`.
///
/// Corresponding C++ argument types: (<span style='color: green;'>```Qt3DInput::QKeyboardHandler*```</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 SignalOfQKeyboardHandler {
_unused: u8,
}
impl SignalOfQKeyboardHandler {
/// 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::QKeyboardHandler,)> {
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_(Qt3DInput::QKeyboardHandler *)\0",
),
)
}
}
/// Emits the signal.
#[inline(always)]
pub unsafe fn emit(
&self,
arg0: impl ::cpp_core::CastInto<::cpp_core::Ptr<crate::QKeyboardHandler>>,
) {
crate::__ffi::ctr_qt_3d_input_ffi_ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QKeyboardHandler_ptr_emit_(self as *const crate::SignalOfQKeyboardHandler as *mut crate::SignalOfQKeyboardHandler, ::cpp_core::CastInto::<::cpp_core::Ptr<crate::QKeyboardHandler>>::cast_into(arg0).as_raw_ptr() as *mut crate::QKeyboardHandler)
}
#[inline(always)]
pub unsafe fn meta_object(&self) -> ::cpp_core::Ptr<::qt_core::QMetaObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QKeyboardHandler_ptr_metaObject(self as *const crate::SignalOfQKeyboardHandler)
};
::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::SignalOfQKeyboardHandler> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QKeyboardHandler_ptr_ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QKeyboardHandler_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_input_ffi_ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QKeyboardHandler_ptr_qt_metacall(self as *const crate::SignalOfQKeyboardHandler as *mut crate::SignalOfQKeyboardHandler, 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_input_ffi_ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QKeyboardHandler_ptr_qt_metacast(self as *const crate::SignalOfQKeyboardHandler as *mut crate::SignalOfQKeyboardHandler, arg1)
}
#[inline(always)]
pub unsafe fn static_meta_object() -> ::cpp_core::Ref<::qt_core::QMetaObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QKeyboardHandler_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_input_ffi_ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QKeyboardHandler_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_input_ffi_ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QKeyboardHandler_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::SignalOfQWheelEvent {
type Arguments = (*mut crate::QWheelEvent,);
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_(Qt3DInput::QWheelEvent *)\0",
),
)
}
}
}
impl crate::SignalOfQWheelEvent {
/// 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::QWheelEvent,): ::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::QWheelEvent,): ::qt_core::ArgumentsCompatible<R::Arguments>,
{
self.signal().connect(receiver)
}
}
/// Emits a Qt signal with arguments `*mut crate::QWheelEvent`.
///
/// Corresponding C++ argument types: (<span style='color: green;'>```Qt3DInput::QWheelEvent*```</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 SignalOfQWheelEvent {
_unused: u8,
}
impl SignalOfQWheelEvent {
/// 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::QWheelEvent,)> {
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_(Qt3DInput::QWheelEvent *)\0",
),
)
}
}
/// Emits the signal.
#[inline(always)]
pub unsafe fn emit(
&self,
arg0: impl ::cpp_core::CastInto<::cpp_core::Ptr<crate::QWheelEvent>>,
) {
crate::__ffi::ctr_qt_3d_input_ffi_ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QWheelEvent_ptr_emit_(self as *const crate::SignalOfQWheelEvent as *mut crate::SignalOfQWheelEvent, ::cpp_core::CastInto::<::cpp_core::Ptr<crate::QWheelEvent>>::cast_into(arg0).as_raw_ptr() as *mut crate::QWheelEvent)
}
#[inline(always)]
pub unsafe fn meta_object(&self) -> ::cpp_core::Ptr<::qt_core::QMetaObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QWheelEvent_ptr_metaObject(self as *const crate::SignalOfQWheelEvent)
};
::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::SignalOfQWheelEvent> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QWheelEvent_ptr_ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QWheelEvent_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_input_ffi_ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QWheelEvent_ptr_qt_metacall(self as *const crate::SignalOfQWheelEvent as *mut crate::SignalOfQWheelEvent, 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_input_ffi_ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QWheelEvent_ptr_qt_metacast(self as *const crate::SignalOfQWheelEvent as *mut crate::SignalOfQWheelEvent, arg1)
}
#[inline(always)]
pub unsafe fn static_meta_object() -> ::cpp_core::Ref<::qt_core::QMetaObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QWheelEvent_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_input_ffi_ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QWheelEvent_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_input_ffi_ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QWheelEvent_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::SignalOfQKeyboardDevice {
type Arguments = (*mut crate::QKeyboardDevice,);
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_(Qt3DInput::QKeyboardDevice *)\0",
),
)
}
}
}
impl crate::SignalOfQKeyboardDevice {
/// 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::QKeyboardDevice,): ::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::QKeyboardDevice,): ::qt_core::ArgumentsCompatible<R::Arguments>,
{
self.signal().connect(receiver)
}
}
/// Emits a Qt signal with arguments `*mut crate::QKeyboardDevice`.
///
/// Corresponding C++ argument types: (<span style='color: green;'>```Qt3DInput::QKeyboardDevice*```</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 SignalOfQKeyboardDevice {
_unused: u8,
}
impl SignalOfQKeyboardDevice {
/// 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::QKeyboardDevice,)> {
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_(Qt3DInput::QKeyboardDevice *)\0",
),
)
}
}
/// Emits the signal.
#[inline(always)]
pub unsafe fn emit(
&self,
arg0: impl ::cpp_core::CastInto<::cpp_core::Ptr<crate::QKeyboardDevice>>,
) {
crate::__ffi::ctr_qt_3d_input_ffi_ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QKeyboardDevice_ptr_emit_(self as *const crate::SignalOfQKeyboardDevice as *mut crate::SignalOfQKeyboardDevice, ::cpp_core::CastInto::<::cpp_core::Ptr<crate::QKeyboardDevice>>::cast_into(arg0).as_raw_ptr() as *mut crate::QKeyboardDevice)
}
#[inline(always)]
pub unsafe fn meta_object(&self) -> ::cpp_core::Ptr<::qt_core::QMetaObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QKeyboardDevice_ptr_metaObject(self as *const crate::SignalOfQKeyboardDevice)
};
::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::SignalOfQKeyboardDevice> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QKeyboardDevice_ptr_ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QKeyboardDevice_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_input_ffi_ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QKeyboardDevice_ptr_qt_metacall(self as *const crate::SignalOfQKeyboardDevice as *mut crate::SignalOfQKeyboardDevice, 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_input_ffi_ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QKeyboardDevice_ptr_qt_metacast(self as *const crate::SignalOfQKeyboardDevice as *mut crate::SignalOfQKeyboardDevice, arg1)
}
#[inline(always)]
pub unsafe fn static_meta_object() -> ::cpp_core::Ref<::qt_core::QMetaObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QKeyboardDevice_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_input_ffi_ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QKeyboardDevice_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_input_ffi_ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QKeyboardDevice_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::SignalOfQAbstractPhysicalDevice {
type Arguments = (*mut crate::QAbstractPhysicalDevice,);
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_(Qt3DInput::QAbstractPhysicalDevice *)\0",
),
)
}
}
}
impl crate::SignalOfQAbstractPhysicalDevice {
/// 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::QAbstractPhysicalDevice,): ::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::QAbstractPhysicalDevice,): ::qt_core::ArgumentsCompatible<R::Arguments>,
{
self.signal().connect(receiver)
}
}
/// Emits a Qt signal with arguments `*mut crate::QAbstractPhysicalDevice`.
///
/// Corresponding C++ argument types: (<span style='color: green;'>```Qt3DInput::QAbstractPhysicalDevice*```</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 SignalOfQAbstractPhysicalDevice {
_unused: u8,
}
impl SignalOfQAbstractPhysicalDevice {
/// 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::QAbstractPhysicalDevice,)> {
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_(Qt3DInput::QAbstractPhysicalDevice *)\0",
),
)
}
}
/// Emits the signal.
#[inline(always)]
pub unsafe fn emit(
&self,
arg0: impl ::cpp_core::CastInto<::cpp_core::Ptr<crate::QAbstractPhysicalDevice>>,
) {
crate::__ffi::ctr_qt_3d_input_ffi_ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QAbstractPhysicalDevice_ptr_emit_(self as *const crate::SignalOfQAbstractPhysicalDevice as *mut crate::SignalOfQAbstractPhysicalDevice, ::cpp_core::CastInto::<::cpp_core::Ptr<crate::QAbstractPhysicalDevice>>::cast_into(arg0).as_raw_ptr() as *mut crate::QAbstractPhysicalDevice)
}
#[inline(always)]
pub unsafe fn meta_object(&self) -> ::cpp_core::Ptr<::qt_core::QMetaObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QAbstractPhysicalDevice_ptr_metaObject(self as *const crate::SignalOfQAbstractPhysicalDevice)
};
::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::SignalOfQAbstractPhysicalDevice> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QAbstractPhysicalDevice_ptr_ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QAbstractPhysicalDevice_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_input_ffi_ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QAbstractPhysicalDevice_ptr_qt_metacall(self as *const crate::SignalOfQAbstractPhysicalDevice as *mut crate::SignalOfQAbstractPhysicalDevice, 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_input_ffi_ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QAbstractPhysicalDevice_ptr_qt_metacast(self as *const crate::SignalOfQAbstractPhysicalDevice as *mut crate::SignalOfQAbstractPhysicalDevice, arg1)
}
#[inline(always)]
pub unsafe fn static_meta_object() -> ::cpp_core::Ref<::qt_core::QMetaObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QAbstractPhysicalDevice_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_input_ffi_ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QAbstractPhysicalDevice_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_input_ffi_ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QAbstractPhysicalDevice_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::SignalOfSourceAxisType {
type Arguments = (crate::q_axis_accumulator::SourceAxisType,);
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_(Qt3DInput::QAxisAccumulator::SourceAxisType)\0",
),
)
}
}
}
impl crate::SignalOfSourceAxisType {
/// 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_axis_accumulator::SourceAxisType,): ::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_axis_accumulator::SourceAxisType,): ::qt_core::ArgumentsCompatible<R::Arguments>,
{
self.signal().connect(receiver)
}
}
/// Emits a Qt signal with arguments `crate::q_axis_accumulator::SourceAxisType`.
///
/// Corresponding C++ argument types: (<span style='color: green;'>```Qt3DInput::QAxisAccumulator::SourceAxisType```</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 SignalOfSourceAxisType {
_unused: u8,
}
impl SignalOfSourceAxisType {
/// 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_axis_accumulator::SourceAxisType,)> {
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_(Qt3DInput::QAxisAccumulator::SourceAxisType)\0",
),
)
}
}
/// Emits the signal.
#[inline(always)]
pub unsafe fn emit(&self, arg0: crate::q_axis_accumulator::SourceAxisType) {
crate::__ffi::ctr_qt_3d_input_ffi_ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QAxisAccumulator_SourceAxisType_emit_(self as *const crate::SignalOfSourceAxisType as *mut crate::SignalOfSourceAxisType, arg0)
}
#[inline(always)]
pub unsafe fn meta_object(&self) -> ::cpp_core::Ptr<::qt_core::QMetaObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QAxisAccumulator_SourceAxisType_metaObject(self as *const crate::SignalOfSourceAxisType)
};
::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::SignalOfSourceAxisType> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QAxisAccumulator_SourceAxisType_ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QAxisAccumulator_SourceAxisType()
};
::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_input_ffi_ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QAxisAccumulator_SourceAxisType_qt_metacall(self as *const crate::SignalOfSourceAxisType as *mut crate::SignalOfSourceAxisType, 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_input_ffi_ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QAxisAccumulator_SourceAxisType_qt_metacast(self as *const crate::SignalOfSourceAxisType as *mut crate::SignalOfSourceAxisType, arg1)
}
#[inline(always)]
pub unsafe fn static_meta_object() -> ::cpp_core::Ref<::qt_core::QMetaObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QAxisAccumulator_SourceAxisType_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_input_ffi_ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QAxisAccumulator_SourceAxisType_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_input_ffi_ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QAxisAccumulator_SourceAxisType_trUtf8(s, c, n)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
}
impl ::qt_core::AsReceiver for crate::SignalOfQMouseEvent {
type Arguments = (*mut crate::QMouseEvent,);
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_(Qt3DInput::QMouseEvent *)\0",
),
)
}
}
}
impl crate::SignalOfQMouseEvent {
/// 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::QMouseEvent,): ::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::QMouseEvent,): ::qt_core::ArgumentsCompatible<R::Arguments>,
{
self.signal().connect(receiver)
}
}
/// Emits a Qt signal with arguments `*mut crate::QMouseEvent`.
///
/// Corresponding C++ argument types: (<span style='color: green;'>```Qt3DInput::QMouseEvent*```</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 SignalOfQMouseEvent {
_unused: u8,
}
impl SignalOfQMouseEvent {
/// 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::QMouseEvent,)> {
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_(Qt3DInput::QMouseEvent *)\0",
),
)
}
}
/// Emits the signal.
#[inline(always)]
pub unsafe fn emit(
&self,
arg0: impl ::cpp_core::CastInto<::cpp_core::Ptr<crate::QMouseEvent>>,
) {
crate::__ffi::ctr_qt_3d_input_ffi_ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QMouseEvent_ptr_emit_(self as *const crate::SignalOfQMouseEvent as *mut crate::SignalOfQMouseEvent, ::cpp_core::CastInto::<::cpp_core::Ptr<crate::QMouseEvent>>::cast_into(arg0).as_raw_ptr() as *mut crate::QMouseEvent)
}
#[inline(always)]
pub unsafe fn meta_object(&self) -> ::cpp_core::Ptr<::qt_core::QMetaObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QMouseEvent_ptr_metaObject(self as *const crate::SignalOfQMouseEvent)
};
::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::SignalOfQMouseEvent> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QMouseEvent_ptr_ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QMouseEvent_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_input_ffi_ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QMouseEvent_ptr_qt_metacall(self as *const crate::SignalOfQMouseEvent as *mut crate::SignalOfQMouseEvent, 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_input_ffi_ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QMouseEvent_ptr_qt_metacast(self as *const crate::SignalOfQMouseEvent as *mut crate::SignalOfQMouseEvent, arg1)
}
#[inline(always)]
pub unsafe fn static_meta_object() -> ::cpp_core::Ref<::qt_core::QMetaObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QMouseEvent_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_input_ffi_ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QMouseEvent_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_input_ffi_ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QMouseEvent_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::SignalOfQVectorOfInt {
type Arguments = (*const ::qt_core::QVectorOfInt,);
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_(QVector< int > const &)\0",
),
)
}
}
}
impl crate::SignalOfQVectorOfInt {
/// 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_core::QVectorOfInt,): ::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_core::QVectorOfInt,): ::qt_core::ArgumentsCompatible<R::Arguments>,
{
self.signal().connect(receiver)
}
}
/// Emits a Qt signal with arguments `*const ::qt_core::QVectorOfInt`.
///
/// Corresponding C++ argument types: (<span style='color: green;'>```const QVector<int>&```</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 SignalOfQVectorOfInt {
_unused: u8,
}
impl SignalOfQVectorOfInt {
/// 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_core::QVectorOfInt,)> {
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_(QVector< int > const &)\0",
),
)
}
}
/// Emits the signal.
#[inline(always)]
pub unsafe fn emit(
&self,
arg0: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_core::QVectorOfInt>>,
) {
crate::__ffi::ctr_qt_3d_input_ffi_ctr_qt_3d_input_ffi_signal_wrapper_QVector_int_const_ref_emit_(self as *const crate::SignalOfQVectorOfInt as *mut crate::SignalOfQVectorOfInt, ::cpp_core::CastInto::<::cpp_core::Ref<::qt_core::QVectorOfInt>>::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_input_ffi_ctr_qt_3d_input_ffi_signal_wrapper_QVector_int_const_ref_metaObject(self as *const crate::SignalOfQVectorOfInt)
};
::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::SignalOfQVectorOfInt> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_ctr_qt_3d_input_ffi_signal_wrapper_QVector_int_const_ref_ctr_qt_3d_input_ffi_signal_wrapper_QVector_int_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_input_ffi_ctr_qt_3d_input_ffi_signal_wrapper_QVector_int_const_ref_qt_metacall(self as *const crate::SignalOfQVectorOfInt as *mut crate::SignalOfQVectorOfInt, 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_input_ffi_ctr_qt_3d_input_ffi_signal_wrapper_QVector_int_const_ref_qt_metacast(self as *const crate::SignalOfQVectorOfInt as *mut crate::SignalOfQVectorOfInt, arg1)
}
#[inline(always)]
pub unsafe fn static_meta_object() -> ::cpp_core::Ref<::qt_core::QMetaObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_ctr_qt_3d_input_ffi_signal_wrapper_QVector_int_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_input_ffi_ctr_qt_3d_input_ffi_signal_wrapper_QVector_int_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_input_ffi_ctr_qt_3d_input_ffi_signal_wrapper_QVector_int_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::SignalOfQAxis {
type Arguments = (*mut crate::QAxis,);
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_(Qt3DInput::QAxis *)\0"),
)
}
}
}
impl crate::SignalOfQAxis {
/// 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::QAxis,): ::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::QAxis,): ::qt_core::ArgumentsCompatible<R::Arguments>,
{
self.signal().connect(receiver)
}
}
/// Emits a Qt signal with arguments `*mut crate::QAxis`.
///
/// Corresponding C++ argument types: (<span style='color: green;'>```Qt3DInput::QAxis*```</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 SignalOfQAxis {
_unused: u8,
}
impl SignalOfQAxis {
/// 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::QAxis,)> {
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_(Qt3DInput::QAxis *)\0"),
)
}
}
/// Emits the signal.
#[inline(always)]
pub unsafe fn emit(&self, arg0: impl ::cpp_core::CastInto<::cpp_core::Ptr<crate::QAxis>>) {
crate::__ffi::ctr_qt_3d_input_ffi_ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QAxis_ptr_emit_(self as *const crate::SignalOfQAxis as *mut crate::SignalOfQAxis, ::cpp_core::CastInto::<::cpp_core::Ptr<crate::QAxis>>::cast_into(arg0).as_raw_ptr() as *mut crate::QAxis)
}
#[inline(always)]
pub unsafe fn meta_object(&self) -> ::cpp_core::Ptr<::qt_core::QMetaObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QAxis_ptr_metaObject(self as *const crate::SignalOfQAxis)
};
::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::SignalOfQAxis> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QAxis_ptr_ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QAxis_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_input_ffi_ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QAxis_ptr_qt_metacall(self as *const crate::SignalOfQAxis as *mut crate::SignalOfQAxis, 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_input_ffi_ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QAxis_ptr_qt_metacast(self as *const crate::SignalOfQAxis as *mut crate::SignalOfQAxis, arg1)
}
#[inline(always)]
pub unsafe fn static_meta_object() -> ::cpp_core::Ref<::qt_core::QMetaObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QAxis_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_input_ffi_ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QAxis_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_input_ffi_ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QAxis_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::SlotOfQAxis {
type Arguments = (*mut crate::QAxis,);
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_(Qt3DInput::QAxis *)\0"),
)
}
}
}
/// Binds a Qt signal with arguments `*mut crate::QAxis` to a Rust closure.
///
/// Corresponding C++ argument types: (<span style='color: green;'>```Qt3DInput::QAxis*```</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 SlotOfQAxis {
_unused: u8,
}
impl SlotOfQAxis {
#[inline(always)]
pub unsafe fn meta_object(&self) -> ::cpp_core::Ptr<::qt_core::QMetaObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QAxis_ptr_metaObject(self as *const crate::SlotOfQAxis)
};
::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::QAxis>) + 'static>(
parent: impl ::cpp_core::CastInto<::cpp_core::Ptr<::qt_core::QObject>>,
callback: T,
) -> ::qt_core::QBox<crate::SlotOfQAxis> {
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::QAxis>) + 'static>(
data: *mut ::std::ffi::c_void,
arg0: *mut crate::QAxis,
) {
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_input_ffi_ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QAxis_ptr_ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QAxis_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_input_ffi_ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QAxis_ptr_qt_metacall(self as *const crate::SlotOfQAxis as *mut crate::SlotOfQAxis, 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_input_ffi_ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QAxis_ptr_qt_metacast(self as *const crate::SlotOfQAxis as *mut crate::SlotOfQAxis, 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::QAxis>) + '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::QAxis>) + 'static>(
data: *mut ::std::ffi::c_void,
arg0: *mut crate::QAxis,
) {
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_input_ffi_ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QAxis_ptr_set(
self as *const crate::SlotOfQAxis as *mut crate::SlotOfQAxis,
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::QAxis>>) {
crate::__ffi::ctr_qt_3d_input_ffi_ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QAxis_ptr_slot_(
self as *const crate::SlotOfQAxis as *mut crate::SlotOfQAxis,
::cpp_core::CastInto::<::cpp_core::Ptr<crate::QAxis>>::cast_into(arg0).as_raw_ptr()
as *mut crate::QAxis,
)
}
#[inline(always)]
pub unsafe fn static_meta_object() -> ::cpp_core::Ref<::qt_core::QMetaObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QAxis_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_input_ffi_ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QAxis_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_input_ffi_ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QAxis_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::SlotOfQAbstractPhysicalDevice {
type Arguments = (*mut crate::QAbstractPhysicalDevice,);
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_(Qt3DInput::QAbstractPhysicalDevice *)\0",
),
)
}
}
}
/// Binds a Qt signal with arguments `*mut crate::QAbstractPhysicalDevice` to a Rust closure.
///
/// Corresponding C++ argument types: (<span style='color: green;'>```Qt3DInput::QAbstractPhysicalDevice*```</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 SlotOfQAbstractPhysicalDevice {
_unused: u8,
}
impl SlotOfQAbstractPhysicalDevice {
#[inline(always)]
pub unsafe fn meta_object(&self) -> ::cpp_core::Ptr<::qt_core::QMetaObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QAbstractPhysicalDevice_ptr_metaObject(self as *const crate::SlotOfQAbstractPhysicalDevice)
};
::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::QAbstractPhysicalDevice>) + 'static>(
parent: impl ::cpp_core::CastInto<::cpp_core::Ptr<::qt_core::QObject>>,
callback: T,
) -> ::qt_core::QBox<crate::SlotOfQAbstractPhysicalDevice> {
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::QAbstractPhysicalDevice>) + 'static,
>(
data: *mut ::std::ffi::c_void,
arg0: *mut crate::QAbstractPhysicalDevice,
) {
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_input_ffi_ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QAbstractPhysicalDevice_ptr_ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QAbstractPhysicalDevice_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_input_ffi_ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QAbstractPhysicalDevice_ptr_qt_metacall(self as *const crate::SlotOfQAbstractPhysicalDevice as *mut crate::SlotOfQAbstractPhysicalDevice, 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_input_ffi_ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QAbstractPhysicalDevice_ptr_qt_metacast(self as *const crate::SlotOfQAbstractPhysicalDevice as *mut crate::SlotOfQAbstractPhysicalDevice, 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::QAbstractPhysicalDevice>) + '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::QAbstractPhysicalDevice>) + 'static,
>(
data: *mut ::std::ffi::c_void,
arg0: *mut crate::QAbstractPhysicalDevice,
) {
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_input_ffi_ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QAbstractPhysicalDevice_ptr_set(self as *const crate::SlotOfQAbstractPhysicalDevice as *mut crate::SlotOfQAbstractPhysicalDevice, 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::QAbstractPhysicalDevice>>,
) {
crate::__ffi::ctr_qt_3d_input_ffi_ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QAbstractPhysicalDevice_ptr_slot_(self as *const crate::SlotOfQAbstractPhysicalDevice as *mut crate::SlotOfQAbstractPhysicalDevice, ::cpp_core::CastInto::<::cpp_core::Ptr<crate::QAbstractPhysicalDevice>>::cast_into(arg0).as_raw_ptr() as *mut crate::QAbstractPhysicalDevice)
}
#[inline(always)]
pub unsafe fn static_meta_object() -> ::cpp_core::Ref<::qt_core::QMetaObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QAbstractPhysicalDevice_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_input_ffi_ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QAbstractPhysicalDevice_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_input_ffi_ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QAbstractPhysicalDevice_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::SlotOfQKeyboardDevice {
type Arguments = (*mut crate::QKeyboardDevice,);
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_(Qt3DInput::QKeyboardDevice *)\0",
),
)
}
}
}
/// Binds a Qt signal with arguments `*mut crate::QKeyboardDevice` to a Rust closure.
///
/// Corresponding C++ argument types: (<span style='color: green;'>```Qt3DInput::QKeyboardDevice*```</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 SlotOfQKeyboardDevice {
_unused: u8,
}
impl SlotOfQKeyboardDevice {
#[inline(always)]
pub unsafe fn meta_object(&self) -> ::cpp_core::Ptr<::qt_core::QMetaObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QKeyboardDevice_ptr_metaObject(self as *const crate::SlotOfQKeyboardDevice)
};
::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::QKeyboardDevice>) + 'static>(
parent: impl ::cpp_core::CastInto<::cpp_core::Ptr<::qt_core::QObject>>,
callback: T,
) -> ::qt_core::QBox<crate::SlotOfQKeyboardDevice> {
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::QKeyboardDevice>) + 'static,
>(
data: *mut ::std::ffi::c_void,
arg0: *mut crate::QKeyboardDevice,
) {
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_input_ffi_ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QKeyboardDevice_ptr_ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QKeyboardDevice_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_input_ffi_ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QKeyboardDevice_ptr_qt_metacall(self as *const crate::SlotOfQKeyboardDevice as *mut crate::SlotOfQKeyboardDevice, 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_input_ffi_ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QKeyboardDevice_ptr_qt_metacast(self as *const crate::SlotOfQKeyboardDevice as *mut crate::SlotOfQKeyboardDevice, 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::QKeyboardDevice>) + '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::QKeyboardDevice>) + 'static>(
data: *mut ::std::ffi::c_void,
arg0: *mut crate::QKeyboardDevice,
) {
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_input_ffi_ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QKeyboardDevice_ptr_set(self as *const crate::SlotOfQKeyboardDevice as *mut crate::SlotOfQKeyboardDevice, 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::QKeyboardDevice>>,
) {
crate::__ffi::ctr_qt_3d_input_ffi_ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QKeyboardDevice_ptr_slot_(self as *const crate::SlotOfQKeyboardDevice as *mut crate::SlotOfQKeyboardDevice, ::cpp_core::CastInto::<::cpp_core::Ptr<crate::QKeyboardDevice>>::cast_into(arg0).as_raw_ptr() as *mut crate::QKeyboardDevice)
}
#[inline(always)]
pub unsafe fn static_meta_object() -> ::cpp_core::Ref<::qt_core::QMetaObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QKeyboardDevice_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_input_ffi_ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QKeyboardDevice_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_input_ffi_ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QKeyboardDevice_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::SlotOfQWheelEvent {
type Arguments = (*mut crate::QWheelEvent,);
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_(Qt3DInput::QWheelEvent *)\0",
),
)
}
}
}
/// Binds a Qt signal with arguments `*mut crate::QWheelEvent` to a Rust closure.
///
/// Corresponding C++ argument types: (<span style='color: green;'>```Qt3DInput::QWheelEvent*```</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 SlotOfQWheelEvent {
_unused: u8,
}
impl SlotOfQWheelEvent {
#[inline(always)]
pub unsafe fn meta_object(&self) -> ::cpp_core::Ptr<::qt_core::QMetaObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QWheelEvent_ptr_metaObject(self as *const crate::SlotOfQWheelEvent)
};
::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::QWheelEvent>) + 'static>(
parent: impl ::cpp_core::CastInto<::cpp_core::Ptr<::qt_core::QObject>>,
callback: T,
) -> ::qt_core::QBox<crate::SlotOfQWheelEvent> {
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::QWheelEvent>) + 'static>(
data: *mut ::std::ffi::c_void,
arg0: *mut crate::QWheelEvent,
) {
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_input_ffi_ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QWheelEvent_ptr_ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QWheelEvent_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_input_ffi_ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QWheelEvent_ptr_qt_metacall(self as *const crate::SlotOfQWheelEvent as *mut crate::SlotOfQWheelEvent, 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_input_ffi_ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QWheelEvent_ptr_qt_metacast(self as *const crate::SlotOfQWheelEvent as *mut crate::SlotOfQWheelEvent, 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::QWheelEvent>) + '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::QWheelEvent>) + 'static>(
data: *mut ::std::ffi::c_void,
arg0: *mut crate::QWheelEvent,
) {
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_input_ffi_ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QWheelEvent_ptr_set(self as *const crate::SlotOfQWheelEvent as *mut crate::SlotOfQWheelEvent, 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::QWheelEvent>>,
) {
crate::__ffi::ctr_qt_3d_input_ffi_ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QWheelEvent_ptr_slot_(self as *const crate::SlotOfQWheelEvent as *mut crate::SlotOfQWheelEvent, ::cpp_core::CastInto::<::cpp_core::Ptr<crate::QWheelEvent>>::cast_into(arg0).as_raw_ptr() as *mut crate::QWheelEvent)
}
#[inline(always)]
pub unsafe fn static_meta_object() -> ::cpp_core::Ref<::qt_core::QMetaObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QWheelEvent_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_input_ffi_ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QWheelEvent_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_input_ffi_ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QWheelEvent_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::SlotOfSourceAxisType {
type Arguments = (crate::q_axis_accumulator::SourceAxisType,);
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_(Qt3DInput::QAxisAccumulator::SourceAxisType)\0",
),
)
}
}
}
/// Binds a Qt signal with arguments `crate::q_axis_accumulator::SourceAxisType` to a Rust closure.
///
/// Corresponding C++ argument types: (<span style='color: green;'>```Qt3DInput::QAxisAccumulator::SourceAxisType```</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 SlotOfSourceAxisType {
_unused: u8,
}
impl SlotOfSourceAxisType {
#[inline(always)]
pub unsafe fn meta_object(&self) -> ::cpp_core::Ptr<::qt_core::QMetaObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QAxisAccumulator_SourceAxisType_metaObject(self as *const crate::SlotOfSourceAxisType)
};
::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_axis_accumulator::SourceAxisType) + 'static>(
parent: impl ::cpp_core::CastInto<::cpp_core::Ptr<::qt_core::QObject>>,
callback: T,
) -> ::qt_core::QBox<crate::SlotOfSourceAxisType> {
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_axis_accumulator::SourceAxisType) + 'static,
>(
data: *mut ::std::ffi::c_void,
arg0: crate::q_axis_accumulator::SourceAxisType,
) {
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_input_ffi_ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QAxisAccumulator_SourceAxisType_ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QAxisAccumulator_SourceAxisType(::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_input_ffi_ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QAxisAccumulator_SourceAxisType_qt_metacall(self as *const crate::SlotOfSourceAxisType as *mut crate::SlotOfSourceAxisType, 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_input_ffi_ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QAxisAccumulator_SourceAxisType_qt_metacast(self as *const crate::SlotOfSourceAxisType as *mut crate::SlotOfSourceAxisType, 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_axis_accumulator::SourceAxisType) + '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_axis_accumulator::SourceAxisType) + 'static,
>(
data: *mut ::std::ffi::c_void,
arg0: crate::q_axis_accumulator::SourceAxisType,
) {
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_input_ffi_ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QAxisAccumulator_SourceAxisType_set(self as *const crate::SlotOfSourceAxisType as *mut crate::SlotOfSourceAxisType, 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_axis_accumulator::SourceAxisType) {
crate::__ffi::ctr_qt_3d_input_ffi_ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QAxisAccumulator_SourceAxisType_slot_(self as *const crate::SlotOfSourceAxisType as *mut crate::SlotOfSourceAxisType, arg0)
}
#[inline(always)]
pub unsafe fn static_meta_object() -> ::cpp_core::Ref<::qt_core::QMetaObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QAxisAccumulator_SourceAxisType_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_input_ffi_ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QAxisAccumulator_SourceAxisType_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_input_ffi_ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QAxisAccumulator_SourceAxisType_trUtf8(s, c, n)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
}
impl ::qt_core::AsReceiver for crate::SlotOfQKeyEvent {
type Arguments = (*mut crate::QKeyEvent,);
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_(Qt3DInput::QKeyEvent *)\0",
),
)
}
}
}
/// Binds a Qt signal with arguments `*mut crate::QKeyEvent` to a Rust closure.
///
/// Corresponding C++ argument types: (<span style='color: green;'>```Qt3DInput::QKeyEvent*```</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 SlotOfQKeyEvent {
_unused: u8,
}
impl SlotOfQKeyEvent {
#[inline(always)]
pub unsafe fn meta_object(&self) -> ::cpp_core::Ptr<::qt_core::QMetaObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QKeyEvent_ptr_metaObject(self as *const crate::SlotOfQKeyEvent)
};
::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::QKeyEvent>) + 'static>(
parent: impl ::cpp_core::CastInto<::cpp_core::Ptr<::qt_core::QObject>>,
callback: T,
) -> ::qt_core::QBox<crate::SlotOfQKeyEvent> {
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::QKeyEvent>) + 'static>(
data: *mut ::std::ffi::c_void,
arg0: *mut crate::QKeyEvent,
) {
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_input_ffi_ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QKeyEvent_ptr_ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QKeyEvent_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_input_ffi_ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QKeyEvent_ptr_qt_metacall(self as *const crate::SlotOfQKeyEvent as *mut crate::SlotOfQKeyEvent, 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_input_ffi_ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QKeyEvent_ptr_qt_metacast(self as *const crate::SlotOfQKeyEvent as *mut crate::SlotOfQKeyEvent, 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::QKeyEvent>) + '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::QKeyEvent>) + 'static>(
data: *mut ::std::ffi::c_void,
arg0: *mut crate::QKeyEvent,
) {
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_input_ffi_ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QKeyEvent_ptr_set(self as *const crate::SlotOfQKeyEvent as *mut crate::SlotOfQKeyEvent, 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::QKeyEvent>>) {
crate::__ffi::ctr_qt_3d_input_ffi_ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QKeyEvent_ptr_slot_(self as *const crate::SlotOfQKeyEvent as *mut crate::SlotOfQKeyEvent, ::cpp_core::CastInto::<::cpp_core::Ptr<crate::QKeyEvent>>::cast_into(arg0).as_raw_ptr() as *mut crate::QKeyEvent)
}
#[inline(always)]
pub unsafe fn static_meta_object() -> ::cpp_core::Ref<::qt_core::QMetaObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QKeyEvent_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_input_ffi_ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QKeyEvent_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_input_ffi_ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QKeyEvent_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::SlotOfQKeyboardHandler {
type Arguments = (*mut crate::QKeyboardHandler,);
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_(Qt3DInput::QKeyboardHandler *)\0",
),
)
}
}
}
/// Binds a Qt signal with arguments `*mut crate::QKeyboardHandler` to a Rust closure.
///
/// Corresponding C++ argument types: (<span style='color: green;'>```Qt3DInput::QKeyboardHandler*```</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 SlotOfQKeyboardHandler {
_unused: u8,
}
impl SlotOfQKeyboardHandler {
#[inline(always)]
pub unsafe fn meta_object(&self) -> ::cpp_core::Ptr<::qt_core::QMetaObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QKeyboardHandler_ptr_metaObject(self as *const crate::SlotOfQKeyboardHandler)
};
::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::QKeyboardHandler>) + 'static>(
parent: impl ::cpp_core::CastInto<::cpp_core::Ptr<::qt_core::QObject>>,
callback: T,
) -> ::qt_core::QBox<crate::SlotOfQKeyboardHandler> {
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::QKeyboardHandler>) + 'static,
>(
data: *mut ::std::ffi::c_void,
arg0: *mut crate::QKeyboardHandler,
) {
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_input_ffi_ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QKeyboardHandler_ptr_ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QKeyboardHandler_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_input_ffi_ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QKeyboardHandler_ptr_qt_metacall(self as *const crate::SlotOfQKeyboardHandler as *mut crate::SlotOfQKeyboardHandler, 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_input_ffi_ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QKeyboardHandler_ptr_qt_metacast(self as *const crate::SlotOfQKeyboardHandler as *mut crate::SlotOfQKeyboardHandler, 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::QKeyboardHandler>) + '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::QKeyboardHandler>) + 'static>(
data: *mut ::std::ffi::c_void,
arg0: *mut crate::QKeyboardHandler,
) {
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_input_ffi_ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QKeyboardHandler_ptr_set(self as *const crate::SlotOfQKeyboardHandler as *mut crate::SlotOfQKeyboardHandler, 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::QKeyboardHandler>>,
) {
crate::__ffi::ctr_qt_3d_input_ffi_ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QKeyboardHandler_ptr_slot_(self as *const crate::SlotOfQKeyboardHandler as *mut crate::SlotOfQKeyboardHandler, ::cpp_core::CastInto::<::cpp_core::Ptr<crate::QKeyboardHandler>>::cast_into(arg0).as_raw_ptr() as *mut crate::QKeyboardHandler)
}
#[inline(always)]
pub unsafe fn static_meta_object() -> ::cpp_core::Ref<::qt_core::QMetaObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QKeyboardHandler_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_input_ffi_ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QKeyboardHandler_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_input_ffi_ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QKeyboardHandler_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::SlotOfQMouseDevice {
type Arguments = (*mut crate::QMouseDevice,);
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_(Qt3DInput::QMouseDevice *)\0",
),
)
}
}
}
/// Binds a Qt signal with arguments `*mut crate::QMouseDevice` to a Rust closure.
///
/// Corresponding C++ argument types: (<span style='color: green;'>```Qt3DInput::QMouseDevice*```</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 SlotOfQMouseDevice {
_unused: u8,
}
impl SlotOfQMouseDevice {
#[inline(always)]
pub unsafe fn meta_object(&self) -> ::cpp_core::Ptr<::qt_core::QMetaObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QMouseDevice_ptr_metaObject(self as *const crate::SlotOfQMouseDevice)
};
::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::QMouseDevice>) + 'static>(
parent: impl ::cpp_core::CastInto<::cpp_core::Ptr<::qt_core::QObject>>,
callback: T,
) -> ::qt_core::QBox<crate::SlotOfQMouseDevice> {
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::QMouseDevice>) + 'static>(
data: *mut ::std::ffi::c_void,
arg0: *mut crate::QMouseDevice,
) {
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_input_ffi_ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QMouseDevice_ptr_ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QMouseDevice_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_input_ffi_ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QMouseDevice_ptr_qt_metacall(self as *const crate::SlotOfQMouseDevice as *mut crate::SlotOfQMouseDevice, 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_input_ffi_ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QMouseDevice_ptr_qt_metacast(self as *const crate::SlotOfQMouseDevice as *mut crate::SlotOfQMouseDevice, 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::QMouseDevice>) + '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::QMouseDevice>) + 'static>(
data: *mut ::std::ffi::c_void,
arg0: *mut crate::QMouseDevice,
) {
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_input_ffi_ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QMouseDevice_ptr_set(self as *const crate::SlotOfQMouseDevice as *mut crate::SlotOfQMouseDevice, 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::QMouseDevice>>,
) {
crate::__ffi::ctr_qt_3d_input_ffi_ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QMouseDevice_ptr_slot_(self as *const crate::SlotOfQMouseDevice as *mut crate::SlotOfQMouseDevice, ::cpp_core::CastInto::<::cpp_core::Ptr<crate::QMouseDevice>>::cast_into(arg0).as_raw_ptr() as *mut crate::QMouseDevice)
}
#[inline(always)]
pub unsafe fn static_meta_object() -> ::cpp_core::Ref<::qt_core::QMetaObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QMouseDevice_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_input_ffi_ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QMouseDevice_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_input_ffi_ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QMouseDevice_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::SlotOfQVectorOfInt {
type Arguments = (*const ::qt_core::QVectorOfInt,);
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_(QVector< int > const &)\0",
),
)
}
}
}
/// Binds a Qt signal with arguments `*const ::qt_core::QVectorOfInt` to a Rust closure.
///
/// Corresponding C++ argument types: (<span style='color: green;'>```const QVector<int>&```</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 SlotOfQVectorOfInt {
_unused: u8,
}
impl SlotOfQVectorOfInt {
#[inline(always)]
pub unsafe fn meta_object(&self) -> ::cpp_core::Ptr<::qt_core::QMetaObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_ctr_qt_3d_input_ffi_slot_wrapper_QVector_int_const_ref_metaObject(self as *const crate::SlotOfQVectorOfInt)
};
::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_core::QVectorOfInt>) + 'static>(
parent: impl ::cpp_core::CastInto<::cpp_core::Ptr<::qt_core::QObject>>,
callback: T,
) -> ::qt_core::QBox<crate::SlotOfQVectorOfInt> {
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_core::QVectorOfInt>) + 'static,
>(
data: *mut ::std::ffi::c_void,
arg0: *const ::qt_core::QVectorOfInt,
) {
unsafe {
(*(data as *mut T))(
::cpp_core::Ref::from_raw(arg0 as *mut ::qt_core::QVectorOfInt)
.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_input_ffi_ctr_qt_3d_input_ffi_slot_wrapper_QVector_int_const_ref_ctr_qt_3d_input_ffi_slot_wrapper_QVector_int_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_input_ffi_ctr_qt_3d_input_ffi_slot_wrapper_QVector_int_const_ref_qt_metacall(self as *const crate::SlotOfQVectorOfInt as *mut crate::SlotOfQVectorOfInt, 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_input_ffi_ctr_qt_3d_input_ffi_slot_wrapper_QVector_int_const_ref_qt_metacast(self as *const crate::SlotOfQVectorOfInt as *mut crate::SlotOfQVectorOfInt, 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_core::QVectorOfInt>) + '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_core::QVectorOfInt>) + 'static>(
data: *mut ::std::ffi::c_void,
arg0: *const ::qt_core::QVectorOfInt,
) {
unsafe {
(*(data as *mut T))(
::cpp_core::Ref::from_raw(arg0 as *mut ::qt_core::QVectorOfInt)
.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_input_ffi_ctr_qt_3d_input_ffi_slot_wrapper_QVector_int_const_ref_set(
self as *const crate::SlotOfQVectorOfInt as *mut crate::SlotOfQVectorOfInt,
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_core::QVectorOfInt>>,
) {
crate::__ffi::ctr_qt_3d_input_ffi_ctr_qt_3d_input_ffi_slot_wrapper_QVector_int_const_ref_slot_(self as *const crate::SlotOfQVectorOfInt as *mut crate::SlotOfQVectorOfInt, ::cpp_core::CastInto::<::cpp_core::Ref<::qt_core::QVectorOfInt>>::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_input_ffi_ctr_qt_3d_input_ffi_slot_wrapper_QVector_int_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_input_ffi_ctr_qt_3d_input_ffi_slot_wrapper_QVector_int_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_input_ffi_ctr_qt_3d_input_ffi_slot_wrapper_QVector_int_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::SlotOfQMouseEvent {
type Arguments = (*mut crate::QMouseEvent,);
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_(Qt3DInput::QMouseEvent *)\0",
),
)
}
}
}
/// Binds a Qt signal with arguments `*mut crate::QMouseEvent` to a Rust closure.
///
/// Corresponding C++ argument types: (<span style='color: green;'>```Qt3DInput::QMouseEvent*```</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 SlotOfQMouseEvent {
_unused: u8,
}
impl SlotOfQMouseEvent {
#[inline(always)]
pub unsafe fn meta_object(&self) -> ::cpp_core::Ptr<::qt_core::QMetaObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QMouseEvent_ptr_metaObject(self as *const crate::SlotOfQMouseEvent)
};
::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::QMouseEvent>) + 'static>(
parent: impl ::cpp_core::CastInto<::cpp_core::Ptr<::qt_core::QObject>>,
callback: T,
) -> ::qt_core::QBox<crate::SlotOfQMouseEvent> {
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::QMouseEvent>) + 'static>(
data: *mut ::std::ffi::c_void,
arg0: *mut crate::QMouseEvent,
) {
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_input_ffi_ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QMouseEvent_ptr_ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QMouseEvent_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_input_ffi_ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QMouseEvent_ptr_qt_metacall(self as *const crate::SlotOfQMouseEvent as *mut crate::SlotOfQMouseEvent, 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_input_ffi_ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QMouseEvent_ptr_qt_metacast(self as *const crate::SlotOfQMouseEvent as *mut crate::SlotOfQMouseEvent, 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::QMouseEvent>) + '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::QMouseEvent>) + 'static>(
data: *mut ::std::ffi::c_void,
arg0: *mut crate::QMouseEvent,
) {
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_input_ffi_ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QMouseEvent_ptr_set(self as *const crate::SlotOfQMouseEvent as *mut crate::SlotOfQMouseEvent, 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::QMouseEvent>>,
) {
crate::__ffi::ctr_qt_3d_input_ffi_ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QMouseEvent_ptr_slot_(self as *const crate::SlotOfQMouseEvent as *mut crate::SlotOfQMouseEvent, ::cpp_core::CastInto::<::cpp_core::Ptr<crate::QMouseEvent>>::cast_into(arg0).as_raw_ptr() as *mut crate::QMouseEvent)
}
#[inline(always)]
pub unsafe fn static_meta_object() -> ::cpp_core::Ref<::qt_core::QMetaObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QMouseEvent_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_input_ffi_ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QMouseEvent_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_input_ffi_ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QMouseEvent_ptr_trUtf8(s, c, n)
};
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
}
impl ::cpp_core::CppDeletable for crate::QAbstractActionInput {
/// Calls C++ function: <span style='color: green;'>```virtual [destructor] void Qt3DInput::QAbstractActionInput::~QAbstractActionInput()```</span>.
#[inline(always)]
unsafe fn delete(&self) {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QAbstractActionInput_dQAbstractActionInput(
self as *const crate::QAbstractActionInput as *mut crate::QAbstractActionInput,
)
}
}
impl ::cpp_core::CppDeletable for crate::QAbstractPhysicalDevice {
/// Calls C++ function: <span style='color: green;'>```virtual [destructor] void Qt3DInput::QAbstractPhysicalDevice::~QAbstractPhysicalDevice()```</span>.
#[inline(always)]
unsafe fn delete(&self) {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QAbstractPhysicalDevice_dQAbstractPhysicalDevice(
self as *const crate::QAbstractPhysicalDevice as *mut crate::QAbstractPhysicalDevice,
)
}
}
impl ::cpp_core::CppDeletable for crate::QAbstractAxisInput {
/// Calls C++ function: <span style='color: green;'>```virtual [destructor] void Qt3DInput::QAbstractAxisInput::~QAbstractAxisInput()```</span>.
#[inline(always)]
unsafe fn delete(&self) {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QAbstractAxisInput_dQAbstractAxisInput(
self as *const crate::QAbstractAxisInput as *mut crate::QAbstractAxisInput,
)
}
}
impl ::cpp_core::CppDeletable for crate::QAction {
/// Calls C++ function: <span style='color: green;'>```virtual [destructor] void Qt3DInput::QAction::~QAction()```</span>.
#[inline(always)]
unsafe fn delete(&self) {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QAction_dQAction(
self as *const crate::QAction as *mut crate::QAction,
)
}
}
impl ::cpp_core::CppDeletable for crate::QActionInput {
/// Calls C++ function: <span style='color: green;'>```virtual [destructor] void Qt3DInput::QActionInput::~QActionInput()```</span>.
#[inline(always)]
unsafe fn delete(&self) {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QActionInput_dQActionInput(
self as *const crate::QActionInput as *mut crate::QActionInput,
)
}
}
impl ::cpp_core::CppDeletable for crate::QAnalogAxisInput {
/// Calls C++ function: <span style='color: green;'>```virtual [destructor] void Qt3DInput::QAnalogAxisInput::~QAnalogAxisInput()```</span>.
#[inline(always)]
unsafe fn delete(&self) {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QAnalogAxisInput_dQAnalogAxisInput(
self as *const crate::QAnalogAxisInput as *mut crate::QAnalogAxisInput,
)
}
}
impl ::cpp_core::CppDeletable for crate::QAxis {
/// Calls C++ function: <span style='color: green;'>```virtual [destructor] void Qt3DInput::QAxis::~QAxis()```</span>.
#[inline(always)]
unsafe fn delete(&self) {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QAxis_dQAxis(
self as *const crate::QAxis as *mut crate::QAxis,
)
}
}
impl ::cpp_core::CppDeletable for crate::QAxisAccumulator {
/// Calls C++ function: <span style='color: green;'>```virtual [destructor] void Qt3DInput::QAxisAccumulator::~QAxisAccumulator()```</span>.
#[inline(always)]
unsafe fn delete(&self) {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QAxisAccumulator_dQAxisAccumulator(
self as *const crate::QAxisAccumulator as *mut crate::QAxisAccumulator,
)
}
}
impl ::cpp_core::CppDeletable for crate::QAxisSetting {
/// Calls C++ function: <span style='color: green;'>```virtual [destructor] void Qt3DInput::QAxisSetting::~QAxisSetting()```</span>.
#[inline(always)]
unsafe fn delete(&self) {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QAxisSetting_dQAxisSetting(
self as *const crate::QAxisSetting as *mut crate::QAxisSetting,
)
}
}
impl ::cpp_core::CppDeletable for crate::QButtonAxisInput {
/// Calls C++ function: <span style='color: green;'>```virtual [destructor] void Qt3DInput::QButtonAxisInput::~QButtonAxisInput()```</span>.
#[inline(always)]
unsafe fn delete(&self) {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QButtonAxisInput_dQButtonAxisInput(
self as *const crate::QButtonAxisInput as *mut crate::QButtonAxisInput,
)
}
}
impl ::cpp_core::CppDeletable for crate::QInputAspect {
/// Calls C++ function: <span style='color: green;'>```virtual [destructor] void Qt3DInput::QInputAspect::~QInputAspect()```</span>.
#[inline(always)]
unsafe fn delete(&self) {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QInputAspect_dQInputAspect(
self as *const crate::QInputAspect as *mut crate::QInputAspect,
)
}
}
impl ::cpp_core::CppDeletable for crate::QInputChord {
/// Calls C++ function: <span style='color: green;'>```virtual [destructor] void Qt3DInput::QInputChord::~QInputChord()```</span>.
#[inline(always)]
unsafe fn delete(&self) {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QInputChord_dQInputChord(
self as *const crate::QInputChord as *mut crate::QInputChord,
)
}
}
impl ::cpp_core::CppDeletable for crate::QInputSequence {
/// Calls C++ function: <span style='color: green;'>```virtual [destructor] void Qt3DInput::QInputSequence::~QInputSequence()```</span>.
#[inline(always)]
unsafe fn delete(&self) {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QInputSequence_dQInputSequence(
self as *const crate::QInputSequence as *mut crate::QInputSequence,
)
}
}
impl ::cpp_core::CppDeletable for crate::QInputSettings {
/// <p>Destroys the instance of QInputSettings.</p>
///
/// Calls C++ function: <span style='color: green;'>```virtual [destructor] void Qt3DInput::QInputSettings::~QInputSettings()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qinputsettings.html#dtor.QInputSettings">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Destroys the instance of QInputSettings.</p></div>
#[inline(always)]
unsafe fn delete(&self) {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QInputSettings_dQInputSettings(
self as *const crate::QInputSettings as *mut crate::QInputSettings,
)
}
}
impl ::cpp_core::CppDeletable for crate::QKeyEvent {
/// Calls C++ function: <span style='color: green;'>```virtual [destructor] void Qt3DInput::QKeyEvent::~QKeyEvent()```</span>.
#[inline(always)]
unsafe fn delete(&self) {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QKeyEvent_dQKeyEvent(
self as *const crate::QKeyEvent as *mut crate::QKeyEvent,
)
}
}
impl ::cpp_core::CppDeletable for crate::QKeyboardHandler {
/// Calls C++ function: <span style='color: green;'>```virtual [destructor] void Qt3DInput::QKeyboardHandler::~QKeyboardHandler()```</span>.
#[inline(always)]
unsafe fn delete(&self) {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QKeyboardHandler_dQKeyboardHandler(
self as *const crate::QKeyboardHandler as *mut crate::QKeyboardHandler,
)
}
}
impl ::cpp_core::CppDeletable for crate::QKeyboardDevice {
/// Calls C++ function: <span style='color: green;'>```virtual [destructor] void Qt3DInput::QKeyboardDevice::~QKeyboardDevice()```</span>.
#[inline(always)]
unsafe fn delete(&self) {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QKeyboardDevice_dQKeyboardDevice(
self as *const crate::QKeyboardDevice as *mut crate::QKeyboardDevice,
)
}
}
impl ::cpp_core::CppDeletable for crate::QLogicalDevice {
/// <p>Destroys the instance of QLogicalDevice.</p>
///
/// Calls C++ function: <span style='color: green;'>```virtual [destructor] void Qt3DInput::QLogicalDevice::~QLogicalDevice()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qlogicaldevice.html#dtor.QLogicalDevice">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Destroys the instance of QLogicalDevice.</p></div>
#[inline(always)]
unsafe fn delete(&self) {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QLogicalDevice_dQLogicalDevice(
self as *const crate::QLogicalDevice as *mut crate::QLogicalDevice,
)
}
}
impl ::cpp_core::CppDeletable for crate::QMouseDevice {
/// Calls C++ function: <span style='color: green;'>```virtual [destructor] void Qt3DInput::QMouseDevice::~QMouseDevice()```</span>.
#[inline(always)]
unsafe fn delete(&self) {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QMouseDevice_dQMouseDevice(
self as *const crate::QMouseDevice as *mut crate::QMouseDevice,
)
}
}
impl ::cpp_core::CppDeletable for crate::QMouseEvent {
/// <p>Destroys the instance of QMouseEvent.</p>
///
/// Calls C++ function: <span style='color: green;'>```virtual [destructor] void Qt3DInput::QMouseEvent::~QMouseEvent()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qmouseevent.html#dtor.QMouseEvent">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Destroys the instance of QMouseEvent.</p></div>
#[inline(always)]
unsafe fn delete(&self) {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QMouseEvent_dQMouseEvent(
self as *const crate::QMouseEvent as *mut crate::QMouseEvent,
)
}
}
impl ::cpp_core::CppDeletable for crate::QWheelEvent {
/// <p>Destroys the instance of QWheelEvent.</p>
///
/// Calls C++ function: <span style='color: green;'>```virtual [destructor] void Qt3DInput::QWheelEvent::~QWheelEvent()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qwheelevent.html#dtor.QWheelEvent">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Destroys the instance of QWheelEvent.</p></div>
#[inline(always)]
unsafe fn delete(&self) {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QWheelEvent_dQWheelEvent(
self as *const crate::QWheelEvent as *mut crate::QWheelEvent,
)
}
}
impl ::cpp_core::CppDeletable for crate::QMouseHandler {
/// <p>Destroys the instance of QMouseHandler.</p>
///
/// Calls C++ function: <span style='color: green;'>```virtual [destructor] void Qt3DInput::QMouseHandler::~QMouseHandler()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qmousehandler.html#dtor.QMouseHandler">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Destroys the instance of QMouseHandler.</p></div>
#[inline(always)]
unsafe fn delete(&self) {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QMouseHandler_dQMouseHandler(
self as *const crate::QMouseHandler as *mut crate::QMouseHandler,
)
}
}
impl ::cpp_core::CppDeletable for crate::QPhysicalDeviceCreatedChangeBase {
/// <p>Destroys the instance of QPhysicalDeviceCreatedChangeBase.</p>
///
/// Calls C++ function: <span style='color: green;'>```virtual [destructor] void Qt3DInput::QPhysicalDeviceCreatedChangeBase::~QPhysicalDeviceCreatedChangeBase()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qphysicaldevicecreatedchangebase.html#dtor.QPhysicalDeviceCreatedChangeBase">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Destroys the instance of QPhysicalDeviceCreatedChangeBase.</p></div>
#[inline(always)]
unsafe fn delete(&self) {
crate::__ffi::ctr_qt_3d_input_ffi_Qt3DInput_QPhysicalDeviceCreatedChangeBase_dQPhysicalDeviceCreatedChangeBase(self as *const crate::QPhysicalDeviceCreatedChangeBase as *mut crate::QPhysicalDeviceCreatedChangeBase)
}
}
impl ::cpp_core::CppDeletable for crate::QVectorOfQAxisSetting {
/// <p>Destroys the vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```[destructor] void QVector<Qt3DInput::QAxisSetting*>::~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_input_ffi_QVector_Qt3DInput_QAxisSetting_ptr_dQVector(
self as *const crate::QVectorOfQAxisSetting as *mut crate::QVectorOfQAxisSetting,
)
}
}
impl ::cpp_core::CppDeletable for crate::QVectorOfQAbstractActionInput {
/// <p>Destroys the vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```[destructor] void QVector<Qt3DInput::QAbstractActionInput*>::~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_input_ffi_QVector_Qt3DInput_QAbstractActionInput_ptr_dQVector(
self as *const crate::QVectorOfQAbstractActionInput
as *mut crate::QVectorOfQAbstractActionInput,
)
}
}
impl ::cpp_core::CppDeletable for crate::QVectorOfQAbstractAxisInput {
/// <p>Destroys the vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```[destructor] void QVector<Qt3DInput::QAbstractAxisInput*>::~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_input_ffi_QVector_Qt3DInput_QAbstractAxisInput_ptr_dQVector(
self as *const crate::QVectorOfQAbstractAxisInput
as *mut crate::QVectorOfQAbstractAxisInput,
)
}
}
impl ::cpp_core::CppDeletable for crate::QVectorOfQAction {
/// <p>Destroys the vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```[destructor] void QVector<Qt3DInput::QAction*>::~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_input_ffi_QVector_Qt3DInput_QAction_ptr_dQVector(
self as *const crate::QVectorOfQAction as *mut crate::QVectorOfQAction,
)
}
}
impl ::cpp_core::CppDeletable for crate::QVectorOfQAxis {
/// <p>Destroys the vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```[destructor] void QVector<Qt3DInput::QAxis*>::~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_input_ffi_QVector_Qt3DInput_QAxis_ptr_dQVector(
self as *const crate::QVectorOfQAxis as *mut crate::QVectorOfQAxis,
)
}
}
impl ::std::cmp::PartialEq<::cpp_core::Ref<crate::QVectorOfQAxisSetting>>
for crate::QVectorOfQAxisSetting
{
/// <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<Qt3DInput::QAxisSetting*>::operator==(const QVector<Qt3DInput::QAxisSetting*>& 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::QVectorOfQAxisSetting>) -> bool {
unsafe {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAxisSetting_ptr_operator__(
self as *const crate::QVectorOfQAxisSetting,
v.as_raw_ptr(),
)
}
}
}
impl ::std::cmp::PartialEq<::cpp_core::Ref<crate::QVectorOfQAbstractActionInput>>
for crate::QVectorOfQAbstractActionInput
{
/// <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<Qt3DInput::QAbstractActionInput*>::operator==(const QVector<Qt3DInput::QAbstractActionInput*>& 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::QVectorOfQAbstractActionInput>) -> bool {
unsafe {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAbstractActionInput_ptr_operator__(
self as *const crate::QVectorOfQAbstractActionInput,
v.as_raw_ptr(),
)
}
}
}
impl ::std::cmp::PartialEq<::cpp_core::Ref<crate::QVectorOfQAbstractAxisInput>>
for crate::QVectorOfQAbstractAxisInput
{
/// <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<Qt3DInput::QAbstractAxisInput*>::operator==(const QVector<Qt3DInput::QAbstractAxisInput*>& 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::QVectorOfQAbstractAxisInput>) -> bool {
unsafe {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAbstractAxisInput_ptr_operator__(
self as *const crate::QVectorOfQAbstractAxisInput,
v.as_raw_ptr(),
)
}
}
}
impl ::std::cmp::PartialEq<::cpp_core::Ref<crate::QVectorOfQAction>> for crate::QVectorOfQAction {
/// <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<Qt3DInput::QAction*>::operator==(const QVector<Qt3DInput::QAction*>& 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::QVectorOfQAction>) -> bool {
unsafe {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAction_ptr_operator__(
self as *const crate::QVectorOfQAction,
v.as_raw_ptr(),
)
}
}
}
impl ::std::cmp::PartialEq<::cpp_core::Ref<crate::QVectorOfQAxis>> for crate::QVectorOfQAxis {
/// <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<Qt3DInput::QAxis*>::operator==(const QVector<Qt3DInput::QAxis*>& 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::QVectorOfQAxis>) -> bool {
unsafe {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAxis_ptr_operator__(
self as *const crate::QVectorOfQAxis,
v.as_raw_ptr(),
)
}
}
}
impl ::cpp_core::vector_ops::Size for crate::QVectorOfQAxisSetting {
/// <p>Returns the number of items in the vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```int QVector<Qt3DInput::QAxisSetting*>::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_input_ffi_QVector_Qt3DInput_QAxisSetting_ptr_size(
self as *const crate::QVectorOfQAxisSetting,
)
};
ffi_result as usize
}
}
impl ::cpp_core::vector_ops::Size for crate::QVectorOfQAbstractActionInput {
/// <p>Returns the number of items in the vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```int QVector<Qt3DInput::QAbstractActionInput*>::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_input_ffi_QVector_Qt3DInput_QAbstractActionInput_ptr_size(
self as *const crate::QVectorOfQAbstractActionInput,
)
};
ffi_result as usize
}
}
impl ::cpp_core::vector_ops::Size for crate::QVectorOfQAbstractAxisInput {
/// <p>Returns the number of items in the vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```int QVector<Qt3DInput::QAbstractAxisInput*>::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_input_ffi_QVector_Qt3DInput_QAbstractAxisInput_ptr_size(
self as *const crate::QVectorOfQAbstractAxisInput,
)
};
ffi_result as usize
}
}
impl ::cpp_core::vector_ops::Size for crate::QVectorOfQAction {
/// <p>Returns the number of items in the vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```int QVector<Qt3DInput::QAction*>::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_input_ffi_QVector_Qt3DInput_QAction_ptr_size(
self as *const crate::QVectorOfQAction,
)
};
ffi_result as usize
}
}
impl ::cpp_core::vector_ops::Size for crate::QVectorOfQAxis {
/// <p>Returns the number of items in the vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```int QVector<Qt3DInput::QAxis*>::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_input_ffi_QVector_Qt3DInput_QAxis_ptr_size(
self as *const crate::QVectorOfQAxis,
)
};
ffi_result as usize
}
}
impl ::cpp_core::vector_ops::DataMut for crate::QVectorOfQAxisSetting {
type Output = *mut *mut crate::QAxisSetting;
/// <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;'>```Qt3DInput::QAxisSetting** QVector<Qt3DInput::QAxisSetting*>::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::QAxisSetting {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAxisSetting_ptr_data(
self as *const crate::QVectorOfQAxisSetting as *mut crate::QVectorOfQAxisSetting,
)
}
}
impl ::cpp_core::vector_ops::DataMut for crate::QVectorOfQAbstractActionInput {
type Output = *mut *mut crate::QAbstractActionInput;
/// <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;'>```Qt3DInput::QAbstractActionInput** QVector<Qt3DInput::QAbstractActionInput*>::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::QAbstractActionInput {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAbstractActionInput_ptr_data(
self as *const crate::QVectorOfQAbstractActionInput
as *mut crate::QVectorOfQAbstractActionInput,
)
}
}
impl ::cpp_core::vector_ops::DataMut for crate::QVectorOfQAbstractAxisInput {
type Output = *mut *mut crate::QAbstractAxisInput;
/// <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;'>```Qt3DInput::QAbstractAxisInput** QVector<Qt3DInput::QAbstractAxisInput*>::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::QAbstractAxisInput {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAbstractAxisInput_ptr_data(
self as *const crate::QVectorOfQAbstractAxisInput
as *mut crate::QVectorOfQAbstractAxisInput,
)
}
}
impl ::cpp_core::vector_ops::DataMut for crate::QVectorOfQAction {
type Output = *mut *mut crate::QAction;
/// <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;'>```Qt3DInput::QAction** QVector<Qt3DInput::QAction*>::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::QAction {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAction_ptr_data(
self as *const crate::QVectorOfQAction as *mut crate::QVectorOfQAction,
)
}
}
impl ::cpp_core::vector_ops::DataMut for crate::QVectorOfQAxis {
type Output = *mut *mut crate::QAxis;
/// <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;'>```Qt3DInput::QAxis** QVector<Qt3DInput::QAxis*>::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::QAxis {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAxis_ptr_data(
self as *const crate::QVectorOfQAxis as *mut crate::QVectorOfQAxis,
)
}
}
impl ::cpp_core::vector_ops::Data for crate::QVectorOfQAxisSetting {
type Output = *const *mut crate::QAxisSetting;
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```const Qt3DInput::QAxisSetting** QVector<Qt3DInput::QAxisSetting*>::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::QAxisSetting {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAxisSetting_ptr_data1(
self as *const crate::QVectorOfQAxisSetting,
)
}
}
impl ::cpp_core::vector_ops::Data for crate::QVectorOfQAbstractActionInput {
type Output = *const *mut crate::QAbstractActionInput;
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```const Qt3DInput::QAbstractActionInput** QVector<Qt3DInput::QAbstractActionInput*>::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::QAbstractActionInput {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAbstractActionInput_ptr_data1(
self as *const crate::QVectorOfQAbstractActionInput,
)
}
}
impl ::cpp_core::vector_ops::Data for crate::QVectorOfQAbstractAxisInput {
type Output = *const *mut crate::QAbstractAxisInput;
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```const Qt3DInput::QAbstractAxisInput** QVector<Qt3DInput::QAbstractAxisInput*>::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::QAbstractAxisInput {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAbstractAxisInput_ptr_data1(
self as *const crate::QVectorOfQAbstractAxisInput,
)
}
}
impl ::cpp_core::vector_ops::Data for crate::QVectorOfQAction {
type Output = *const *mut crate::QAction;
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```const Qt3DInput::QAction** QVector<Qt3DInput::QAction*>::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::QAction {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAction_ptr_data1(
self as *const crate::QVectorOfQAction,
)
}
}
impl ::cpp_core::vector_ops::Data for crate::QVectorOfQAxis {
type Output = *const *mut crate::QAxis;
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```const Qt3DInput::QAxis** QVector<Qt3DInput::QAxis*>::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::QAxis {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAxis_ptr_data1(
self as *const crate::QVectorOfQAxis,
)
}
}
impl ::std::ops::Add<::cpp_core::Ref<crate::QVectorOfQAxisSetting>>
for &crate::QVectorOfQAxisSetting
{
type Output = ::cpp_core::CppBox<crate::QVectorOfQAxisSetting>;
/// <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<Qt3DInput::QAxisSetting*> QVector<Qt3DInput::QAxisSetting*>::operator+(const QVector<Qt3DInput::QAxisSetting*>& 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::QVectorOfQAxisSetting>,
) -> ::cpp_core::CppBox<crate::QVectorOfQAxisSetting> {
let ffi_result = {
unsafe {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAxisSetting_ptr_operator_2(
self as *const crate::QVectorOfQAxisSetting,
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::QVectorOfQAbstractActionInput>>
for &crate::QVectorOfQAbstractActionInput
{
type Output = ::cpp_core::CppBox<crate::QVectorOfQAbstractActionInput>;
/// <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<Qt3DInput::QAbstractActionInput*> QVector<Qt3DInput::QAbstractActionInput*>::operator+(const QVector<Qt3DInput::QAbstractActionInput*>& 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::QVectorOfQAbstractActionInput>,
) -> ::cpp_core::CppBox<crate::QVectorOfQAbstractActionInput> {
let ffi_result = {
unsafe {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAbstractActionInput_ptr_operator_2(self as *const crate::QVectorOfQAbstractActionInput, 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::QVectorOfQAbstractAxisInput>>
for &crate::QVectorOfQAbstractAxisInput
{
type Output = ::cpp_core::CppBox<crate::QVectorOfQAbstractAxisInput>;
/// <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<Qt3DInput::QAbstractAxisInput*> QVector<Qt3DInput::QAbstractAxisInput*>::operator+(const QVector<Qt3DInput::QAbstractAxisInput*>& 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::QVectorOfQAbstractAxisInput>,
) -> ::cpp_core::CppBox<crate::QVectorOfQAbstractAxisInput> {
let ffi_result = {
unsafe {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAbstractAxisInput_ptr_operator_2(self as *const crate::QVectorOfQAbstractAxisInput, 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::QVectorOfQAction>> for &crate::QVectorOfQAction {
type Output = ::cpp_core::CppBox<crate::QVectorOfQAction>;
/// <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<Qt3DInput::QAction*> QVector<Qt3DInput::QAction*>::operator+(const QVector<Qt3DInput::QAction*>& 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::QVectorOfQAction>,
) -> ::cpp_core::CppBox<crate::QVectorOfQAction> {
let ffi_result = {
unsafe {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAction_ptr_operator_2(
self as *const crate::QVectorOfQAction,
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::QVectorOfQAxis>> for &crate::QVectorOfQAxis {
type Output = ::cpp_core::CppBox<crate::QVectorOfQAxis>;
/// <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<Qt3DInput::QAxis*> QVector<Qt3DInput::QAxis*>::operator+(const QVector<Qt3DInput::QAxis*>& 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::QVectorOfQAxis>,
) -> ::cpp_core::CppBox<crate::QVectorOfQAxis> {
let ffi_result = {
unsafe {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAxis_ptr_operator_2(
self as *const crate::QVectorOfQAxis,
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::QAxisSetting> for &crate::QVectorOfQAxisSetting {
type Output = ::cpp_core::Ref<crate::QVectorOfQAxisSetting>;
/// <p>Appends <i>value</i> to the vector and returns a reference to this vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```QVector<Qt3DInput::QAxisSetting*>& QVector<Qt3DInput::QAxisSetting*>::operator<<(const Qt3DInput::QAxisSetting*& 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::QAxisSetting,
) -> ::cpp_core::Ref<crate::QVectorOfQAxisSetting> {
let ffi_result = {
unsafe {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAxisSetting_ptr_operator__6(
self as *const crate::QVectorOfQAxisSetting
as *mut crate::QVectorOfQAxisSetting,
t,
)
}
};
unsafe { ::cpp_core::Ref::from_raw(ffi_result).expect("attempted to construct a null Ref") }
}
}
impl ::std::ops::Shl<*const *mut crate::QAbstractActionInput>
for &crate::QVectorOfQAbstractActionInput
{
type Output = ::cpp_core::Ref<crate::QVectorOfQAbstractActionInput>;
/// <p>Appends <i>value</i> to the vector and returns a reference to this vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```QVector<Qt3DInput::QAbstractActionInput*>& QVector<Qt3DInput::QAbstractActionInput*>::operator<<(const Qt3DInput::QAbstractActionInput*& 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::QAbstractActionInput,
) -> ::cpp_core::Ref<crate::QVectorOfQAbstractActionInput> {
let ffi_result = {
unsafe {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAbstractActionInput_ptr_operator__6(self as *const crate::QVectorOfQAbstractActionInput as *mut crate::QVectorOfQAbstractActionInput, t)
}
};
unsafe { ::cpp_core::Ref::from_raw(ffi_result).expect("attempted to construct a null Ref") }
}
}
impl ::std::ops::Shl<*const *mut crate::QAbstractAxisInput>
for &crate::QVectorOfQAbstractAxisInput
{
type Output = ::cpp_core::Ref<crate::QVectorOfQAbstractAxisInput>;
/// <p>Appends <i>value</i> to the vector and returns a reference to this vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```QVector<Qt3DInput::QAbstractAxisInput*>& QVector<Qt3DInput::QAbstractAxisInput*>::operator<<(const Qt3DInput::QAbstractAxisInput*& 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::QAbstractAxisInput,
) -> ::cpp_core::Ref<crate::QVectorOfQAbstractAxisInput> {
let ffi_result = {
unsafe {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAbstractAxisInput_ptr_operator__6(self as *const crate::QVectorOfQAbstractAxisInput as *mut crate::QVectorOfQAbstractAxisInput, t)
}
};
unsafe { ::cpp_core::Ref::from_raw(ffi_result).expect("attempted to construct a null Ref") }
}
}
impl ::std::ops::Shl<*const *mut crate::QAction> for &crate::QVectorOfQAction {
type Output = ::cpp_core::Ref<crate::QVectorOfQAction>;
/// <p>Appends <i>value</i> to the vector and returns a reference to this vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```QVector<Qt3DInput::QAction*>& QVector<Qt3DInput::QAction*>::operator<<(const Qt3DInput::QAction*& 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::QAction) -> ::cpp_core::Ref<crate::QVectorOfQAction> {
let ffi_result = {
unsafe {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAction_ptr_operator__6(
self as *const crate::QVectorOfQAction as *mut crate::QVectorOfQAction,
t,
)
}
};
unsafe { ::cpp_core::Ref::from_raw(ffi_result).expect("attempted to construct a null Ref") }
}
}
impl ::std::ops::Shl<*const *mut crate::QAxis> for &crate::QVectorOfQAxis {
type Output = ::cpp_core::Ref<crate::QVectorOfQAxis>;
/// <p>Appends <i>value</i> to the vector and returns a reference to this vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```QVector<Qt3DInput::QAxis*>& QVector<Qt3DInput::QAxis*>::operator<<(const Qt3DInput::QAxis*& 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::QAxis) -> ::cpp_core::Ref<crate::QVectorOfQAxis> {
let ffi_result = {
unsafe {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAxis_ptr_operator__6(
self as *const crate::QVectorOfQAxis as *mut crate::QVectorOfQAxis,
t,
)
}
};
unsafe { ::cpp_core::Ref::from_raw(ffi_result).expect("attempted to construct a null Ref") }
}
}
impl ::std::ops::Shl<::cpp_core::Ref<crate::QVectorOfQAxisSetting>>
for &crate::QVectorOfQAxisSetting
{
type Output = ::cpp_core::Ref<crate::QVectorOfQAxisSetting>;
/// <p>Appends <i>other</i> to the vector and returns a reference to the vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```QVector<Qt3DInput::QAxisSetting*>& QVector<Qt3DInput::QAxisSetting*>::operator<<(const QVector<Qt3DInput::QAxisSetting*>& 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::QVectorOfQAxisSetting>,
) -> ::cpp_core::Ref<crate::QVectorOfQAxisSetting> {
let ffi_result = {
unsafe {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAxisSetting_ptr_operator__7(
self as *const crate::QVectorOfQAxisSetting
as *mut crate::QVectorOfQAxisSetting,
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::QVectorOfQAbstractActionInput>>
for &crate::QVectorOfQAbstractActionInput
{
type Output = ::cpp_core::Ref<crate::QVectorOfQAbstractActionInput>;
/// <p>Appends <i>other</i> to the vector and returns a reference to the vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```QVector<Qt3DInput::QAbstractActionInput*>& QVector<Qt3DInput::QAbstractActionInput*>::operator<<(const QVector<Qt3DInput::QAbstractActionInput*>& 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::QVectorOfQAbstractActionInput>,
) -> ::cpp_core::Ref<crate::QVectorOfQAbstractActionInput> {
let ffi_result = {
unsafe {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAbstractActionInput_ptr_operator__7(self as *const crate::QVectorOfQAbstractActionInput as *mut crate::QVectorOfQAbstractActionInput, 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::QVectorOfQAbstractAxisInput>>
for &crate::QVectorOfQAbstractAxisInput
{
type Output = ::cpp_core::Ref<crate::QVectorOfQAbstractAxisInput>;
/// <p>Appends <i>other</i> to the vector and returns a reference to the vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```QVector<Qt3DInput::QAbstractAxisInput*>& QVector<Qt3DInput::QAbstractAxisInput*>::operator<<(const QVector<Qt3DInput::QAbstractAxisInput*>& 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::QVectorOfQAbstractAxisInput>,
) -> ::cpp_core::Ref<crate::QVectorOfQAbstractAxisInput> {
let ffi_result = {
unsafe {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAbstractAxisInput_ptr_operator__7(self as *const crate::QVectorOfQAbstractAxisInput as *mut crate::QVectorOfQAbstractAxisInput, 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::QVectorOfQAction>> for &crate::QVectorOfQAction {
type Output = ::cpp_core::Ref<crate::QVectorOfQAction>;
/// <p>Appends <i>other</i> to the vector and returns a reference to the vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```QVector<Qt3DInput::QAction*>& QVector<Qt3DInput::QAction*>::operator<<(const QVector<Qt3DInput::QAction*>& 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::QVectorOfQAction>,
) -> ::cpp_core::Ref<crate::QVectorOfQAction> {
let ffi_result = {
unsafe {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAction_ptr_operator__7(
self as *const crate::QVectorOfQAction as *mut crate::QVectorOfQAction,
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::QVectorOfQAxis>> for &crate::QVectorOfQAxis {
type Output = ::cpp_core::Ref<crate::QVectorOfQAxis>;
/// <p>Appends <i>other</i> to the vector and returns a reference to the vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```QVector<Qt3DInput::QAxis*>& QVector<Qt3DInput::QAxis*>::operator<<(const QVector<Qt3DInput::QAxis*>& 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::QVectorOfQAxis>,
) -> ::cpp_core::Ref<crate::QVectorOfQAxis> {
let ffi_result = {
unsafe {
crate::__ffi::ctr_qt_3d_input_ffi_QVector_Qt3DInput_QAxis_ptr_operator__7(
self as *const crate::QVectorOfQAxis as *mut crate::QVectorOfQAxis,
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::QVectorOfQAxisSetting>>
for crate::QVectorOfQAxisSetting
{
/// Calls C++ function: <span style='color: green;'>```bool operator<(const QVector<Qt3DInput::QAxisSetting*>& lhs, const QVector<Qt3DInput::QAxisSetting*>& rhs)```</span>.
#[inline(always)]
unsafe fn lt(&self, rhs: &::cpp_core::Ref<crate::QVectorOfQAxisSetting>) -> bool {
crate::__ffi::ctr_qt_3d_input_ffi_operator_(
self as *const crate::QVectorOfQAxisSetting,
rhs.as_raw_ptr(),
)
}
}
impl ::cpp_core::cmp::Lt<::cpp_core::Ref<crate::QVectorOfQAbstractActionInput>>
for crate::QVectorOfQAbstractActionInput
{
/// Calls C++ function: <span style='color: green;'>```bool operator<(const QVector<Qt3DInput::QAbstractActionInput*>& lhs, const QVector<Qt3DInput::QAbstractActionInput*>& rhs)```</span>.
#[inline(always)]
unsafe fn lt(&self, rhs: &::cpp_core::Ref<crate::QVectorOfQAbstractActionInput>) -> bool {
crate::__ffi::ctr_qt_3d_input_ffi_operator_1(
self as *const crate::QVectorOfQAbstractActionInput,
rhs.as_raw_ptr(),
)
}
}
impl ::cpp_core::cmp::Lt<::cpp_core::Ref<crate::QVectorOfQAbstractAxisInput>>
for crate::QVectorOfQAbstractAxisInput
{
/// Calls C++ function: <span style='color: green;'>```bool operator<(const QVector<Qt3DInput::QAbstractAxisInput*>& lhs, const QVector<Qt3DInput::QAbstractAxisInput*>& rhs)```</span>.
#[inline(always)]
unsafe fn lt(&self, rhs: &::cpp_core::Ref<crate::QVectorOfQAbstractAxisInput>) -> bool {
crate::__ffi::ctr_qt_3d_input_ffi_operator_2(
self as *const crate::QVectorOfQAbstractAxisInput,
rhs.as_raw_ptr(),
)
}
}
impl ::cpp_core::cmp::Lt<::cpp_core::Ref<crate::QVectorOfQAction>> for crate::QVectorOfQAction {
/// Calls C++ function: <span style='color: green;'>```bool operator<(const QVector<Qt3DInput::QAction*>& lhs, const QVector<Qt3DInput::QAction*>& rhs)```</span>.
#[inline(always)]
unsafe fn lt(&self, rhs: &::cpp_core::Ref<crate::QVectorOfQAction>) -> bool {
crate::__ffi::ctr_qt_3d_input_ffi_operator_3(
self as *const crate::QVectorOfQAction,
rhs.as_raw_ptr(),
)
}
}
impl ::cpp_core::cmp::Lt<::cpp_core::Ref<crate::QVectorOfQAxis>> for crate::QVectorOfQAxis {
/// Calls C++ function: <span style='color: green;'>```bool operator<(const QVector<Qt3DInput::QAxis*>& lhs, const QVector<Qt3DInput::QAxis*>& rhs)```</span>.
#[inline(always)]
unsafe fn lt(&self, rhs: &::cpp_core::Ref<crate::QVectorOfQAxis>) -> bool {
crate::__ffi::ctr_qt_3d_input_ffi_operator_4(
self as *const crate::QVectorOfQAxis,
rhs.as_raw_ptr(),
)
}
}
impl ::cpp_core::cmp::Gt<::cpp_core::Ref<crate::QVectorOfQAxisSetting>>
for crate::QVectorOfQAxisSetting
{
/// Calls C++ function: <span style='color: green;'>```bool operator>(const QVector<Qt3DInput::QAxisSetting*>& lhs, const QVector<Qt3DInput::QAxisSetting*>& rhs)```</span>.
#[inline(always)]
unsafe fn gt(&self, rhs: &::cpp_core::Ref<crate::QVectorOfQAxisSetting>) -> bool {
crate::__ffi::ctr_qt_3d_input_ffi_operator_5(
self as *const crate::QVectorOfQAxisSetting,
rhs.as_raw_ptr(),
)
}
}
impl ::cpp_core::cmp::Gt<::cpp_core::Ref<crate::QVectorOfQAbstractActionInput>>
for crate::QVectorOfQAbstractActionInput
{
/// Calls C++ function: <span style='color: green;'>```bool operator>(const QVector<Qt3DInput::QAbstractActionInput*>& lhs, const QVector<Qt3DInput::QAbstractActionInput*>& rhs)```</span>.
#[inline(always)]
unsafe fn gt(&self, rhs: &::cpp_core::Ref<crate::QVectorOfQAbstractActionInput>) -> bool {
crate::__ffi::ctr_qt_3d_input_ffi_operator_6(
self as *const crate::QVectorOfQAbstractActionInput,
rhs.as_raw_ptr(),
)
}
}
impl ::cpp_core::cmp::Gt<::cpp_core::Ref<crate::QVectorOfQAbstractAxisInput>>
for crate::QVectorOfQAbstractAxisInput
{
/// Calls C++ function: <span style='color: green;'>```bool operator>(const QVector<Qt3DInput::QAbstractAxisInput*>& lhs, const QVector<Qt3DInput::QAbstractAxisInput*>& rhs)```</span>.
#[inline(always)]
unsafe fn gt(&self, rhs: &::cpp_core::Ref<crate::QVectorOfQAbstractAxisInput>) -> bool {
crate::__ffi::ctr_qt_3d_input_ffi_operator_7(
self as *const crate::QVectorOfQAbstractAxisInput,
rhs.as_raw_ptr(),
)
}
}
impl ::cpp_core::cmp::Gt<::cpp_core::Ref<crate::QVectorOfQAction>> for crate::QVectorOfQAction {
/// Calls C++ function: <span style='color: green;'>```bool operator>(const QVector<Qt3DInput::QAction*>& lhs, const QVector<Qt3DInput::QAction*>& rhs)```</span>.
#[inline(always)]
unsafe fn gt(&self, rhs: &::cpp_core::Ref<crate::QVectorOfQAction>) -> bool {
crate::__ffi::ctr_qt_3d_input_ffi_operator_8(
self as *const crate::QVectorOfQAction,
rhs.as_raw_ptr(),
)
}
}
impl ::cpp_core::cmp::Gt<::cpp_core::Ref<crate::QVectorOfQAxis>> for crate::QVectorOfQAxis {
/// Calls C++ function: <span style='color: green;'>```bool operator>(const QVector<Qt3DInput::QAxis*>& lhs, const QVector<Qt3DInput::QAxis*>& rhs)```</span>.
#[inline(always)]
unsafe fn gt(&self, rhs: &::cpp_core::Ref<crate::QVectorOfQAxis>) -> bool {
crate::__ffi::ctr_qt_3d_input_ffi_operator_9(
self as *const crate::QVectorOfQAxis,
rhs.as_raw_ptr(),
)
}
}
impl ::cpp_core::cmp::Le<::cpp_core::Ref<crate::QVectorOfQAxisSetting>>
for crate::QVectorOfQAxisSetting
{
/// <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<Qt3DInput::QAxisSetting*>& lhs, const QVector<Qt3DInput::QAxisSetting*>& 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::QVectorOfQAxisSetting>) -> bool {
crate::__ffi::ctr_qt_3d_input_ffi_operator__(
self as *const crate::QVectorOfQAxisSetting,
rhs.as_raw_ptr(),
)
}
}
impl ::cpp_core::cmp::Le<::cpp_core::Ref<crate::QVectorOfQAbstractActionInput>>
for crate::QVectorOfQAbstractActionInput
{
/// <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<Qt3DInput::QAbstractActionInput*>& lhs, const QVector<Qt3DInput::QAbstractActionInput*>& 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::QVectorOfQAbstractActionInput>) -> bool {
crate::__ffi::ctr_qt_3d_input_ffi_operator__1(
self as *const crate::QVectorOfQAbstractActionInput,
rhs.as_raw_ptr(),
)
}
}
impl ::cpp_core::cmp::Le<::cpp_core::Ref<crate::QVectorOfQAbstractAxisInput>>
for crate::QVectorOfQAbstractAxisInput
{
/// <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<Qt3DInput::QAbstractAxisInput*>& lhs, const QVector<Qt3DInput::QAbstractAxisInput*>& 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::QVectorOfQAbstractAxisInput>) -> bool {
crate::__ffi::ctr_qt_3d_input_ffi_operator__2(
self as *const crate::QVectorOfQAbstractAxisInput,
rhs.as_raw_ptr(),
)
}
}
impl ::cpp_core::cmp::Le<::cpp_core::Ref<crate::QVectorOfQAction>> for crate::QVectorOfQAction {
/// <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<Qt3DInput::QAction*>& lhs, const QVector<Qt3DInput::QAction*>& 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::QVectorOfQAction>) -> bool {
crate::__ffi::ctr_qt_3d_input_ffi_operator__3(
self as *const crate::QVectorOfQAction,
rhs.as_raw_ptr(),
)
}
}
impl ::cpp_core::cmp::Le<::cpp_core::Ref<crate::QVectorOfQAxis>> for crate::QVectorOfQAxis {
/// <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<Qt3DInput::QAxis*>& lhs, const QVector<Qt3DInput::QAxis*>& 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::QVectorOfQAxis>) -> bool {
crate::__ffi::ctr_qt_3d_input_ffi_operator__4(
self as *const crate::QVectorOfQAxis,
rhs.as_raw_ptr(),
)
}
}
impl ::cpp_core::cmp::Ge<::cpp_core::Ref<crate::QVectorOfQAxisSetting>>
for crate::QVectorOfQAxisSetting
{
/// <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<Qt3DInput::QAxisSetting*>& lhs, const QVector<Qt3DInput::QAxisSetting*>& 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::QVectorOfQAxisSetting>) -> bool {
crate::__ffi::ctr_qt_3d_input_ffi_operator__5(
self as *const crate::QVectorOfQAxisSetting,
rhs.as_raw_ptr(),
)
}
}
impl ::cpp_core::cmp::Ge<::cpp_core::Ref<crate::QVectorOfQAbstractActionInput>>
for crate::QVectorOfQAbstractActionInput
{
/// <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<Qt3DInput::QAbstractActionInput*>& lhs, const QVector<Qt3DInput::QAbstractActionInput*>& 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::QVectorOfQAbstractActionInput>) -> bool {
crate::__ffi::ctr_qt_3d_input_ffi_operator__6(
self as *const crate::QVectorOfQAbstractActionInput,
rhs.as_raw_ptr(),
)
}
}
impl ::cpp_core::cmp::Ge<::cpp_core::Ref<crate::QVectorOfQAbstractAxisInput>>
for crate::QVectorOfQAbstractAxisInput
{
/// <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<Qt3DInput::QAbstractAxisInput*>& lhs, const QVector<Qt3DInput::QAbstractAxisInput*>& 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::QVectorOfQAbstractAxisInput>) -> bool {
crate::__ffi::ctr_qt_3d_input_ffi_operator__7(
self as *const crate::QVectorOfQAbstractAxisInput,
rhs.as_raw_ptr(),
)
}
}
impl ::cpp_core::cmp::Ge<::cpp_core::Ref<crate::QVectorOfQAction>> for crate::QVectorOfQAction {
/// <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<Qt3DInput::QAction*>& lhs, const QVector<Qt3DInput::QAction*>& 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::QVectorOfQAction>) -> bool {
crate::__ffi::ctr_qt_3d_input_ffi_operator__8(
self as *const crate::QVectorOfQAction,
rhs.as_raw_ptr(),
)
}
}
impl ::cpp_core::cmp::Ge<::cpp_core::Ref<crate::QVectorOfQAxis>> for crate::QVectorOfQAxis {
/// <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<Qt3DInput::QAxis*>& lhs, const QVector<Qt3DInput::QAxis*>& 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::QVectorOfQAxis>) -> bool {
crate::__ffi::ctr_qt_3d_input_ffi_operator__9(
self as *const crate::QVectorOfQAxis,
rhs.as_raw_ptr(),
)
}
}
impl ::cpp_core::StaticDowncast<crate::QAbstractActionInput> for ::qt_3d_core::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QAbstractActionInput* static_cast<Qt3DInput::QAbstractActionInput*>(Qt3DCore::QNode* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QNode>,
) -> ::cpp_core::Ptr<crate::QAbstractActionInput> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_Qt3DInput_QAbstractActionInput_ptr(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QNode,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_3d_core::QNode> for crate::QAbstractActionInput {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DInput::QAbstractActionInput* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QAbstractActionInput>,
) -> ::cpp_core::Ptr<::qt_3d_core::QNode> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_Qt3DCore_QNode_ptr(
ptr.as_raw_ptr() as *mut crate::QAbstractActionInput
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::std::ops::Deref for crate::QAbstractActionInput {
type Target = ::qt_3d_core::QNode;
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DInput::QAbstractActionInput* ptr)```</span>.
#[inline(always)]
fn deref(&self) -> &::qt_3d_core::QNode {
let ffi_result = {
unsafe {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_Qt3DCore_QNode_ptr(
self as *const crate::QAbstractActionInput as *mut crate::QAbstractActionInput,
)
}
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_core::DynamicCast<crate::QAbstractActionInput> for ::qt_3d_core::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QAbstractActionInput* dynamic_cast<Qt3DInput::QAbstractActionInput*>(Qt3DCore::QNode* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QNode>,
) -> ::cpp_core::Ptr<crate::QAbstractActionInput> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_dynamic_cast_Qt3DInput_QAbstractActionInput_ptr(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QNode,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QAbstractActionInput> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QAbstractActionInput* static_cast<Qt3DInput::QAbstractActionInput*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QAbstractActionInput> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_Qt3DInput_QAbstractActionInput_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::QAbstractActionInput {
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(Qt3DInput::QAbstractActionInput* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QAbstractActionInput>,
) -> ::cpp_core::Ptr<::qt_core::QObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_QObject_ptr(
ptr.as_raw_ptr() as *mut crate::QAbstractActionInput
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QAbstractActionInput> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QAbstractActionInput* dynamic_cast<Qt3DInput::QAbstractActionInput*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QAbstractActionInput> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_dynamic_cast_Qt3DInput_QAbstractActionInput_ptr1(
ptr.as_raw_ptr() as *mut ::qt_core::QObject,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QAbstractPhysicalDevice> for ::qt_3d_core::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QAbstractPhysicalDevice* static_cast<Qt3DInput::QAbstractPhysicalDevice*>(Qt3DCore::QNode* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QNode>,
) -> ::cpp_core::Ptr<crate::QAbstractPhysicalDevice> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_Qt3DInput_QAbstractPhysicalDevice_ptr(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QNode,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_3d_core::QNode> for crate::QAbstractPhysicalDevice {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DInput::QAbstractPhysicalDevice* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QAbstractPhysicalDevice>,
) -> ::cpp_core::Ptr<::qt_3d_core::QNode> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_Qt3DCore_QNode_ptr1(
ptr.as_raw_ptr() as *mut crate::QAbstractPhysicalDevice
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::std::ops::Deref for crate::QAbstractPhysicalDevice {
type Target = ::qt_3d_core::QNode;
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DInput::QAbstractPhysicalDevice* ptr)```</span>.
#[inline(always)]
fn deref(&self) -> &::qt_3d_core::QNode {
let ffi_result = {
unsafe {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_Qt3DCore_QNode_ptr1(
self as *const crate::QAbstractPhysicalDevice
as *mut crate::QAbstractPhysicalDevice,
)
}
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_core::DynamicCast<crate::QAbstractPhysicalDevice> for ::qt_3d_core::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QAbstractPhysicalDevice* dynamic_cast<Qt3DInput::QAbstractPhysicalDevice*>(Qt3DCore::QNode* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QNode>,
) -> ::cpp_core::Ptr<crate::QAbstractPhysicalDevice> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_dynamic_cast_Qt3DInput_QAbstractPhysicalDevice_ptr(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QNode,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QAbstractPhysicalDevice> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QAbstractPhysicalDevice* static_cast<Qt3DInput::QAbstractPhysicalDevice*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QAbstractPhysicalDevice> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_Qt3DInput_QAbstractPhysicalDevice_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::QAbstractPhysicalDevice {
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(Qt3DInput::QAbstractPhysicalDevice* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QAbstractPhysicalDevice>,
) -> ::cpp_core::Ptr<::qt_core::QObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_QObject_ptr1(
ptr.as_raw_ptr() as *mut crate::QAbstractPhysicalDevice
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QAbstractPhysicalDevice> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QAbstractPhysicalDevice* dynamic_cast<Qt3DInput::QAbstractPhysicalDevice*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QAbstractPhysicalDevice> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_dynamic_cast_Qt3DInput_QAbstractPhysicalDevice_ptr1(
ptr.as_raw_ptr() as *mut ::qt_core::QObject,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QAbstractAxisInput> for ::qt_3d_core::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QAbstractAxisInput* static_cast<Qt3DInput::QAbstractAxisInput*>(Qt3DCore::QNode* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QNode>,
) -> ::cpp_core::Ptr<crate::QAbstractAxisInput> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_Qt3DInput_QAbstractAxisInput_ptr(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QNode,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_3d_core::QNode> for crate::QAbstractAxisInput {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DInput::QAbstractAxisInput* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QAbstractAxisInput>,
) -> ::cpp_core::Ptr<::qt_3d_core::QNode> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_Qt3DCore_QNode_ptr2(
ptr.as_raw_ptr() as *mut crate::QAbstractAxisInput
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::std::ops::Deref for crate::QAbstractAxisInput {
type Target = ::qt_3d_core::QNode;
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DInput::QAbstractAxisInput* ptr)```</span>.
#[inline(always)]
fn deref(&self) -> &::qt_3d_core::QNode {
let ffi_result = {
unsafe {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_Qt3DCore_QNode_ptr2(
self as *const crate::QAbstractAxisInput as *mut crate::QAbstractAxisInput,
)
}
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_core::DynamicCast<crate::QAbstractAxisInput> for ::qt_3d_core::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QAbstractAxisInput* dynamic_cast<Qt3DInput::QAbstractAxisInput*>(Qt3DCore::QNode* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QNode>,
) -> ::cpp_core::Ptr<crate::QAbstractAxisInput> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_dynamic_cast_Qt3DInput_QAbstractAxisInput_ptr(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QNode,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QAbstractAxisInput> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QAbstractAxisInput* static_cast<Qt3DInput::QAbstractAxisInput*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QAbstractAxisInput> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_Qt3DInput_QAbstractAxisInput_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::QAbstractAxisInput {
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(Qt3DInput::QAbstractAxisInput* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QAbstractAxisInput>,
) -> ::cpp_core::Ptr<::qt_core::QObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_QObject_ptr2(
ptr.as_raw_ptr() as *mut crate::QAbstractAxisInput
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QAbstractAxisInput> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QAbstractAxisInput* dynamic_cast<Qt3DInput::QAbstractAxisInput*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QAbstractAxisInput> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_dynamic_cast_Qt3DInput_QAbstractAxisInput_ptr1(
ptr.as_raw_ptr() as *mut ::qt_core::QObject,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QAction> for ::qt_3d_core::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QAction* static_cast<Qt3DInput::QAction*>(Qt3DCore::QNode* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QNode>,
) -> ::cpp_core::Ptr<crate::QAction> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_Qt3DInput_QAction_ptr(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QNode
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_3d_core::QNode> for crate::QAction {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DInput::QAction* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QAction>,
) -> ::cpp_core::Ptr<::qt_3d_core::QNode> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_Qt3DCore_QNode_ptr3(
ptr.as_raw_ptr() as *mut crate::QAction
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::std::ops::Deref for crate::QAction {
type Target = ::qt_3d_core::QNode;
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DInput::QAction* ptr)```</span>.
#[inline(always)]
fn deref(&self) -> &::qt_3d_core::QNode {
let ffi_result = {
unsafe {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_Qt3DCore_QNode_ptr3(
self as *const crate::QAction as *mut crate::QAction,
)
}
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_core::DynamicCast<crate::QAction> for ::qt_3d_core::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QAction* dynamic_cast<Qt3DInput::QAction*>(Qt3DCore::QNode* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QNode>,
) -> ::cpp_core::Ptr<crate::QAction> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_dynamic_cast_Qt3DInput_QAction_ptr(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QNode
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QAction> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QAction* static_cast<Qt3DInput::QAction*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QAction> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_Qt3DInput_QAction_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::QAction {
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(Qt3DInput::QAction* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QAction>,
) -> ::cpp_core::Ptr<::qt_core::QObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_QObject_ptr3(
ptr.as_raw_ptr() as *mut crate::QAction
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QAction> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QAction* dynamic_cast<Qt3DInput::QAction*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QAction> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_dynamic_cast_Qt3DInput_QAction_ptr1(
ptr.as_raw_ptr() as *mut ::qt_core::QObject
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QActionInput> for crate::QAbstractActionInput {
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QActionInput* static_cast<Qt3DInput::QActionInput*>(Qt3DInput::QAbstractActionInput* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<crate::QAbstractActionInput>,
) -> ::cpp_core::Ptr<crate::QActionInput> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_Qt3DInput_QActionInput_ptr(
ptr.as_raw_ptr() as *mut crate::QAbstractActionInput,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<crate::QAbstractActionInput> for crate::QActionInput {
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QAbstractActionInput* static_cast<Qt3DInput::QAbstractActionInput*>(Qt3DInput::QActionInput* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QActionInput>,
) -> ::cpp_core::Ptr<crate::QAbstractActionInput> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_Qt3DInput_QAbstractActionInput_ptr2(
ptr.as_raw_ptr() as *mut crate::QActionInput,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::std::ops::Deref for crate::QActionInput {
type Target = crate::QAbstractActionInput;
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QAbstractActionInput* static_cast<Qt3DInput::QAbstractActionInput*>(Qt3DInput::QActionInput* ptr)```</span>.
#[inline(always)]
fn deref(&self) -> &crate::QAbstractActionInput {
let ffi_result = {
unsafe {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_Qt3DInput_QAbstractActionInput_ptr2(
self as *const crate::QActionInput as *mut crate::QActionInput,
)
}
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_core::DynamicCast<crate::QActionInput> for crate::QAbstractActionInput {
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QActionInput* dynamic_cast<Qt3DInput::QActionInput*>(Qt3DInput::QAbstractActionInput* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<crate::QAbstractActionInput>,
) -> ::cpp_core::Ptr<crate::QActionInput> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_dynamic_cast_Qt3DInput_QActionInput_ptr(
ptr.as_raw_ptr() as *mut crate::QAbstractActionInput,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QActionInput> for ::qt_3d_core::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QActionInput* static_cast<Qt3DInput::QActionInput*>(Qt3DCore::QNode* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QNode>,
) -> ::cpp_core::Ptr<crate::QActionInput> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_Qt3DInput_QActionInput_ptr1(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QNode,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_3d_core::QNode> for crate::QActionInput {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DInput::QActionInput* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QActionInput>,
) -> ::cpp_core::Ptr<::qt_3d_core::QNode> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_Qt3DCore_QNode_ptr4(
ptr.as_raw_ptr() as *mut crate::QActionInput
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QActionInput> for ::qt_3d_core::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QActionInput* dynamic_cast<Qt3DInput::QActionInput*>(Qt3DCore::QNode* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QNode>,
) -> ::cpp_core::Ptr<crate::QActionInput> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_dynamic_cast_Qt3DInput_QActionInput_ptr1(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QNode,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QActionInput> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QActionInput* static_cast<Qt3DInput::QActionInput*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QActionInput> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_Qt3DInput_QActionInput_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::QActionInput {
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(Qt3DInput::QActionInput* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QActionInput>,
) -> ::cpp_core::Ptr<::qt_core::QObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_QObject_ptr4(
ptr.as_raw_ptr() as *mut crate::QActionInput
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QActionInput> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QActionInput* dynamic_cast<Qt3DInput::QActionInput*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QActionInput> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_dynamic_cast_Qt3DInput_QActionInput_ptr2(
ptr.as_raw_ptr() as *mut ::qt_core::QObject,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QAnalogAxisInput> for crate::QAbstractAxisInput {
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QAnalogAxisInput* static_cast<Qt3DInput::QAnalogAxisInput*>(Qt3DInput::QAbstractAxisInput* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<crate::QAbstractAxisInput>,
) -> ::cpp_core::Ptr<crate::QAnalogAxisInput> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_Qt3DInput_QAnalogAxisInput_ptr(
ptr.as_raw_ptr() as *mut crate::QAbstractAxisInput,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<crate::QAbstractAxisInput> for crate::QAnalogAxisInput {
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QAbstractAxisInput* static_cast<Qt3DInput::QAbstractAxisInput*>(Qt3DInput::QAnalogAxisInput* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QAnalogAxisInput>,
) -> ::cpp_core::Ptr<crate::QAbstractAxisInput> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_Qt3DInput_QAbstractAxisInput_ptr2(
ptr.as_raw_ptr() as *mut crate::QAnalogAxisInput,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::std::ops::Deref for crate::QAnalogAxisInput {
type Target = crate::QAbstractAxisInput;
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QAbstractAxisInput* static_cast<Qt3DInput::QAbstractAxisInput*>(Qt3DInput::QAnalogAxisInput* ptr)```</span>.
#[inline(always)]
fn deref(&self) -> &crate::QAbstractAxisInput {
let ffi_result = {
unsafe {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_Qt3DInput_QAbstractAxisInput_ptr2(
self as *const crate::QAnalogAxisInput as *mut crate::QAnalogAxisInput,
)
}
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_core::DynamicCast<crate::QAnalogAxisInput> for crate::QAbstractAxisInput {
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QAnalogAxisInput* dynamic_cast<Qt3DInput::QAnalogAxisInput*>(Qt3DInput::QAbstractAxisInput* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<crate::QAbstractAxisInput>,
) -> ::cpp_core::Ptr<crate::QAnalogAxisInput> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_dynamic_cast_Qt3DInput_QAnalogAxisInput_ptr(
ptr.as_raw_ptr() as *mut crate::QAbstractAxisInput,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QAnalogAxisInput> for ::qt_3d_core::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QAnalogAxisInput* static_cast<Qt3DInput::QAnalogAxisInput*>(Qt3DCore::QNode* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QNode>,
) -> ::cpp_core::Ptr<crate::QAnalogAxisInput> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_Qt3DInput_QAnalogAxisInput_ptr1(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QNode,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_3d_core::QNode> for crate::QAnalogAxisInput {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DInput::QAnalogAxisInput* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QAnalogAxisInput>,
) -> ::cpp_core::Ptr<::qt_3d_core::QNode> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_Qt3DCore_QNode_ptr5(
ptr.as_raw_ptr() as *mut crate::QAnalogAxisInput
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QAnalogAxisInput> for ::qt_3d_core::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QAnalogAxisInput* dynamic_cast<Qt3DInput::QAnalogAxisInput*>(Qt3DCore::QNode* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QNode>,
) -> ::cpp_core::Ptr<crate::QAnalogAxisInput> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_dynamic_cast_Qt3DInput_QAnalogAxisInput_ptr1(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QNode,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QAnalogAxisInput> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QAnalogAxisInput* static_cast<Qt3DInput::QAnalogAxisInput*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QAnalogAxisInput> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_Qt3DInput_QAnalogAxisInput_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::QAnalogAxisInput {
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(Qt3DInput::QAnalogAxisInput* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QAnalogAxisInput>,
) -> ::cpp_core::Ptr<::qt_core::QObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_QObject_ptr5(
ptr.as_raw_ptr() as *mut crate::QAnalogAxisInput
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QAnalogAxisInput> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QAnalogAxisInput* dynamic_cast<Qt3DInput::QAnalogAxisInput*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QAnalogAxisInput> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_dynamic_cast_Qt3DInput_QAnalogAxisInput_ptr2(
ptr.as_raw_ptr() as *mut ::qt_core::QObject,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QAxis> for ::qt_3d_core::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QAxis* static_cast<Qt3DInput::QAxis*>(Qt3DCore::QNode* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QNode>,
) -> ::cpp_core::Ptr<crate::QAxis> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_Qt3DInput_QAxis_ptr(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QNode
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_3d_core::QNode> for crate::QAxis {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DInput::QAxis* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QAxis>,
) -> ::cpp_core::Ptr<::qt_3d_core::QNode> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_Qt3DCore_QNode_ptr6(
ptr.as_raw_ptr() as *mut crate::QAxis
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::std::ops::Deref for crate::QAxis {
type Target = ::qt_3d_core::QNode;
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DInput::QAxis* ptr)```</span>.
#[inline(always)]
fn deref(&self) -> &::qt_3d_core::QNode {
let ffi_result = {
unsafe {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_Qt3DCore_QNode_ptr6(
self as *const crate::QAxis as *mut crate::QAxis,
)
}
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_core::DynamicCast<crate::QAxis> for ::qt_3d_core::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QAxis* dynamic_cast<Qt3DInput::QAxis*>(Qt3DCore::QNode* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QNode>,
) -> ::cpp_core::Ptr<crate::QAxis> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_dynamic_cast_Qt3DInput_QAxis_ptr(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QNode
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QAxis> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QAxis* static_cast<Qt3DInput::QAxis*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QAxis> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_Qt3DInput_QAxis_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::QAxis {
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(Qt3DInput::QAxis* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QAxis>,
) -> ::cpp_core::Ptr<::qt_core::QObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_QObject_ptr6(
ptr.as_raw_ptr() as *mut crate::QAxis
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QAxis> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QAxis* dynamic_cast<Qt3DInput::QAxis*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QAxis> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_dynamic_cast_Qt3DInput_QAxis_ptr1(
ptr.as_raw_ptr() as *mut ::qt_core::QObject
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QAxisAccumulator> for ::qt_3d_core::QComponent {
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QAxisAccumulator* static_cast<Qt3DInput::QAxisAccumulator*>(Qt3DCore::QComponent* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QComponent>,
) -> ::cpp_core::Ptr<crate::QAxisAccumulator> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_Qt3DInput_QAxisAccumulator_ptr(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QComponent,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_3d_core::QComponent> for crate::QAxisAccumulator {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QComponent* static_cast<Qt3DCore::QComponent*>(Qt3DInput::QAxisAccumulator* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QAxisAccumulator>,
) -> ::cpp_core::Ptr<::qt_3d_core::QComponent> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_Qt3DCore_QComponent_ptr(
ptr.as_raw_ptr() as *mut crate::QAxisAccumulator
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::std::ops::Deref for crate::QAxisAccumulator {
type Target = ::qt_3d_core::QComponent;
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QComponent* static_cast<Qt3DCore::QComponent*>(Qt3DInput::QAxisAccumulator* ptr)```</span>.
#[inline(always)]
fn deref(&self) -> &::qt_3d_core::QComponent {
let ffi_result = {
unsafe {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_Qt3DCore_QComponent_ptr(
self as *const crate::QAxisAccumulator as *mut crate::QAxisAccumulator,
)
}
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_core::DynamicCast<crate::QAxisAccumulator> for ::qt_3d_core::QComponent {
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QAxisAccumulator* dynamic_cast<Qt3DInput::QAxisAccumulator*>(Qt3DCore::QComponent* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QComponent>,
) -> ::cpp_core::Ptr<crate::QAxisAccumulator> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_dynamic_cast_Qt3DInput_QAxisAccumulator_ptr(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QComponent,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QAxisAccumulator> for ::qt_3d_core::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QAxisAccumulator* static_cast<Qt3DInput::QAxisAccumulator*>(Qt3DCore::QNode* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QNode>,
) -> ::cpp_core::Ptr<crate::QAxisAccumulator> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_Qt3DInput_QAxisAccumulator_ptr1(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QNode,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_3d_core::QNode> for crate::QAxisAccumulator {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DInput::QAxisAccumulator* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QAxisAccumulator>,
) -> ::cpp_core::Ptr<::qt_3d_core::QNode> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_Qt3DCore_QNode_ptr7(
ptr.as_raw_ptr() as *mut crate::QAxisAccumulator
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QAxisAccumulator> for ::qt_3d_core::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QAxisAccumulator* dynamic_cast<Qt3DInput::QAxisAccumulator*>(Qt3DCore::QNode* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QNode>,
) -> ::cpp_core::Ptr<crate::QAxisAccumulator> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_dynamic_cast_Qt3DInput_QAxisAccumulator_ptr1(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QNode,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QAxisAccumulator> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QAxisAccumulator* static_cast<Qt3DInput::QAxisAccumulator*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QAxisAccumulator> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_Qt3DInput_QAxisAccumulator_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::QAxisAccumulator {
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(Qt3DInput::QAxisAccumulator* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QAxisAccumulator>,
) -> ::cpp_core::Ptr<::qt_core::QObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_QObject_ptr7(
ptr.as_raw_ptr() as *mut crate::QAxisAccumulator
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QAxisAccumulator> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QAxisAccumulator* dynamic_cast<Qt3DInput::QAxisAccumulator*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QAxisAccumulator> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_dynamic_cast_Qt3DInput_QAxisAccumulator_ptr2(
ptr.as_raw_ptr() as *mut ::qt_core::QObject,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QAxisSetting> for ::qt_3d_core::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QAxisSetting* static_cast<Qt3DInput::QAxisSetting*>(Qt3DCore::QNode* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QNode>,
) -> ::cpp_core::Ptr<crate::QAxisSetting> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_Qt3DInput_QAxisSetting_ptr(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QNode,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_3d_core::QNode> for crate::QAxisSetting {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DInput::QAxisSetting* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QAxisSetting>,
) -> ::cpp_core::Ptr<::qt_3d_core::QNode> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_Qt3DCore_QNode_ptr8(
ptr.as_raw_ptr() as *mut crate::QAxisSetting
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::std::ops::Deref for crate::QAxisSetting {
type Target = ::qt_3d_core::QNode;
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DInput::QAxisSetting* ptr)```</span>.
#[inline(always)]
fn deref(&self) -> &::qt_3d_core::QNode {
let ffi_result = {
unsafe {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_Qt3DCore_QNode_ptr8(
self as *const crate::QAxisSetting as *mut crate::QAxisSetting,
)
}
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_core::DynamicCast<crate::QAxisSetting> for ::qt_3d_core::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QAxisSetting* dynamic_cast<Qt3DInput::QAxisSetting*>(Qt3DCore::QNode* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QNode>,
) -> ::cpp_core::Ptr<crate::QAxisSetting> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_dynamic_cast_Qt3DInput_QAxisSetting_ptr(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QNode,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QAxisSetting> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QAxisSetting* static_cast<Qt3DInput::QAxisSetting*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QAxisSetting> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_Qt3DInput_QAxisSetting_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::QAxisSetting {
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(Qt3DInput::QAxisSetting* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QAxisSetting>,
) -> ::cpp_core::Ptr<::qt_core::QObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_QObject_ptr8(
ptr.as_raw_ptr() as *mut crate::QAxisSetting
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QAxisSetting> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QAxisSetting* dynamic_cast<Qt3DInput::QAxisSetting*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QAxisSetting> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_dynamic_cast_Qt3DInput_QAxisSetting_ptr1(
ptr.as_raw_ptr() as *mut ::qt_core::QObject,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QButtonAxisInput> for crate::QAbstractAxisInput {
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QButtonAxisInput* static_cast<Qt3DInput::QButtonAxisInput*>(Qt3DInput::QAbstractAxisInput* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<crate::QAbstractAxisInput>,
) -> ::cpp_core::Ptr<crate::QButtonAxisInput> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_Qt3DInput_QButtonAxisInput_ptr(
ptr.as_raw_ptr() as *mut crate::QAbstractAxisInput,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<crate::QAbstractAxisInput> for crate::QButtonAxisInput {
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QAbstractAxisInput* static_cast<Qt3DInput::QAbstractAxisInput*>(Qt3DInput::QButtonAxisInput* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QButtonAxisInput>,
) -> ::cpp_core::Ptr<crate::QAbstractAxisInput> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_Qt3DInput_QAbstractAxisInput_ptr3(
ptr.as_raw_ptr() as *mut crate::QButtonAxisInput,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::std::ops::Deref for crate::QButtonAxisInput {
type Target = crate::QAbstractAxisInput;
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QAbstractAxisInput* static_cast<Qt3DInput::QAbstractAxisInput*>(Qt3DInput::QButtonAxisInput* ptr)```</span>.
#[inline(always)]
fn deref(&self) -> &crate::QAbstractAxisInput {
let ffi_result = {
unsafe {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_Qt3DInput_QAbstractAxisInput_ptr3(
self as *const crate::QButtonAxisInput as *mut crate::QButtonAxisInput,
)
}
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_core::DynamicCast<crate::QButtonAxisInput> for crate::QAbstractAxisInput {
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QButtonAxisInput* dynamic_cast<Qt3DInput::QButtonAxisInput*>(Qt3DInput::QAbstractAxisInput* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<crate::QAbstractAxisInput>,
) -> ::cpp_core::Ptr<crate::QButtonAxisInput> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_dynamic_cast_Qt3DInput_QButtonAxisInput_ptr(
ptr.as_raw_ptr() as *mut crate::QAbstractAxisInput,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QButtonAxisInput> for ::qt_3d_core::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QButtonAxisInput* static_cast<Qt3DInput::QButtonAxisInput*>(Qt3DCore::QNode* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QNode>,
) -> ::cpp_core::Ptr<crate::QButtonAxisInput> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_Qt3DInput_QButtonAxisInput_ptr1(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QNode,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_3d_core::QNode> for crate::QButtonAxisInput {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DInput::QButtonAxisInput* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QButtonAxisInput>,
) -> ::cpp_core::Ptr<::qt_3d_core::QNode> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_Qt3DCore_QNode_ptr9(
ptr.as_raw_ptr() as *mut crate::QButtonAxisInput
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QButtonAxisInput> for ::qt_3d_core::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QButtonAxisInput* dynamic_cast<Qt3DInput::QButtonAxisInput*>(Qt3DCore::QNode* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QNode>,
) -> ::cpp_core::Ptr<crate::QButtonAxisInput> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_dynamic_cast_Qt3DInput_QButtonAxisInput_ptr1(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QNode,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QButtonAxisInput> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QButtonAxisInput* static_cast<Qt3DInput::QButtonAxisInput*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QButtonAxisInput> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_Qt3DInput_QButtonAxisInput_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::QButtonAxisInput {
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(Qt3DInput::QButtonAxisInput* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QButtonAxisInput>,
) -> ::cpp_core::Ptr<::qt_core::QObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_QObject_ptr9(
ptr.as_raw_ptr() as *mut crate::QButtonAxisInput
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QButtonAxisInput> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QButtonAxisInput* dynamic_cast<Qt3DInput::QButtonAxisInput*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QButtonAxisInput> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_dynamic_cast_Qt3DInput_QButtonAxisInput_ptr2(
ptr.as_raw_ptr() as *mut ::qt_core::QObject,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QInputAspect> for ::qt_3d_core::QAbstractAspect {
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QInputAspect* static_cast<Qt3DInput::QInputAspect*>(Qt3DCore::QAbstractAspect* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QAbstractAspect>,
) -> ::cpp_core::Ptr<crate::QInputAspect> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_Qt3DInput_QInputAspect_ptr(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QAbstractAspect,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_3d_core::QAbstractAspect> for crate::QInputAspect {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QAbstractAspect* static_cast<Qt3DCore::QAbstractAspect*>(Qt3DInput::QInputAspect* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QInputAspect>,
) -> ::cpp_core::Ptr<::qt_3d_core::QAbstractAspect> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_Qt3DCore_QAbstractAspect_ptr(
ptr.as_raw_ptr() as *mut crate::QInputAspect,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::std::ops::Deref for crate::QInputAspect {
type Target = ::qt_3d_core::QAbstractAspect;
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QAbstractAspect* static_cast<Qt3DCore::QAbstractAspect*>(Qt3DInput::QInputAspect* ptr)```</span>.
#[inline(always)]
fn deref(&self) -> &::qt_3d_core::QAbstractAspect {
let ffi_result = {
unsafe {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_Qt3DCore_QAbstractAspect_ptr(
self as *const crate::QInputAspect as *mut crate::QInputAspect,
)
}
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_core::DynamicCast<crate::QInputAspect> for ::qt_3d_core::QAbstractAspect {
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QInputAspect* dynamic_cast<Qt3DInput::QInputAspect*>(Qt3DCore::QAbstractAspect* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QAbstractAspect>,
) -> ::cpp_core::Ptr<crate::QInputAspect> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_dynamic_cast_Qt3DInput_QInputAspect_ptr(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QAbstractAspect,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QInputAspect> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QInputAspect* static_cast<Qt3DInput::QInputAspect*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QInputAspect> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_Qt3DInput_QInputAspect_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::QInputAspect {
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(Qt3DInput::QInputAspect* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QInputAspect>,
) -> ::cpp_core::Ptr<::qt_core::QObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_QObject_ptr10(
ptr.as_raw_ptr() as *mut crate::QInputAspect
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QInputAspect> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QInputAspect* dynamic_cast<Qt3DInput::QInputAspect*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QInputAspect> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_dynamic_cast_Qt3DInput_QInputAspect_ptr1(
ptr.as_raw_ptr() as *mut ::qt_core::QObject,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QInputChord> for crate::QAbstractActionInput {
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QInputChord* static_cast<Qt3DInput::QInputChord*>(Qt3DInput::QAbstractActionInput* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<crate::QAbstractActionInput>,
) -> ::cpp_core::Ptr<crate::QInputChord> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_Qt3DInput_QInputChord_ptr(
ptr.as_raw_ptr() as *mut crate::QAbstractActionInput,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<crate::QAbstractActionInput> for crate::QInputChord {
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QAbstractActionInput* static_cast<Qt3DInput::QAbstractActionInput*>(Qt3DInput::QInputChord* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QInputChord>,
) -> ::cpp_core::Ptr<crate::QAbstractActionInput> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_Qt3DInput_QAbstractActionInput_ptr3(
ptr.as_raw_ptr() as *mut crate::QInputChord,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::std::ops::Deref for crate::QInputChord {
type Target = crate::QAbstractActionInput;
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QAbstractActionInput* static_cast<Qt3DInput::QAbstractActionInput*>(Qt3DInput::QInputChord* ptr)```</span>.
#[inline(always)]
fn deref(&self) -> &crate::QAbstractActionInput {
let ffi_result = {
unsafe {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_Qt3DInput_QAbstractActionInput_ptr3(
self as *const crate::QInputChord as *mut crate::QInputChord,
)
}
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_core::DynamicCast<crate::QInputChord> for crate::QAbstractActionInput {
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QInputChord* dynamic_cast<Qt3DInput::QInputChord*>(Qt3DInput::QAbstractActionInput* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<crate::QAbstractActionInput>,
) -> ::cpp_core::Ptr<crate::QInputChord> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_dynamic_cast_Qt3DInput_QInputChord_ptr(
ptr.as_raw_ptr() as *mut crate::QAbstractActionInput,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QInputChord> for ::qt_3d_core::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QInputChord* static_cast<Qt3DInput::QInputChord*>(Qt3DCore::QNode* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QNode>,
) -> ::cpp_core::Ptr<crate::QInputChord> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_Qt3DInput_QInputChord_ptr1(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QNode,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_3d_core::QNode> for crate::QInputChord {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DInput::QInputChord* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QInputChord>,
) -> ::cpp_core::Ptr<::qt_3d_core::QNode> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_Qt3DCore_QNode_ptr10(
ptr.as_raw_ptr() as *mut crate::QInputChord
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QInputChord> for ::qt_3d_core::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QInputChord* dynamic_cast<Qt3DInput::QInputChord*>(Qt3DCore::QNode* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QNode>,
) -> ::cpp_core::Ptr<crate::QInputChord> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_dynamic_cast_Qt3DInput_QInputChord_ptr1(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QNode,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QInputChord> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QInputChord* static_cast<Qt3DInput::QInputChord*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QInputChord> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_Qt3DInput_QInputChord_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::QInputChord {
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(Qt3DInput::QInputChord* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QInputChord>,
) -> ::cpp_core::Ptr<::qt_core::QObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_QObject_ptr11(
ptr.as_raw_ptr() as *mut crate::QInputChord
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QInputChord> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QInputChord* dynamic_cast<Qt3DInput::QInputChord*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QInputChord> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_dynamic_cast_Qt3DInput_QInputChord_ptr2(
ptr.as_raw_ptr() as *mut ::qt_core::QObject,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QInputSequence> for crate::QAbstractActionInput {
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QInputSequence* static_cast<Qt3DInput::QInputSequence*>(Qt3DInput::QAbstractActionInput* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<crate::QAbstractActionInput>,
) -> ::cpp_core::Ptr<crate::QInputSequence> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_Qt3DInput_QInputSequence_ptr(
ptr.as_raw_ptr() as *mut crate::QAbstractActionInput,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<crate::QAbstractActionInput> for crate::QInputSequence {
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QAbstractActionInput* static_cast<Qt3DInput::QAbstractActionInput*>(Qt3DInput::QInputSequence* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QInputSequence>,
) -> ::cpp_core::Ptr<crate::QAbstractActionInput> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_Qt3DInput_QAbstractActionInput_ptr4(
ptr.as_raw_ptr() as *mut crate::QInputSequence,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::std::ops::Deref for crate::QInputSequence {
type Target = crate::QAbstractActionInput;
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QAbstractActionInput* static_cast<Qt3DInput::QAbstractActionInput*>(Qt3DInput::QInputSequence* ptr)```</span>.
#[inline(always)]
fn deref(&self) -> &crate::QAbstractActionInput {
let ffi_result = {
unsafe {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_Qt3DInput_QAbstractActionInput_ptr4(
self as *const crate::QInputSequence as *mut crate::QInputSequence,
)
}
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_core::DynamicCast<crate::QInputSequence> for crate::QAbstractActionInput {
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QInputSequence* dynamic_cast<Qt3DInput::QInputSequence*>(Qt3DInput::QAbstractActionInput* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<crate::QAbstractActionInput>,
) -> ::cpp_core::Ptr<crate::QInputSequence> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_dynamic_cast_Qt3DInput_QInputSequence_ptr(
ptr.as_raw_ptr() as *mut crate::QAbstractActionInput,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QInputSequence> for ::qt_3d_core::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QInputSequence* static_cast<Qt3DInput::QInputSequence*>(Qt3DCore::QNode* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QNode>,
) -> ::cpp_core::Ptr<crate::QInputSequence> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_Qt3DInput_QInputSequence_ptr1(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QNode,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_3d_core::QNode> for crate::QInputSequence {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DInput::QInputSequence* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QInputSequence>,
) -> ::cpp_core::Ptr<::qt_3d_core::QNode> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_Qt3DCore_QNode_ptr11(
ptr.as_raw_ptr() as *mut crate::QInputSequence
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QInputSequence> for ::qt_3d_core::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QInputSequence* dynamic_cast<Qt3DInput::QInputSequence*>(Qt3DCore::QNode* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QNode>,
) -> ::cpp_core::Ptr<crate::QInputSequence> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_dynamic_cast_Qt3DInput_QInputSequence_ptr1(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QNode,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QInputSequence> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QInputSequence* static_cast<Qt3DInput::QInputSequence*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QInputSequence> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_Qt3DInput_QInputSequence_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::QInputSequence {
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(Qt3DInput::QInputSequence* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QInputSequence>,
) -> ::cpp_core::Ptr<::qt_core::QObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_QObject_ptr12(
ptr.as_raw_ptr() as *mut crate::QInputSequence
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QInputSequence> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QInputSequence* dynamic_cast<Qt3DInput::QInputSequence*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QInputSequence> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_dynamic_cast_Qt3DInput_QInputSequence_ptr2(
ptr.as_raw_ptr() as *mut ::qt_core::QObject,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QInputSettings> for ::qt_3d_core::QComponent {
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QInputSettings* static_cast<Qt3DInput::QInputSettings*>(Qt3DCore::QComponent* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QComponent>,
) -> ::cpp_core::Ptr<crate::QInputSettings> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_Qt3DInput_QInputSettings_ptr(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QComponent,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_3d_core::QComponent> for crate::QInputSettings {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QComponent* static_cast<Qt3DCore::QComponent*>(Qt3DInput::QInputSettings* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QInputSettings>,
) -> ::cpp_core::Ptr<::qt_3d_core::QComponent> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_Qt3DCore_QComponent_ptr1(
ptr.as_raw_ptr() as *mut crate::QInputSettings
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::std::ops::Deref for crate::QInputSettings {
type Target = ::qt_3d_core::QComponent;
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QComponent* static_cast<Qt3DCore::QComponent*>(Qt3DInput::QInputSettings* ptr)```</span>.
#[inline(always)]
fn deref(&self) -> &::qt_3d_core::QComponent {
let ffi_result = {
unsafe {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_Qt3DCore_QComponent_ptr1(
self as *const crate::QInputSettings as *mut crate::QInputSettings,
)
}
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_core::DynamicCast<crate::QInputSettings> for ::qt_3d_core::QComponent {
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QInputSettings* dynamic_cast<Qt3DInput::QInputSettings*>(Qt3DCore::QComponent* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QComponent>,
) -> ::cpp_core::Ptr<crate::QInputSettings> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_dynamic_cast_Qt3DInput_QInputSettings_ptr(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QComponent,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QInputSettings> for ::qt_3d_core::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QInputSettings* static_cast<Qt3DInput::QInputSettings*>(Qt3DCore::QNode* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QNode>,
) -> ::cpp_core::Ptr<crate::QInputSettings> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_Qt3DInput_QInputSettings_ptr1(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QNode,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_3d_core::QNode> for crate::QInputSettings {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DInput::QInputSettings* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QInputSettings>,
) -> ::cpp_core::Ptr<::qt_3d_core::QNode> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_Qt3DCore_QNode_ptr12(
ptr.as_raw_ptr() as *mut crate::QInputSettings
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QInputSettings> for ::qt_3d_core::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QInputSettings* dynamic_cast<Qt3DInput::QInputSettings*>(Qt3DCore::QNode* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QNode>,
) -> ::cpp_core::Ptr<crate::QInputSettings> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_dynamic_cast_Qt3DInput_QInputSettings_ptr1(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QNode,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QInputSettings> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QInputSettings* static_cast<Qt3DInput::QInputSettings*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QInputSettings> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_Qt3DInput_QInputSettings_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::QInputSettings {
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(Qt3DInput::QInputSettings* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QInputSettings>,
) -> ::cpp_core::Ptr<::qt_core::QObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_QObject_ptr13(
ptr.as_raw_ptr() as *mut crate::QInputSettings
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QInputSettings> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QInputSettings* dynamic_cast<Qt3DInput::QInputSettings*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QInputSettings> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_dynamic_cast_Qt3DInput_QInputSettings_ptr2(
ptr.as_raw_ptr() as *mut ::qt_core::QObject,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QKeyEvent> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QKeyEvent* static_cast<Qt3DInput::QKeyEvent*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QKeyEvent> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_Qt3DInput_QKeyEvent_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::QKeyEvent {
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(Qt3DInput::QKeyEvent* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QKeyEvent>,
) -> ::cpp_core::Ptr<::qt_core::QObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_QObject_ptr14(
ptr.as_raw_ptr() as *mut crate::QKeyEvent
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::std::ops::Deref for crate::QKeyEvent {
type Target = ::qt_core::QObject;
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(Qt3DInput::QKeyEvent* ptr)```</span>.
#[inline(always)]
fn deref(&self) -> &::qt_core::QObject {
let ffi_result = {
unsafe {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_QObject_ptr14(
self as *const crate::QKeyEvent as *mut crate::QKeyEvent,
)
}
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_core::DynamicCast<crate::QKeyEvent> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QKeyEvent* dynamic_cast<Qt3DInput::QKeyEvent*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QKeyEvent> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_dynamic_cast_Qt3DInput_QKeyEvent_ptr(
ptr.as_raw_ptr() as *mut ::qt_core::QObject
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QKeyboardHandler> for ::qt_3d_core::QComponent {
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QKeyboardHandler* static_cast<Qt3DInput::QKeyboardHandler*>(Qt3DCore::QComponent* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QComponent>,
) -> ::cpp_core::Ptr<crate::QKeyboardHandler> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_Qt3DInput_QKeyboardHandler_ptr(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QComponent,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_3d_core::QComponent> for crate::QKeyboardHandler {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QComponent* static_cast<Qt3DCore::QComponent*>(Qt3DInput::QKeyboardHandler* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QKeyboardHandler>,
) -> ::cpp_core::Ptr<::qt_3d_core::QComponent> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_Qt3DCore_QComponent_ptr2(
ptr.as_raw_ptr() as *mut crate::QKeyboardHandler
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::std::ops::Deref for crate::QKeyboardHandler {
type Target = ::qt_3d_core::QComponent;
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QComponent* static_cast<Qt3DCore::QComponent*>(Qt3DInput::QKeyboardHandler* ptr)```</span>.
#[inline(always)]
fn deref(&self) -> &::qt_3d_core::QComponent {
let ffi_result = {
unsafe {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_Qt3DCore_QComponent_ptr2(
self as *const crate::QKeyboardHandler as *mut crate::QKeyboardHandler,
)
}
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_core::DynamicCast<crate::QKeyboardHandler> for ::qt_3d_core::QComponent {
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QKeyboardHandler* dynamic_cast<Qt3DInput::QKeyboardHandler*>(Qt3DCore::QComponent* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QComponent>,
) -> ::cpp_core::Ptr<crate::QKeyboardHandler> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_dynamic_cast_Qt3DInput_QKeyboardHandler_ptr(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QComponent,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QKeyboardHandler> for ::qt_3d_core::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QKeyboardHandler* static_cast<Qt3DInput::QKeyboardHandler*>(Qt3DCore::QNode* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QNode>,
) -> ::cpp_core::Ptr<crate::QKeyboardHandler> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_Qt3DInput_QKeyboardHandler_ptr1(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QNode,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_3d_core::QNode> for crate::QKeyboardHandler {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DInput::QKeyboardHandler* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QKeyboardHandler>,
) -> ::cpp_core::Ptr<::qt_3d_core::QNode> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_Qt3DCore_QNode_ptr13(
ptr.as_raw_ptr() as *mut crate::QKeyboardHandler
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QKeyboardHandler> for ::qt_3d_core::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QKeyboardHandler* dynamic_cast<Qt3DInput::QKeyboardHandler*>(Qt3DCore::QNode* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QNode>,
) -> ::cpp_core::Ptr<crate::QKeyboardHandler> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_dynamic_cast_Qt3DInput_QKeyboardHandler_ptr1(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QNode,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QKeyboardHandler> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QKeyboardHandler* static_cast<Qt3DInput::QKeyboardHandler*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QKeyboardHandler> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_Qt3DInput_QKeyboardHandler_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::QKeyboardHandler {
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(Qt3DInput::QKeyboardHandler* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QKeyboardHandler>,
) -> ::cpp_core::Ptr<::qt_core::QObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_QObject_ptr15(
ptr.as_raw_ptr() as *mut crate::QKeyboardHandler
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QKeyboardHandler> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QKeyboardHandler* dynamic_cast<Qt3DInput::QKeyboardHandler*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QKeyboardHandler> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_dynamic_cast_Qt3DInput_QKeyboardHandler_ptr2(
ptr.as_raw_ptr() as *mut ::qt_core::QObject,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QKeyboardDevice> for crate::QAbstractPhysicalDevice {
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QKeyboardDevice* static_cast<Qt3DInput::QKeyboardDevice*>(Qt3DInput::QAbstractPhysicalDevice* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<crate::QAbstractPhysicalDevice>,
) -> ::cpp_core::Ptr<crate::QKeyboardDevice> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_Qt3DInput_QKeyboardDevice_ptr(
ptr.as_raw_ptr() as *mut crate::QAbstractPhysicalDevice,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<crate::QAbstractPhysicalDevice> for crate::QKeyboardDevice {
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QAbstractPhysicalDevice* static_cast<Qt3DInput::QAbstractPhysicalDevice*>(Qt3DInput::QKeyboardDevice* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QKeyboardDevice>,
) -> ::cpp_core::Ptr<crate::QAbstractPhysicalDevice> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_Qt3DInput_QAbstractPhysicalDevice_ptr2(
ptr.as_raw_ptr() as *mut crate::QKeyboardDevice,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::std::ops::Deref for crate::QKeyboardDevice {
type Target = crate::QAbstractPhysicalDevice;
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QAbstractPhysicalDevice* static_cast<Qt3DInput::QAbstractPhysicalDevice*>(Qt3DInput::QKeyboardDevice* ptr)```</span>.
#[inline(always)]
fn deref(&self) -> &crate::QAbstractPhysicalDevice {
let ffi_result = {
unsafe {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_Qt3DInput_QAbstractPhysicalDevice_ptr2(
self as *const crate::QKeyboardDevice as *mut crate::QKeyboardDevice,
)
}
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_core::DynamicCast<crate::QKeyboardDevice> for crate::QAbstractPhysicalDevice {
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QKeyboardDevice* dynamic_cast<Qt3DInput::QKeyboardDevice*>(Qt3DInput::QAbstractPhysicalDevice* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<crate::QAbstractPhysicalDevice>,
) -> ::cpp_core::Ptr<crate::QKeyboardDevice> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_dynamic_cast_Qt3DInput_QKeyboardDevice_ptr(
ptr.as_raw_ptr() as *mut crate::QAbstractPhysicalDevice,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QKeyboardDevice> for ::qt_3d_core::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QKeyboardDevice* static_cast<Qt3DInput::QKeyboardDevice*>(Qt3DCore::QNode* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QNode>,
) -> ::cpp_core::Ptr<crate::QKeyboardDevice> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_Qt3DInput_QKeyboardDevice_ptr1(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QNode,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_3d_core::QNode> for crate::QKeyboardDevice {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DInput::QKeyboardDevice* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QKeyboardDevice>,
) -> ::cpp_core::Ptr<::qt_3d_core::QNode> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_Qt3DCore_QNode_ptr14(
ptr.as_raw_ptr() as *mut crate::QKeyboardDevice
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QKeyboardDevice> for ::qt_3d_core::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QKeyboardDevice* dynamic_cast<Qt3DInput::QKeyboardDevice*>(Qt3DCore::QNode* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QNode>,
) -> ::cpp_core::Ptr<crate::QKeyboardDevice> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_dynamic_cast_Qt3DInput_QKeyboardDevice_ptr1(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QNode,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QKeyboardDevice> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QKeyboardDevice* static_cast<Qt3DInput::QKeyboardDevice*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QKeyboardDevice> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_Qt3DInput_QKeyboardDevice_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::QKeyboardDevice {
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(Qt3DInput::QKeyboardDevice* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QKeyboardDevice>,
) -> ::cpp_core::Ptr<::qt_core::QObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_QObject_ptr16(
ptr.as_raw_ptr() as *mut crate::QKeyboardDevice
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QKeyboardDevice> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QKeyboardDevice* dynamic_cast<Qt3DInput::QKeyboardDevice*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QKeyboardDevice> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_dynamic_cast_Qt3DInput_QKeyboardDevice_ptr2(
ptr.as_raw_ptr() as *mut ::qt_core::QObject,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QLogicalDevice> for ::qt_3d_core::QComponent {
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QLogicalDevice* static_cast<Qt3DInput::QLogicalDevice*>(Qt3DCore::QComponent* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QComponent>,
) -> ::cpp_core::Ptr<crate::QLogicalDevice> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_Qt3DInput_QLogicalDevice_ptr(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QComponent,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_3d_core::QComponent> for crate::QLogicalDevice {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QComponent* static_cast<Qt3DCore::QComponent*>(Qt3DInput::QLogicalDevice* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QLogicalDevice>,
) -> ::cpp_core::Ptr<::qt_3d_core::QComponent> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_Qt3DCore_QComponent_ptr3(
ptr.as_raw_ptr() as *mut crate::QLogicalDevice
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::std::ops::Deref for crate::QLogicalDevice {
type Target = ::qt_3d_core::QComponent;
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QComponent* static_cast<Qt3DCore::QComponent*>(Qt3DInput::QLogicalDevice* ptr)```</span>.
#[inline(always)]
fn deref(&self) -> &::qt_3d_core::QComponent {
let ffi_result = {
unsafe {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_Qt3DCore_QComponent_ptr3(
self as *const crate::QLogicalDevice as *mut crate::QLogicalDevice,
)
}
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_core::DynamicCast<crate::QLogicalDevice> for ::qt_3d_core::QComponent {
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QLogicalDevice* dynamic_cast<Qt3DInput::QLogicalDevice*>(Qt3DCore::QComponent* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QComponent>,
) -> ::cpp_core::Ptr<crate::QLogicalDevice> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_dynamic_cast_Qt3DInput_QLogicalDevice_ptr(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QComponent,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QLogicalDevice> for ::qt_3d_core::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QLogicalDevice* static_cast<Qt3DInput::QLogicalDevice*>(Qt3DCore::QNode* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QNode>,
) -> ::cpp_core::Ptr<crate::QLogicalDevice> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_Qt3DInput_QLogicalDevice_ptr1(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QNode,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_3d_core::QNode> for crate::QLogicalDevice {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DInput::QLogicalDevice* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QLogicalDevice>,
) -> ::cpp_core::Ptr<::qt_3d_core::QNode> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_Qt3DCore_QNode_ptr15(
ptr.as_raw_ptr() as *mut crate::QLogicalDevice
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QLogicalDevice> for ::qt_3d_core::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QLogicalDevice* dynamic_cast<Qt3DInput::QLogicalDevice*>(Qt3DCore::QNode* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QNode>,
) -> ::cpp_core::Ptr<crate::QLogicalDevice> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_dynamic_cast_Qt3DInput_QLogicalDevice_ptr1(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QNode,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QLogicalDevice> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QLogicalDevice* static_cast<Qt3DInput::QLogicalDevice*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QLogicalDevice> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_Qt3DInput_QLogicalDevice_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::QLogicalDevice {
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(Qt3DInput::QLogicalDevice* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QLogicalDevice>,
) -> ::cpp_core::Ptr<::qt_core::QObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_QObject_ptr17(
ptr.as_raw_ptr() as *mut crate::QLogicalDevice
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QLogicalDevice> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QLogicalDevice* dynamic_cast<Qt3DInput::QLogicalDevice*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QLogicalDevice> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_dynamic_cast_Qt3DInput_QLogicalDevice_ptr2(
ptr.as_raw_ptr() as *mut ::qt_core::QObject,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QMouseDevice> for crate::QAbstractPhysicalDevice {
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QMouseDevice* static_cast<Qt3DInput::QMouseDevice*>(Qt3DInput::QAbstractPhysicalDevice* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<crate::QAbstractPhysicalDevice>,
) -> ::cpp_core::Ptr<crate::QMouseDevice> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_Qt3DInput_QMouseDevice_ptr(
ptr.as_raw_ptr() as *mut crate::QAbstractPhysicalDevice,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<crate::QAbstractPhysicalDevice> for crate::QMouseDevice {
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QAbstractPhysicalDevice* static_cast<Qt3DInput::QAbstractPhysicalDevice*>(Qt3DInput::QMouseDevice* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QMouseDevice>,
) -> ::cpp_core::Ptr<crate::QAbstractPhysicalDevice> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_Qt3DInput_QAbstractPhysicalDevice_ptr3(
ptr.as_raw_ptr() as *mut crate::QMouseDevice,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::std::ops::Deref for crate::QMouseDevice {
type Target = crate::QAbstractPhysicalDevice;
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QAbstractPhysicalDevice* static_cast<Qt3DInput::QAbstractPhysicalDevice*>(Qt3DInput::QMouseDevice* ptr)```</span>.
#[inline(always)]
fn deref(&self) -> &crate::QAbstractPhysicalDevice {
let ffi_result = {
unsafe {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_Qt3DInput_QAbstractPhysicalDevice_ptr3(
self as *const crate::QMouseDevice as *mut crate::QMouseDevice,
)
}
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_core::DynamicCast<crate::QMouseDevice> for crate::QAbstractPhysicalDevice {
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QMouseDevice* dynamic_cast<Qt3DInput::QMouseDevice*>(Qt3DInput::QAbstractPhysicalDevice* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<crate::QAbstractPhysicalDevice>,
) -> ::cpp_core::Ptr<crate::QMouseDevice> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_dynamic_cast_Qt3DInput_QMouseDevice_ptr(
ptr.as_raw_ptr() as *mut crate::QAbstractPhysicalDevice,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QMouseDevice> for ::qt_3d_core::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QMouseDevice* static_cast<Qt3DInput::QMouseDevice*>(Qt3DCore::QNode* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QNode>,
) -> ::cpp_core::Ptr<crate::QMouseDevice> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_Qt3DInput_QMouseDevice_ptr1(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QNode,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_3d_core::QNode> for crate::QMouseDevice {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DInput::QMouseDevice* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QMouseDevice>,
) -> ::cpp_core::Ptr<::qt_3d_core::QNode> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_Qt3DCore_QNode_ptr16(
ptr.as_raw_ptr() as *mut crate::QMouseDevice
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QMouseDevice> for ::qt_3d_core::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QMouseDevice* dynamic_cast<Qt3DInput::QMouseDevice*>(Qt3DCore::QNode* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QNode>,
) -> ::cpp_core::Ptr<crate::QMouseDevice> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_dynamic_cast_Qt3DInput_QMouseDevice_ptr1(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QNode,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QMouseDevice> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QMouseDevice* static_cast<Qt3DInput::QMouseDevice*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QMouseDevice> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_Qt3DInput_QMouseDevice_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::QMouseDevice {
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(Qt3DInput::QMouseDevice* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QMouseDevice>,
) -> ::cpp_core::Ptr<::qt_core::QObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_QObject_ptr18(
ptr.as_raw_ptr() as *mut crate::QMouseDevice
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QMouseDevice> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QMouseDevice* dynamic_cast<Qt3DInput::QMouseDevice*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QMouseDevice> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_dynamic_cast_Qt3DInput_QMouseDevice_ptr2(
ptr.as_raw_ptr() as *mut ::qt_core::QObject,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QMouseEvent> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QMouseEvent* static_cast<Qt3DInput::QMouseEvent*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QMouseEvent> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_Qt3DInput_QMouseEvent_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::QMouseEvent {
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(Qt3DInput::QMouseEvent* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QMouseEvent>,
) -> ::cpp_core::Ptr<::qt_core::QObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_QObject_ptr19(
ptr.as_raw_ptr() as *mut crate::QMouseEvent
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::std::ops::Deref for crate::QMouseEvent {
type Target = ::qt_core::QObject;
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(Qt3DInput::QMouseEvent* ptr)```</span>.
#[inline(always)]
fn deref(&self) -> &::qt_core::QObject {
let ffi_result = {
unsafe {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_QObject_ptr19(
self as *const crate::QMouseEvent as *mut crate::QMouseEvent,
)
}
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_core::DynamicCast<crate::QMouseEvent> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QMouseEvent* dynamic_cast<Qt3DInput::QMouseEvent*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QMouseEvent> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_dynamic_cast_Qt3DInput_QMouseEvent_ptr(
ptr.as_raw_ptr() as *mut ::qt_core::QObject,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QWheelEvent> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QWheelEvent* static_cast<Qt3DInput::QWheelEvent*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QWheelEvent> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_Qt3DInput_QWheelEvent_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::QWheelEvent {
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(Qt3DInput::QWheelEvent* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QWheelEvent>,
) -> ::cpp_core::Ptr<::qt_core::QObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_QObject_ptr20(
ptr.as_raw_ptr() as *mut crate::QWheelEvent
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::std::ops::Deref for crate::QWheelEvent {
type Target = ::qt_core::QObject;
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(Qt3DInput::QWheelEvent* ptr)```</span>.
#[inline(always)]
fn deref(&self) -> &::qt_core::QObject {
let ffi_result = {
unsafe {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_QObject_ptr20(
self as *const crate::QWheelEvent as *mut crate::QWheelEvent,
)
}
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_core::DynamicCast<crate::QWheelEvent> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QWheelEvent* dynamic_cast<Qt3DInput::QWheelEvent*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QWheelEvent> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_dynamic_cast_Qt3DInput_QWheelEvent_ptr(
ptr.as_raw_ptr() as *mut ::qt_core::QObject,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QMouseHandler> for ::qt_3d_core::QComponent {
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QMouseHandler* static_cast<Qt3DInput::QMouseHandler*>(Qt3DCore::QComponent* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QComponent>,
) -> ::cpp_core::Ptr<crate::QMouseHandler> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_Qt3DInput_QMouseHandler_ptr(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QComponent,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_3d_core::QComponent> for crate::QMouseHandler {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QComponent* static_cast<Qt3DCore::QComponent*>(Qt3DInput::QMouseHandler* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QMouseHandler>,
) -> ::cpp_core::Ptr<::qt_3d_core::QComponent> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_Qt3DCore_QComponent_ptr4(
ptr.as_raw_ptr() as *mut crate::QMouseHandler
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::std::ops::Deref for crate::QMouseHandler {
type Target = ::qt_3d_core::QComponent;
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QComponent* static_cast<Qt3DCore::QComponent*>(Qt3DInput::QMouseHandler* ptr)```</span>.
#[inline(always)]
fn deref(&self) -> &::qt_3d_core::QComponent {
let ffi_result = {
unsafe {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_Qt3DCore_QComponent_ptr4(
self as *const crate::QMouseHandler as *mut crate::QMouseHandler,
)
}
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_core::DynamicCast<crate::QMouseHandler> for ::qt_3d_core::QComponent {
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QMouseHandler* dynamic_cast<Qt3DInput::QMouseHandler*>(Qt3DCore::QComponent* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QComponent>,
) -> ::cpp_core::Ptr<crate::QMouseHandler> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_dynamic_cast_Qt3DInput_QMouseHandler_ptr(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QComponent,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QMouseHandler> for ::qt_3d_core::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QMouseHandler* static_cast<Qt3DInput::QMouseHandler*>(Qt3DCore::QNode* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QNode>,
) -> ::cpp_core::Ptr<crate::QMouseHandler> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_Qt3DInput_QMouseHandler_ptr1(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QNode,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_3d_core::QNode> for crate::QMouseHandler {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DInput::QMouseHandler* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QMouseHandler>,
) -> ::cpp_core::Ptr<::qt_3d_core::QNode> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_Qt3DCore_QNode_ptr17(
ptr.as_raw_ptr() as *mut crate::QMouseHandler
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QMouseHandler> for ::qt_3d_core::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QMouseHandler* dynamic_cast<Qt3DInput::QMouseHandler*>(Qt3DCore::QNode* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QNode>,
) -> ::cpp_core::Ptr<crate::QMouseHandler> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_dynamic_cast_Qt3DInput_QMouseHandler_ptr1(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QNode,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QMouseHandler> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QMouseHandler* static_cast<Qt3DInput::QMouseHandler*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QMouseHandler> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_Qt3DInput_QMouseHandler_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::QMouseHandler {
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(Qt3DInput::QMouseHandler* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QMouseHandler>,
) -> ::cpp_core::Ptr<::qt_core::QObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_QObject_ptr21(
ptr.as_raw_ptr() as *mut crate::QMouseHandler
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QMouseHandler> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QMouseHandler* dynamic_cast<Qt3DInput::QMouseHandler*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QMouseHandler> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_dynamic_cast_Qt3DInput_QMouseHandler_ptr2(
ptr.as_raw_ptr() as *mut ::qt_core::QObject,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QPhysicalDeviceCreatedChangeBase>
for ::qt_3d_core::QNodeCreatedChangeBase
{
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QPhysicalDeviceCreatedChangeBase* static_cast<Qt3DInput::QPhysicalDeviceCreatedChangeBase*>(Qt3DCore::QNodeCreatedChangeBase* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QNodeCreatedChangeBase>,
) -> ::cpp_core::Ptr<crate::QPhysicalDeviceCreatedChangeBase> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_Qt3DInput_QPhysicalDeviceCreatedChangeBase_ptr(ptr.as_raw_ptr() as *mut ::qt_3d_core::QNodeCreatedChangeBase)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_3d_core::QNodeCreatedChangeBase>
for crate::QPhysicalDeviceCreatedChangeBase
{
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNodeCreatedChangeBase* static_cast<Qt3DCore::QNodeCreatedChangeBase*>(Qt3DInput::QPhysicalDeviceCreatedChangeBase* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QPhysicalDeviceCreatedChangeBase>,
) -> ::cpp_core::Ptr<::qt_3d_core::QNodeCreatedChangeBase> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_Qt3DCore_QNodeCreatedChangeBase_ptr(
ptr.as_raw_ptr() as *mut crate::QPhysicalDeviceCreatedChangeBase,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::std::ops::Deref for crate::QPhysicalDeviceCreatedChangeBase {
type Target = ::qt_3d_core::QNodeCreatedChangeBase;
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNodeCreatedChangeBase* static_cast<Qt3DCore::QNodeCreatedChangeBase*>(Qt3DInput::QPhysicalDeviceCreatedChangeBase* ptr)```</span>.
#[inline(always)]
fn deref(&self) -> &::qt_3d_core::QNodeCreatedChangeBase {
let ffi_result = {
unsafe {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_Qt3DCore_QNodeCreatedChangeBase_ptr(
self as *const crate::QPhysicalDeviceCreatedChangeBase
as *mut crate::QPhysicalDeviceCreatedChangeBase,
)
}
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_core::DynamicCast<crate::QPhysicalDeviceCreatedChangeBase>
for ::qt_3d_core::QNodeCreatedChangeBase
{
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QPhysicalDeviceCreatedChangeBase* dynamic_cast<Qt3DInput::QPhysicalDeviceCreatedChangeBase*>(Qt3DCore::QNodeCreatedChangeBase* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QNodeCreatedChangeBase>,
) -> ::cpp_core::Ptr<crate::QPhysicalDeviceCreatedChangeBase> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_dynamic_cast_Qt3DInput_QPhysicalDeviceCreatedChangeBase_ptr(ptr.as_raw_ptr() as *mut ::qt_3d_core::QNodeCreatedChangeBase)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QPhysicalDeviceCreatedChangeBase>
for ::qt_3d_core::QSceneChange
{
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QPhysicalDeviceCreatedChangeBase* static_cast<Qt3DInput::QPhysicalDeviceCreatedChangeBase*>(Qt3DCore::QSceneChange* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QSceneChange>,
) -> ::cpp_core::Ptr<crate::QPhysicalDeviceCreatedChangeBase> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_Qt3DInput_QPhysicalDeviceCreatedChangeBase_ptr1(ptr.as_raw_ptr() as *mut ::qt_3d_core::QSceneChange)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_3d_core::QSceneChange>
for crate::QPhysicalDeviceCreatedChangeBase
{
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QSceneChange* static_cast<Qt3DCore::QSceneChange*>(Qt3DInput::QPhysicalDeviceCreatedChangeBase* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QPhysicalDeviceCreatedChangeBase>,
) -> ::cpp_core::Ptr<::qt_3d_core::QSceneChange> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_Qt3DCore_QSceneChange_ptr(
ptr.as_raw_ptr() as *mut crate::QPhysicalDeviceCreatedChangeBase,
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QPhysicalDeviceCreatedChangeBase>
for ::qt_3d_core::QSceneChange
{
/// Calls C++ function: <span style='color: green;'>```Qt3DInput::QPhysicalDeviceCreatedChangeBase* dynamic_cast<Qt3DInput::QPhysicalDeviceCreatedChangeBase*>(Qt3DCore::QSceneChange* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QSceneChange>,
) -> ::cpp_core::Ptr<crate::QPhysicalDeviceCreatedChangeBase> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_dynamic_cast_Qt3DInput_QPhysicalDeviceCreatedChangeBase_ptr1(ptr.as_raw_ptr() as *mut ::qt_3d_core::QSceneChange)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::CppDeletable for crate::SignalOfQKeyEvent {
/// Calls C++ function: <span style='color: green;'>```[destructor] void ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QKeyEvent_ptr::~ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QKeyEvent_ptr()```</span>.
#[inline(always)]
unsafe fn delete(&self) {
crate::__ffi::ctr_qt_3d_input_ffi_ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QKeyEvent_ptr_dctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QKeyEvent_ptr(self as *const crate::SignalOfQKeyEvent as *mut crate::SignalOfQKeyEvent)
}
}
impl ::cpp_core::CppDeletable for crate::SignalOfQMouseDevice {
/// Calls C++ function: <span style='color: green;'>```[destructor] void ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QMouseDevice_ptr::~ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QMouseDevice_ptr()```</span>.
#[inline(always)]
unsafe fn delete(&self) {
crate::__ffi::ctr_qt_3d_input_ffi_ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QMouseDevice_ptr_dctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QMouseDevice_ptr(self as *const crate::SignalOfQMouseDevice as *mut crate::SignalOfQMouseDevice)
}
}
impl ::cpp_core::CppDeletable for crate::SignalOfQKeyboardHandler {
/// Calls C++ function: <span style='color: green;'>```[destructor] void ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QKeyboardHandler_ptr::~ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QKeyboardHandler_ptr()```</span>.
#[inline(always)]
unsafe fn delete(&self) {
crate::__ffi::ctr_qt_3d_input_ffi_ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QKeyboardHandler_ptr_dctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QKeyboardHandler_ptr(self as *const crate::SignalOfQKeyboardHandler as *mut crate::SignalOfQKeyboardHandler)
}
}
impl ::cpp_core::CppDeletable for crate::SignalOfQWheelEvent {
/// Calls C++ function: <span style='color: green;'>```[destructor] void ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QWheelEvent_ptr::~ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QWheelEvent_ptr()```</span>.
#[inline(always)]
unsafe fn delete(&self) {
crate::__ffi::ctr_qt_3d_input_ffi_ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QWheelEvent_ptr_dctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QWheelEvent_ptr(self as *const crate::SignalOfQWheelEvent as *mut crate::SignalOfQWheelEvent)
}
}
impl ::cpp_core::CppDeletable for crate::SignalOfQKeyboardDevice {
/// Calls C++ function: <span style='color: green;'>```[destructor] void ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QKeyboardDevice_ptr::~ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QKeyboardDevice_ptr()```</span>.
#[inline(always)]
unsafe fn delete(&self) {
crate::__ffi::ctr_qt_3d_input_ffi_ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QKeyboardDevice_ptr_dctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QKeyboardDevice_ptr(self as *const crate::SignalOfQKeyboardDevice as *mut crate::SignalOfQKeyboardDevice)
}
}
impl ::cpp_core::CppDeletable for crate::SignalOfQAbstractPhysicalDevice {
/// Calls C++ function: <span style='color: green;'>```[destructor] void ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QAbstractPhysicalDevice_ptr::~ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QAbstractPhysicalDevice_ptr()```</span>.
#[inline(always)]
unsafe fn delete(&self) {
crate::__ffi::ctr_qt_3d_input_ffi_ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QAbstractPhysicalDevice_ptr_dctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QAbstractPhysicalDevice_ptr(self as *const crate::SignalOfQAbstractPhysicalDevice as *mut crate::SignalOfQAbstractPhysicalDevice)
}
}
impl ::cpp_core::CppDeletable for crate::SignalOfSourceAxisType {
/// Calls C++ function: <span style='color: green;'>```[destructor] void ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QAxisAccumulator_SourceAxisType::~ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QAxisAccumulator_SourceAxisType()```</span>.
#[inline(always)]
unsafe fn delete(&self) {
crate::__ffi::ctr_qt_3d_input_ffi_ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QAxisAccumulator_SourceAxisType_dctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QAxisAccumulator_SourceAxisType(self as *const crate::SignalOfSourceAxisType as *mut crate::SignalOfSourceAxisType)
}
}
impl ::cpp_core::CppDeletable for crate::SignalOfQMouseEvent {
/// Calls C++ function: <span style='color: green;'>```[destructor] void ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QMouseEvent_ptr::~ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QMouseEvent_ptr()```</span>.
#[inline(always)]
unsafe fn delete(&self) {
crate::__ffi::ctr_qt_3d_input_ffi_ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QMouseEvent_ptr_dctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QMouseEvent_ptr(self as *const crate::SignalOfQMouseEvent as *mut crate::SignalOfQMouseEvent)
}
}
impl ::cpp_core::CppDeletable for crate::SignalOfQVectorOfInt {
/// Calls C++ function: <span style='color: green;'>```[destructor] void ctr_qt_3d_input_ffi_signal_wrapper_QVector_int_const_ref::~ctr_qt_3d_input_ffi_signal_wrapper_QVector_int_const_ref()```</span>.
#[inline(always)]
unsafe fn delete(&self) {
crate::__ffi::ctr_qt_3d_input_ffi_ctr_qt_3d_input_ffi_signal_wrapper_QVector_int_const_ref_dctr_qt_3d_input_ffi_signal_wrapper_QVector_int_const_ref(self as *const crate::SignalOfQVectorOfInt as *mut crate::SignalOfQVectorOfInt)
}
}
impl ::cpp_core::CppDeletable for crate::SignalOfQAxis {
/// Calls C++ function: <span style='color: green;'>```[destructor] void ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QAxis_ptr::~ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QAxis_ptr()```</span>.
#[inline(always)]
unsafe fn delete(&self) {
crate::__ffi::ctr_qt_3d_input_ffi_ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QAxis_ptr_dctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QAxis_ptr(self as *const crate::SignalOfQAxis as *mut crate::SignalOfQAxis)
}
}
impl ::cpp_core::StaticDowncast<crate::SignalOfQKeyEvent> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QKeyEvent_ptr* static_cast<ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QKeyEvent_ptr*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::SignalOfQKeyEvent> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QKeyEvent_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::SignalOfQKeyEvent {
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QKeyEvent_ptr* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::SignalOfQKeyEvent>,
) -> ::cpp_core::Ptr<::qt_core::QObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_QObject_ptr45(
ptr.as_raw_ptr() as *mut crate::SignalOfQKeyEvent
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::std::ops::Deref for crate::SignalOfQKeyEvent {
type Target = ::qt_core::QObject;
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QKeyEvent_ptr* ptr)```</span>.
#[inline(always)]
fn deref(&self) -> &::qt_core::QObject {
let ffi_result = {
unsafe {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_QObject_ptr45(
self as *const crate::SignalOfQKeyEvent as *mut crate::SignalOfQKeyEvent,
)
}
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_core::DynamicCast<crate::SignalOfQKeyEvent> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QKeyEvent_ptr* dynamic_cast<ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QKeyEvent_ptr*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::SignalOfQKeyEvent> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_dynamic_cast_ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QKeyEvent_ptr_ptr(ptr.as_raw_ptr() as *mut ::qt_core::QObject)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::SignalOfQMouseDevice> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QMouseDevice_ptr* static_cast<ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QMouseDevice_ptr*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::SignalOfQMouseDevice> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QMouseDevice_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::SignalOfQMouseDevice {
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QMouseDevice_ptr* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::SignalOfQMouseDevice>,
) -> ::cpp_core::Ptr<::qt_core::QObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_QObject_ptr47(
ptr.as_raw_ptr() as *mut crate::SignalOfQMouseDevice
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::std::ops::Deref for crate::SignalOfQMouseDevice {
type Target = ::qt_core::QObject;
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QMouseDevice_ptr* ptr)```</span>.
#[inline(always)]
fn deref(&self) -> &::qt_core::QObject {
let ffi_result = {
unsafe {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_QObject_ptr47(
self as *const crate::SignalOfQMouseDevice as *mut crate::SignalOfQMouseDevice,
)
}
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_core::DynamicCast<crate::SignalOfQMouseDevice> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QMouseDevice_ptr* dynamic_cast<ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QMouseDevice_ptr*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::SignalOfQMouseDevice> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_dynamic_cast_ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QMouseDevice_ptr_ptr(ptr.as_raw_ptr() as *mut ::qt_core::QObject)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::SignalOfQKeyboardHandler> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QKeyboardHandler_ptr* static_cast<ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QKeyboardHandler_ptr*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::SignalOfQKeyboardHandler> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QKeyboardHandler_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::SignalOfQKeyboardHandler {
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QKeyboardHandler_ptr* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::SignalOfQKeyboardHandler>,
) -> ::cpp_core::Ptr<::qt_core::QObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_QObject_ptr49(
ptr.as_raw_ptr() as *mut crate::SignalOfQKeyboardHandler
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::std::ops::Deref for crate::SignalOfQKeyboardHandler {
type Target = ::qt_core::QObject;
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QKeyboardHandler_ptr* ptr)```</span>.
#[inline(always)]
fn deref(&self) -> &::qt_core::QObject {
let ffi_result = {
unsafe {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_QObject_ptr49(
self as *const crate::SignalOfQKeyboardHandler
as *mut crate::SignalOfQKeyboardHandler,
)
}
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_core::DynamicCast<crate::SignalOfQKeyboardHandler> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QKeyboardHandler_ptr* dynamic_cast<ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QKeyboardHandler_ptr*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::SignalOfQKeyboardHandler> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_dynamic_cast_ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QKeyboardHandler_ptr_ptr(ptr.as_raw_ptr() as *mut ::qt_core::QObject)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::SignalOfQWheelEvent> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QWheelEvent_ptr* static_cast<ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QWheelEvent_ptr*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::SignalOfQWheelEvent> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QWheelEvent_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::SignalOfQWheelEvent {
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QWheelEvent_ptr* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::SignalOfQWheelEvent>,
) -> ::cpp_core::Ptr<::qt_core::QObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_QObject_ptr51(
ptr.as_raw_ptr() as *mut crate::SignalOfQWheelEvent
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::std::ops::Deref for crate::SignalOfQWheelEvent {
type Target = ::qt_core::QObject;
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QWheelEvent_ptr* ptr)```</span>.
#[inline(always)]
fn deref(&self) -> &::qt_core::QObject {
let ffi_result = {
unsafe {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_QObject_ptr51(
self as *const crate::SignalOfQWheelEvent as *mut crate::SignalOfQWheelEvent,
)
}
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_core::DynamicCast<crate::SignalOfQWheelEvent> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QWheelEvent_ptr* dynamic_cast<ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QWheelEvent_ptr*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::SignalOfQWheelEvent> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_dynamic_cast_ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QWheelEvent_ptr_ptr(ptr.as_raw_ptr() as *mut ::qt_core::QObject)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::SignalOfQKeyboardDevice> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QKeyboardDevice_ptr* static_cast<ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QKeyboardDevice_ptr*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::SignalOfQKeyboardDevice> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QKeyboardDevice_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::SignalOfQKeyboardDevice {
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QKeyboardDevice_ptr* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::SignalOfQKeyboardDevice>,
) -> ::cpp_core::Ptr<::qt_core::QObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_QObject_ptr53(
ptr.as_raw_ptr() as *mut crate::SignalOfQKeyboardDevice
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::std::ops::Deref for crate::SignalOfQKeyboardDevice {
type Target = ::qt_core::QObject;
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QKeyboardDevice_ptr* ptr)```</span>.
#[inline(always)]
fn deref(&self) -> &::qt_core::QObject {
let ffi_result = {
unsafe {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_QObject_ptr53(
self as *const crate::SignalOfQKeyboardDevice
as *mut crate::SignalOfQKeyboardDevice,
)
}
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_core::DynamicCast<crate::SignalOfQKeyboardDevice> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QKeyboardDevice_ptr* dynamic_cast<ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QKeyboardDevice_ptr*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::SignalOfQKeyboardDevice> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_dynamic_cast_ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QKeyboardDevice_ptr_ptr(ptr.as_raw_ptr() as *mut ::qt_core::QObject)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::SignalOfQAbstractPhysicalDevice> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QAbstractPhysicalDevice_ptr* static_cast<ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QAbstractPhysicalDevice_ptr*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::SignalOfQAbstractPhysicalDevice> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QAbstractPhysicalDevice_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::SignalOfQAbstractPhysicalDevice {
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QAbstractPhysicalDevice_ptr* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::SignalOfQAbstractPhysicalDevice>,
) -> ::cpp_core::Ptr<::qt_core::QObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_QObject_ptr55(
ptr.as_raw_ptr() as *mut crate::SignalOfQAbstractPhysicalDevice
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::std::ops::Deref for crate::SignalOfQAbstractPhysicalDevice {
type Target = ::qt_core::QObject;
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QAbstractPhysicalDevice_ptr* ptr)```</span>.
#[inline(always)]
fn deref(&self) -> &::qt_core::QObject {
let ffi_result = {
unsafe {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_QObject_ptr55(
self as *const crate::SignalOfQAbstractPhysicalDevice
as *mut crate::SignalOfQAbstractPhysicalDevice,
)
}
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_core::DynamicCast<crate::SignalOfQAbstractPhysicalDevice> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QAbstractPhysicalDevice_ptr* dynamic_cast<ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QAbstractPhysicalDevice_ptr*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::SignalOfQAbstractPhysicalDevice> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_dynamic_cast_ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QAbstractPhysicalDevice_ptr_ptr(ptr.as_raw_ptr() as *mut ::qt_core::QObject)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::SignalOfSourceAxisType> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QAxisAccumulator_SourceAxisType* static_cast<ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QAxisAccumulator_SourceAxisType*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::SignalOfSourceAxisType> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QAxisAccumulator_SourceAxisType_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::SignalOfSourceAxisType {
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QAxisAccumulator_SourceAxisType* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::SignalOfSourceAxisType>,
) -> ::cpp_core::Ptr<::qt_core::QObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_QObject_ptr57(
ptr.as_raw_ptr() as *mut crate::SignalOfSourceAxisType
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::std::ops::Deref for crate::SignalOfSourceAxisType {
type Target = ::qt_core::QObject;
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QAxisAccumulator_SourceAxisType* ptr)```</span>.
#[inline(always)]
fn deref(&self) -> &::qt_core::QObject {
let ffi_result = {
unsafe {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_QObject_ptr57(
self as *const crate::SignalOfSourceAxisType
as *mut crate::SignalOfSourceAxisType,
)
}
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_core::DynamicCast<crate::SignalOfSourceAxisType> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QAxisAccumulator_SourceAxisType* dynamic_cast<ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QAxisAccumulator_SourceAxisType*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::SignalOfSourceAxisType> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_dynamic_cast_ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QAxisAccumulator_SourceAxisType_ptr(ptr.as_raw_ptr() as *mut ::qt_core::QObject)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::SignalOfQMouseEvent> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QMouseEvent_ptr* static_cast<ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QMouseEvent_ptr*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::SignalOfQMouseEvent> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QMouseEvent_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::SignalOfQMouseEvent {
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QMouseEvent_ptr* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::SignalOfQMouseEvent>,
) -> ::cpp_core::Ptr<::qt_core::QObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_QObject_ptr59(
ptr.as_raw_ptr() as *mut crate::SignalOfQMouseEvent
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::std::ops::Deref for crate::SignalOfQMouseEvent {
type Target = ::qt_core::QObject;
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QMouseEvent_ptr* ptr)```</span>.
#[inline(always)]
fn deref(&self) -> &::qt_core::QObject {
let ffi_result = {
unsafe {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_QObject_ptr59(
self as *const crate::SignalOfQMouseEvent as *mut crate::SignalOfQMouseEvent,
)
}
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_core::DynamicCast<crate::SignalOfQMouseEvent> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QMouseEvent_ptr* dynamic_cast<ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QMouseEvent_ptr*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::SignalOfQMouseEvent> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_dynamic_cast_ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QMouseEvent_ptr_ptr(ptr.as_raw_ptr() as *mut ::qt_core::QObject)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::SignalOfQVectorOfInt> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```ctr_qt_3d_input_ffi_signal_wrapper_QVector_int_const_ref* static_cast<ctr_qt_3d_input_ffi_signal_wrapper_QVector_int_const_ref*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::SignalOfQVectorOfInt> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_ctr_qt_3d_input_ffi_signal_wrapper_QVector_int_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::SignalOfQVectorOfInt {
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(ctr_qt_3d_input_ffi_signal_wrapper_QVector_int_const_ref* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::SignalOfQVectorOfInt>,
) -> ::cpp_core::Ptr<::qt_core::QObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_QObject_ptr61(
ptr.as_raw_ptr() as *mut crate::SignalOfQVectorOfInt
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::std::ops::Deref for crate::SignalOfQVectorOfInt {
type Target = ::qt_core::QObject;
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(ctr_qt_3d_input_ffi_signal_wrapper_QVector_int_const_ref* ptr)```</span>.
#[inline(always)]
fn deref(&self) -> &::qt_core::QObject {
let ffi_result = {
unsafe {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_QObject_ptr61(
self as *const crate::SignalOfQVectorOfInt as *mut crate::SignalOfQVectorOfInt,
)
}
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_core::DynamicCast<crate::SignalOfQVectorOfInt> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```ctr_qt_3d_input_ffi_signal_wrapper_QVector_int_const_ref* dynamic_cast<ctr_qt_3d_input_ffi_signal_wrapper_QVector_int_const_ref*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::SignalOfQVectorOfInt> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_dynamic_cast_ctr_qt_3d_input_ffi_signal_wrapper_QVector_int_const_ref_ptr(ptr.as_raw_ptr() as *mut ::qt_core::QObject)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::SignalOfQAxis> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QAxis_ptr* static_cast<ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QAxis_ptr*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::SignalOfQAxis> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QAxis_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::SignalOfQAxis {
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QAxis_ptr* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::SignalOfQAxis>,
) -> ::cpp_core::Ptr<::qt_core::QObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_QObject_ptr63(
ptr.as_raw_ptr() as *mut crate::SignalOfQAxis
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::std::ops::Deref for crate::SignalOfQAxis {
type Target = ::qt_core::QObject;
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QAxis_ptr* ptr)```</span>.
#[inline(always)]
fn deref(&self) -> &::qt_core::QObject {
let ffi_result = {
unsafe {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_QObject_ptr63(
self as *const crate::SignalOfQAxis as *mut crate::SignalOfQAxis,
)
}
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_core::DynamicCast<crate::SignalOfQAxis> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QAxis_ptr* dynamic_cast<ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QAxis_ptr*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::SignalOfQAxis> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_dynamic_cast_ctr_qt_3d_input_ffi_signal_wrapper_Qt3DInput_QAxis_ptr_ptr(ptr.as_raw_ptr() as *mut ::qt_core::QObject)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::CppDeletable for crate::SlotOfQAxis {
/// Calls C++ function: <span style='color: green;'>```[destructor] void ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QAxis_ptr::~ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QAxis_ptr()```</span>.
#[inline(always)]
unsafe fn delete(&self) {
crate::__ffi::ctr_qt_3d_input_ffi_ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QAxis_ptr_dctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QAxis_ptr(self as *const crate::SlotOfQAxis as *mut crate::SlotOfQAxis)
}
}
impl ::cpp_core::CppDeletable for crate::SlotOfQAbstractPhysicalDevice {
/// Calls C++ function: <span style='color: green;'>```[destructor] void ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QAbstractPhysicalDevice_ptr::~ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QAbstractPhysicalDevice_ptr()```</span>.
#[inline(always)]
unsafe fn delete(&self) {
crate::__ffi::ctr_qt_3d_input_ffi_ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QAbstractPhysicalDevice_ptr_dctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QAbstractPhysicalDevice_ptr(self as *const crate::SlotOfQAbstractPhysicalDevice as *mut crate::SlotOfQAbstractPhysicalDevice)
}
}
impl ::cpp_core::CppDeletable for crate::SlotOfQKeyboardDevice {
/// Calls C++ function: <span style='color: green;'>```[destructor] void ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QKeyboardDevice_ptr::~ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QKeyboardDevice_ptr()```</span>.
#[inline(always)]
unsafe fn delete(&self) {
crate::__ffi::ctr_qt_3d_input_ffi_ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QKeyboardDevice_ptr_dctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QKeyboardDevice_ptr(self as *const crate::SlotOfQKeyboardDevice as *mut crate::SlotOfQKeyboardDevice)
}
}
impl ::cpp_core::CppDeletable for crate::SlotOfQWheelEvent {
/// Calls C++ function: <span style='color: green;'>```[destructor] void ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QWheelEvent_ptr::~ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QWheelEvent_ptr()```</span>.
#[inline(always)]
unsafe fn delete(&self) {
crate::__ffi::ctr_qt_3d_input_ffi_ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QWheelEvent_ptr_dctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QWheelEvent_ptr(self as *const crate::SlotOfQWheelEvent as *mut crate::SlotOfQWheelEvent)
}
}
impl ::cpp_core::CppDeletable for crate::SlotOfSourceAxisType {
/// Calls C++ function: <span style='color: green;'>```[destructor] void ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QAxisAccumulator_SourceAxisType::~ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QAxisAccumulator_SourceAxisType()```</span>.
#[inline(always)]
unsafe fn delete(&self) {
crate::__ffi::ctr_qt_3d_input_ffi_ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QAxisAccumulator_SourceAxisType_dctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QAxisAccumulator_SourceAxisType(self as *const crate::SlotOfSourceAxisType as *mut crate::SlotOfSourceAxisType)
}
}
impl ::cpp_core::CppDeletable for crate::SlotOfQKeyEvent {
/// Calls C++ function: <span style='color: green;'>```[destructor] void ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QKeyEvent_ptr::~ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QKeyEvent_ptr()```</span>.
#[inline(always)]
unsafe fn delete(&self) {
crate::__ffi::ctr_qt_3d_input_ffi_ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QKeyEvent_ptr_dctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QKeyEvent_ptr(self as *const crate::SlotOfQKeyEvent as *mut crate::SlotOfQKeyEvent)
}
}
impl ::cpp_core::CppDeletable for crate::SlotOfQKeyboardHandler {
/// Calls C++ function: <span style='color: green;'>```[destructor] void ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QKeyboardHandler_ptr::~ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QKeyboardHandler_ptr()```</span>.
#[inline(always)]
unsafe fn delete(&self) {
crate::__ffi::ctr_qt_3d_input_ffi_ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QKeyboardHandler_ptr_dctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QKeyboardHandler_ptr(self as *const crate::SlotOfQKeyboardHandler as *mut crate::SlotOfQKeyboardHandler)
}
}
impl ::cpp_core::CppDeletable for crate::SlotOfQMouseDevice {
/// Calls C++ function: <span style='color: green;'>```[destructor] void ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QMouseDevice_ptr::~ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QMouseDevice_ptr()```</span>.
#[inline(always)]
unsafe fn delete(&self) {
crate::__ffi::ctr_qt_3d_input_ffi_ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QMouseDevice_ptr_dctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QMouseDevice_ptr(self as *const crate::SlotOfQMouseDevice as *mut crate::SlotOfQMouseDevice)
}
}
impl ::cpp_core::CppDeletable for crate::SlotOfQVectorOfInt {
/// Calls C++ function: <span style='color: green;'>```[destructor] void ctr_qt_3d_input_ffi_slot_wrapper_QVector_int_const_ref::~ctr_qt_3d_input_ffi_slot_wrapper_QVector_int_const_ref()```</span>.
#[inline(always)]
unsafe fn delete(&self) {
crate::__ffi::ctr_qt_3d_input_ffi_ctr_qt_3d_input_ffi_slot_wrapper_QVector_int_const_ref_dctr_qt_3d_input_ffi_slot_wrapper_QVector_int_const_ref(self as *const crate::SlotOfQVectorOfInt as *mut crate::SlotOfQVectorOfInt)
}
}
impl ::cpp_core::CppDeletable for crate::SlotOfQMouseEvent {
/// Calls C++ function: <span style='color: green;'>```[destructor] void ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QMouseEvent_ptr::~ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QMouseEvent_ptr()```</span>.
#[inline(always)]
unsafe fn delete(&self) {
crate::__ffi::ctr_qt_3d_input_ffi_ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QMouseEvent_ptr_dctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QMouseEvent_ptr(self as *const crate::SlotOfQMouseEvent as *mut crate::SlotOfQMouseEvent)
}
}
impl ::cpp_core::StaticDowncast<crate::SlotOfQAxis> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QAxis_ptr* static_cast<ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QAxis_ptr*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::SlotOfQAxis> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QAxis_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::SlotOfQAxis {
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QAxis_ptr* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::SlotOfQAxis>,
) -> ::cpp_core::Ptr<::qt_core::QObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_QObject_ptr64(
ptr.as_raw_ptr() as *mut crate::SlotOfQAxis
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::std::ops::Deref for crate::SlotOfQAxis {
type Target = ::qt_core::QObject;
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QAxis_ptr* ptr)```</span>.
#[inline(always)]
fn deref(&self) -> &::qt_core::QObject {
let ffi_result = {
unsafe {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_QObject_ptr64(
self as *const crate::SlotOfQAxis as *mut crate::SlotOfQAxis,
)
}
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_core::DynamicCast<crate::SlotOfQAxis> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QAxis_ptr* dynamic_cast<ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QAxis_ptr*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::SlotOfQAxis> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_dynamic_cast_ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QAxis_ptr_ptr(ptr.as_raw_ptr() as *mut ::qt_core::QObject)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::SlotOfQAbstractPhysicalDevice> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QAbstractPhysicalDevice_ptr* static_cast<ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QAbstractPhysicalDevice_ptr*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::SlotOfQAbstractPhysicalDevice> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QAbstractPhysicalDevice_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::SlotOfQAbstractPhysicalDevice {
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QAbstractPhysicalDevice_ptr* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::SlotOfQAbstractPhysicalDevice>,
) -> ::cpp_core::Ptr<::qt_core::QObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_QObject_ptr65(
ptr.as_raw_ptr() as *mut crate::SlotOfQAbstractPhysicalDevice
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::std::ops::Deref for crate::SlotOfQAbstractPhysicalDevice {
type Target = ::qt_core::QObject;
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QAbstractPhysicalDevice_ptr* ptr)```</span>.
#[inline(always)]
fn deref(&self) -> &::qt_core::QObject {
let ffi_result = {
unsafe {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_QObject_ptr65(
self as *const crate::SlotOfQAbstractPhysicalDevice
as *mut crate::SlotOfQAbstractPhysicalDevice,
)
}
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_core::DynamicCast<crate::SlotOfQAbstractPhysicalDevice> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QAbstractPhysicalDevice_ptr* dynamic_cast<ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QAbstractPhysicalDevice_ptr*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::SlotOfQAbstractPhysicalDevice> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_dynamic_cast_ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QAbstractPhysicalDevice_ptr_ptr(ptr.as_raw_ptr() as *mut ::qt_core::QObject)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::SlotOfQKeyboardDevice> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QKeyboardDevice_ptr* static_cast<ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QKeyboardDevice_ptr*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::SlotOfQKeyboardDevice> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QKeyboardDevice_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::SlotOfQKeyboardDevice {
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QKeyboardDevice_ptr* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::SlotOfQKeyboardDevice>,
) -> ::cpp_core::Ptr<::qt_core::QObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_QObject_ptr66(
ptr.as_raw_ptr() as *mut crate::SlotOfQKeyboardDevice
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::std::ops::Deref for crate::SlotOfQKeyboardDevice {
type Target = ::qt_core::QObject;
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QKeyboardDevice_ptr* ptr)```</span>.
#[inline(always)]
fn deref(&self) -> &::qt_core::QObject {
let ffi_result = {
unsafe {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_QObject_ptr66(
self as *const crate::SlotOfQKeyboardDevice
as *mut crate::SlotOfQKeyboardDevice,
)
}
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_core::DynamicCast<crate::SlotOfQKeyboardDevice> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QKeyboardDevice_ptr* dynamic_cast<ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QKeyboardDevice_ptr*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::SlotOfQKeyboardDevice> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_dynamic_cast_ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QKeyboardDevice_ptr_ptr(ptr.as_raw_ptr() as *mut ::qt_core::QObject)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::SlotOfQWheelEvent> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QWheelEvent_ptr* static_cast<ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QWheelEvent_ptr*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::SlotOfQWheelEvent> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QWheelEvent_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::SlotOfQWheelEvent {
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QWheelEvent_ptr* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::SlotOfQWheelEvent>,
) -> ::cpp_core::Ptr<::qt_core::QObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_QObject_ptr67(
ptr.as_raw_ptr() as *mut crate::SlotOfQWheelEvent
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::std::ops::Deref for crate::SlotOfQWheelEvent {
type Target = ::qt_core::QObject;
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QWheelEvent_ptr* ptr)```</span>.
#[inline(always)]
fn deref(&self) -> &::qt_core::QObject {
let ffi_result = {
unsafe {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_QObject_ptr67(
self as *const crate::SlotOfQWheelEvent as *mut crate::SlotOfQWheelEvent,
)
}
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_core::DynamicCast<crate::SlotOfQWheelEvent> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QWheelEvent_ptr* dynamic_cast<ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QWheelEvent_ptr*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::SlotOfQWheelEvent> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_dynamic_cast_ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QWheelEvent_ptr_ptr(ptr.as_raw_ptr() as *mut ::qt_core::QObject)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::SlotOfSourceAxisType> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QAxisAccumulator_SourceAxisType* static_cast<ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QAxisAccumulator_SourceAxisType*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::SlotOfSourceAxisType> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QAxisAccumulator_SourceAxisType_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::SlotOfSourceAxisType {
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QAxisAccumulator_SourceAxisType* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::SlotOfSourceAxisType>,
) -> ::cpp_core::Ptr<::qt_core::QObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_QObject_ptr68(
ptr.as_raw_ptr() as *mut crate::SlotOfSourceAxisType
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::std::ops::Deref for crate::SlotOfSourceAxisType {
type Target = ::qt_core::QObject;
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QAxisAccumulator_SourceAxisType* ptr)```</span>.
#[inline(always)]
fn deref(&self) -> &::qt_core::QObject {
let ffi_result = {
unsafe {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_QObject_ptr68(
self as *const crate::SlotOfSourceAxisType as *mut crate::SlotOfSourceAxisType,
)
}
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_core::DynamicCast<crate::SlotOfSourceAxisType> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QAxisAccumulator_SourceAxisType* dynamic_cast<ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QAxisAccumulator_SourceAxisType*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::SlotOfSourceAxisType> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_dynamic_cast_ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QAxisAccumulator_SourceAxisType_ptr(ptr.as_raw_ptr() as *mut ::qt_core::QObject)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::SlotOfQKeyEvent> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QKeyEvent_ptr* static_cast<ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QKeyEvent_ptr*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::SlotOfQKeyEvent> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QKeyEvent_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::SlotOfQKeyEvent {
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QKeyEvent_ptr* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::SlotOfQKeyEvent>,
) -> ::cpp_core::Ptr<::qt_core::QObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_QObject_ptr69(
ptr.as_raw_ptr() as *mut crate::SlotOfQKeyEvent
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::std::ops::Deref for crate::SlotOfQKeyEvent {
type Target = ::qt_core::QObject;
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QKeyEvent_ptr* ptr)```</span>.
#[inline(always)]
fn deref(&self) -> &::qt_core::QObject {
let ffi_result = {
unsafe {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_QObject_ptr69(
self as *const crate::SlotOfQKeyEvent as *mut crate::SlotOfQKeyEvent,
)
}
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_core::DynamicCast<crate::SlotOfQKeyEvent> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QKeyEvent_ptr* dynamic_cast<ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QKeyEvent_ptr*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::SlotOfQKeyEvent> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_dynamic_cast_ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QKeyEvent_ptr_ptr(ptr.as_raw_ptr() as *mut ::qt_core::QObject)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::SlotOfQKeyboardHandler> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QKeyboardHandler_ptr* static_cast<ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QKeyboardHandler_ptr*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::SlotOfQKeyboardHandler> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QKeyboardHandler_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::SlotOfQKeyboardHandler {
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QKeyboardHandler_ptr* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::SlotOfQKeyboardHandler>,
) -> ::cpp_core::Ptr<::qt_core::QObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_QObject_ptr70(
ptr.as_raw_ptr() as *mut crate::SlotOfQKeyboardHandler
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::std::ops::Deref for crate::SlotOfQKeyboardHandler {
type Target = ::qt_core::QObject;
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QKeyboardHandler_ptr* ptr)```</span>.
#[inline(always)]
fn deref(&self) -> &::qt_core::QObject {
let ffi_result = {
unsafe {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_QObject_ptr70(
self as *const crate::SlotOfQKeyboardHandler
as *mut crate::SlotOfQKeyboardHandler,
)
}
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_core::DynamicCast<crate::SlotOfQKeyboardHandler> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QKeyboardHandler_ptr* dynamic_cast<ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QKeyboardHandler_ptr*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::SlotOfQKeyboardHandler> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_dynamic_cast_ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QKeyboardHandler_ptr_ptr(ptr.as_raw_ptr() as *mut ::qt_core::QObject)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::SlotOfQMouseDevice> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QMouseDevice_ptr* static_cast<ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QMouseDevice_ptr*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::SlotOfQMouseDevice> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QMouseDevice_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::SlotOfQMouseDevice {
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QMouseDevice_ptr* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::SlotOfQMouseDevice>,
) -> ::cpp_core::Ptr<::qt_core::QObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_QObject_ptr71(
ptr.as_raw_ptr() as *mut crate::SlotOfQMouseDevice
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::std::ops::Deref for crate::SlotOfQMouseDevice {
type Target = ::qt_core::QObject;
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QMouseDevice_ptr* ptr)```</span>.
#[inline(always)]
fn deref(&self) -> &::qt_core::QObject {
let ffi_result = {
unsafe {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_QObject_ptr71(
self as *const crate::SlotOfQMouseDevice as *mut crate::SlotOfQMouseDevice,
)
}
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_core::DynamicCast<crate::SlotOfQMouseDevice> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QMouseDevice_ptr* dynamic_cast<ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QMouseDevice_ptr*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::SlotOfQMouseDevice> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_dynamic_cast_ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QMouseDevice_ptr_ptr(ptr.as_raw_ptr() as *mut ::qt_core::QObject)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::SlotOfQVectorOfInt> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```ctr_qt_3d_input_ffi_slot_wrapper_QVector_int_const_ref* static_cast<ctr_qt_3d_input_ffi_slot_wrapper_QVector_int_const_ref*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::SlotOfQVectorOfInt> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_ctr_qt_3d_input_ffi_slot_wrapper_QVector_int_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::SlotOfQVectorOfInt {
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(ctr_qt_3d_input_ffi_slot_wrapper_QVector_int_const_ref* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::SlotOfQVectorOfInt>,
) -> ::cpp_core::Ptr<::qt_core::QObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_QObject_ptr72(
ptr.as_raw_ptr() as *mut crate::SlotOfQVectorOfInt
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::std::ops::Deref for crate::SlotOfQVectorOfInt {
type Target = ::qt_core::QObject;
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(ctr_qt_3d_input_ffi_slot_wrapper_QVector_int_const_ref* ptr)```</span>.
#[inline(always)]
fn deref(&self) -> &::qt_core::QObject {
let ffi_result = {
unsafe {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_QObject_ptr72(
self as *const crate::SlotOfQVectorOfInt as *mut crate::SlotOfQVectorOfInt,
)
}
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_core::DynamicCast<crate::SlotOfQVectorOfInt> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```ctr_qt_3d_input_ffi_slot_wrapper_QVector_int_const_ref* dynamic_cast<ctr_qt_3d_input_ffi_slot_wrapper_QVector_int_const_ref*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::SlotOfQVectorOfInt> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_dynamic_cast_ctr_qt_3d_input_ffi_slot_wrapper_QVector_int_const_ref_ptr(ptr.as_raw_ptr() as *mut ::qt_core::QObject)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::SlotOfQMouseEvent> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QMouseEvent_ptr* static_cast<ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QMouseEvent_ptr*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::SlotOfQMouseEvent> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QMouseEvent_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::SlotOfQMouseEvent {
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QMouseEvent_ptr* ptr)```</span>.
#[inline(always)]
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::SlotOfQMouseEvent>,
) -> ::cpp_core::Ptr<::qt_core::QObject> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_QObject_ptr73(
ptr.as_raw_ptr() as *mut crate::SlotOfQMouseEvent
)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
impl ::std::ops::Deref for crate::SlotOfQMouseEvent {
type Target = ::qt_core::QObject;
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QMouseEvent_ptr* ptr)```</span>.
#[inline(always)]
fn deref(&self) -> &::qt_core::QObject {
let ffi_result = {
unsafe {
crate::__ffi::ctr_qt_3d_input_ffi_static_cast_QObject_ptr73(
self as *const crate::SlotOfQMouseEvent as *mut crate::SlotOfQMouseEvent,
)
}
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_core::DynamicCast<crate::SlotOfQMouseEvent> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QMouseEvent_ptr* dynamic_cast<ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QMouseEvent_ptr*>(QObject* ptr)```</span>.
#[inline(always)]
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::SlotOfQMouseEvent> {
let ffi_result = {
crate::__ffi::ctr_qt_3d_input_ffi_dynamic_cast_ctr_qt_3d_input_ffi_slot_wrapper_Qt3DInput_QMouseEvent_ptr_ptr(ptr.as_raw_ptr() as *mut ::qt_core::QObject)
};
::cpp_core::Ptr::from_raw(ffi_result)
}
}
/// Calls C++ function: <span style='color: green;'>```unsigned int qHash(const QVector<Qt3DInput::QAxisSetting*>& key, unsigned int seed = …)```</span>.
#[inline(always)]
pub unsafe fn q_hash_q_vector_of_q_axis_setting_uint(
key: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QVectorOfQAxisSetting>>,
seed: ::std::os::raw::c_uint,
) -> ::std::os::raw::c_uint {
crate::__ffi::ctr_qt_3d_input_ffi_qHash(
::cpp_core::CastInto::<::cpp_core::Ref<crate::QVectorOfQAxisSetting>>::cast_into(key)
.as_raw_ptr(),
seed,
)
}
/// Calls C++ function: <span style='color: green;'>```unsigned int qHash(const QVector<Qt3DInput::QAbstractActionInput*>& key, unsigned int seed = …)```</span>.
#[inline(always)]
pub unsafe fn q_hash_q_vector_of_q_abstract_action_input_uint(
key: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QVectorOfQAbstractActionInput>>,
seed: ::std::os::raw::c_uint,
) -> ::std::os::raw::c_uint {
crate::__ffi::ctr_qt_3d_input_ffi_qHash1(
::cpp_core::CastInto::<::cpp_core::Ref<crate::QVectorOfQAbstractActionInput>>::cast_into(
key,
)
.as_raw_ptr(),
seed,
)
}
/// Calls C++ function: <span style='color: green;'>```unsigned int qHash(const QVector<Qt3DInput::QAbstractAxisInput*>& key, unsigned int seed = …)```</span>.
#[inline(always)]
pub unsafe fn q_hash_q_vector_of_q_abstract_axis_input_uint(
key: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QVectorOfQAbstractAxisInput>>,
seed: ::std::os::raw::c_uint,
) -> ::std::os::raw::c_uint {
crate::__ffi::ctr_qt_3d_input_ffi_qHash2(
::cpp_core::CastInto::<::cpp_core::Ref<crate::QVectorOfQAbstractAxisInput>>::cast_into(key)
.as_raw_ptr(),
seed,
)
}
/// Calls C++ function: <span style='color: green;'>```unsigned int qHash(const QVector<Qt3DInput::QAction*>& key, unsigned int seed = …)```</span>.
#[inline(always)]
pub unsafe fn q_hash_q_vector_of_q_action_uint(
key: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QVectorOfQAction>>,
seed: ::std::os::raw::c_uint,
) -> ::std::os::raw::c_uint {
crate::__ffi::ctr_qt_3d_input_ffi_qHash3(
::cpp_core::CastInto::<::cpp_core::Ref<crate::QVectorOfQAction>>::cast_into(key)
.as_raw_ptr(),
seed,
)
}
/// Calls C++ function: <span style='color: green;'>```unsigned int qHash(const QVector<Qt3DInput::QAxis*>& key, unsigned int seed = …)```</span>.
#[inline(always)]
pub unsafe fn q_hash_q_vector_of_q_axis_uint(
key: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QVectorOfQAxis>>,
seed: ::std::os::raw::c_uint,
) -> ::std::os::raw::c_uint {
crate::__ffi::ctr_qt_3d_input_ffi_qHash4(
::cpp_core::CastInto::<::cpp_core::Ref<crate::QVectorOfQAxis>>::cast_into(key).as_raw_ptr(),
seed,
)
}
/// Calls C++ function: <span style='color: green;'>```unsigned int qHash(const QVector<Qt3DInput::QAxisSetting*>& key)```</span>.
#[inline(always)]
pub unsafe fn q_hash_q_vector_of_q_axis_setting(
key: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QVectorOfQAxisSetting>>,
) -> ::std::os::raw::c_uint {
crate::__ffi::ctr_qt_3d_input_ffi_qHash5(
::cpp_core::CastInto::<::cpp_core::Ref<crate::QVectorOfQAxisSetting>>::cast_into(key)
.as_raw_ptr(),
)
}
/// Calls C++ function: <span style='color: green;'>```unsigned int qHash(const QVector<Qt3DInput::QAbstractActionInput*>& key)```</span>.
#[inline(always)]
pub unsafe fn q_hash_q_vector_of_q_abstract_action_input(
key: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QVectorOfQAbstractActionInput>>,
) -> ::std::os::raw::c_uint {
crate::__ffi::ctr_qt_3d_input_ffi_qHash6(
::cpp_core::CastInto::<::cpp_core::Ref<crate::QVectorOfQAbstractActionInput>>::cast_into(
key,
)
.as_raw_ptr(),
)
}
/// Calls C++ function: <span style='color: green;'>```unsigned int qHash(const QVector<Qt3DInput::QAbstractAxisInput*>& key)```</span>.
#[inline(always)]
pub unsafe fn q_hash_q_vector_of_q_abstract_axis_input(
key: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QVectorOfQAbstractAxisInput>>,
) -> ::std::os::raw::c_uint {
crate::__ffi::ctr_qt_3d_input_ffi_qHash7(
::cpp_core::CastInto::<::cpp_core::Ref<crate::QVectorOfQAbstractAxisInput>>::cast_into(key)
.as_raw_ptr(),
)
}
/// Calls C++ function: <span style='color: green;'>```unsigned int qHash(const QVector<Qt3DInput::QAction*>& key)```</span>.
#[inline(always)]
pub unsafe fn q_hash_q_vector_of_q_action(
key: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QVectorOfQAction>>,
) -> ::std::os::raw::c_uint {
crate::__ffi::ctr_qt_3d_input_ffi_qHash8(
::cpp_core::CastInto::<::cpp_core::Ref<crate::QVectorOfQAction>>::cast_into(key)
.as_raw_ptr(),
)
}
/// Calls C++ function: <span style='color: green;'>```unsigned int qHash(const QVector<Qt3DInput::QAxis*>& key)```</span>.
#[inline(always)]
pub unsafe fn q_hash_q_vector_of_q_axis(
key: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QVectorOfQAxis>>,
) -> ::std::os::raw::c_uint {
crate::__ffi::ctr_qt_3d_input_ffi_qHash9(
::cpp_core::CastInto::<::cpp_core::Ref<crate::QVectorOfQAxis>>::cast_into(key).as_raw_ptr(),
)
}