//! Bindings for Qt3DExtras C++ library.
//!
//! Starting guide and examples are available at
//!       [https://github.com/rust-qt/examples](https://github.com/rust-qt/examples).
//!
//! This crate was generated for Qt 5.9.7, 5.11.3, 5.12.2, 5.13.0.
//!         It should work with other Qt versions later than 5.9.7,
//!         but API specific to other versions will not be available.
//!
//! This crate was generated by `ritual`.
//!           See [README](https://github.com/rust-qt/ritual) for more information.
mod __ffi {
//! Functions provided by the C++ wrapper library
include!(concat!(env!("OUT_DIR"), "/ffi.rs"));
}
pub mod ops;
pub use ::cpp_core;
pub use ::qt_3d_core;
pub use ::qt_3d_input;
pub use ::qt_3d_logic;
pub use ::qt_3d_render;
pub use ::qt_core;
pub use ::qt_gui;
/// <p>The <a href="http://doc.qt.io/qt-5/qt3dextras-qconegeometry.html">QConeGeometry</a> class allows creation of a cone in 3D space.</p>
///
/// C++ class: <span style='color: green;'>```Qt3DExtras::QConeGeometry```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qconegeometry.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>The <a href="http://doc.qt.io/qt-5/qt3dextras-qconegeometry.html">QConeGeometry</a> class allows creation of a cone in 3D space.</p>
/// <p>The <a href="http://doc.qt.io/qt-5/qt3dextras-qconegeometry.html">QConeGeometry</a> class is most commonly used internally by the <a href="http://doc.qt.io/qt-5/qt3dextras-qconemesh.html">QConeMesh</a> but can also be used in custom <a href="http://doc.qt.io/qt-5/qt3drender-qgeometryrenderer.html">Qt3DRender::QGeometryRenderer</a> subclasses. The class allows for creation of both a cone and a truncated cone.</p></div>
#[repr(C)]
pub struct QConeGeometry {
_unused: u8,
}
impl QConeGeometry {
/// <p>Determines if the cone top is capped or open.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QConeGeometry::setHasTopEndcap` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qconegeometry.html#hasTopEndcap-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Determines if the cone top is capped or open.</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>hasTopEndcap</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setHasTopEndcap</b></span>(bool <i>hasTopEndcap</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>hasTopEndcapChanged</b></span>(bool <i>hasTopEndcap</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slot_set_has_top_endcap(&self) -> ::qt_core::Receiver<(bool,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setHasTopEndcap(bool)\0"),
)
}
}
/// <p>Determines if the cone bottom is capped or open.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QConeGeometry::setHasBottomEndcap` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qconegeometry.html#hasBottomEndcap-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Determines if the cone bottom is capped or open.</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>hasBottomEndcap</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setHasBottomEndcap</b></span>(bool <i>hasBottomEndcap</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>hasBottomEndcapChanged</b></span>(bool <i>hasBottomEndcap</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slot_set_has_bottom_endcap(&self) -> ::qt_core::Receiver<(bool,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setHasBottomEndcap(bool)\0"),
)
}
}
/// <p>Holds the top radius of the cone.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QConeGeometry::setTopRadius` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qconegeometry.html#topRadius-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the top radius of the cone.</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>topRadius</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setTopRadius</b></span>(float <i>topRadius</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>topRadiusChanged</b></span>(float <i>topRadius</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slot_set_top_radius(&self) -> ::qt_core::Receiver<(::std::os::raw::c_float,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setTopRadius(float)\0"),
)
}
}
/// <p>Holds the bottom radius of the cone.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QConeGeometry::setBottomRadius` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qconegeometry.html#bottomRadius-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the bottom radius of the cone.</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>bottomRadius</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setBottomRadius</b></span>(float <i>bottomRadius</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>bottomRadiusChanged</b></span>(float <i>bottomRadius</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slot_set_bottom_radius(&self) -> ::qt_core::Receiver<(::std::os::raw::c_float,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setBottomRadius(float)\0"),
)
}
}
/// <p>Holds the number of rings in the geometry.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QConeGeometry::setRings` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qconegeometry.html#rings-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the number of rings in the geometry.</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>rings</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setRings</b></span>(int <i>rings</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>ringsChanged</b></span>(int <i>rings</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slot_set_rings(&self) -> ::qt_core::Receiver<(::std::os::raw::c_int,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setRings(int)\0"),
)
}
}
/// <p>Holds the number of slices in the geometry.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QConeGeometry::setSlices` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qconegeometry.html#slices-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the number of slices in the geometry.</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>slices</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setSlices</b></span>(int <i>slices</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>slicesChanged</b></span>(int <i>slices</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slot_set_slices(&self) -> ::qt_core::Receiver<(::std::os::raw::c_int,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setSlices(int)\0"),
)
}
}
/// <p>Holds the length of the cone.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QConeGeometry::setLength` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qconegeometry.html#length-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the length of the cone.</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>length</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setLength</b></span>(float <i>length</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>lengthChanged</b></span>(float <i>length</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slot_set_length(&self) -> ::qt_core::Receiver<(::std::os::raw::c_float,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setLength(float)\0"),
)
}
}
/// <p>Determines if the cone top is capped or open.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QConeGeometry::hasTopEndcapChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qconegeometry.html#hasTopEndcap-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Determines if the cone top is capped or open.</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>hasTopEndcap</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setHasTopEndcap</b></span>(bool <i>hasTopEndcap</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>hasTopEndcapChanged</b></span>(bool <i>hasTopEndcap</i>)</td></tr>
/// </tbody></table></div></div>
pub fn has_top_endcap_changed(&self) -> ::qt_core::Signal<(bool,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2hasTopEndcapChanged(bool)\0"),
)
}
}
/// <p>Determines if the cone bottom is capped or open.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QConeGeometry::hasBottomEndcapChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qconegeometry.html#hasBottomEndcap-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Determines if the cone bottom is capped or open.</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>hasBottomEndcap</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setHasBottomEndcap</b></span>(bool <i>hasBottomEndcap</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>hasBottomEndcapChanged</b></span>(bool <i>hasBottomEndcap</i>)</td></tr>
/// </tbody></table></div></div>
pub fn has_bottom_endcap_changed(&self) -> ::qt_core::Signal<(bool,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2hasBottomEndcapChanged(bool)\0"),
)
}
}
/// <p>Holds the top radius of the cone.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QConeGeometry::topRadiusChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qconegeometry.html#topRadius-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the top radius of the cone.</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>topRadius</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setTopRadius</b></span>(float <i>topRadius</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>topRadiusChanged</b></span>(float <i>topRadius</i>)</td></tr>
/// </tbody></table></div></div>
pub fn top_radius_changed(&self) -> ::qt_core::Signal<(::std::os::raw::c_float,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2topRadiusChanged(float)\0"),
)
}
}
/// <p>Holds the bottom radius of the cone.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QConeGeometry::bottomRadiusChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qconegeometry.html#bottomRadius-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the bottom radius of the cone.</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>bottomRadius</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setBottomRadius</b></span>(float <i>bottomRadius</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>bottomRadiusChanged</b></span>(float <i>bottomRadius</i>)</td></tr>
/// </tbody></table></div></div>
pub fn bottom_radius_changed(&self) -> ::qt_core::Signal<(::std::os::raw::c_float,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2bottomRadiusChanged(float)\0"),
)
}
}
/// <p>Holds the number of rings in the geometry.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QConeGeometry::ringsChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qconegeometry.html#rings-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the number of rings in the geometry.</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>rings</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setRings</b></span>(int <i>rings</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>ringsChanged</b></span>(int <i>rings</i>)</td></tr>
/// </tbody></table></div></div>
pub fn rings_changed(&self) -> ::qt_core::Signal<(::std::os::raw::c_int,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2ringsChanged(int)\0"),
)
}
}
/// <p>Holds the number of slices in the geometry.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QConeGeometry::slicesChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qconegeometry.html#slices-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the number of slices in the geometry.</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>slices</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setSlices</b></span>(int <i>slices</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>slicesChanged</b></span>(int <i>slices</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slices_changed(&self) -> ::qt_core::Signal<(::std::os::raw::c_int,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2slicesChanged(int)\0"),
)
}
}
/// <p>Holds the length of the cone.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QConeGeometry::lengthChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qconegeometry.html#length-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the length of the cone.</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>length</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setLength</b></span>(float <i>length</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>lengthChanged</b></span>(float <i>length</i>)</td></tr>
/// </tbody></table></div></div>
pub fn length_changed(&self) -> ::qt_core::Signal<(::std::os::raw::c_float,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2lengthChanged(float)\0"),
)
}
}
/// <p>Holds the bottom radius of the cone.</p>
///
/// Calls C++ function: <span style='color: green;'>```float Qt3DExtras::QConeGeometry::bottomRadius() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qconegeometry.html#bottomRadius-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the bottom radius of the cone.</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>bottomRadius</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setBottomRadius</b></span>(float <i>bottomRadius</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>bottomRadiusChanged</b></span>(float <i>bottomRadius</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn bottom_radius(&self) -> ::std::os::raw::c_float {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QConeGeometry_bottomRadius(
self as *const crate::QConeGeometry,
)
}
/// <p>Determines if the cone bottom is capped or open.</p>
///
/// Calls C++ function: <span style='color: green;'>```bool Qt3DExtras::QConeGeometry::hasBottomEndcap() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qconegeometry.html#hasBottomEndcap-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Determines if the cone bottom is capped or open.</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>hasBottomEndcap</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setHasBottomEndcap</b></span>(bool <i>hasBottomEndcap</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>hasBottomEndcapChanged</b></span>(bool <i>hasBottomEndcap</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn has_bottom_endcap(&self) -> bool {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QConeGeometry_hasBottomEndcap(
self as *const crate::QConeGeometry,
)
}
/// <p>Determines if the cone top is capped or open.</p>
///
/// Calls C++ function: <span style='color: green;'>```bool Qt3DExtras::QConeGeometry::hasTopEndcap() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qconegeometry.html#hasTopEndcap-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Determines if the cone top is capped or open.</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>hasTopEndcap</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setHasTopEndcap</b></span>(bool <i>hasTopEndcap</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>hasTopEndcapChanged</b></span>(bool <i>hasTopEndcap</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn has_top_endcap(&self) -> bool {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QConeGeometry_hasTopEndcap(
self as *const crate::QConeGeometry,
)
}
/// <p>Holds the geometry index attribute.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QAttribute* Qt3DExtras::QConeGeometry::indexAttribute() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qconegeometry.html#indexAttribute-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the geometry index attribute.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DRender::QAttribute *</td><td class="memItemRight bottomAlign"><span class="name"><b>indexAttribute</b></span>() const</td></tr>
/// </tbody></table></div></div>
pub unsafe fn index_attribute(&self) -> ::cpp_core::MutPtr<::qt_3d_render::QAttribute> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QConeGeometry_indexAttribute(
self as *const crate::QConeGeometry,
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
/// <p>Holds the length of the cone.</p>
///
/// Calls C++ function: <span style='color: green;'>```float Qt3DExtras::QConeGeometry::length() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qconegeometry.html#length-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the length of the cone.</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>length</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setLength</b></span>(float <i>length</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>lengthChanged</b></span>(float <i>length</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn length(&self) -> ::std::os::raw::c_float {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QConeGeometry_length(
self as *const crate::QConeGeometry,
)
}
/// Calls C++ function: <span style='color: green;'>```virtual const QMetaObject* Qt3DExtras::QConeGeometry::metaObject() const```</span>.
pub unsafe fn meta_object(&self) -> ::cpp_core::Ptr<::qt_core::QMetaObject> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QConeGeometry_metaObject(
self as *const crate::QConeGeometry,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// <p>Default constructs an instance of QConeGeometry.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DExtras::QConeGeometry::QConeGeometry(Qt3DCore::QNode* parent = …)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qconegeometry.html#QConeGeometry">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Default constructs an instance of QConeGeometry.</p></div>
pub unsafe fn new_1a(
parent: impl ::cpp_core::CastInto<::cpp_core::MutPtr<::qt_3d_core::QNode>>,
) -> ::cpp_core::CppBox<crate::QConeGeometry> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QConeGeometry_QConeGeometry(
::cpp_core::CastInto::<::cpp_core::MutPtr<::qt_3d_core::QNode>>::cast_into(parent)
.as_mut_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/qt3dextras-qconegeometry.html">QConeGeometry</a> class allows creation of a cone in 3D space.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DExtras::QConeGeometry::QConeGeometry()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qconegeometry.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>The <a href="http://doc.qt.io/qt-5/qt3dextras-qconegeometry.html">QConeGeometry</a> class allows creation of a cone in 3D space.</p>
/// <p>The <a href="http://doc.qt.io/qt-5/qt3dextras-qconegeometry.html">QConeGeometry</a> class is most commonly used internally by the <a href="http://doc.qt.io/qt-5/qt3dextras-qconemesh.html">QConeMesh</a> but can also be used in custom <a href="http://doc.qt.io/qt-5/qt3drender-qgeometryrenderer.html">Qt3DRender::QGeometryRenderer</a> subclasses. The class allows for creation of both a cone and a truncated cone.</p></div>
pub unsafe fn new_0a() -> ::cpp_core::CppBox<crate::QConeGeometry> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QConeGeometry_QConeGeometry1();
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Holds the geometry normal attribute.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QAttribute* Qt3DExtras::QConeGeometry::normalAttribute() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qconegeometry.html#normalAttribute-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the geometry normal attribute.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DRender::QAttribute *</td><td class="memItemRight bottomAlign"><span class="name"><b>normalAttribute</b></span>() const</td></tr>
/// </tbody></table></div></div>
pub unsafe fn normal_attribute(&self) -> ::cpp_core::MutPtr<::qt_3d_render::QAttribute> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QConeGeometry_normalAttribute(
self as *const crate::QConeGeometry,
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
/// <p>Holds the geometry position attribute.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QAttribute* Qt3DExtras::QConeGeometry::positionAttribute() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qconegeometry.html#positionAttribute-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the geometry position attribute.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DRender::QAttribute *</td><td class="memItemRight bottomAlign"><span class="name"><b>positionAttribute</b></span>() const</td></tr>
/// </tbody></table></div></div>
pub unsafe fn position_attribute(&self) -> ::cpp_core::MutPtr<::qt_3d_render::QAttribute> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QConeGeometry_positionAttribute(
self as *const crate::QConeGeometry,
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```virtual int Qt3DExtras::QConeGeometry::qt_metacall(QMetaObject::Call arg1, int arg2, void** arg3)```</span>.
pub unsafe fn qt_metacall(
&mut self,
arg1: ::qt_core::q_meta_object::Call,
arg2: ::std::os::raw::c_int,
arg3: impl ::cpp_core::CastInto<::cpp_core::MutPtr<*mut ::std::ffi::c_void>>,
) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QConeGeometry_qt_metacall(
self as *mut crate::QConeGeometry,
arg1,
arg2,
::cpp_core::CastInto::<::cpp_core::MutPtr<*mut ::std::ffi::c_void>>::cast_into(arg3)
.as_mut_raw_ptr(),
)
}
/// Calls C++ function: <span style='color: green;'>```virtual void* Qt3DExtras::QConeGeometry::qt_metacast(const char* arg1)```</span>.
pub unsafe fn qt_metacast(
&mut self,
arg1: impl ::cpp_core::CastInto<::cpp_core::Ptr<::std::os::raw::c_char>>,
) -> ::cpp_core::MutPtr<::std::ffi::c_void> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QConeGeometry_qt_metacast(
self as *mut crate::QConeGeometry,
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(arg1)
.as_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
/// <p>Holds the number of rings in the geometry.</p>
///
/// Calls C++ function: <span style='color: green;'>```int Qt3DExtras::QConeGeometry::rings() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qconegeometry.html#rings-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the number of rings in the geometry.</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>rings</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setRings</b></span>(int <i>rings</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>ringsChanged</b></span>(int <i>rings</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn rings(&self) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QConeGeometry_rings(
self as *const crate::QConeGeometry,
)
}
/// <p>Holds the bottom radius of the cone.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QConeGeometry::setBottomRadius(float bottomRadius)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qconegeometry.html#bottomRadius-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the bottom radius of the cone.</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>bottomRadius</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setBottomRadius</b></span>(float <i>bottomRadius</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>bottomRadiusChanged</b></span>(float <i>bottomRadius</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_bottom_radius(&mut self, bottom_radius: ::std::os::raw::c_float) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QConeGeometry_setBottomRadius(
self as *mut crate::QConeGeometry,
bottom_radius,
)
}
/// <p>Determines if the cone bottom is capped or open.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QConeGeometry::setHasBottomEndcap(bool hasBottomEndcap)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qconegeometry.html#hasBottomEndcap-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Determines if the cone bottom is capped or open.</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>hasBottomEndcap</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setHasBottomEndcap</b></span>(bool <i>hasBottomEndcap</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>hasBottomEndcapChanged</b></span>(bool <i>hasBottomEndcap</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_has_bottom_endcap(&mut self, has_bottom_endcap: bool) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QConeGeometry_setHasBottomEndcap(
self as *mut crate::QConeGeometry,
has_bottom_endcap,
)
}
/// <p>Determines if the cone top is capped or open.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QConeGeometry::setHasTopEndcap(bool hasTopEndcap)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qconegeometry.html#hasTopEndcap-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Determines if the cone top is capped or open.</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>hasTopEndcap</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setHasTopEndcap</b></span>(bool <i>hasTopEndcap</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>hasTopEndcapChanged</b></span>(bool <i>hasTopEndcap</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_has_top_endcap(&mut self, has_top_endcap: bool) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QConeGeometry_setHasTopEndcap(
self as *mut crate::QConeGeometry,
has_top_endcap,
)
}
/// <p>Holds the length of the cone.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QConeGeometry::setLength(float length)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qconegeometry.html#length-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the length of the cone.</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>length</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setLength</b></span>(float <i>length</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>lengthChanged</b></span>(float <i>length</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_length(&mut self, length: ::std::os::raw::c_float) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QConeGeometry_setLength(
self as *mut crate::QConeGeometry,
length,
)
}
/// <p>Holds the number of rings in the geometry.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QConeGeometry::setRings(int rings)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qconegeometry.html#rings-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the number of rings in the geometry.</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>rings</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setRings</b></span>(int <i>rings</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>ringsChanged</b></span>(int <i>rings</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_rings(&mut self, rings: ::std::os::raw::c_int) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QConeGeometry_setRings(
self as *mut crate::QConeGeometry,
rings,
)
}
/// <p>Holds the number of slices in the geometry.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QConeGeometry::setSlices(int slices)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qconegeometry.html#slices-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the number of slices in the geometry.</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>slices</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setSlices</b></span>(int <i>slices</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>slicesChanged</b></span>(int <i>slices</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_slices(&mut self, slices: ::std::os::raw::c_int) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QConeGeometry_setSlices(
self as *mut crate::QConeGeometry,
slices,
)
}
/// <p>Holds the top radius of the cone.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QConeGeometry::setTopRadius(float topRadius)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qconegeometry.html#topRadius-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the top radius of the cone.</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>topRadius</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setTopRadius</b></span>(float <i>topRadius</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>topRadiusChanged</b></span>(float <i>topRadius</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_top_radius(&mut self, top_radius: ::std::os::raw::c_float) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QConeGeometry_setTopRadius(
self as *mut crate::QConeGeometry,
top_radius,
)
}
/// <p>Holds the number of slices in the geometry.</p>
///
/// Calls C++ function: <span style='color: green;'>```int Qt3DExtras::QConeGeometry::slices() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qconegeometry.html#slices-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the number of slices in the geometry.</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>slices</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setSlices</b></span>(int <i>slices</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>slicesChanged</b></span>(int <i>slices</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn slices(&self) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QConeGeometry_slices(
self as *const crate::QConeGeometry,
)
}
/// Returns a reference to the <span style='color: green;'>```staticMetaObject```</span> field.
pub unsafe fn static_meta_object() -> ::cpp_core::Ref<::qt_core::QMetaObject> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QConeGeometry_staticMetaObject();
::cpp_core::Ref::from_raw(ffi_result).expect("attempted to construct a null Ref")
}
/// <p>Holds the geometry texture coordinate attribute.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QAttribute* Qt3DExtras::QConeGeometry::texCoordAttribute() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qconegeometry.html#texCoordAttribute-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the geometry texture coordinate attribute.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DRender::QAttribute *</td><td class="memItemRight bottomAlign"><span class="name"><b>texCoordAttribute</b></span>() const</td></tr>
/// </tbody></table></div></div>
pub unsafe fn tex_coord_attribute(&self) -> ::cpp_core::MutPtr<::qt_3d_render::QAttribute> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QConeGeometry_texCoordAttribute(
self as *const crate::QConeGeometry,
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
/// <p>Holds the top radius of the cone.</p>
///
/// Calls C++ function: <span style='color: green;'>```float Qt3DExtras::QConeGeometry::topRadius() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qconegeometry.html#topRadius-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the top radius of the cone.</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>topRadius</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setTopRadius</b></span>(float <i>topRadius</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>topRadiusChanged</b></span>(float <i>topRadius</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn top_radius(&self) -> ::std::os::raw::c_float {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QConeGeometry_topRadius(
self as *const crate::QConeGeometry,
)
}
/// Calls C++ function: <span style='color: green;'>```static QString Qt3DExtras::QConeGeometry::tr(const char* s, const char* c, int n)```</span>.
pub unsafe fn tr(
s: impl ::cpp_core::CastInto<::cpp_core::Ptr<::std::os::raw::c_char>>,
c: impl ::cpp_core::CastInto<::cpp_core::Ptr<::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_extras_ffi_Qt3DExtras_QConeGeometry_tr(
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(s)
.as_raw_ptr(),
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(c)
.as_raw_ptr(),
n,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// Calls C++ function: <span style='color: green;'>```static QString Qt3DExtras::QConeGeometry::trUtf8(const char* s, const char* c, int n)```</span>.
pub unsafe fn tr_utf8(
s: impl ::cpp_core::CastInto<::cpp_core::Ptr<::std::os::raw::c_char>>,
c: impl ::cpp_core::CastInto<::cpp_core::Ptr<::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_extras_ffi_Qt3DExtras_QConeGeometry_trUtf8(
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(s)
.as_raw_ptr(),
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(c)
.as_raw_ptr(),
n,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Updates indices based on geometry properties.</p>
///
/// Calls C++ function: <span style='color: green;'>```void Qt3DExtras::QConeGeometry::updateIndices()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qconegeometry.html#updateIndices">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Updates indices based on geometry properties.</p></div>
pub unsafe fn update_indices(&mut self) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QConeGeometry_updateIndices(
self as *mut crate::QConeGeometry,
)
}
/// <p>Updates vertices based on geometry properties.</p>
///
/// Calls C++ function: <span style='color: green;'>```void Qt3DExtras::QConeGeometry::updateVertices()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qconegeometry.html#updateVertices">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Updates vertices based on geometry properties.</p></div>
pub unsafe fn update_vertices(&mut self) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QConeGeometry_updateVertices(
self as *mut crate::QConeGeometry,
)
}
}
/// <p>A conical mesh.</p>
///
/// C++ class: <span style='color: green;'>```Qt3DExtras::QConeMesh```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qconemesh.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>A conical mesh.</p></div>
#[repr(C)]
pub struct QConeMesh {
_unused: u8,
}
impl QConeMesh {
/// <p>Determines if the cone top is capped or open.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QConeMesh::setHasTopEndcap` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qconemesh.html#hasTopEndcap-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Determines if the cone top is capped or open.</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>hasTopEndcap</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setHasTopEndcap</b></span>(bool <i>hasTopEndcap</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>hasTopEndcapChanged</b></span>(bool <i>hasTopEndcap</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slot_set_has_top_endcap(&self) -> ::qt_core::Receiver<(bool,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setHasTopEndcap(bool)\0"),
)
}
}
/// <p>Determines if the cone bottom is capped or open.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QConeMesh::setHasBottomEndcap` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qconemesh.html#hasBottomEndcap-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Determines if the cone bottom is capped or open.</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>hasBottomEndcap</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setHasBottomEndcap</b></span>(bool <i>hasBottomEndcap</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>hasBottomEndcapChanged</b></span>(bool <i>hasBottomEndcap</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slot_set_has_bottom_endcap(&self) -> ::qt_core::Receiver<(bool,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setHasBottomEndcap(bool)\0"),
)
}
}
/// <p>Holds the top radius of the cone.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QConeMesh::setTopRadius` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qconemesh.html#topRadius-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the top radius of the cone.</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>topRadius</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setTopRadius</b></span>(float <i>topRadius</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>topRadiusChanged</b></span>(float <i>topRadius</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slot_set_top_radius(&self) -> ::qt_core::Receiver<(::std::os::raw::c_float,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setTopRadius(float)\0"),
)
}
}
/// <p>Holds the bottom radius of the cone.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QConeMesh::setBottomRadius` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qconemesh.html#bottomRadius-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the bottom radius of the cone.</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>bottomRadius</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setBottomRadius</b></span>(float <i>bottomRadius</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>bottomRadiusChanged</b></span>(float <i>bottomRadius</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slot_set_bottom_radius(&self) -> ::qt_core::Receiver<(::std::os::raw::c_float,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setBottomRadius(float)\0"),
)
}
}
/// <p>Holds the number of rings in the mesh.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QConeMesh::setRings` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qconemesh.html#rings-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the number of rings in the mesh.</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>rings</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setRings</b></span>(int <i>rings</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>ringsChanged</b></span>(int <i>rings</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slot_set_rings(&self) -> ::qt_core::Receiver<(::std::os::raw::c_int,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setRings(int)\0"),
)
}
}
/// <p>Holds the number of slices in the mesh.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QConeMesh::setSlices` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qconemesh.html#slices-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the number of slices in the mesh.</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>slices</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setSlices</b></span>(int <i>slices</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>slicesChanged</b></span>(int <i>slices</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slot_set_slices(&self) -> ::qt_core::Receiver<(::std::os::raw::c_int,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setSlices(int)\0"),
)
}
}
/// <p>Holds the length of the cone.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QConeMesh::setLength` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qconemesh.html#length-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the length of the cone.</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>length</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setLength</b></span>(float <i>length</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>lengthChanged</b></span>(float <i>length</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slot_set_length(&self) -> ::qt_core::Receiver<(::std::os::raw::c_float,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setLength(float)\0"),
)
}
}
/// <p>Determines if the cone top is capped or open.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QConeMesh::hasTopEndcapChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qconemesh.html#hasTopEndcap-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Determines if the cone top is capped or open.</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>hasTopEndcap</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setHasTopEndcap</b></span>(bool <i>hasTopEndcap</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>hasTopEndcapChanged</b></span>(bool <i>hasTopEndcap</i>)</td></tr>
/// </tbody></table></div></div>
pub fn has_top_endcap_changed(&self) -> ::qt_core::Signal<(bool,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2hasTopEndcapChanged(bool)\0"),
)
}
}
/// <p>Determines if the cone bottom is capped or open.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QConeMesh::hasBottomEndcapChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qconemesh.html#hasBottomEndcap-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Determines if the cone bottom is capped or open.</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>hasBottomEndcap</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setHasBottomEndcap</b></span>(bool <i>hasBottomEndcap</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>hasBottomEndcapChanged</b></span>(bool <i>hasBottomEndcap</i>)</td></tr>
/// </tbody></table></div></div>
pub fn has_bottom_endcap_changed(&self) -> ::qt_core::Signal<(bool,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2hasBottomEndcapChanged(bool)\0"),
)
}
}
/// <p>Holds the top radius of the cone.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QConeMesh::topRadiusChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qconemesh.html#topRadius-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the top radius of the cone.</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>topRadius</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setTopRadius</b></span>(float <i>topRadius</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>topRadiusChanged</b></span>(float <i>topRadius</i>)</td></tr>
/// </tbody></table></div></div>
pub fn top_radius_changed(&self) -> ::qt_core::Signal<(::std::os::raw::c_float,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2topRadiusChanged(float)\0"),
)
}
}
/// <p>Holds the bottom radius of the cone.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QConeMesh::bottomRadiusChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qconemesh.html#bottomRadius-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the bottom radius of the cone.</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>bottomRadius</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setBottomRadius</b></span>(float <i>bottomRadius</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>bottomRadiusChanged</b></span>(float <i>bottomRadius</i>)</td></tr>
/// </tbody></table></div></div>
pub fn bottom_radius_changed(&self) -> ::qt_core::Signal<(::std::os::raw::c_float,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2bottomRadiusChanged(float)\0"),
)
}
}
/// <p>Holds the number of rings in the mesh.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QConeMesh::ringsChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qconemesh.html#rings-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the number of rings in the mesh.</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>rings</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setRings</b></span>(int <i>rings</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>ringsChanged</b></span>(int <i>rings</i>)</td></tr>
/// </tbody></table></div></div>
pub fn rings_changed(&self) -> ::qt_core::Signal<(::std::os::raw::c_int,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2ringsChanged(int)\0"),
)
}
}
/// <p>Holds the number of slices in the mesh.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QConeMesh::slicesChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qconemesh.html#slices-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the number of slices in the mesh.</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>slices</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setSlices</b></span>(int <i>slices</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>slicesChanged</b></span>(int <i>slices</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slices_changed(&self) -> ::qt_core::Signal<(::std::os::raw::c_int,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2slicesChanged(int)\0"),
)
}
}
/// <p>Holds the length of the cone.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QConeMesh::lengthChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qconemesh.html#length-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the length of the cone.</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>length</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setLength</b></span>(float <i>length</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>lengthChanged</b></span>(float <i>length</i>)</td></tr>
/// </tbody></table></div></div>
pub fn length_changed(&self) -> ::qt_core::Signal<(::std::os::raw::c_float,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2lengthChanged(float)\0"),
)
}
}
/// <p>Holds the bottom radius of the cone.</p>
///
/// Calls C++ function: <span style='color: green;'>```float Qt3DExtras::QConeMesh::bottomRadius() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qconemesh.html#bottomRadius-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the bottom radius of the cone.</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>bottomRadius</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setBottomRadius</b></span>(float <i>bottomRadius</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>bottomRadiusChanged</b></span>(float <i>bottomRadius</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn bottom_radius(&self) -> ::std::os::raw::c_float {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QConeMesh_bottomRadius(
self as *const crate::QConeMesh,
)
}
/// <p>Determines if the cone bottom is capped or open.</p>
///
/// Calls C++ function: <span style='color: green;'>```bool Qt3DExtras::QConeMesh::hasBottomEndcap() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qconemesh.html#hasBottomEndcap-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Determines if the cone bottom is capped or open.</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>hasBottomEndcap</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setHasBottomEndcap</b></span>(bool <i>hasBottomEndcap</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>hasBottomEndcapChanged</b></span>(bool <i>hasBottomEndcap</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn has_bottom_endcap(&self) -> bool {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QConeMesh_hasBottomEndcap(
self as *const crate::QConeMesh,
)
}
/// <p>Determines if the cone top is capped or open.</p>
///
/// Calls C++ function: <span style='color: green;'>```bool Qt3DExtras::QConeMesh::hasTopEndcap() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qconemesh.html#hasTopEndcap-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Determines if the cone top is capped or open.</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>hasTopEndcap</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setHasTopEndcap</b></span>(bool <i>hasTopEndcap</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>hasTopEndcapChanged</b></span>(bool <i>hasTopEndcap</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn has_top_endcap(&self) -> bool {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QConeMesh_hasTopEndcap(
self as *const crate::QConeMesh,
)
}
/// <p>Holds the length of the cone.</p>
///
/// Calls C++ function: <span style='color: green;'>```float Qt3DExtras::QConeMesh::length() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qconemesh.html#length-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the length of the cone.</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>length</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setLength</b></span>(float <i>length</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>lengthChanged</b></span>(float <i>length</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn length(&self) -> ::std::os::raw::c_float {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QConeMesh_length(
self as *const crate::QConeMesh,
)
}
/// Calls C++ function: <span style='color: green;'>```virtual const QMetaObject* Qt3DExtras::QConeMesh::metaObject() const```</span>.
pub unsafe fn meta_object(&self) -> ::cpp_core::Ptr<::qt_core::QMetaObject> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QConeMesh_metaObject(
self as *const crate::QConeMesh,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// <p>Default constructs an instance of QConeMesh.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DExtras::QConeMesh::QConeMesh(Qt3DCore::QNode* parent = …)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qconemesh.html#QConeMesh">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Default constructs an instance of QConeMesh.</p></div>
pub unsafe fn new_1a(
parent: impl ::cpp_core::CastInto<::cpp_core::MutPtr<::qt_3d_core::QNode>>,
) -> ::cpp_core::CppBox<crate::QConeMesh> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QConeMesh_QConeMesh(
::cpp_core::CastInto::<::cpp_core::MutPtr<::qt_3d_core::QNode>>::cast_into(parent)
.as_mut_raw_ptr(),
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>A conical mesh.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DExtras::QConeMesh::QConeMesh()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qconemesh.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>A conical mesh.</p></div>
pub unsafe fn new_0a() -> ::cpp_core::CppBox<crate::QConeMesh> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QConeMesh_QConeMesh1();
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// Calls C++ function: <span style='color: green;'>```virtual int Qt3DExtras::QConeMesh::qt_metacall(QMetaObject::Call arg1, int arg2, void** arg3)```</span>.
pub unsafe fn qt_metacall(
&mut self,
arg1: ::qt_core::q_meta_object::Call,
arg2: ::std::os::raw::c_int,
arg3: impl ::cpp_core::CastInto<::cpp_core::MutPtr<*mut ::std::ffi::c_void>>,
) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QConeMesh_qt_metacall(
self as *mut crate::QConeMesh,
arg1,
arg2,
::cpp_core::CastInto::<::cpp_core::MutPtr<*mut ::std::ffi::c_void>>::cast_into(arg3)
.as_mut_raw_ptr(),
)
}
/// Calls C++ function: <span style='color: green;'>```virtual void* Qt3DExtras::QConeMesh::qt_metacast(const char* arg1)```</span>.
pub unsafe fn qt_metacast(
&mut self,
arg1: impl ::cpp_core::CastInto<::cpp_core::Ptr<::std::os::raw::c_char>>,
) -> ::cpp_core::MutPtr<::std::ffi::c_void> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QConeMesh_qt_metacast(
self as *mut crate::QConeMesh,
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(arg1)
.as_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
/// <p>Holds the number of rings in the mesh.</p>
///
/// Calls C++ function: <span style='color: green;'>```int Qt3DExtras::QConeMesh::rings() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qconemesh.html#rings-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the number of rings in the mesh.</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>rings</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setRings</b></span>(int <i>rings</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>ringsChanged</b></span>(int <i>rings</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn rings(&self) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QConeMesh_rings(
self as *const crate::QConeMesh,
)
}
/// <p>Holds the bottom radius of the cone.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QConeMesh::setBottomRadius(float bottomRadius)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qconemesh.html#bottomRadius-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the bottom radius of the cone.</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>bottomRadius</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setBottomRadius</b></span>(float <i>bottomRadius</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>bottomRadiusChanged</b></span>(float <i>bottomRadius</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_bottom_radius(&mut self, bottom_radius: ::std::os::raw::c_float) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QConeMesh_setBottomRadius(
self as *mut crate::QConeMesh,
bottom_radius,
)
}
/// <p>Determines if the cone bottom is capped or open.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QConeMesh::setHasBottomEndcap(bool hasBottomEndcap)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qconemesh.html#hasBottomEndcap-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Determines if the cone bottom is capped or open.</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>hasBottomEndcap</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setHasBottomEndcap</b></span>(bool <i>hasBottomEndcap</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>hasBottomEndcapChanged</b></span>(bool <i>hasBottomEndcap</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_has_bottom_endcap(&mut self, has_bottom_endcap: bool) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QConeMesh_setHasBottomEndcap(
self as *mut crate::QConeMesh,
has_bottom_endcap,
)
}
/// <p>Determines if the cone top is capped or open.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QConeMesh::setHasTopEndcap(bool hasTopEndcap)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qconemesh.html#hasTopEndcap-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Determines if the cone top is capped or open.</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>hasTopEndcap</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setHasTopEndcap</b></span>(bool <i>hasTopEndcap</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>hasTopEndcapChanged</b></span>(bool <i>hasTopEndcap</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_has_top_endcap(&mut self, has_top_endcap: bool) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QConeMesh_setHasTopEndcap(
self as *mut crate::QConeMesh,
has_top_endcap,
)
}
/// <p>Holds the length of the cone.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QConeMesh::setLength(float length)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qconemesh.html#length-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the length of the cone.</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>length</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setLength</b></span>(float <i>length</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>lengthChanged</b></span>(float <i>length</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_length(&mut self, length: ::std::os::raw::c_float) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QConeMesh_setLength(
self as *mut crate::QConeMesh,
length,
)
}
/// <p>Holds the number of rings in the mesh.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QConeMesh::setRings(int rings)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qconemesh.html#rings-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the number of rings in the mesh.</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>rings</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setRings</b></span>(int <i>rings</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>ringsChanged</b></span>(int <i>rings</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_rings(&mut self, rings: ::std::os::raw::c_int) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QConeMesh_setRings(
self as *mut crate::QConeMesh,
rings,
)
}
/// <p>Holds the number of slices in the mesh.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QConeMesh::setSlices(int slices)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qconemesh.html#slices-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the number of slices in the mesh.</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>slices</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setSlices</b></span>(int <i>slices</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>slicesChanged</b></span>(int <i>slices</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_slices(&mut self, slices: ::std::os::raw::c_int) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QConeMesh_setSlices(
self as *mut crate::QConeMesh,
slices,
)
}
/// <p>Holds the top radius of the cone.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QConeMesh::setTopRadius(float topRadius)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qconemesh.html#topRadius-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the top radius of the cone.</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>topRadius</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setTopRadius</b></span>(float <i>topRadius</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>topRadiusChanged</b></span>(float <i>topRadius</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_top_radius(&mut self, top_radius: ::std::os::raw::c_float) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QConeMesh_setTopRadius(
self as *mut crate::QConeMesh,
top_radius,
)
}
/// <p>Holds the number of slices in the mesh.</p>
///
/// Calls C++ function: <span style='color: green;'>```int Qt3DExtras::QConeMesh::slices() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qconemesh.html#slices-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the number of slices in the mesh.</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>slices</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setSlices</b></span>(int <i>slices</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>slicesChanged</b></span>(int <i>slices</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn slices(&self) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QConeMesh_slices(
self as *const crate::QConeMesh,
)
}
/// Returns a reference to the <span style='color: green;'>```staticMetaObject```</span> field.
pub unsafe fn static_meta_object() -> ::cpp_core::Ref<::qt_core::QMetaObject> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QConeMesh_staticMetaObject();
::cpp_core::Ref::from_raw(ffi_result).expect("attempted to construct a null Ref")
}
/// <p>Holds the top radius of the cone.</p>
///
/// Calls C++ function: <span style='color: green;'>```float Qt3DExtras::QConeMesh::topRadius() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qconemesh.html#topRadius-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the top radius of the cone.</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>topRadius</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setTopRadius</b></span>(float <i>topRadius</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>topRadiusChanged</b></span>(float <i>topRadius</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn top_radius(&self) -> ::std::os::raw::c_float {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QConeMesh_topRadius(
self as *const crate::QConeMesh,
)
}
/// Calls C++ function: <span style='color: green;'>```static QString Qt3DExtras::QConeMesh::tr(const char* s, const char* c, int n)```</span>.
pub unsafe fn tr(
s: impl ::cpp_core::CastInto<::cpp_core::Ptr<::std::os::raw::c_char>>,
c: impl ::cpp_core::CastInto<::cpp_core::Ptr<::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_extras_ffi_Qt3DExtras_QConeMesh_tr(
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(s)
.as_raw_ptr(),
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(c)
.as_raw_ptr(),
n,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// Calls C++ function: <span style='color: green;'>```static QString Qt3DExtras::QConeMesh::trUtf8(const char* s, const char* c, int n)```</span>.
pub unsafe fn tr_utf8(
s: impl ::cpp_core::CastInto<::cpp_core::Ptr<::std::os::raw::c_char>>,
c: impl ::cpp_core::CastInto<::cpp_core::Ptr<::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_extras_ffi_Qt3DExtras_QConeMesh_trUtf8(
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(s)
.as_raw_ptr(),
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(c)
.as_raw_ptr(),
n,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
}
/// <p>The <a href="http://doc.qt.io/qt-5/qt3dextras-qcuboidgeometry.html">QCuboidGeometry</a> class allows creation of a cuboid in 3D space.</p>
///
/// C++ class: <span style='color: green;'>```Qt3DExtras::QCuboidGeometry```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qcuboidgeometry.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>The <a href="http://doc.qt.io/qt-5/qt3dextras-qcuboidgeometry.html">QCuboidGeometry</a> class allows creation of a cuboid in 3D space.</p>
/// <p>The <a href="http://doc.qt.io/qt-5/qt3dextras-qcuboidgeometry.html">QCuboidGeometry</a> class is most commonly used internally by the <a href="http://doc.qt.io/qt-5/qt3dextras-qcuboidmesh.html">QCuboidMesh</a> but can also be used in custom <a href="http://doc.qt.io/qt-5/qt3drender-qgeometryrenderer.html">Qt3DRender::QGeometryRenderer</a> subclasses.</p></div>
#[repr(C)]
pub struct QCuboidGeometry {
_unused: u8,
}
impl QCuboidGeometry {
/// <p>Holds the x extent of the geometry.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QCuboidGeometry::setXExtent` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qcuboidgeometry.html#xExtent-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the x extent of the geometry.</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>xExtent</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setXExtent</b></span>(float <i>xExtent</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>xExtentChanged</b></span>(float <i>xExtent</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slot_set_x_extent(&self) -> ::qt_core::Receiver<(::std::os::raw::c_float,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setXExtent(float)\0"),
)
}
}
/// <p>Holds the y extent of the geometry.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QCuboidGeometry::setYExtent` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qcuboidgeometry.html#yExtent-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the y extent of the geometry.</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>yExtent</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setYExtent</b></span>(float <i>yExtent</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>yExtentChanged</b></span>(float <i>yExtent</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slot_set_y_extent(&self) -> ::qt_core::Receiver<(::std::os::raw::c_float,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setYExtent(float)\0"),
)
}
}
/// <p>Holds the z extent of the geometry.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QCuboidGeometry::setZExtent` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qcuboidgeometry.html#zExtent-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the z extent of the geometry.</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>zExtent</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setZExtent</b></span>(float <i>zExtent</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>zExtentChanged</b></span>(float <i>zExtent</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slot_set_z_extent(&self) -> ::qt_core::Receiver<(::std::os::raw::c_float,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setZExtent(float)\0"),
)
}
}
/// <p>Holds the y-z resolution. The width and height values of this property specify the number of vertices generated for the y-z faces of the mesh.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QCuboidGeometry::setYZMeshResolution` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qcuboidgeometry.html#yzMeshResolution-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the y-z resolution. The width and height values of this property specify the number of vertices generated for the y-z faces of the mesh.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QSize </td><td class="memItemRight bottomAlign"><span class="name"><b>yzMeshResolution</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setYZMeshResolution</b></span>(const QSize &<i>resolution</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>yzMeshResolutionChanged</b></span>(const QSize &<i>yzMeshResolution</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slot_set_y_z_mesh_resolution(&self) -> ::qt_core::Receiver<(*const ::qt_core::QSize,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"1setYZMeshResolution(const QSize&)\0",
),
)
}
}
/// <p>Holds the x-z resolution. The width and height values of this property specify the number of vertices generated for the x-z faces of the mesh.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QCuboidGeometry::setXZMeshResolution` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qcuboidgeometry.html#xzMeshResolution-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the x-z resolution. The width and height values of this property specify the number of vertices generated for the x-z faces of the mesh.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QSize </td><td class="memItemRight bottomAlign"><span class="name"><b>xzMeshResolution</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setXZMeshResolution</b></span>(const QSize &<i>resolution</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>xzMeshResolutionChanged</b></span>(const QSize &<i>xzMeshResolution</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slot_set_x_z_mesh_resolution(&self) -> ::qt_core::Receiver<(*const ::qt_core::QSize,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"1setXZMeshResolution(const QSize&)\0",
),
)
}
}
/// <p>Holds the x-y resolution. The width and height values of this property specify the number of vertices generated for the x-y faces of the mesh.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QCuboidGeometry::setXYMeshResolution` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qcuboidgeometry.html#xyMeshResolution-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the x-y resolution. The width and height values of this property specify the number of vertices generated for the x-y faces of the mesh.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QSize </td><td class="memItemRight bottomAlign"><span class="name"><b>xyMeshResolution</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setXYMeshResolution</b></span>(const QSize &<i>resolution</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>xyMeshResolutionChanged</b></span>(const QSize &<i>xyMeshResolution</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slot_set_x_y_mesh_resolution(&self) -> ::qt_core::Receiver<(*const ::qt_core::QSize,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"1setXYMeshResolution(const QSize&)\0",
),
)
}
}
/// <p>Holds the x extent of the geometry.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QCuboidGeometry::xExtentChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qcuboidgeometry.html#xExtent-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the x extent of the geometry.</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>xExtent</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setXExtent</b></span>(float <i>xExtent</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>xExtentChanged</b></span>(float <i>xExtent</i>)</td></tr>
/// </tbody></table></div></div>
pub fn x_extent_changed(&self) -> ::qt_core::Signal<(::std::os::raw::c_float,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2xExtentChanged(float)\0"),
)
}
}
/// <p>Holds the y extent of the geometry.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QCuboidGeometry::yExtentChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qcuboidgeometry.html#yExtent-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the y extent of the geometry.</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>yExtent</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setYExtent</b></span>(float <i>yExtent</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>yExtentChanged</b></span>(float <i>yExtent</i>)</td></tr>
/// </tbody></table></div></div>
pub fn y_extent_changed(&self) -> ::qt_core::Signal<(::std::os::raw::c_float,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2yExtentChanged(float)\0"),
)
}
}
/// <p>Holds the z extent of the geometry.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QCuboidGeometry::zExtentChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qcuboidgeometry.html#zExtent-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the z extent of the geometry.</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>zExtent</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setZExtent</b></span>(float <i>zExtent</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>zExtentChanged</b></span>(float <i>zExtent</i>)</td></tr>
/// </tbody></table></div></div>
pub fn z_extent_changed(&self) -> ::qt_core::Signal<(::std::os::raw::c_float,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2zExtentChanged(float)\0"),
)
}
}
/// <p>Holds the y-z resolution. The width and height values of this property specify the number of vertices generated for the y-z faces of the mesh.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QCuboidGeometry::yzMeshResolutionChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qcuboidgeometry.html#yzMeshResolution-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the y-z resolution. The width and height values of this property specify the number of vertices generated for the y-z faces of the mesh.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QSize </td><td class="memItemRight bottomAlign"><span class="name"><b>yzMeshResolution</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setYZMeshResolution</b></span>(const QSize &<i>resolution</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>yzMeshResolutionChanged</b></span>(const QSize &<i>yzMeshResolution</i>)</td></tr>
/// </tbody></table></div></div>
pub fn yz_mesh_resolution_changed(&self) -> ::qt_core::Signal<(*const ::qt_core::QSize,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"2yzMeshResolutionChanged(const QSize&)\0",
),
)
}
}
/// <p>Holds the x-z resolution. The width and height values of this property specify the number of vertices generated for the x-z faces of the mesh.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QCuboidGeometry::xzMeshResolutionChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qcuboidgeometry.html#xzMeshResolution-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the x-z resolution. The width and height values of this property specify the number of vertices generated for the x-z faces of the mesh.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QSize </td><td class="memItemRight bottomAlign"><span class="name"><b>xzMeshResolution</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setXZMeshResolution</b></span>(const QSize &<i>resolution</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>xzMeshResolutionChanged</b></span>(const QSize &<i>xzMeshResolution</i>)</td></tr>
/// </tbody></table></div></div>
pub fn xz_mesh_resolution_changed(&self) -> ::qt_core::Signal<(*const ::qt_core::QSize,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"2xzMeshResolutionChanged(const QSize&)\0",
),
)
}
}
/// <p>Holds the x-y resolution. The width and height values of this property specify the number of vertices generated for the x-y faces of the mesh.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QCuboidGeometry::xyMeshResolutionChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qcuboidgeometry.html#xyMeshResolution-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the x-y resolution. The width and height values of this property specify the number of vertices generated for the x-y faces of the mesh.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QSize </td><td class="memItemRight bottomAlign"><span class="name"><b>xyMeshResolution</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setXYMeshResolution</b></span>(const QSize &<i>resolution</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>xyMeshResolutionChanged</b></span>(const QSize &<i>xyMeshResolution</i>)</td></tr>
/// </tbody></table></div></div>
pub fn xy_mesh_resolution_changed(&self) -> ::qt_core::Signal<(*const ::qt_core::QSize,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"2xyMeshResolutionChanged(const QSize&)\0",
),
)
}
}
/// <p>Holds the geometry index attribute.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QAttribute* Qt3DExtras::QCuboidGeometry::indexAttribute() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qcuboidgeometry.html#indexAttribute-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the geometry index attribute.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DRender::QAttribute *</td><td class="memItemRight bottomAlign"><span class="name"><b>indexAttribute</b></span>() const</td></tr>
/// </tbody></table></div></div>
pub unsafe fn index_attribute(&self) -> ::cpp_core::MutPtr<::qt_3d_render::QAttribute> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QCuboidGeometry_indexAttribute(
self as *const crate::QCuboidGeometry,
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```virtual const QMetaObject* Qt3DExtras::QCuboidGeometry::metaObject() const```</span>.
pub unsafe fn meta_object(&self) -> ::cpp_core::Ptr<::qt_core::QMetaObject> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QCuboidGeometry_metaObject(
self as *const crate::QCuboidGeometry,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// <p>Constructs a new <a href="http://doc.qt.io/qt-5/qt3dextras-qcuboidgeometry.html">QCuboidGeometry</a> with <i>parent</i>.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DExtras::QCuboidGeometry::QCuboidGeometry(Qt3DCore::QNode* parent = …)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qcuboidgeometry.html#QCuboidGeometry">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/qt3dextras-qcuboidgeometry.html">QCuboidGeometry</a> with <i>parent</i>.</p></div>
pub unsafe fn new_1a(
parent: impl ::cpp_core::CastInto<::cpp_core::MutPtr<::qt_3d_core::QNode>>,
) -> ::cpp_core::CppBox<crate::QCuboidGeometry> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QCuboidGeometry_QCuboidGeometry(
::cpp_core::CastInto::<::cpp_core::MutPtr<::qt_3d_core::QNode>>::cast_into(parent)
.as_mut_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/qt3dextras-qcuboidgeometry.html">QCuboidGeometry</a> class allows creation of a cuboid in 3D space.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DExtras::QCuboidGeometry::QCuboidGeometry()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qcuboidgeometry.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>The <a href="http://doc.qt.io/qt-5/qt3dextras-qcuboidgeometry.html">QCuboidGeometry</a> class allows creation of a cuboid in 3D space.</p>
/// <p>The <a href="http://doc.qt.io/qt-5/qt3dextras-qcuboidgeometry.html">QCuboidGeometry</a> class is most commonly used internally by the <a href="http://doc.qt.io/qt-5/qt3dextras-qcuboidmesh.html">QCuboidMesh</a> but can also be used in custom <a href="http://doc.qt.io/qt-5/qt3drender-qgeometryrenderer.html">Qt3DRender::QGeometryRenderer</a> subclasses.</p></div>
pub unsafe fn new_0a() -> ::cpp_core::CppBox<crate::QCuboidGeometry> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QCuboidGeometry_QCuboidGeometry1();
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Holds the geometry normal attribute.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QAttribute* Qt3DExtras::QCuboidGeometry::normalAttribute() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qcuboidgeometry.html#normalAttribute-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the geometry normal attribute.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DRender::QAttribute *</td><td class="memItemRight bottomAlign"><span class="name"><b>normalAttribute</b></span>() const</td></tr>
/// </tbody></table></div></div>
pub unsafe fn normal_attribute(&self) -> ::cpp_core::MutPtr<::qt_3d_render::QAttribute> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QCuboidGeometry_normalAttribute(
self as *const crate::QCuboidGeometry,
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
/// <p>Holds the geometry position attribute.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QAttribute* Qt3DExtras::QCuboidGeometry::positionAttribute() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qcuboidgeometry.html#positionAttribute-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the geometry position attribute.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DRender::QAttribute *</td><td class="memItemRight bottomAlign"><span class="name"><b>positionAttribute</b></span>() const</td></tr>
/// </tbody></table></div></div>
pub unsafe fn position_attribute(&self) -> ::cpp_core::MutPtr<::qt_3d_render::QAttribute> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QCuboidGeometry_positionAttribute(
self as *const crate::QCuboidGeometry,
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```virtual int Qt3DExtras::QCuboidGeometry::qt_metacall(QMetaObject::Call arg1, int arg2, void** arg3)```</span>.
pub unsafe fn qt_metacall(
&mut self,
arg1: ::qt_core::q_meta_object::Call,
arg2: ::std::os::raw::c_int,
arg3: impl ::cpp_core::CastInto<::cpp_core::MutPtr<*mut ::std::ffi::c_void>>,
) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QCuboidGeometry_qt_metacall(
self as *mut crate::QCuboidGeometry,
arg1,
arg2,
::cpp_core::CastInto::<::cpp_core::MutPtr<*mut ::std::ffi::c_void>>::cast_into(arg3)
.as_mut_raw_ptr(),
)
}
/// Calls C++ function: <span style='color: green;'>```virtual void* Qt3DExtras::QCuboidGeometry::qt_metacast(const char* arg1)```</span>.
pub unsafe fn qt_metacast(
&mut self,
arg1: impl ::cpp_core::CastInto<::cpp_core::Ptr<::std::os::raw::c_char>>,
) -> ::cpp_core::MutPtr<::std::ffi::c_void> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QCuboidGeometry_qt_metacast(
self as *mut crate::QCuboidGeometry,
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(arg1)
.as_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
/// <p>Holds the x extent of the geometry.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QCuboidGeometry::setXExtent(float xExtent)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qcuboidgeometry.html#xExtent-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the x extent of the geometry.</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>xExtent</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setXExtent</b></span>(float <i>xExtent</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>xExtentChanged</b></span>(float <i>xExtent</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_x_extent(&mut self, x_extent: ::std::os::raw::c_float) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QCuboidGeometry_setXExtent(
self as *mut crate::QCuboidGeometry,
x_extent,
)
}
/// <p>Holds the x-y resolution. The width and height values of this property specify the number of vertices generated for the x-y faces of the mesh.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QCuboidGeometry::setXYMeshResolution(const QSize& resolution)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qcuboidgeometry.html#xyMeshResolution-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the x-y resolution. The width and height values of this property specify the number of vertices generated for the x-y faces of the mesh.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QSize </td><td class="memItemRight bottomAlign"><span class="name"><b>xyMeshResolution</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setXYMeshResolution</b></span>(const QSize &<i>resolution</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>xyMeshResolutionChanged</b></span>(const QSize &<i>xyMeshResolution</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_x_y_mesh_resolution(
&mut self,
resolution: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_core::QSize>>,
) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QCuboidGeometry_setXYMeshResolution(
self as *mut crate::QCuboidGeometry,
::cpp_core::CastInto::<::cpp_core::Ref<::qt_core::QSize>>::cast_into(resolution)
.as_raw_ptr(),
)
}
/// <p>Holds the x-z resolution. The width and height values of this property specify the number of vertices generated for the x-z faces of the mesh.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QCuboidGeometry::setXZMeshResolution(const QSize& resolution)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qcuboidgeometry.html#xzMeshResolution-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the x-z resolution. The width and height values of this property specify the number of vertices generated for the x-z faces of the mesh.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QSize </td><td class="memItemRight bottomAlign"><span class="name"><b>xzMeshResolution</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setXZMeshResolution</b></span>(const QSize &<i>resolution</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>xzMeshResolutionChanged</b></span>(const QSize &<i>xzMeshResolution</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_x_z_mesh_resolution(
&mut self,
resolution: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_core::QSize>>,
) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QCuboidGeometry_setXZMeshResolution(
self as *mut crate::QCuboidGeometry,
::cpp_core::CastInto::<::cpp_core::Ref<::qt_core::QSize>>::cast_into(resolution)
.as_raw_ptr(),
)
}
/// <p>Holds the y extent of the geometry.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QCuboidGeometry::setYExtent(float yExtent)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qcuboidgeometry.html#yExtent-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the y extent of the geometry.</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>yExtent</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setYExtent</b></span>(float <i>yExtent</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>yExtentChanged</b></span>(float <i>yExtent</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_y_extent(&mut self, y_extent: ::std::os::raw::c_float) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QCuboidGeometry_setYExtent(
self as *mut crate::QCuboidGeometry,
y_extent,
)
}
/// <p>Holds the y-z resolution. The width and height values of this property specify the number of vertices generated for the y-z faces of the mesh.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QCuboidGeometry::setYZMeshResolution(const QSize& resolution)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qcuboidgeometry.html#yzMeshResolution-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the y-z resolution. The width and height values of this property specify the number of vertices generated for the y-z faces of the mesh.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QSize </td><td class="memItemRight bottomAlign"><span class="name"><b>yzMeshResolution</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setYZMeshResolution</b></span>(const QSize &<i>resolution</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>yzMeshResolutionChanged</b></span>(const QSize &<i>yzMeshResolution</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_y_z_mesh_resolution(
&mut self,
resolution: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_core::QSize>>,
) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QCuboidGeometry_setYZMeshResolution(
self as *mut crate::QCuboidGeometry,
::cpp_core::CastInto::<::cpp_core::Ref<::qt_core::QSize>>::cast_into(resolution)
.as_raw_ptr(),
)
}
/// <p>Holds the z extent of the geometry.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QCuboidGeometry::setZExtent(float zExtent)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qcuboidgeometry.html#zExtent-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the z extent of the geometry.</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>zExtent</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setZExtent</b></span>(float <i>zExtent</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>zExtentChanged</b></span>(float <i>zExtent</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_z_extent(&mut self, z_extent: ::std::os::raw::c_float) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QCuboidGeometry_setZExtent(
self as *mut crate::QCuboidGeometry,
z_extent,
)
}
/// Returns a reference to the <span style='color: green;'>```staticMetaObject```</span> field.
pub unsafe fn static_meta_object() -> ::cpp_core::Ref<::qt_core::QMetaObject> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QCuboidGeometry_staticMetaObject();
::cpp_core::Ref::from_raw(ffi_result).expect("attempted to construct a null Ref")
}
/// <p>Holds the geometry tangent attribute.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QAttribute* Qt3DExtras::QCuboidGeometry::tangentAttribute() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qcuboidgeometry.html#tangentAttribute-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the geometry tangent attribute.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DRender::QAttribute *</td><td class="memItemRight bottomAlign"><span class="name"><b>tangentAttribute</b></span>() const</td></tr>
/// </tbody></table></div></div>
pub unsafe fn tangent_attribute(&self) -> ::cpp_core::MutPtr<::qt_3d_render::QAttribute> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QCuboidGeometry_tangentAttribute(
self as *const crate::QCuboidGeometry,
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
/// <p>Holds the geometry texture coordinate attribute.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QAttribute* Qt3DExtras::QCuboidGeometry::texCoordAttribute() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qcuboidgeometry.html#texCoordAttribute-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the geometry texture coordinate attribute.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DRender::QAttribute *</td><td class="memItemRight bottomAlign"><span class="name"><b>texCoordAttribute</b></span>() const</td></tr>
/// </tbody></table></div></div>
pub unsafe fn tex_coord_attribute(&self) -> ::cpp_core::MutPtr<::qt_3d_render::QAttribute> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QCuboidGeometry_texCoordAttribute(
self as *const crate::QCuboidGeometry,
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```static QString Qt3DExtras::QCuboidGeometry::tr(const char* s, const char* c, int n)```</span>.
pub unsafe fn tr(
s: impl ::cpp_core::CastInto<::cpp_core::Ptr<::std::os::raw::c_char>>,
c: impl ::cpp_core::CastInto<::cpp_core::Ptr<::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_extras_ffi_Qt3DExtras_QCuboidGeometry_tr(
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(s)
.as_raw_ptr(),
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(c)
.as_raw_ptr(),
n,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// Calls C++ function: <span style='color: green;'>```static QString Qt3DExtras::QCuboidGeometry::trUtf8(const char* s, const char* c, int n)```</span>.
pub unsafe fn tr_utf8(
s: impl ::cpp_core::CastInto<::cpp_core::Ptr<::std::os::raw::c_char>>,
c: impl ::cpp_core::CastInto<::cpp_core::Ptr<::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_extras_ffi_Qt3DExtras_QCuboidGeometry_trUtf8(
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(s)
.as_raw_ptr(),
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(c)
.as_raw_ptr(),
n,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Updates indices based on mesh resolutions.</p>
///
/// Calls C++ function: <span style='color: green;'>```void Qt3DExtras::QCuboidGeometry::updateIndices()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qcuboidgeometry.html#updateIndices">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Updates indices based on mesh resolutions.</p></div>
pub unsafe fn update_indices(&mut self) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QCuboidGeometry_updateIndices(
self as *mut crate::QCuboidGeometry,
)
}
/// <p>Updates vertices based on mesh resolutions.</p>
///
/// Calls C++ function: <span style='color: green;'>```void Qt3DExtras::QCuboidGeometry::updateVertices()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qcuboidgeometry.html#updateVertices">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Updates vertices based on mesh resolutions.</p></div>
pub unsafe fn update_vertices(&mut self) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QCuboidGeometry_updateVertices(
self as *mut crate::QCuboidGeometry,
)
}
/// <p>Holds the x extent of the geometry.</p>
///
/// Calls C++ function: <span style='color: green;'>```float Qt3DExtras::QCuboidGeometry::xExtent() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qcuboidgeometry.html#xExtent-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the x extent of the geometry.</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>xExtent</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setXExtent</b></span>(float <i>xExtent</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>xExtentChanged</b></span>(float <i>xExtent</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn x_extent(&self) -> ::std::os::raw::c_float {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QCuboidGeometry_xExtent(
self as *const crate::QCuboidGeometry,
)
}
/// <p>Holds the x-y resolution. The width and height values of this property specify the number of vertices generated for the x-y faces of the mesh.</p>
///
/// Calls C++ function: <span style='color: green;'>```QSize Qt3DExtras::QCuboidGeometry::xyMeshResolution() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qcuboidgeometry.html#xyMeshResolution-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the x-y resolution. The width and height values of this property specify the number of vertices generated for the x-y faces of the mesh.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QSize </td><td class="memItemRight bottomAlign"><span class="name"><b>xyMeshResolution</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setXYMeshResolution</b></span>(const QSize &<i>resolution</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>xyMeshResolutionChanged</b></span>(const QSize &<i>xyMeshResolution</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn xy_mesh_resolution(&self) -> ::cpp_core::CppBox<::qt_core::QSize> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QCuboidGeometry_xyMeshResolution(
self as *const crate::QCuboidGeometry,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Holds the x-z resolution. The width and height values of this property specify the number of vertices generated for the x-z faces of the mesh.</p>
///
/// Calls C++ function: <span style='color: green;'>```QSize Qt3DExtras::QCuboidGeometry::xzMeshResolution() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qcuboidgeometry.html#xzMeshResolution-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the x-z resolution. The width and height values of this property specify the number of vertices generated for the x-z faces of the mesh.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QSize </td><td class="memItemRight bottomAlign"><span class="name"><b>xzMeshResolution</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setXZMeshResolution</b></span>(const QSize &<i>resolution</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>xzMeshResolutionChanged</b></span>(const QSize &<i>xzMeshResolution</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn xz_mesh_resolution(&self) -> ::cpp_core::CppBox<::qt_core::QSize> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QCuboidGeometry_xzMeshResolution(
self as *const crate::QCuboidGeometry,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Holds the y extent of the geometry.</p>
///
/// Calls C++ function: <span style='color: green;'>```float Qt3DExtras::QCuboidGeometry::yExtent() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qcuboidgeometry.html#yExtent-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the y extent of the geometry.</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>yExtent</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setYExtent</b></span>(float <i>yExtent</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>yExtentChanged</b></span>(float <i>yExtent</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn y_extent(&self) -> ::std::os::raw::c_float {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QCuboidGeometry_yExtent(
self as *const crate::QCuboidGeometry,
)
}
/// <p>Holds the y-z resolution. The width and height values of this property specify the number of vertices generated for the y-z faces of the mesh.</p>
///
/// Calls C++ function: <span style='color: green;'>```QSize Qt3DExtras::QCuboidGeometry::yzMeshResolution() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qcuboidgeometry.html#yzMeshResolution-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the y-z resolution. The width and height values of this property specify the number of vertices generated for the y-z faces of the mesh.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QSize </td><td class="memItemRight bottomAlign"><span class="name"><b>yzMeshResolution</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setYZMeshResolution</b></span>(const QSize &<i>resolution</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>yzMeshResolutionChanged</b></span>(const QSize &<i>yzMeshResolution</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn yz_mesh_resolution(&self) -> ::cpp_core::CppBox<::qt_core::QSize> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QCuboidGeometry_yzMeshResolution(
self as *const crate::QCuboidGeometry,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Holds the z extent of the geometry.</p>
///
/// Calls C++ function: <span style='color: green;'>```float Qt3DExtras::QCuboidGeometry::zExtent() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qcuboidgeometry.html#zExtent-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the z extent of the geometry.</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>zExtent</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setZExtent</b></span>(float <i>zExtent</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>zExtentChanged</b></span>(float <i>zExtent</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn z_extent(&self) -> ::std::os::raw::c_float {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QCuboidGeometry_zExtent(
self as *const crate::QCuboidGeometry,
)
}
}
/// <p>A cuboid mesh.</p>
///
/// C++ class: <span style='color: green;'>```Qt3DExtras::QCuboidMesh```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qcuboidmesh.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>A cuboid mesh.</p></div>
#[repr(C)]
pub struct QCuboidMesh {
_unused: u8,
}
impl QCuboidMesh {
/// <p>Holds the x extent of the mesh.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QCuboidMesh::setXExtent` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qcuboidmesh.html#xExtent-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the x extent of the mesh.</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>xExtent</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setXExtent</b></span>(float <i>xExtent</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>xExtentChanged</b></span>(float <i>xExtent</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slot_set_x_extent(&self) -> ::qt_core::Receiver<(::std::os::raw::c_float,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setXExtent(float)\0"),
)
}
}
/// <p>Holds the y extent of the mesh.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QCuboidMesh::setYExtent` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qcuboidmesh.html#yExtent-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the y extent of the mesh.</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>yExtent</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setYExtent</b></span>(float <i>yExtent</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>yExtentChanged</b></span>(float <i>yExtent</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slot_set_y_extent(&self) -> ::qt_core::Receiver<(::std::os::raw::c_float,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setYExtent(float)\0"),
)
}
}
/// <p>Holds the z extent of the mesh.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QCuboidMesh::setZExtent` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qcuboidmesh.html#zExtent-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the z extent of the mesh.</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>zExtent</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setZExtent</b></span>(float <i>zExtent</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>zExtentChanged</b></span>(float <i>zExtent</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slot_set_z_extent(&self) -> ::qt_core::Receiver<(::std::os::raw::c_float,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setZExtent(float)\0"),
)
}
}
/// <p>Holds the y-z resolution of the mesh. The width and height values of this property specify the number of vertices generated for the y-z faces of the mesh.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QCuboidMesh::setYZMeshResolution` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qcuboidmesh.html#yzMeshResolution-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the y-z resolution of the mesh. The width and height values of this property specify the number of vertices generated for the y-z faces of the mesh.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QSize </td><td class="memItemRight bottomAlign"><span class="name"><b>yzMeshResolution</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setYZMeshResolution</b></span>(const QSize &<i>resolution</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>yzMeshResolutionChanged</b></span>(const QSize &<i>yzMeshResolution</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slot_set_y_z_mesh_resolution(&self) -> ::qt_core::Receiver<(*const ::qt_core::QSize,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"1setYZMeshResolution(const QSize&)\0",
),
)
}
}
/// <p>Holds the x-z resolution of the mesh. The width and height values of this property specify the number of vertices generated for the x-z faces of the mesh.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QCuboidMesh::setXZMeshResolution` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qcuboidmesh.html#xzMeshResolution-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the x-z resolution of the mesh. The width and height values of this property specify the number of vertices generated for the x-z faces of the mesh.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QSize </td><td class="memItemRight bottomAlign"><span class="name"><b>xzMeshResolution</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setXZMeshResolution</b></span>(const QSize &<i>resolution</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>xzMeshResolutionChanged</b></span>(const QSize &<i>xzMeshResolution</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slot_set_x_z_mesh_resolution(&self) -> ::qt_core::Receiver<(*const ::qt_core::QSize,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"1setXZMeshResolution(const QSize&)\0",
),
)
}
}
/// <p>Holds the x-y resolution of the mesh. The width and height values of this property specify the number of vertices generated for the x-y faces of the mesh.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QCuboidMesh::setXYMeshResolution` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qcuboidmesh.html#xyMeshResolution-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the x-y resolution of the mesh. The width and height values of this property specify the number of vertices generated for the x-y faces of the mesh.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QSize </td><td class="memItemRight bottomAlign"><span class="name"><b>xyMeshResolution</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setXYMeshResolution</b></span>(const QSize &<i>resolution</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>xyMeshResolutionChanged</b></span>(const QSize &<i>xyMeshResolution</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slot_set_x_y_mesh_resolution(&self) -> ::qt_core::Receiver<(*const ::qt_core::QSize,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"1setXYMeshResolution(const QSize&)\0",
),
)
}
}
/// <p>Holds the x extent of the mesh.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QCuboidMesh::xExtentChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qcuboidmesh.html#xExtent-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the x extent of the mesh.</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>xExtent</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setXExtent</b></span>(float <i>xExtent</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>xExtentChanged</b></span>(float <i>xExtent</i>)</td></tr>
/// </tbody></table></div></div>
pub fn x_extent_changed(&self) -> ::qt_core::Signal<(::std::os::raw::c_float,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2xExtentChanged(float)\0"),
)
}
}
/// <p>Holds the y extent of the mesh.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QCuboidMesh::yExtentChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qcuboidmesh.html#yExtent-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the y extent of the mesh.</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>yExtent</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setYExtent</b></span>(float <i>yExtent</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>yExtentChanged</b></span>(float <i>yExtent</i>)</td></tr>
/// </tbody></table></div></div>
pub fn y_extent_changed(&self) -> ::qt_core::Signal<(::std::os::raw::c_float,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2yExtentChanged(float)\0"),
)
}
}
/// <p>Holds the z extent of the mesh.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QCuboidMesh::zExtentChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qcuboidmesh.html#zExtent-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the z extent of the mesh.</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>zExtent</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setZExtent</b></span>(float <i>zExtent</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>zExtentChanged</b></span>(float <i>zExtent</i>)</td></tr>
/// </tbody></table></div></div>
pub fn z_extent_changed(&self) -> ::qt_core::Signal<(::std::os::raw::c_float,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2zExtentChanged(float)\0"),
)
}
}
/// <p>Holds the y-z resolution of the mesh. The width and height values of this property specify the number of vertices generated for the y-z faces of the mesh.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QCuboidMesh::yzMeshResolutionChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qcuboidmesh.html#yzMeshResolution-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the y-z resolution of the mesh. The width and height values of this property specify the number of vertices generated for the y-z faces of the mesh.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QSize </td><td class="memItemRight bottomAlign"><span class="name"><b>yzMeshResolution</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setYZMeshResolution</b></span>(const QSize &<i>resolution</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>yzMeshResolutionChanged</b></span>(const QSize &<i>yzMeshResolution</i>)</td></tr>
/// </tbody></table></div></div>
pub fn yz_mesh_resolution_changed(&self) -> ::qt_core::Signal<(*const ::qt_core::QSize,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"2yzMeshResolutionChanged(const QSize&)\0",
),
)
}
}
/// <p>Holds the x-z resolution of the mesh. The width and height values of this property specify the number of vertices generated for the x-z faces of the mesh.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QCuboidMesh::xzMeshResolutionChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qcuboidmesh.html#xzMeshResolution-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the x-z resolution of the mesh. The width and height values of this property specify the number of vertices generated for the x-z faces of the mesh.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QSize </td><td class="memItemRight bottomAlign"><span class="name"><b>xzMeshResolution</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setXZMeshResolution</b></span>(const QSize &<i>resolution</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>xzMeshResolutionChanged</b></span>(const QSize &<i>xzMeshResolution</i>)</td></tr>
/// </tbody></table></div></div>
pub fn xz_mesh_resolution_changed(&self) -> ::qt_core::Signal<(*const ::qt_core::QSize,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"2xzMeshResolutionChanged(const QSize&)\0",
),
)
}
}
/// <p>Holds the x-y resolution of the mesh. The width and height values of this property specify the number of vertices generated for the x-y faces of the mesh.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QCuboidMesh::xyMeshResolutionChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qcuboidmesh.html#xyMeshResolution-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the x-y resolution of the mesh. The width and height values of this property specify the number of vertices generated for the x-y faces of the mesh.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QSize </td><td class="memItemRight bottomAlign"><span class="name"><b>xyMeshResolution</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setXYMeshResolution</b></span>(const QSize &<i>resolution</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>xyMeshResolutionChanged</b></span>(const QSize &<i>xyMeshResolution</i>)</td></tr>
/// </tbody></table></div></div>
pub fn xy_mesh_resolution_changed(&self) -> ::qt_core::Signal<(*const ::qt_core::QSize,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"2xyMeshResolutionChanged(const QSize&)\0",
),
)
}
}
/// Calls C++ function: <span style='color: green;'>```virtual const QMetaObject* Qt3DExtras::QCuboidMesh::metaObject() const```</span>.
pub unsafe fn meta_object(&self) -> ::cpp_core::Ptr<::qt_core::QMetaObject> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QCuboidMesh_metaObject(
self as *const crate::QCuboidMesh,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// <p>Default constructs an instance of QCuboidMesh.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DExtras::QCuboidMesh::QCuboidMesh(Qt3DCore::QNode* parent = …)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qcuboidmesh.html#QCuboidMesh">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Default constructs an instance of QCuboidMesh.</p></div>
pub unsafe fn new_1a(
parent: impl ::cpp_core::CastInto<::cpp_core::MutPtr<::qt_3d_core::QNode>>,
) -> ::cpp_core::CppBox<crate::QCuboidMesh> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QCuboidMesh_QCuboidMesh(
::cpp_core::CastInto::<::cpp_core::MutPtr<::qt_3d_core::QNode>>::cast_into(parent)
.as_mut_raw_ptr(),
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>A cuboid mesh.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DExtras::QCuboidMesh::QCuboidMesh()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qcuboidmesh.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>A cuboid mesh.</p></div>
pub unsafe fn new_0a() -> ::cpp_core::CppBox<crate::QCuboidMesh> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QCuboidMesh_QCuboidMesh1();
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// Calls C++ function: <span style='color: green;'>```virtual int Qt3DExtras::QCuboidMesh::qt_metacall(QMetaObject::Call arg1, int arg2, void** arg3)```</span>.
pub unsafe fn qt_metacall(
&mut self,
arg1: ::qt_core::q_meta_object::Call,
arg2: ::std::os::raw::c_int,
arg3: impl ::cpp_core::CastInto<::cpp_core::MutPtr<*mut ::std::ffi::c_void>>,
) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QCuboidMesh_qt_metacall(
self as *mut crate::QCuboidMesh,
arg1,
arg2,
::cpp_core::CastInto::<::cpp_core::MutPtr<*mut ::std::ffi::c_void>>::cast_into(arg3)
.as_mut_raw_ptr(),
)
}
/// Calls C++ function: <span style='color: green;'>```virtual void* Qt3DExtras::QCuboidMesh::qt_metacast(const char* arg1)```</span>.
pub unsafe fn qt_metacast(
&mut self,
arg1: impl ::cpp_core::CastInto<::cpp_core::Ptr<::std::os::raw::c_char>>,
) -> ::cpp_core::MutPtr<::std::ffi::c_void> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QCuboidMesh_qt_metacast(
self as *mut crate::QCuboidMesh,
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(arg1)
.as_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
/// <p>Holds the x extent of the mesh.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QCuboidMesh::setXExtent(float xExtent)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qcuboidmesh.html#xExtent-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the x extent of the mesh.</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>xExtent</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setXExtent</b></span>(float <i>xExtent</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>xExtentChanged</b></span>(float <i>xExtent</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_x_extent(&mut self, x_extent: ::std::os::raw::c_float) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QCuboidMesh_setXExtent(
self as *mut crate::QCuboidMesh,
x_extent,
)
}
/// <p>Holds the x-y resolution of the mesh. The width and height values of this property specify the number of vertices generated for the x-y faces of the mesh.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QCuboidMesh::setXYMeshResolution(const QSize& resolution)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qcuboidmesh.html#xyMeshResolution-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the x-y resolution of the mesh. The width and height values of this property specify the number of vertices generated for the x-y faces of the mesh.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QSize </td><td class="memItemRight bottomAlign"><span class="name"><b>xyMeshResolution</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setXYMeshResolution</b></span>(const QSize &<i>resolution</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>xyMeshResolutionChanged</b></span>(const QSize &<i>xyMeshResolution</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_x_y_mesh_resolution(
&mut self,
resolution: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_core::QSize>>,
) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QCuboidMesh_setXYMeshResolution(
self as *mut crate::QCuboidMesh,
::cpp_core::CastInto::<::cpp_core::Ref<::qt_core::QSize>>::cast_into(resolution)
.as_raw_ptr(),
)
}
/// <p>Holds the x-z resolution of the mesh. The width and height values of this property specify the number of vertices generated for the x-z faces of the mesh.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QCuboidMesh::setXZMeshResolution(const QSize& resolution)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qcuboidmesh.html#xzMeshResolution-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the x-z resolution of the mesh. The width and height values of this property specify the number of vertices generated for the x-z faces of the mesh.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QSize </td><td class="memItemRight bottomAlign"><span class="name"><b>xzMeshResolution</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setXZMeshResolution</b></span>(const QSize &<i>resolution</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>xzMeshResolutionChanged</b></span>(const QSize &<i>xzMeshResolution</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_x_z_mesh_resolution(
&mut self,
resolution: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_core::QSize>>,
) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QCuboidMesh_setXZMeshResolution(
self as *mut crate::QCuboidMesh,
::cpp_core::CastInto::<::cpp_core::Ref<::qt_core::QSize>>::cast_into(resolution)
.as_raw_ptr(),
)
}
/// <p>Holds the y extent of the mesh.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QCuboidMesh::setYExtent(float yExtent)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qcuboidmesh.html#yExtent-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the y extent of the mesh.</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>yExtent</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setYExtent</b></span>(float <i>yExtent</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>yExtentChanged</b></span>(float <i>yExtent</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_y_extent(&mut self, y_extent: ::std::os::raw::c_float) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QCuboidMesh_setYExtent(
self as *mut crate::QCuboidMesh,
y_extent,
)
}
/// <p>Holds the y-z resolution of the mesh. The width and height values of this property specify the number of vertices generated for the y-z faces of the mesh.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QCuboidMesh::setYZMeshResolution(const QSize& resolution)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qcuboidmesh.html#yzMeshResolution-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the y-z resolution of the mesh. The width and height values of this property specify the number of vertices generated for the y-z faces of the mesh.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QSize </td><td class="memItemRight bottomAlign"><span class="name"><b>yzMeshResolution</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setYZMeshResolution</b></span>(const QSize &<i>resolution</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>yzMeshResolutionChanged</b></span>(const QSize &<i>yzMeshResolution</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_y_z_mesh_resolution(
&mut self,
resolution: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_core::QSize>>,
) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QCuboidMesh_setYZMeshResolution(
self as *mut crate::QCuboidMesh,
::cpp_core::CastInto::<::cpp_core::Ref<::qt_core::QSize>>::cast_into(resolution)
.as_raw_ptr(),
)
}
/// <p>Holds the z extent of the mesh.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QCuboidMesh::setZExtent(float zExtent)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qcuboidmesh.html#zExtent-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the z extent of the mesh.</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>zExtent</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setZExtent</b></span>(float <i>zExtent</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>zExtentChanged</b></span>(float <i>zExtent</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_z_extent(&mut self, z_extent: ::std::os::raw::c_float) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QCuboidMesh_setZExtent(
self as *mut crate::QCuboidMesh,
z_extent,
)
}
/// Returns a reference to the <span style='color: green;'>```staticMetaObject```</span> field.
pub unsafe fn static_meta_object() -> ::cpp_core::Ref<::qt_core::QMetaObject> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QCuboidMesh_staticMetaObject();
::cpp_core::Ref::from_raw(ffi_result).expect("attempted to construct a null Ref")
}
/// Calls C++ function: <span style='color: green;'>```static QString Qt3DExtras::QCuboidMesh::tr(const char* s, const char* c, int n)```</span>.
pub unsafe fn tr(
s: impl ::cpp_core::CastInto<::cpp_core::Ptr<::std::os::raw::c_char>>,
c: impl ::cpp_core::CastInto<::cpp_core::Ptr<::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_extras_ffi_Qt3DExtras_QCuboidMesh_tr(
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(s)
.as_raw_ptr(),
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(c)
.as_raw_ptr(),
n,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// Calls C++ function: <span style='color: green;'>```static QString Qt3DExtras::QCuboidMesh::trUtf8(const char* s, const char* c, int n)```</span>.
pub unsafe fn tr_utf8(
s: impl ::cpp_core::CastInto<::cpp_core::Ptr<::std::os::raw::c_char>>,
c: impl ::cpp_core::CastInto<::cpp_core::Ptr<::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_extras_ffi_Qt3DExtras_QCuboidMesh_trUtf8(
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(s)
.as_raw_ptr(),
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(c)
.as_raw_ptr(),
n,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Holds the x extent of the mesh.</p>
///
/// Calls C++ function: <span style='color: green;'>```float Qt3DExtras::QCuboidMesh::xExtent() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qcuboidmesh.html#xExtent-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the x extent of the mesh.</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>xExtent</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setXExtent</b></span>(float <i>xExtent</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>xExtentChanged</b></span>(float <i>xExtent</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn x_extent(&self) -> ::std::os::raw::c_float {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QCuboidMesh_xExtent(
self as *const crate::QCuboidMesh,
)
}
/// <p>Holds the x-y resolution of the mesh. The width and height values of this property specify the number of vertices generated for the x-y faces of the mesh.</p>
///
/// Calls C++ function: <span style='color: green;'>```QSize Qt3DExtras::QCuboidMesh::xyMeshResolution() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qcuboidmesh.html#xyMeshResolution-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the x-y resolution of the mesh. The width and height values of this property specify the number of vertices generated for the x-y faces of the mesh.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QSize </td><td class="memItemRight bottomAlign"><span class="name"><b>xyMeshResolution</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setXYMeshResolution</b></span>(const QSize &<i>resolution</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>xyMeshResolutionChanged</b></span>(const QSize &<i>xyMeshResolution</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn xy_mesh_resolution(&self) -> ::cpp_core::CppBox<::qt_core::QSize> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QCuboidMesh_xyMeshResolution(
self as *const crate::QCuboidMesh,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Holds the x-z resolution of the mesh. The width and height values of this property specify the number of vertices generated for the x-z faces of the mesh.</p>
///
/// Calls C++ function: <span style='color: green;'>```QSize Qt3DExtras::QCuboidMesh::xzMeshResolution() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qcuboidmesh.html#xzMeshResolution-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the x-z resolution of the mesh. The width and height values of this property specify the number of vertices generated for the x-z faces of the mesh.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QSize </td><td class="memItemRight bottomAlign"><span class="name"><b>xzMeshResolution</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setXZMeshResolution</b></span>(const QSize &<i>resolution</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>xzMeshResolutionChanged</b></span>(const QSize &<i>xzMeshResolution</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn xz_mesh_resolution(&self) -> ::cpp_core::CppBox<::qt_core::QSize> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QCuboidMesh_xzMeshResolution(
self as *const crate::QCuboidMesh,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Holds the y extent of the mesh.</p>
///
/// Calls C++ function: <span style='color: green;'>```float Qt3DExtras::QCuboidMesh::yExtent() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qcuboidmesh.html#yExtent-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the y extent of the mesh.</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>yExtent</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setYExtent</b></span>(float <i>yExtent</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>yExtentChanged</b></span>(float <i>yExtent</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn y_extent(&self) -> ::std::os::raw::c_float {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QCuboidMesh_yExtent(
self as *const crate::QCuboidMesh,
)
}
/// <p>Holds the y-z resolution of the mesh. The width and height values of this property specify the number of vertices generated for the y-z faces of the mesh.</p>
///
/// Calls C++ function: <span style='color: green;'>```QSize Qt3DExtras::QCuboidMesh::yzMeshResolution() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qcuboidmesh.html#yzMeshResolution-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the y-z resolution of the mesh. The width and height values of this property specify the number of vertices generated for the y-z faces of the mesh.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QSize </td><td class="memItemRight bottomAlign"><span class="name"><b>yzMeshResolution</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setYZMeshResolution</b></span>(const QSize &<i>resolution</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>yzMeshResolutionChanged</b></span>(const QSize &<i>yzMeshResolution</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn yz_mesh_resolution(&self) -> ::cpp_core::CppBox<::qt_core::QSize> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QCuboidMesh_yzMeshResolution(
self as *const crate::QCuboidMesh,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Holds the z extent of the mesh.</p>
///
/// Calls C++ function: <span style='color: green;'>```float Qt3DExtras::QCuboidMesh::zExtent() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qcuboidmesh.html#zExtent-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the z extent of the mesh.</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>zExtent</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setZExtent</b></span>(float <i>zExtent</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>zExtentChanged</b></span>(float <i>zExtent</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn z_extent(&self) -> ::std::os::raw::c_float {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QCuboidMesh_zExtent(
self as *const crate::QCuboidMesh,
)
}
}
/// <p>The <a href="http://doc.qt.io/qt-5/qt3dextras-qcylindergeometry.html">QCylinderGeometry</a> class allows creation of a cylinder in 3D space.</p>
///
/// C++ class: <span style='color: green;'>```Qt3DExtras::QCylinderGeometry```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qcylindergeometry.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>The <a href="http://doc.qt.io/qt-5/qt3dextras-qcylindergeometry.html">QCylinderGeometry</a> class allows creation of a cylinder in 3D space.</p>
/// <p>The <a href="http://doc.qt.io/qt-5/qt3dextras-qcylindergeometry.html">QCylinderGeometry</a> class is most commonly used internally by the <a href="http://doc.qt.io/qt-5/qt3dextras-qcylindermesh.html">QCylinderMesh</a> but can also be used in custom <a href="http://doc.qt.io/qt-5/qt3drender-qgeometryrenderer.html">Qt3DRender::QGeometryRenderer</a> subclasses.</p></div>
#[repr(C)]
pub struct QCylinderGeometry {
_unused: u8,
}
impl QCylinderGeometry {
/// <p>Holds the number of rings in the cylinder.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QCylinderGeometry::setRings` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qcylindergeometry.html#rings-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the number of rings in the cylinder.</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>rings</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setRings</b></span>(int <i>rings</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>ringsChanged</b></span>(int <i>rings</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slot_set_rings(&self) -> ::qt_core::Receiver<(::std::os::raw::c_int,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setRings(int)\0"),
)
}
}
/// <p>Holds the number of slices in the cylinder.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QCylinderGeometry::setSlices` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qcylindergeometry.html#slices-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the number of slices in the cylinder.</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>slices</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setSlices</b></span>(int <i>slices</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>slicesChanged</b></span>(int <i>slices</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slot_set_slices(&self) -> ::qt_core::Receiver<(::std::os::raw::c_int,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setSlices(int)\0"),
)
}
}
/// <p>Holds the radius of the cylinder.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QCylinderGeometry::setRadius` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qcylindergeometry.html#radius-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the radius of the cylinder.</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>radius</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setRadius</b></span>(float <i>radius</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>radiusChanged</b></span>(float <i>radius</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slot_set_radius(&self) -> ::qt_core::Receiver<(::std::os::raw::c_float,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setRadius(float)\0"),
)
}
}
/// <p>Holds the length of the cylinder.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QCylinderGeometry::setLength` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qcylindergeometry.html#length-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the length of the cylinder.</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>length</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setLength</b></span>(float <i>length</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>lengthChanged</b></span>(float <i>length</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slot_set_length(&self) -> ::qt_core::Receiver<(::std::os::raw::c_float,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setLength(float)\0"),
)
}
}
/// <p>Holds the radius of the cylinder.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QCylinderGeometry::radiusChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qcylindergeometry.html#radius-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the radius of the cylinder.</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>radius</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setRadius</b></span>(float <i>radius</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>radiusChanged</b></span>(float <i>radius</i>)</td></tr>
/// </tbody></table></div></div>
pub fn radius_changed(&self) -> ::qt_core::Signal<(::std::os::raw::c_float,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2radiusChanged(float)\0"),
)
}
}
/// <p>Holds the number of rings in the cylinder.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QCylinderGeometry::ringsChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qcylindergeometry.html#rings-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the number of rings in the cylinder.</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>rings</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setRings</b></span>(int <i>rings</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>ringsChanged</b></span>(int <i>rings</i>)</td></tr>
/// </tbody></table></div></div>
pub fn rings_changed(&self) -> ::qt_core::Signal<(::std::os::raw::c_int,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2ringsChanged(int)\0"),
)
}
}
/// <p>Holds the number of slices in the cylinder.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QCylinderGeometry::slicesChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qcylindergeometry.html#slices-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the number of slices in the cylinder.</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>slices</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setSlices</b></span>(int <i>slices</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>slicesChanged</b></span>(int <i>slices</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slices_changed(&self) -> ::qt_core::Signal<(::std::os::raw::c_int,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2slicesChanged(int)\0"),
)
}
}
/// <p>Holds the length of the cylinder.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QCylinderGeometry::lengthChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qcylindergeometry.html#length-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the length of the cylinder.</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>length</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setLength</b></span>(float <i>length</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>lengthChanged</b></span>(float <i>length</i>)</td></tr>
/// </tbody></table></div></div>
pub fn length_changed(&self) -> ::qt_core::Signal<(::std::os::raw::c_float,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2lengthChanged(float)\0"),
)
}
}
/// <p>Holds the geometry index attribute.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QAttribute* Qt3DExtras::QCylinderGeometry::indexAttribute() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qcylindergeometry.html#indexAttribute-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the geometry index attribute.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DRender::QAttribute *</td><td class="memItemRight bottomAlign"><span class="name"><b>indexAttribute</b></span>() const</td></tr>
/// </tbody></table></div></div>
pub unsafe fn index_attribute(&self) -> ::cpp_core::MutPtr<::qt_3d_render::QAttribute> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QCylinderGeometry_indexAttribute(
self as *const crate::QCylinderGeometry,
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
/// <p>Holds the length of the cylinder.</p>
///
/// Calls C++ function: <span style='color: green;'>```float Qt3DExtras::QCylinderGeometry::length() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qcylindergeometry.html#length-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the length of the cylinder.</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>length</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setLength</b></span>(float <i>length</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>lengthChanged</b></span>(float <i>length</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn length(&self) -> ::std::os::raw::c_float {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QCylinderGeometry_length(
self as *const crate::QCylinderGeometry,
)
}
/// Calls C++ function: <span style='color: green;'>```virtual const QMetaObject* Qt3DExtras::QCylinderGeometry::metaObject() const```</span>.
pub unsafe fn meta_object(&self) -> ::cpp_core::Ptr<::qt_core::QMetaObject> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QCylinderGeometry_metaObject(
self as *const crate::QCylinderGeometry,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// <p>Constructs a new <a href="http://doc.qt.io/qt-5/qt3dextras-qcylindermesh.html">QCylinderMesh</a> with <i>parent</i>.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DExtras::QCylinderGeometry::QCylinderGeometry(Qt3DCore::QNode* parent = …)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qcylindergeometry.html#QCylinderGeometry">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/qt3dextras-qcylindermesh.html">QCylinderMesh</a> with <i>parent</i>.</p></div>
pub unsafe fn new_1a(
parent: impl ::cpp_core::CastInto<::cpp_core::MutPtr<::qt_3d_core::QNode>>,
) -> ::cpp_core::CppBox<crate::QCylinderGeometry> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QCylinderGeometry_QCylinderGeometry(
::cpp_core::CastInto::<::cpp_core::MutPtr<::qt_3d_core::QNode>>::cast_into(parent)
.as_mut_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/qt3dextras-qcylindergeometry.html">QCylinderGeometry</a> class allows creation of a cylinder in 3D space.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DExtras::QCylinderGeometry::QCylinderGeometry()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qcylindergeometry.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>The <a href="http://doc.qt.io/qt-5/qt3dextras-qcylindergeometry.html">QCylinderGeometry</a> class allows creation of a cylinder in 3D space.</p>
/// <p>The <a href="http://doc.qt.io/qt-5/qt3dextras-qcylindergeometry.html">QCylinderGeometry</a> class is most commonly used internally by the <a href="http://doc.qt.io/qt-5/qt3dextras-qcylindermesh.html">QCylinderMesh</a> but can also be used in custom <a href="http://doc.qt.io/qt-5/qt3drender-qgeometryrenderer.html">Qt3DRender::QGeometryRenderer</a> subclasses.</p></div>
pub unsafe fn new_0a() -> ::cpp_core::CppBox<crate::QCylinderGeometry> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QCylinderGeometry_QCylinderGeometry1();
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Holds the geometry normal attribute.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QAttribute* Qt3DExtras::QCylinderGeometry::normalAttribute() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qcylindergeometry.html#normalAttribute-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the geometry normal attribute.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DRender::QAttribute *</td><td class="memItemRight bottomAlign"><span class="name"><b>normalAttribute</b></span>() const</td></tr>
/// </tbody></table></div></div>
pub unsafe fn normal_attribute(&self) -> ::cpp_core::MutPtr<::qt_3d_render::QAttribute> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QCylinderGeometry_normalAttribute(
self as *const crate::QCylinderGeometry,
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
/// <p>Holds the geometry position attribute.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QAttribute* Qt3DExtras::QCylinderGeometry::positionAttribute() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qcylindergeometry.html#positionAttribute-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the geometry position attribute.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DRender::QAttribute *</td><td class="memItemRight bottomAlign"><span class="name"><b>positionAttribute</b></span>() const</td></tr>
/// </tbody></table></div></div>
pub unsafe fn position_attribute(&self) -> ::cpp_core::MutPtr<::qt_3d_render::QAttribute> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QCylinderGeometry_positionAttribute(
self as *const crate::QCylinderGeometry,
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```virtual int Qt3DExtras::QCylinderGeometry::qt_metacall(QMetaObject::Call arg1, int arg2, void** arg3)```</span>.
pub unsafe fn qt_metacall(
&mut self,
arg1: ::qt_core::q_meta_object::Call,
arg2: ::std::os::raw::c_int,
arg3: impl ::cpp_core::CastInto<::cpp_core::MutPtr<*mut ::std::ffi::c_void>>,
) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QCylinderGeometry_qt_metacall(
self as *mut crate::QCylinderGeometry,
arg1,
arg2,
::cpp_core::CastInto::<::cpp_core::MutPtr<*mut ::std::ffi::c_void>>::cast_into(arg3)
.as_mut_raw_ptr(),
)
}
/// Calls C++ function: <span style='color: green;'>```virtual void* Qt3DExtras::QCylinderGeometry::qt_metacast(const char* arg1)```</span>.
pub unsafe fn qt_metacast(
&mut self,
arg1: impl ::cpp_core::CastInto<::cpp_core::Ptr<::std::os::raw::c_char>>,
) -> ::cpp_core::MutPtr<::std::ffi::c_void> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QCylinderGeometry_qt_metacast(
self as *mut crate::QCylinderGeometry,
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(arg1)
.as_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
/// <p>Holds the radius of the cylinder.</p>
///
/// Calls C++ function: <span style='color: green;'>```float Qt3DExtras::QCylinderGeometry::radius() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qcylindergeometry.html#radius-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the radius of the cylinder.</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>radius</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setRadius</b></span>(float <i>radius</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>radiusChanged</b></span>(float <i>radius</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn radius(&self) -> ::std::os::raw::c_float {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QCylinderGeometry_radius(
self as *const crate::QCylinderGeometry,
)
}
/// <p>Holds the number of rings in the cylinder.</p>
///
/// Calls C++ function: <span style='color: green;'>```int Qt3DExtras::QCylinderGeometry::rings() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qcylindergeometry.html#rings-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the number of rings in the cylinder.</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>rings</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setRings</b></span>(int <i>rings</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>ringsChanged</b></span>(int <i>rings</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn rings(&self) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QCylinderGeometry_rings(
self as *const crate::QCylinderGeometry,
)
}
/// <p>Holds the length of the cylinder.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QCylinderGeometry::setLength(float length)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qcylindergeometry.html#length-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the length of the cylinder.</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>length</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setLength</b></span>(float <i>length</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>lengthChanged</b></span>(float <i>length</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_length(&mut self, length: ::std::os::raw::c_float) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QCylinderGeometry_setLength(
self as *mut crate::QCylinderGeometry,
length,
)
}
/// <p>Holds the radius of the cylinder.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QCylinderGeometry::setRadius(float radius)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qcylindergeometry.html#radius-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the radius of the cylinder.</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>radius</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setRadius</b></span>(float <i>radius</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>radiusChanged</b></span>(float <i>radius</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_radius(&mut self, radius: ::std::os::raw::c_float) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QCylinderGeometry_setRadius(
self as *mut crate::QCylinderGeometry,
radius,
)
}
/// <p>Holds the number of rings in the cylinder.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QCylinderGeometry::setRings(int rings)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qcylindergeometry.html#rings-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the number of rings in the cylinder.</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>rings</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setRings</b></span>(int <i>rings</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>ringsChanged</b></span>(int <i>rings</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_rings(&mut self, rings: ::std::os::raw::c_int) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QCylinderGeometry_setRings(
self as *mut crate::QCylinderGeometry,
rings,
)
}
/// <p>Holds the number of slices in the cylinder.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QCylinderGeometry::setSlices(int slices)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qcylindergeometry.html#slices-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the number of slices in the cylinder.</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>slices</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setSlices</b></span>(int <i>slices</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>slicesChanged</b></span>(int <i>slices</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_slices(&mut self, slices: ::std::os::raw::c_int) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QCylinderGeometry_setSlices(
self as *mut crate::QCylinderGeometry,
slices,
)
}
/// <p>Holds the number of slices in the cylinder.</p>
///
/// Calls C++ function: <span style='color: green;'>```int Qt3DExtras::QCylinderGeometry::slices() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qcylindergeometry.html#slices-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the number of slices in the cylinder.</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>slices</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setSlices</b></span>(int <i>slices</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>slicesChanged</b></span>(int <i>slices</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn slices(&self) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QCylinderGeometry_slices(
self as *const crate::QCylinderGeometry,
)
}
/// Returns a reference to the <span style='color: green;'>```staticMetaObject```</span> field.
pub unsafe fn static_meta_object() -> ::cpp_core::Ref<::qt_core::QMetaObject> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QCylinderGeometry_staticMetaObject();
::cpp_core::Ref::from_raw(ffi_result).expect("attempted to construct a null Ref")
}
/// <p>Holds the geometry texture coordinate attribute.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QAttribute* Qt3DExtras::QCylinderGeometry::texCoordAttribute() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qcylindergeometry.html#texCoordAttribute-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the geometry texture coordinate attribute.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DRender::QAttribute *</td><td class="memItemRight bottomAlign"><span class="name"><b>texCoordAttribute</b></span>() const</td></tr>
/// </tbody></table></div></div>
pub unsafe fn tex_coord_attribute(&self) -> ::cpp_core::MutPtr<::qt_3d_render::QAttribute> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QCylinderGeometry_texCoordAttribute(
self as *const crate::QCylinderGeometry,
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```static QString Qt3DExtras::QCylinderGeometry::tr(const char* s, const char* c, int n)```</span>.
pub unsafe fn tr(
s: impl ::cpp_core::CastInto<::cpp_core::Ptr<::std::os::raw::c_char>>,
c: impl ::cpp_core::CastInto<::cpp_core::Ptr<::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_extras_ffi_Qt3DExtras_QCylinderGeometry_tr(
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(s)
.as_raw_ptr(),
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(c)
.as_raw_ptr(),
n,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// Calls C++ function: <span style='color: green;'>```static QString Qt3DExtras::QCylinderGeometry::trUtf8(const char* s, const char* c, int n)```</span>.
pub unsafe fn tr_utf8(
s: impl ::cpp_core::CastInto<::cpp_core::Ptr<::std::os::raw::c_char>>,
c: impl ::cpp_core::CastInto<::cpp_core::Ptr<::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_extras_ffi_Qt3DExtras_QCylinderGeometry_trUtf8(
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(s)
.as_raw_ptr(),
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(c)
.as_raw_ptr(),
n,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Updates the indices based on rings, slices, and length properties.</p>
///
/// Calls C++ function: <span style='color: green;'>```void Qt3DExtras::QCylinderGeometry::updateIndices()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qcylindergeometry.html#updateIndices">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Updates the indices based on rings, slices, and length properties.</p></div>
pub unsafe fn update_indices(&mut self) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QCylinderGeometry_updateIndices(
self as *mut crate::QCylinderGeometry,
)
}
/// <p>Updates the vertices based on rings, slices, and length properties.</p>
///
/// Calls C++ function: <span style='color: green;'>```void Qt3DExtras::QCylinderGeometry::updateVertices()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qcylindergeometry.html#updateVertices">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Updates the vertices based on rings, slices, and length properties.</p></div>
pub unsafe fn update_vertices(&mut self) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QCylinderGeometry_updateVertices(
self as *mut crate::QCylinderGeometry,
)
}
}
/// <p>A cylindrical mesh.</p>
///
/// C++ class: <span style='color: green;'>```Qt3DExtras::QCylinderMesh```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qcylindermesh.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>A cylindrical mesh.</p></div>
#[repr(C)]
pub struct QCylinderMesh {
_unused: u8,
}
impl QCylinderMesh {
/// <p>Holds the number of rings in the mesh.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QCylinderMesh::setRings` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qcylindermesh.html#rings-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the number of rings in the mesh.</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>rings</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setRings</b></span>(int <i>rings</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>ringsChanged</b></span>(int <i>rings</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slot_set_rings(&self) -> ::qt_core::Receiver<(::std::os::raw::c_int,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setRings(int)\0"),
)
}
}
/// <p>Holds the number of slices in the mesh.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QCylinderMesh::setSlices` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qcylindermesh.html#slices-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the number of slices in the mesh.</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>slices</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setSlices</b></span>(int <i>slices</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>slicesChanged</b></span>(int <i>slices</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slot_set_slices(&self) -> ::qt_core::Receiver<(::std::os::raw::c_int,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setSlices(int)\0"),
)
}
}
/// <p>Holds the radius of the cylinder.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QCylinderMesh::setRadius` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qcylindermesh.html#radius-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the radius of the cylinder.</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>radius</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setRadius</b></span>(float <i>radius</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>radiusChanged</b></span>(float <i>radius</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slot_set_radius(&self) -> ::qt_core::Receiver<(::std::os::raw::c_float,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setRadius(float)\0"),
)
}
}
/// <p>Holds the length of the cylinder.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QCylinderMesh::setLength` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qcylindermesh.html#length-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the length of the cylinder.</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>length</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setLength</b></span>(float <i>length</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>lengthChanged</b></span>(float <i>length</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slot_set_length(&self) -> ::qt_core::Receiver<(::std::os::raw::c_float,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setLength(float)\0"),
)
}
}
/// <p>Holds the radius of the cylinder.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QCylinderMesh::radiusChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qcylindermesh.html#radius-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the radius of the cylinder.</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>radius</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setRadius</b></span>(float <i>radius</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>radiusChanged</b></span>(float <i>radius</i>)</td></tr>
/// </tbody></table></div></div>
pub fn radius_changed(&self) -> ::qt_core::Signal<(::std::os::raw::c_float,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2radiusChanged(float)\0"),
)
}
}
/// <p>Holds the number of rings in the mesh.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QCylinderMesh::ringsChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qcylindermesh.html#rings-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the number of rings in the mesh.</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>rings</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setRings</b></span>(int <i>rings</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>ringsChanged</b></span>(int <i>rings</i>)</td></tr>
/// </tbody></table></div></div>
pub fn rings_changed(&self) -> ::qt_core::Signal<(::std::os::raw::c_int,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2ringsChanged(int)\0"),
)
}
}
/// <p>Holds the number of slices in the mesh.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QCylinderMesh::slicesChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qcylindermesh.html#slices-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the number of slices in the mesh.</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>slices</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setSlices</b></span>(int <i>slices</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>slicesChanged</b></span>(int <i>slices</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slices_changed(&self) -> ::qt_core::Signal<(::std::os::raw::c_int,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2slicesChanged(int)\0"),
)
}
}
/// <p>Holds the length of the cylinder.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QCylinderMesh::lengthChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qcylindermesh.html#length-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the length of the cylinder.</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>length</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setLength</b></span>(float <i>length</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>lengthChanged</b></span>(float <i>length</i>)</td></tr>
/// </tbody></table></div></div>
pub fn length_changed(&self) -> ::qt_core::Signal<(::std::os::raw::c_float,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2lengthChanged(float)\0"),
)
}
}
/// <p>Holds the length of the cylinder.</p>
///
/// Calls C++ function: <span style='color: green;'>```float Qt3DExtras::QCylinderMesh::length() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qcylindermesh.html#length-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the length of the cylinder.</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>length</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setLength</b></span>(float <i>length</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>lengthChanged</b></span>(float <i>length</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn length(&self) -> ::std::os::raw::c_float {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QCylinderMesh_length(
self as *const crate::QCylinderMesh,
)
}
/// Calls C++ function: <span style='color: green;'>```virtual const QMetaObject* Qt3DExtras::QCylinderMesh::metaObject() const```</span>.
pub unsafe fn meta_object(&self) -> ::cpp_core::Ptr<::qt_core::QMetaObject> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QCylinderMesh_metaObject(
self as *const crate::QCylinderMesh,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// <p>Default constructs an instance of QCylinderMesh.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DExtras::QCylinderMesh::QCylinderMesh(Qt3DCore::QNode* parent = …)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qcylindermesh.html#QCylinderMesh">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Default constructs an instance of QCylinderMesh.</p></div>
pub unsafe fn new_1a(
parent: impl ::cpp_core::CastInto<::cpp_core::MutPtr<::qt_3d_core::QNode>>,
) -> ::cpp_core::CppBox<crate::QCylinderMesh> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QCylinderMesh_QCylinderMesh(
::cpp_core::CastInto::<::cpp_core::MutPtr<::qt_3d_core::QNode>>::cast_into(parent)
.as_mut_raw_ptr(),
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>A cylindrical mesh.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DExtras::QCylinderMesh::QCylinderMesh()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qcylindermesh.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>A cylindrical mesh.</p></div>
pub unsafe fn new_0a() -> ::cpp_core::CppBox<crate::QCylinderMesh> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QCylinderMesh_QCylinderMesh1();
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// Calls C++ function: <span style='color: green;'>```virtual int Qt3DExtras::QCylinderMesh::qt_metacall(QMetaObject::Call arg1, int arg2, void** arg3)```</span>.
pub unsafe fn qt_metacall(
&mut self,
arg1: ::qt_core::q_meta_object::Call,
arg2: ::std::os::raw::c_int,
arg3: impl ::cpp_core::CastInto<::cpp_core::MutPtr<*mut ::std::ffi::c_void>>,
) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QCylinderMesh_qt_metacall(
self as *mut crate::QCylinderMesh,
arg1,
arg2,
::cpp_core::CastInto::<::cpp_core::MutPtr<*mut ::std::ffi::c_void>>::cast_into(arg3)
.as_mut_raw_ptr(),
)
}
/// Calls C++ function: <span style='color: green;'>```virtual void* Qt3DExtras::QCylinderMesh::qt_metacast(const char* arg1)```</span>.
pub unsafe fn qt_metacast(
&mut self,
arg1: impl ::cpp_core::CastInto<::cpp_core::Ptr<::std::os::raw::c_char>>,
) -> ::cpp_core::MutPtr<::std::ffi::c_void> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QCylinderMesh_qt_metacast(
self as *mut crate::QCylinderMesh,
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(arg1)
.as_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
/// <p>Holds the radius of the cylinder.</p>
///
/// Calls C++ function: <span style='color: green;'>```float Qt3DExtras::QCylinderMesh::radius() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qcylindermesh.html#radius-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the radius of the cylinder.</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>radius</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setRadius</b></span>(float <i>radius</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>radiusChanged</b></span>(float <i>radius</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn radius(&self) -> ::std::os::raw::c_float {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QCylinderMesh_radius(
self as *const crate::QCylinderMesh,
)
}
/// <p>Holds the number of rings in the mesh.</p>
///
/// Calls C++ function: <span style='color: green;'>```int Qt3DExtras::QCylinderMesh::rings() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qcylindermesh.html#rings-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the number of rings in the mesh.</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>rings</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setRings</b></span>(int <i>rings</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>ringsChanged</b></span>(int <i>rings</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn rings(&self) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QCylinderMesh_rings(
self as *const crate::QCylinderMesh,
)
}
/// <p>Holds the length of the cylinder.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QCylinderMesh::setLength(float length)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qcylindermesh.html#length-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the length of the cylinder.</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>length</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setLength</b></span>(float <i>length</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>lengthChanged</b></span>(float <i>length</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_length(&mut self, length: ::std::os::raw::c_float) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QCylinderMesh_setLength(
self as *mut crate::QCylinderMesh,
length,
)
}
/// <p>Holds the radius of the cylinder.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QCylinderMesh::setRadius(float radius)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qcylindermesh.html#radius-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the radius of the cylinder.</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>radius</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setRadius</b></span>(float <i>radius</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>radiusChanged</b></span>(float <i>radius</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_radius(&mut self, radius: ::std::os::raw::c_float) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QCylinderMesh_setRadius(
self as *mut crate::QCylinderMesh,
radius,
)
}
/// <p>Holds the number of rings in the mesh.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QCylinderMesh::setRings(int rings)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qcylindermesh.html#rings-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the number of rings in the mesh.</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>rings</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setRings</b></span>(int <i>rings</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>ringsChanged</b></span>(int <i>rings</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_rings(&mut self, rings: ::std::os::raw::c_int) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QCylinderMesh_setRings(
self as *mut crate::QCylinderMesh,
rings,
)
}
/// <p>Holds the number of slices in the mesh.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QCylinderMesh::setSlices(int slices)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qcylindermesh.html#slices-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the number of slices in the mesh.</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>slices</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setSlices</b></span>(int <i>slices</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>slicesChanged</b></span>(int <i>slices</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_slices(&mut self, slices: ::std::os::raw::c_int) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QCylinderMesh_setSlices(
self as *mut crate::QCylinderMesh,
slices,
)
}
/// <p>Holds the number of slices in the mesh.</p>
///
/// Calls C++ function: <span style='color: green;'>```int Qt3DExtras::QCylinderMesh::slices() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qcylindermesh.html#slices-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the number of slices in the mesh.</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>slices</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setSlices</b></span>(int <i>slices</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>slicesChanged</b></span>(int <i>slices</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn slices(&self) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QCylinderMesh_slices(
self as *const crate::QCylinderMesh,
)
}
/// Returns a reference to the <span style='color: green;'>```staticMetaObject```</span> field.
pub unsafe fn static_meta_object() -> ::cpp_core::Ref<::qt_core::QMetaObject> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QCylinderMesh_staticMetaObject();
::cpp_core::Ref::from_raw(ffi_result).expect("attempted to construct a null Ref")
}
/// Calls C++ function: <span style='color: green;'>```static QString Qt3DExtras::QCylinderMesh::tr(const char* s, const char* c, int n)```</span>.
pub unsafe fn tr(
s: impl ::cpp_core::CastInto<::cpp_core::Ptr<::std::os::raw::c_char>>,
c: impl ::cpp_core::CastInto<::cpp_core::Ptr<::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_extras_ffi_Qt3DExtras_QCylinderMesh_tr(
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(s)
.as_raw_ptr(),
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(c)
.as_raw_ptr(),
n,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// Calls C++ function: <span style='color: green;'>```static QString Qt3DExtras::QCylinderMesh::trUtf8(const char* s, const char* c, int n)```</span>.
pub unsafe fn tr_utf8(
s: impl ::cpp_core::CastInto<::cpp_core::Ptr<::std::os::raw::c_char>>,
c: impl ::cpp_core::CastInto<::cpp_core::Ptr<::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_extras_ffi_Qt3DExtras_QCylinderMesh_trUtf8(
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(s)
.as_raw_ptr(),
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(c)
.as_raw_ptr(),
n,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
}
/// <p>The <a href="http://doc.qt.io/qt-5/qt3dextras-qdiffusemapmaterial.html">QDiffuseMapMaterial</a> provides a default implementation of the phong lighting effect where the diffuse light component is read from a texture map.</p>
///
/// C++ class: <span style='color: green;'>```Qt3DExtras::QDiffuseMapMaterial```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qdiffusemapmaterial.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>The <a href="http://doc.qt.io/qt-5/qt3dextras-qdiffusemapmaterial.html">QDiffuseMapMaterial</a> provides a default implementation of the phong lighting effect where the diffuse light component is read from a texture map.</p>
/// <p>The specular lighting effect is based on the combination of 3 lighting components ambient, diffuse and specular. The relative strengths of these components are controlled by means of their reflectivity coefficients which are modelled as RGB triplets:</p>
/// <ul>
/// <li>Ambient is the color that is emitted by an object without any other light source.</li>
/// <li>Diffuse is the color that is emitted for rought surface reflections with the lights.</li>
/// <li>Specular is the color emitted for shiny surface reflections with the lights.</li>
/// <li>The shininess of a surface is controlled by a float property.</li>
/// </ul>
/// <p>This material uses an effect with a single render pass approach and performs per fragment lighting. Techniques are provided for OpenGL 2, OpenGL 3 or above as well as OpenGL ES 2.</p></div>
#[repr(C)]
pub struct QDiffuseMapMaterial {
_unused: u8,
}
impl QDiffuseMapMaterial {
/// <p>Holds the current ambient color.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QDiffuseMapMaterial::setAmbient` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qdiffusemapmaterial.html#ambient-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current ambient color.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QColor </td><td class="memItemRight bottomAlign"><span class="name"><b>ambient</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setAmbient</b></span>(const QColor &<i>color</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>ambientChanged</b></span>(const QColor &<i>ambient</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slot_set_ambient(&self) -> ::qt_core::Receiver<(*const ::qt_gui::QColor,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setAmbient(const QColor&)\0"),
)
}
}
/// <p>Holds the current specular color.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QDiffuseMapMaterial::setSpecular` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qdiffusemapmaterial.html#specular-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current specular color.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QColor </td><td class="memItemRight bottomAlign"><span class="name"><b>specular</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setSpecular</b></span>(const QColor &<i>specular</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>specularChanged</b></span>(const QColor &<i>specular</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slot_set_specular(&self) -> ::qt_core::Receiver<(*const ::qt_gui::QColor,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setSpecular(const QColor&)\0"),
)
}
}
/// <p>Holds the current shininess as a float value.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QDiffuseMapMaterial::setShininess` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qdiffusemapmaterial.html#shininess-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current shininess as a float 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>shininess</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setShininess</b></span>(float <i>shininess</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>shininessChanged</b></span>(float <i>shininess</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slot_set_shininess(&self) -> ::qt_core::Receiver<(::std::os::raw::c_float,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setShininess(float)\0"),
)
}
}
/// <p>Holds the current texture used as the diffuse map.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QDiffuseMapMaterial::setDiffuse` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qdiffusemapmaterial.html#diffuse-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current texture used as the diffuse map.</p>
/// <p>By default, the diffuse texture has the following properties:</p>
/// <ul>
/// <li>Linear minification and magnification filters</li>
/// <li>Linear mipmap with mipmapping enabled</li>
/// <li>Repeat wrap mode</li>
/// <li>Maximum anisotropy of 16.0</li>
/// </ul>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DRender::QAbstractTexture *</td><td class="memItemRight bottomAlign"><span class="name"><b>diffuse</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setDiffuse</b></span>(Qt3DRender::QAbstractTexture *<i>diffuse</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>diffuseChanged</b></span>(Qt3DRender::QAbstractTexture *<i>diffuse</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slot_set_diffuse(
&self,
) -> ::qt_core::Receiver<(*mut ::qt_3d_render::QAbstractTexture,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"1setDiffuse(Qt3DRender::QAbstractTexture*)\0",
),
)
}
}
/// <p>Holds the current texture scale. It is applied as a multiplier to texture coordinates at render time. Defaults to 1.0.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QDiffuseMapMaterial::setTextureScale` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qdiffusemapmaterial.html#textureScale-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current texture scale. It is applied as a multiplier to texture coordinates at render time. Defaults to 1.0.</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>textureScale</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setTextureScale</b></span>(float <i>textureScale</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>textureScaleChanged</b></span>(float <i>textureScale</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slot_set_texture_scale(&self) -> ::qt_core::Receiver<(::std::os::raw::c_float,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setTextureScale(float)\0"),
)
}
}
/// <p>Holds the current ambient color.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QDiffuseMapMaterial::ambientChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qdiffusemapmaterial.html#ambient-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current ambient color.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QColor </td><td class="memItemRight bottomAlign"><span class="name"><b>ambient</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setAmbient</b></span>(const QColor &<i>color</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>ambientChanged</b></span>(const QColor &<i>ambient</i>)</td></tr>
/// </tbody></table></div></div>
pub fn ambient_changed(&self) -> ::qt_core::Signal<(*const ::qt_gui::QColor,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"2ambientChanged(const QColor&)\0",
),
)
}
}
/// <p>Holds the current texture used as the diffuse map.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QDiffuseMapMaterial::diffuseChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qdiffusemapmaterial.html#diffuse-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current texture used as the diffuse map.</p>
/// <p>By default, the diffuse texture has the following properties:</p>
/// <ul>
/// <li>Linear minification and magnification filters</li>
/// <li>Linear mipmap with mipmapping enabled</li>
/// <li>Repeat wrap mode</li>
/// <li>Maximum anisotropy of 16.0</li>
/// </ul>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DRender::QAbstractTexture *</td><td class="memItemRight bottomAlign"><span class="name"><b>diffuse</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setDiffuse</b></span>(Qt3DRender::QAbstractTexture *<i>diffuse</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>diffuseChanged</b></span>(Qt3DRender::QAbstractTexture *<i>diffuse</i>)</td></tr>
/// </tbody></table></div></div>
pub fn diffuse_changed(&self) -> ::qt_core::Signal<(*mut ::qt_3d_render::QAbstractTexture,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"2diffuseChanged(Qt3DRender::QAbstractTexture*)\0",
),
)
}
}
/// <p>Holds the current specular color.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QDiffuseMapMaterial::specularChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qdiffusemapmaterial.html#specular-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current specular color.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QColor </td><td class="memItemRight bottomAlign"><span class="name"><b>specular</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setSpecular</b></span>(const QColor &<i>specular</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>specularChanged</b></span>(const QColor &<i>specular</i>)</td></tr>
/// </tbody></table></div></div>
pub fn specular_changed(&self) -> ::qt_core::Signal<(*const ::qt_gui::QColor,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"2specularChanged(const QColor&)\0",
),
)
}
}
/// <p>Holds the current shininess as a float value.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QDiffuseMapMaterial::shininessChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qdiffusemapmaterial.html#shininess-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current shininess as a float 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>shininess</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setShininess</b></span>(float <i>shininess</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>shininessChanged</b></span>(float <i>shininess</i>)</td></tr>
/// </tbody></table></div></div>
pub fn shininess_changed(&self) -> ::qt_core::Signal<(::std::os::raw::c_float,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2shininessChanged(float)\0"),
)
}
}
/// <p>Holds the current texture scale. It is applied as a multiplier to texture coordinates at render time. Defaults to 1.0.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QDiffuseMapMaterial::textureScaleChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qdiffusemapmaterial.html#textureScale-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current texture scale. It is applied as a multiplier to texture coordinates at render time. Defaults to 1.0.</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>textureScale</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setTextureScale</b></span>(float <i>textureScale</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>textureScaleChanged</b></span>(float <i>textureScale</i>)</td></tr>
/// </tbody></table></div></div>
pub fn texture_scale_changed(&self) -> ::qt_core::Signal<(::std::os::raw::c_float,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2textureScaleChanged(float)\0"),
)
}
}
/// <p>Holds the current ambient color.</p>
///
/// Calls C++ function: <span style='color: green;'>```QColor Qt3DExtras::QDiffuseMapMaterial::ambient() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qdiffusemapmaterial.html#ambient-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current ambient color.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QColor </td><td class="memItemRight bottomAlign"><span class="name"><b>ambient</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setAmbient</b></span>(const QColor &<i>color</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>ambientChanged</b></span>(const QColor &<i>ambient</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn ambient(&self) -> ::cpp_core::CppBox<::qt_gui::QColor> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QDiffuseMapMaterial_ambient(
self as *const crate::QDiffuseMapMaterial,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Holds the current texture used as the diffuse map.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QAbstractTexture* Qt3DExtras::QDiffuseMapMaterial::diffuse() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qdiffusemapmaterial.html#diffuse-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current texture used as the diffuse map.</p>
/// <p>By default, the diffuse texture has the following properties:</p>
/// <ul>
/// <li>Linear minification and magnification filters</li>
/// <li>Linear mipmap with mipmapping enabled</li>
/// <li>Repeat wrap mode</li>
/// <li>Maximum anisotropy of 16.0</li>
/// </ul>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DRender::QAbstractTexture *</td><td class="memItemRight bottomAlign"><span class="name"><b>diffuse</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setDiffuse</b></span>(Qt3DRender::QAbstractTexture *<i>diffuse</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>diffuseChanged</b></span>(Qt3DRender::QAbstractTexture *<i>diffuse</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn diffuse(&self) -> ::cpp_core::MutPtr<::qt_3d_render::QAbstractTexture> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QDiffuseMapMaterial_diffuse(
self as *const crate::QDiffuseMapMaterial,
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```virtual const QMetaObject* Qt3DExtras::QDiffuseMapMaterial::metaObject() const```</span>.
pub unsafe fn meta_object(&self) -> ::cpp_core::Ptr<::qt_core::QMetaObject> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QDiffuseMapMaterial_metaObject(
self as *const crate::QDiffuseMapMaterial,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// <p>Default constructs an instance of QDiffuseMapMaterial.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DExtras::QDiffuseMapMaterial::QDiffuseMapMaterial(Qt3DCore::QNode* parent = …)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qdiffusemapmaterial.html#QDiffuseMapMaterial">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Default constructs an instance of QDiffuseMapMaterial.</p></div>
pub unsafe fn new_1a(
parent: impl ::cpp_core::CastInto<::cpp_core::MutPtr<::qt_3d_core::QNode>>,
) -> ::cpp_core::CppBox<crate::QDiffuseMapMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QDiffuseMapMaterial_QDiffuseMapMaterial(
::cpp_core::CastInto::<::cpp_core::MutPtr<::qt_3d_core::QNode>>::cast_into(parent)
.as_mut_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/qt3dextras-qdiffusemapmaterial.html">QDiffuseMapMaterial</a> provides a default implementation of the phong lighting effect where the diffuse light component is read from a texture map.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DExtras::QDiffuseMapMaterial::QDiffuseMapMaterial()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qdiffusemapmaterial.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>The <a href="http://doc.qt.io/qt-5/qt3dextras-qdiffusemapmaterial.html">QDiffuseMapMaterial</a> provides a default implementation of the phong lighting effect where the diffuse light component is read from a texture map.</p>
/// <p>The specular lighting effect is based on the combination of 3 lighting components ambient, diffuse and specular. The relative strengths of these components are controlled by means of their reflectivity coefficients which are modelled as RGB triplets:</p>
/// <ul>
/// <li>Ambient is the color that is emitted by an object without any other light source.</li>
/// <li>Diffuse is the color that is emitted for rought surface reflections with the lights.</li>
/// <li>Specular is the color emitted for shiny surface reflections with the lights.</li>
/// <li>The shininess of a surface is controlled by a float property.</li>
/// </ul>
/// <p>This material uses an effect with a single render pass approach and performs per fragment lighting. Techniques are provided for OpenGL 2, OpenGL 3 or above as well as OpenGL ES 2.</p></div>
pub unsafe fn new_0a() -> ::cpp_core::CppBox<crate::QDiffuseMapMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QDiffuseMapMaterial_QDiffuseMapMaterial1(
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// Calls C++ function: <span style='color: green;'>```virtual int Qt3DExtras::QDiffuseMapMaterial::qt_metacall(QMetaObject::Call arg1, int arg2, void** arg3)```</span>.
pub unsafe fn qt_metacall(
&mut self,
arg1: ::qt_core::q_meta_object::Call,
arg2: ::std::os::raw::c_int,
arg3: impl ::cpp_core::CastInto<::cpp_core::MutPtr<*mut ::std::ffi::c_void>>,
) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QDiffuseMapMaterial_qt_metacall(
self as *mut crate::QDiffuseMapMaterial,
arg1,
arg2,
::cpp_core::CastInto::<::cpp_core::MutPtr<*mut ::std::ffi::c_void>>::cast_into(arg3)
.as_mut_raw_ptr(),
)
}
/// Calls C++ function: <span style='color: green;'>```virtual void* Qt3DExtras::QDiffuseMapMaterial::qt_metacast(const char* arg1)```</span>.
pub unsafe fn qt_metacast(
&mut self,
arg1: impl ::cpp_core::CastInto<::cpp_core::Ptr<::std::os::raw::c_char>>,
) -> ::cpp_core::MutPtr<::std::ffi::c_void> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QDiffuseMapMaterial_qt_metacast(
self as *mut crate::QDiffuseMapMaterial,
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(arg1)
.as_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
/// <p>Holds the current ambient color.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QDiffuseMapMaterial::setAmbient(const QColor& color)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qdiffusemapmaterial.html#ambient-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current ambient color.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QColor </td><td class="memItemRight bottomAlign"><span class="name"><b>ambient</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setAmbient</b></span>(const QColor &<i>color</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>ambientChanged</b></span>(const QColor &<i>ambient</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_ambient(
&mut self,
color: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_gui::QColor>>,
) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QDiffuseMapMaterial_setAmbient(
self as *mut crate::QDiffuseMapMaterial,
::cpp_core::CastInto::<::cpp_core::Ref<::qt_gui::QColor>>::cast_into(color)
.as_raw_ptr(),
)
}
/// <p>Holds the current texture used as the diffuse map.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QDiffuseMapMaterial::setDiffuse(Qt3DRender::QAbstractTexture* diffuse)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qdiffusemapmaterial.html#diffuse-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current texture used as the diffuse map.</p>
/// <p>By default, the diffuse texture has the following properties:</p>
/// <ul>
/// <li>Linear minification and magnification filters</li>
/// <li>Linear mipmap with mipmapping enabled</li>
/// <li>Repeat wrap mode</li>
/// <li>Maximum anisotropy of 16.0</li>
/// </ul>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DRender::QAbstractTexture *</td><td class="memItemRight bottomAlign"><span class="name"><b>diffuse</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setDiffuse</b></span>(Qt3DRender::QAbstractTexture *<i>diffuse</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>diffuseChanged</b></span>(Qt3DRender::QAbstractTexture *<i>diffuse</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_diffuse(
&mut self,
diffuse: impl ::cpp_core::CastInto<::cpp_core::MutPtr<::qt_3d_render::QAbstractTexture>>,
) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QDiffuseMapMaterial_setDiffuse(self as *mut crate::QDiffuseMapMaterial, ::cpp_core::CastInto::<::cpp_core::MutPtr<::qt_3d_render::QAbstractTexture>>::cast_into(diffuse).as_mut_raw_ptr())
}
/// <p>Holds the current shininess as a float value.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QDiffuseMapMaterial::setShininess(float shininess)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qdiffusemapmaterial.html#shininess-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current shininess as a float 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>shininess</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setShininess</b></span>(float <i>shininess</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>shininessChanged</b></span>(float <i>shininess</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_shininess(&mut self, shininess: ::std::os::raw::c_float) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QDiffuseMapMaterial_setShininess(
self as *mut crate::QDiffuseMapMaterial,
shininess,
)
}
/// <p>Holds the current specular color.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QDiffuseMapMaterial::setSpecular(const QColor& specular)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qdiffusemapmaterial.html#specular-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current specular color.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QColor </td><td class="memItemRight bottomAlign"><span class="name"><b>specular</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setSpecular</b></span>(const QColor &<i>specular</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>specularChanged</b></span>(const QColor &<i>specular</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_specular(
&mut self,
specular: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_gui::QColor>>,
) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QDiffuseMapMaterial_setSpecular(
self as *mut crate::QDiffuseMapMaterial,
::cpp_core::CastInto::<::cpp_core::Ref<::qt_gui::QColor>>::cast_into(specular)
.as_raw_ptr(),
)
}
/// <p>Holds the current texture scale. It is applied as a multiplier to texture coordinates at render time. Defaults to 1.0.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QDiffuseMapMaterial::setTextureScale(float textureScale)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qdiffusemapmaterial.html#textureScale-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current texture scale. It is applied as a multiplier to texture coordinates at render time. Defaults to 1.0.</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>textureScale</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setTextureScale</b></span>(float <i>textureScale</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>textureScaleChanged</b></span>(float <i>textureScale</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_texture_scale(&mut self, texture_scale: ::std::os::raw::c_float) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QDiffuseMapMaterial_setTextureScale(
self as *mut crate::QDiffuseMapMaterial,
texture_scale,
)
}
/// <p>Holds the current shininess as a float value.</p>
///
/// Calls C++ function: <span style='color: green;'>```float Qt3DExtras::QDiffuseMapMaterial::shininess() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qdiffusemapmaterial.html#shininess-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current shininess as a float 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>shininess</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setShininess</b></span>(float <i>shininess</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>shininessChanged</b></span>(float <i>shininess</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn shininess(&self) -> ::std::os::raw::c_float {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QDiffuseMapMaterial_shininess(
self as *const crate::QDiffuseMapMaterial,
)
}
/// <p>Holds the current specular color.</p>
///
/// Calls C++ function: <span style='color: green;'>```QColor Qt3DExtras::QDiffuseMapMaterial::specular() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qdiffusemapmaterial.html#specular-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current specular color.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QColor </td><td class="memItemRight bottomAlign"><span class="name"><b>specular</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setSpecular</b></span>(const QColor &<i>specular</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>specularChanged</b></span>(const QColor &<i>specular</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn specular(&self) -> ::cpp_core::CppBox<::qt_gui::QColor> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QDiffuseMapMaterial_specular(
self as *const crate::QDiffuseMapMaterial,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// Returns a reference to the <span style='color: green;'>```staticMetaObject```</span> field.
pub unsafe fn static_meta_object() -> ::cpp_core::Ref<::qt_core::QMetaObject> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QDiffuseMapMaterial_staticMetaObject();
::cpp_core::Ref::from_raw(ffi_result).expect("attempted to construct a null Ref")
}
/// <p>Holds the current texture scale. It is applied as a multiplier to texture coordinates at render time. Defaults to 1.0.</p>
///
/// Calls C++ function: <span style='color: green;'>```float Qt3DExtras::QDiffuseMapMaterial::textureScale() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qdiffusemapmaterial.html#textureScale-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current texture scale. It is applied as a multiplier to texture coordinates at render time. Defaults to 1.0.</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>textureScale</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setTextureScale</b></span>(float <i>textureScale</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>textureScaleChanged</b></span>(float <i>textureScale</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn texture_scale(&self) -> ::std::os::raw::c_float {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QDiffuseMapMaterial_textureScale(
self as *const crate::QDiffuseMapMaterial,
)
}
/// Calls C++ function: <span style='color: green;'>```static QString Qt3DExtras::QDiffuseMapMaterial::tr(const char* s, const char* c, int n)```</span>.
pub unsafe fn tr(
s: impl ::cpp_core::CastInto<::cpp_core::Ptr<::std::os::raw::c_char>>,
c: impl ::cpp_core::CastInto<::cpp_core::Ptr<::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_extras_ffi_Qt3DExtras_QDiffuseMapMaterial_tr(
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(s)
.as_raw_ptr(),
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(c)
.as_raw_ptr(),
n,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// Calls C++ function: <span style='color: green;'>```static QString Qt3DExtras::QDiffuseMapMaterial::trUtf8(const char* s, const char* c, int n)```</span>.
pub unsafe fn tr_utf8(
s: impl ::cpp_core::CastInto<::cpp_core::Ptr<::std::os::raw::c_char>>,
c: impl ::cpp_core::CastInto<::cpp_core::Ptr<::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_extras_ffi_Qt3DExtras_QDiffuseMapMaterial_trUtf8(
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(s)
.as_raw_ptr(),
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(c)
.as_raw_ptr(),
n,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
}
/// <p>The <a href="http://doc.qt.io/qt-5/qt3dextras-qdiffusespecularmapmaterial.html">QDiffuseSpecularMapMaterial</a> provides a default implementation of the phong lighting effect where the diffuse and specular light components are read from texture maps.</p>
///
/// C++ class: <span style='color: green;'>```Qt3DExtras::QDiffuseSpecularMapMaterial```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qdiffusespecularmapmaterial.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>The <a href="http://doc.qt.io/qt-5/qt3dextras-qdiffusespecularmapmaterial.html">QDiffuseSpecularMapMaterial</a> provides a default implementation of the phong lighting effect where the diffuse and specular light components are read from texture maps.</p>
/// <p>The specular lighting effect is based on the combination of 3 lighting components ambient, diffuse and specular. The relative strengths of these components are controlled by means of their reflectivity coefficients which are modelled as RGB triplets:</p>
/// <ul>
/// <li>Ambient is the color that is emitted by an object without any other light source.</li>
/// <li>Diffuse is the color that is emitted for rought surface reflections with the lights.</li>
/// <li>Specular is the color emitted for shiny surface reflections with the lights.</li>
/// <li>The shininess of a surface is controlled by a float property.</li>
/// </ul>
/// <p>This material uses an effect with a single render pass approach and performs per fragment lighting. Techniques are provided for OpenGL 2, OpenGL 3 or above as well as OpenGL ES 2.</p></div>
#[repr(C)]
pub struct QDiffuseSpecularMapMaterial {
_unused: u8,
}
impl QDiffuseSpecularMapMaterial {
/// <p>Holds the current ambient color.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QDiffuseSpecularMapMaterial::setAmbient` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qdiffusespecularmapmaterial.html#ambient-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current ambient color.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QColor </td><td class="memItemRight bottomAlign"><span class="name"><b>ambient</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setAmbient</b></span>(const QColor &<i>ambient</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>ambientChanged</b></span>(const QColor &<i>ambient</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slot_set_ambient(&self) -> ::qt_core::Receiver<(*const ::qt_gui::QColor,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setAmbient(const QColor&)\0"),
)
}
}
/// <p>Holds the current diffuse map texture.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QDiffuseSpecularMapMaterial::setDiffuse` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qdiffusespecularmapmaterial.html#diffuse-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current diffuse map texture.</p>
/// <p>By default, the diffuse texture has the following properties:</p>
/// <ul>
/// <li>Linear minification and magnification filters</li>
/// <li>Linear mipmap with mipmapping enabled</li>
/// <li>Repeat wrap mode</li>
/// <li>Maximum anisotropy of 16.0</li>
/// </ul>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DRender::QAbstractTexture *</td><td class="memItemRight bottomAlign"><span class="name"><b>diffuse</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setDiffuse</b></span>(Qt3DRender::QAbstractTexture *<i>diffuse</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>diffuseChanged</b></span>(Qt3DRender::QAbstractTexture *<i>diffuse</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slot_set_diffuse(
&self,
) -> ::qt_core::Receiver<(*mut ::qt_3d_render::QAbstractTexture,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"1setDiffuse(Qt3DRender::QAbstractTexture*)\0",
),
)
}
}
/// <p>Holds the current specular map texture.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QDiffuseSpecularMapMaterial::setSpecular` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qdiffusespecularmapmaterial.html#specular-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current specular map texture.</p>
/// <p>By default, the specular texture has the following properties:</p>
/// <ul>
/// <li>Linear minification and magnification filters</li>
/// <li>Linear mipmap with mipmapping enabled</li>
/// <li>Repeat wrap mode</li>
/// <li>Maximum anisotropy of 16.0</li>
/// </ul>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DRender::QAbstractTexture *</td><td class="memItemRight bottomAlign"><span class="name"><b>specular</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setSpecular</b></span>(Qt3DRender::QAbstractTexture *<i>specular</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>specularChanged</b></span>(Qt3DRender::QAbstractTexture *<i>specular</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slot_set_specular(
&self,
) -> ::qt_core::Receiver<(*mut ::qt_3d_render::QAbstractTexture,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"1setSpecular(Qt3DRender::QAbstractTexture*)\0",
),
)
}
}
/// <p>Holds the current shininess as a float value.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QDiffuseSpecularMapMaterial::setShininess` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qdiffusespecularmapmaterial.html#shininess-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current shininess as a float 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>shininess</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setShininess</b></span>(float <i>shininess</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>shininessChanged</b></span>(float <i>shininess</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slot_set_shininess(&self) -> ::qt_core::Receiver<(::std::os::raw::c_float,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setShininess(float)\0"),
)
}
}
/// <p>Holds the current texture scale. It is applied as a multiplier to texture coordinates at render time. Defaults to 1.0.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QDiffuseSpecularMapMaterial::setTextureScale` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qdiffusespecularmapmaterial.html#textureScale-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current texture scale. It is applied as a multiplier to texture coordinates at render time. Defaults to 1.0.</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>textureScale</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setTextureScale</b></span>(float <i>textureScale</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>textureScaleChanged</b></span>(float <i>textureScale</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slot_set_texture_scale(&self) -> ::qt_core::Receiver<(::std::os::raw::c_float,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setTextureScale(float)\0"),
)
}
}
/// <p>Holds the current ambient color.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QDiffuseSpecularMapMaterial::ambientChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qdiffusespecularmapmaterial.html#ambient-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current ambient color.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QColor </td><td class="memItemRight bottomAlign"><span class="name"><b>ambient</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setAmbient</b></span>(const QColor &<i>ambient</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>ambientChanged</b></span>(const QColor &<i>ambient</i>)</td></tr>
/// </tbody></table></div></div>
pub fn ambient_changed(&self) -> ::qt_core::Signal<(*const ::qt_gui::QColor,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"2ambientChanged(const QColor&)\0",
),
)
}
}
/// <p>Holds the current diffuse map texture.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QDiffuseSpecularMapMaterial::diffuseChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qdiffusespecularmapmaterial.html#diffuse-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current diffuse map texture.</p>
/// <p>By default, the diffuse texture has the following properties:</p>
/// <ul>
/// <li>Linear minification and magnification filters</li>
/// <li>Linear mipmap with mipmapping enabled</li>
/// <li>Repeat wrap mode</li>
/// <li>Maximum anisotropy of 16.0</li>
/// </ul>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DRender::QAbstractTexture *</td><td class="memItemRight bottomAlign"><span class="name"><b>diffuse</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setDiffuse</b></span>(Qt3DRender::QAbstractTexture *<i>diffuse</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>diffuseChanged</b></span>(Qt3DRender::QAbstractTexture *<i>diffuse</i>)</td></tr>
/// </tbody></table></div></div>
pub fn diffuse_changed(&self) -> ::qt_core::Signal<(*mut ::qt_3d_render::QAbstractTexture,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"2diffuseChanged(Qt3DRender::QAbstractTexture*)\0",
),
)
}
}
/// <p>Holds the current specular map texture.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QDiffuseSpecularMapMaterial::specularChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qdiffusespecularmapmaterial.html#specular-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current specular map texture.</p>
/// <p>By default, the specular texture has the following properties:</p>
/// <ul>
/// <li>Linear minification and magnification filters</li>
/// <li>Linear mipmap with mipmapping enabled</li>
/// <li>Repeat wrap mode</li>
/// <li>Maximum anisotropy of 16.0</li>
/// </ul>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DRender::QAbstractTexture *</td><td class="memItemRight bottomAlign"><span class="name"><b>specular</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setSpecular</b></span>(Qt3DRender::QAbstractTexture *<i>specular</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>specularChanged</b></span>(Qt3DRender::QAbstractTexture *<i>specular</i>)</td></tr>
/// </tbody></table></div></div>
pub fn specular_changed(&self) -> ::qt_core::Signal<(*mut ::qt_3d_render::QAbstractTexture,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"2specularChanged(Qt3DRender::QAbstractTexture*)\0",
),
)
}
}
/// <p>Holds the current shininess as a float value.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QDiffuseSpecularMapMaterial::shininessChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qdiffusespecularmapmaterial.html#shininess-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current shininess as a float 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>shininess</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setShininess</b></span>(float <i>shininess</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>shininessChanged</b></span>(float <i>shininess</i>)</td></tr>
/// </tbody></table></div></div>
pub fn shininess_changed(&self) -> ::qt_core::Signal<(::std::os::raw::c_float,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2shininessChanged(float)\0"),
)
}
}
/// <p>Holds the current texture scale. It is applied as a multiplier to texture coordinates at render time. Defaults to 1.0.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QDiffuseSpecularMapMaterial::textureScaleChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qdiffusespecularmapmaterial.html#textureScale-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current texture scale. It is applied as a multiplier to texture coordinates at render time. Defaults to 1.0.</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>textureScale</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setTextureScale</b></span>(float <i>textureScale</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>textureScaleChanged</b></span>(float <i>textureScale</i>)</td></tr>
/// </tbody></table></div></div>
pub fn texture_scale_changed(&self) -> ::qt_core::Signal<(::std::os::raw::c_float,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2textureScaleChanged(float)\0"),
)
}
}
/// <p>Holds the current ambient color.</p>
///
/// Calls C++ function: <span style='color: green;'>```QColor Qt3DExtras::QDiffuseSpecularMapMaterial::ambient() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qdiffusespecularmapmaterial.html#ambient-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current ambient color.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QColor </td><td class="memItemRight bottomAlign"><span class="name"><b>ambient</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setAmbient</b></span>(const QColor &<i>ambient</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>ambientChanged</b></span>(const QColor &<i>ambient</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn ambient(&self) -> ::cpp_core::CppBox<::qt_gui::QColor> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QDiffuseSpecularMapMaterial_ambient(
self as *const crate::QDiffuseSpecularMapMaterial,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Holds the current diffuse map texture.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QAbstractTexture* Qt3DExtras::QDiffuseSpecularMapMaterial::diffuse() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qdiffusespecularmapmaterial.html#diffuse-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current diffuse map texture.</p>
/// <p>By default, the diffuse texture has the following properties:</p>
/// <ul>
/// <li>Linear minification and magnification filters</li>
/// <li>Linear mipmap with mipmapping enabled</li>
/// <li>Repeat wrap mode</li>
/// <li>Maximum anisotropy of 16.0</li>
/// </ul>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DRender::QAbstractTexture *</td><td class="memItemRight bottomAlign"><span class="name"><b>diffuse</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setDiffuse</b></span>(Qt3DRender::QAbstractTexture *<i>diffuse</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>diffuseChanged</b></span>(Qt3DRender::QAbstractTexture *<i>diffuse</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn diffuse(&self) -> ::cpp_core::MutPtr<::qt_3d_render::QAbstractTexture> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QDiffuseSpecularMapMaterial_diffuse(
self as *const crate::QDiffuseSpecularMapMaterial,
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```virtual const QMetaObject* Qt3DExtras::QDiffuseSpecularMapMaterial::metaObject() const```</span>.
pub unsafe fn meta_object(&self) -> ::cpp_core::Ptr<::qt_core::QMetaObject> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QDiffuseSpecularMapMaterial_metaObject(
self as *const crate::QDiffuseSpecularMapMaterial,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// <p>Default constructs an instance of QDiffuseSpecularMapMaterial.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DExtras::QDiffuseSpecularMapMaterial::QDiffuseSpecularMapMaterial(Qt3DCore::QNode* parent = …)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qdiffusespecularmapmaterial.html#QDiffuseSpecularMapMaterial">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Default constructs an instance of QDiffuseSpecularMapMaterial.</p></div>
pub unsafe fn new_1a(
parent: impl ::cpp_core::CastInto<::cpp_core::MutPtr<::qt_3d_core::QNode>>,
) -> ::cpp_core::CppBox<crate::QDiffuseSpecularMapMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QDiffuseSpecularMapMaterial_QDiffuseSpecularMapMaterial(::cpp_core::CastInto::<::cpp_core::MutPtr<::qt_3d_core::QNode>>::cast_into(parent).as_mut_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/qt3dextras-qdiffusespecularmapmaterial.html">QDiffuseSpecularMapMaterial</a> provides a default implementation of the phong lighting effect where the diffuse and specular light components are read from texture maps.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DExtras::QDiffuseSpecularMapMaterial::QDiffuseSpecularMapMaterial()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qdiffusespecularmapmaterial.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>The <a href="http://doc.qt.io/qt-5/qt3dextras-qdiffusespecularmapmaterial.html">QDiffuseSpecularMapMaterial</a> provides a default implementation of the phong lighting effect where the diffuse and specular light components are read from texture maps.</p>
/// <p>The specular lighting effect is based on the combination of 3 lighting components ambient, diffuse and specular. The relative strengths of these components are controlled by means of their reflectivity coefficients which are modelled as RGB triplets:</p>
/// <ul>
/// <li>Ambient is the color that is emitted by an object without any other light source.</li>
/// <li>Diffuse is the color that is emitted for rought surface reflections with the lights.</li>
/// <li>Specular is the color emitted for shiny surface reflections with the lights.</li>
/// <li>The shininess of a surface is controlled by a float property.</li>
/// </ul>
/// <p>This material uses an effect with a single render pass approach and performs per fragment lighting. Techniques are provided for OpenGL 2, OpenGL 3 or above as well as OpenGL ES 2.</p></div>
pub unsafe fn new_0a() -> ::cpp_core::CppBox<crate::QDiffuseSpecularMapMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QDiffuseSpecularMapMaterial_QDiffuseSpecularMapMaterial1();
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// Calls C++ function: <span style='color: green;'>```virtual int Qt3DExtras::QDiffuseSpecularMapMaterial::qt_metacall(QMetaObject::Call arg1, int arg2, void** arg3)```</span>.
pub unsafe fn qt_metacall(
&mut self,
arg1: ::qt_core::q_meta_object::Call,
arg2: ::std::os::raw::c_int,
arg3: impl ::cpp_core::CastInto<::cpp_core::MutPtr<*mut ::std::ffi::c_void>>,
) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QDiffuseSpecularMapMaterial_qt_metacall(
self as *mut crate::QDiffuseSpecularMapMaterial,
arg1,
arg2,
::cpp_core::CastInto::<::cpp_core::MutPtr<*mut ::std::ffi::c_void>>::cast_into(arg3)
.as_mut_raw_ptr(),
)
}
/// Calls C++ function: <span style='color: green;'>```virtual void* Qt3DExtras::QDiffuseSpecularMapMaterial::qt_metacast(const char* arg1)```</span>.
pub unsafe fn qt_metacast(
&mut self,
arg1: impl ::cpp_core::CastInto<::cpp_core::Ptr<::std::os::raw::c_char>>,
) -> ::cpp_core::MutPtr<::std::ffi::c_void> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QDiffuseSpecularMapMaterial_qt_metacast(
self as *mut crate::QDiffuseSpecularMapMaterial,
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(arg1)
.as_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
/// <p>Holds the current ambient color.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QDiffuseSpecularMapMaterial::setAmbient(const QColor& ambient)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qdiffusespecularmapmaterial.html#ambient-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current ambient color.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QColor </td><td class="memItemRight bottomAlign"><span class="name"><b>ambient</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setAmbient</b></span>(const QColor &<i>ambient</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>ambientChanged</b></span>(const QColor &<i>ambient</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_ambient(
&mut self,
ambient: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_gui::QColor>>,
) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QDiffuseSpecularMapMaterial_setAmbient(
self as *mut crate::QDiffuseSpecularMapMaterial,
::cpp_core::CastInto::<::cpp_core::Ref<::qt_gui::QColor>>::cast_into(ambient)
.as_raw_ptr(),
)
}
/// <p>Holds the current diffuse map texture.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QDiffuseSpecularMapMaterial::setDiffuse(Qt3DRender::QAbstractTexture* diffuse)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qdiffusespecularmapmaterial.html#diffuse-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current diffuse map texture.</p>
/// <p>By default, the diffuse texture has the following properties:</p>
/// <ul>
/// <li>Linear minification and magnification filters</li>
/// <li>Linear mipmap with mipmapping enabled</li>
/// <li>Repeat wrap mode</li>
/// <li>Maximum anisotropy of 16.0</li>
/// </ul>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DRender::QAbstractTexture *</td><td class="memItemRight bottomAlign"><span class="name"><b>diffuse</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setDiffuse</b></span>(Qt3DRender::QAbstractTexture *<i>diffuse</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>diffuseChanged</b></span>(Qt3DRender::QAbstractTexture *<i>diffuse</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_diffuse(
&mut self,
diffuse: impl ::cpp_core::CastInto<::cpp_core::MutPtr<::qt_3d_render::QAbstractTexture>>,
) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QDiffuseSpecularMapMaterial_setDiffuse(self as *mut crate::QDiffuseSpecularMapMaterial, ::cpp_core::CastInto::<::cpp_core::MutPtr<::qt_3d_render::QAbstractTexture>>::cast_into(diffuse).as_mut_raw_ptr())
}
/// <p>Holds the current shininess as a float value.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QDiffuseSpecularMapMaterial::setShininess(float shininess)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qdiffusespecularmapmaterial.html#shininess-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current shininess as a float 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>shininess</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setShininess</b></span>(float <i>shininess</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>shininessChanged</b></span>(float <i>shininess</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_shininess(&mut self, shininess: ::std::os::raw::c_float) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QDiffuseSpecularMapMaterial_setShininess(
self as *mut crate::QDiffuseSpecularMapMaterial,
shininess,
)
}
/// <p>Holds the current specular map texture.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QDiffuseSpecularMapMaterial::setSpecular(Qt3DRender::QAbstractTexture* specular)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qdiffusespecularmapmaterial.html#specular-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current specular map texture.</p>
/// <p>By default, the specular texture has the following properties:</p>
/// <ul>
/// <li>Linear minification and magnification filters</li>
/// <li>Linear mipmap with mipmapping enabled</li>
/// <li>Repeat wrap mode</li>
/// <li>Maximum anisotropy of 16.0</li>
/// </ul>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DRender::QAbstractTexture *</td><td class="memItemRight bottomAlign"><span class="name"><b>specular</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setSpecular</b></span>(Qt3DRender::QAbstractTexture *<i>specular</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>specularChanged</b></span>(Qt3DRender::QAbstractTexture *<i>specular</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_specular(
&mut self,
specular: impl ::cpp_core::CastInto<::cpp_core::MutPtr<::qt_3d_render::QAbstractTexture>>,
) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QDiffuseSpecularMapMaterial_setSpecular(self as *mut crate::QDiffuseSpecularMapMaterial, ::cpp_core::CastInto::<::cpp_core::MutPtr<::qt_3d_render::QAbstractTexture>>::cast_into(specular).as_mut_raw_ptr())
}
/// <p>Holds the current texture scale. It is applied as a multiplier to texture coordinates at render time. Defaults to 1.0.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QDiffuseSpecularMapMaterial::setTextureScale(float textureScale)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qdiffusespecularmapmaterial.html#textureScale-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current texture scale. It is applied as a multiplier to texture coordinates at render time. Defaults to 1.0.</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>textureScale</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setTextureScale</b></span>(float <i>textureScale</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>textureScaleChanged</b></span>(float <i>textureScale</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_texture_scale(&mut self, texture_scale: ::std::os::raw::c_float) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QDiffuseSpecularMapMaterial_setTextureScale(
self as *mut crate::QDiffuseSpecularMapMaterial,
texture_scale,
)
}
/// <p>Holds the current shininess as a float value.</p>
///
/// Calls C++ function: <span style='color: green;'>```float Qt3DExtras::QDiffuseSpecularMapMaterial::shininess() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qdiffusespecularmapmaterial.html#shininess-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current shininess as a float 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>shininess</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setShininess</b></span>(float <i>shininess</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>shininessChanged</b></span>(float <i>shininess</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn shininess(&self) -> ::std::os::raw::c_float {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QDiffuseSpecularMapMaterial_shininess(
self as *const crate::QDiffuseSpecularMapMaterial,
)
}
/// <p>Holds the current specular map texture.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QAbstractTexture* Qt3DExtras::QDiffuseSpecularMapMaterial::specular() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qdiffusespecularmapmaterial.html#specular-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current specular map texture.</p>
/// <p>By default, the specular texture has the following properties:</p>
/// <ul>
/// <li>Linear minification and magnification filters</li>
/// <li>Linear mipmap with mipmapping enabled</li>
/// <li>Repeat wrap mode</li>
/// <li>Maximum anisotropy of 16.0</li>
/// </ul>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DRender::QAbstractTexture *</td><td class="memItemRight bottomAlign"><span class="name"><b>specular</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setSpecular</b></span>(Qt3DRender::QAbstractTexture *<i>specular</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>specularChanged</b></span>(Qt3DRender::QAbstractTexture *<i>specular</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn specular(&self) -> ::cpp_core::MutPtr<::qt_3d_render::QAbstractTexture> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QDiffuseSpecularMapMaterial_specular(
self as *const crate::QDiffuseSpecularMapMaterial,
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
/// Returns a reference to the <span style='color: green;'>```staticMetaObject```</span> field.
pub unsafe fn static_meta_object() -> ::cpp_core::Ref<::qt_core::QMetaObject> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QDiffuseSpecularMapMaterial_staticMetaObject();
::cpp_core::Ref::from_raw(ffi_result).expect("attempted to construct a null Ref")
}
/// <p>Holds the current texture scale. It is applied as a multiplier to texture coordinates at render time. Defaults to 1.0.</p>
///
/// Calls C++ function: <span style='color: green;'>```float Qt3DExtras::QDiffuseSpecularMapMaterial::textureScale() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qdiffusespecularmapmaterial.html#textureScale-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current texture scale. It is applied as a multiplier to texture coordinates at render time. Defaults to 1.0.</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>textureScale</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setTextureScale</b></span>(float <i>textureScale</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>textureScaleChanged</b></span>(float <i>textureScale</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn texture_scale(&self) -> ::std::os::raw::c_float {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QDiffuseSpecularMapMaterial_textureScale(
self as *const crate::QDiffuseSpecularMapMaterial,
)
}
/// Calls C++ function: <span style='color: green;'>```static QString Qt3DExtras::QDiffuseSpecularMapMaterial::tr(const char* s, const char* c, int n)```</span>.
pub unsafe fn tr(
s: impl ::cpp_core::CastInto<::cpp_core::Ptr<::std::os::raw::c_char>>,
c: impl ::cpp_core::CastInto<::cpp_core::Ptr<::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_extras_ffi_Qt3DExtras_QDiffuseSpecularMapMaterial_tr(
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(s)
.as_raw_ptr(),
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(c)
.as_raw_ptr(),
n,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// Calls C++ function: <span style='color: green;'>```static QString Qt3DExtras::QDiffuseSpecularMapMaterial::trUtf8(const char* s, const char* c, int n)```</span>.
pub unsafe fn tr_utf8(
s: impl ::cpp_core::CastInto<::cpp_core::Ptr<::std::os::raw::c_char>>,
c: impl ::cpp_core::CastInto<::cpp_core::Ptr<::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_extras_ffi_Qt3DExtras_QDiffuseSpecularMapMaterial_trUtf8(
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(s)
.as_raw_ptr(),
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(c)
.as_raw_ptr(),
n,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
}
/// <p>The <a href="http://doc.qt.io/qt-5/qt3dextras-qextrudedtextgeometry.html">QExtrudedTextGeometry</a> class allows creation of a 3D extruded text in 3D space.</p>
///
/// C++ class: <span style='color: green;'>```Qt3DExtras::QExtrudedTextGeometry```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qextrudedtextgeometry.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>The <a href="http://doc.qt.io/qt-5/qt3dextras-qextrudedtextgeometry.html">QExtrudedTextGeometry</a> class allows creation of a 3D extruded text in 3D space.</p>
/// <p>The <a href="http://doc.qt.io/qt-5/qt3dextras-qextrudedtextgeometry.html">QExtrudedTextGeometry</a> class is most commonly used internally by the QText3DMesh but can also be used in custom <a href="http://doc.qt.io/qt-5/qt3drender-qgeometryrenderer.html">Qt3DRender::QGeometryRenderer</a> subclasses.</p></div>
#[repr(C)]
pub struct QExtrudedTextGeometry {
_unused: u8,
}
impl QExtrudedTextGeometry {
/// <p>Holds the text used for the mesh.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QExtrudedTextGeometry::setText` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qextrudedtextgeometry.html#text-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the text used for the mesh.</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>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setText</b></span>(const QString &<i>text</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>textChanged</b></span>(const QString &<i>text</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slot_set_text(&self) -> ::qt_core::Receiver<(*const ::qt_core::QString,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setText(const QString&)\0"),
)
}
}
/// <p>Holds the font of the text.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QExtrudedTextGeometry::setFont` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qextrudedtextgeometry.html#font-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the font of the text.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QFont </td><td class="memItemRight bottomAlign"><span class="name"><b>font</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setFont</b></span>(const QFont &<i>font</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>fontChanged</b></span>(const QFont &<i>font</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slot_set_font(&self) -> ::qt_core::Receiver<(*const ::qt_gui::QFont,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setFont(const QFont&)\0"),
)
}
}
/// <p>Holds the extrusion length of the text.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QExtrudedTextGeometry::setDepth` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qextrudedtextgeometry.html#extrusionLength-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the extrusion length of the text.</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>extrusionLength</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setDepth</b></span>(float <i>extrusionLength</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>depthChanged</b></span>(float <i>extrusionLength</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slot_set_depth(&self) -> ::qt_core::Receiver<(::std::os::raw::c_float,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setDepth(float)\0"),
)
}
}
/// <p>Holds the text used for the mesh.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QExtrudedTextGeometry::textChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qextrudedtextgeometry.html#text-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the text used for the mesh.</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>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setText</b></span>(const QString &<i>text</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>textChanged</b></span>(const QString &<i>text</i>)</td></tr>
/// </tbody></table></div></div>
pub fn text_changed(&self) -> ::qt_core::Signal<(*const ::qt_core::QString,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2textChanged(const QString&)\0"),
)
}
}
/// <p>Holds the font of the text.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QExtrudedTextGeometry::fontChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qextrudedtextgeometry.html#font-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the font of the text.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QFont </td><td class="memItemRight bottomAlign"><span class="name"><b>font</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setFont</b></span>(const QFont &<i>font</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>fontChanged</b></span>(const QFont &<i>font</i>)</td></tr>
/// </tbody></table></div></div>
pub fn font_changed(&self) -> ::qt_core::Signal<(*const ::qt_gui::QFont,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2fontChanged(const QFont&)\0"),
)
}
}
/// <p>Holds the extrusion length of the text.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QExtrudedTextGeometry::depthChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qextrudedtextgeometry.html#extrusionLength-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the extrusion length of the text.</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>extrusionLength</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setDepth</b></span>(float <i>extrusionLength</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>depthChanged</b></span>(float <i>extrusionLength</i>)</td></tr>
/// </tbody></table></div></div>
pub fn depth_changed(&self) -> ::qt_core::Signal<(::std::os::raw::c_float,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2depthChanged(float)\0"),
)
}
}
/// <p>Holds the extrusion length of the text.</p>
///
/// Calls C++ function: <span style='color: green;'>```float Qt3DExtras::QExtrudedTextGeometry::extrusionLength() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qextrudedtextgeometry.html#extrusionLength-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the extrusion length of the text.</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>extrusionLength</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setDepth</b></span>(float <i>extrusionLength</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>depthChanged</b></span>(float <i>extrusionLength</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn extrusion_length(&self) -> ::std::os::raw::c_float {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QExtrudedTextGeometry_extrusionLength(
self as *const crate::QExtrudedTextGeometry,
)
}
/// <p>Holds the font of the text.</p>
///
/// Calls C++ function: <span style='color: green;'>```QFont Qt3DExtras::QExtrudedTextGeometry::font() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qextrudedtextgeometry.html#font-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the font of the text.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QFont </td><td class="memItemRight bottomAlign"><span class="name"><b>font</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setFont</b></span>(const QFont &<i>font</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>fontChanged</b></span>(const QFont &<i>font</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn font(&self) -> ::cpp_core::CppBox<::qt_gui::QFont> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QExtrudedTextGeometry_font(
self as *const crate::QExtrudedTextGeometry,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Holds the geometry index attribute.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QAttribute* Qt3DExtras::QExtrudedTextGeometry::indexAttribute() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qextrudedtextgeometry.html#indexAttribute-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the geometry index attribute.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DRender::QAttribute *</td><td class="memItemRight bottomAlign"><span class="name"><b>indexAttribute</b></span>() const</td></tr>
/// </tbody></table></div></div>
pub unsafe fn index_attribute(&self) -> ::cpp_core::MutPtr<::qt_3d_render::QAttribute> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QExtrudedTextGeometry_indexAttribute(
self as *const crate::QExtrudedTextGeometry,
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```virtual const QMetaObject* Qt3DExtras::QExtrudedTextGeometry::metaObject() const```</span>.
pub unsafe fn meta_object(&self) -> ::cpp_core::Ptr<::qt_core::QMetaObject> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QExtrudedTextGeometry_metaObject(
self as *const crate::QExtrudedTextGeometry,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// <p>Constructs a new <a href="http://doc.qt.io/qt-5/qt3dextras-qextrudedtextgeometry.html">QExtrudedTextGeometry</a> with <i>parent</i>.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DExtras::QExtrudedTextGeometry::QExtrudedTextGeometry(Qt3DCore::QNode* parent = …)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qextrudedtextgeometry.html#QExtrudedTextGeometry">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/qt3dextras-qextrudedtextgeometry.html">QExtrudedTextGeometry</a> with <i>parent</i>.</p></div>
pub unsafe fn new_1a(
parent: impl ::cpp_core::CastInto<::cpp_core::MutPtr<::qt_3d_core::QNode>>,
) -> ::cpp_core::CppBox<crate::QExtrudedTextGeometry> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QExtrudedTextGeometry_QExtrudedTextGeometry(::cpp_core::CastInto::<::cpp_core::MutPtr<::qt_3d_core::QNode>>::cast_into(parent).as_mut_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/qt3dextras-qextrudedtextgeometry.html">QExtrudedTextGeometry</a> class allows creation of a 3D extruded text in 3D space.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DExtras::QExtrudedTextGeometry::QExtrudedTextGeometry()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qextrudedtextgeometry.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>The <a href="http://doc.qt.io/qt-5/qt3dextras-qextrudedtextgeometry.html">QExtrudedTextGeometry</a> class allows creation of a 3D extruded text in 3D space.</p>
/// <p>The <a href="http://doc.qt.io/qt-5/qt3dextras-qextrudedtextgeometry.html">QExtrudedTextGeometry</a> class is most commonly used internally by the QText3DMesh but can also be used in custom <a href="http://doc.qt.io/qt-5/qt3drender-qgeometryrenderer.html">Qt3DRender::QGeometryRenderer</a> subclasses.</p></div>
pub unsafe fn new_0a() -> ::cpp_core::CppBox<crate::QExtrudedTextGeometry> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QExtrudedTextGeometry_QExtrudedTextGeometry1();
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Holds the geometry normal attribute.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QAttribute* Qt3DExtras::QExtrudedTextGeometry::normalAttribute() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qextrudedtextgeometry.html#normalAttribute-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the geometry normal attribute.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DRender::QAttribute *</td><td class="memItemRight bottomAlign"><span class="name"><b>normalAttribute</b></span>() const</td></tr>
/// </tbody></table></div></div>
pub unsafe fn normal_attribute(&self) -> ::cpp_core::MutPtr<::qt_3d_render::QAttribute> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QExtrudedTextGeometry_normalAttribute(
self as *const crate::QExtrudedTextGeometry,
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
/// <p>Holds the geometry position attribute.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QAttribute* Qt3DExtras::QExtrudedTextGeometry::positionAttribute() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qextrudedtextgeometry.html#positionAttribute-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the geometry position attribute.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DRender::QAttribute *</td><td class="memItemRight bottomAlign"><span class="name"><b>positionAttribute</b></span>() const</td></tr>
/// </tbody></table></div></div>
pub unsafe fn position_attribute(&self) -> ::cpp_core::MutPtr<::qt_3d_render::QAttribute> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QExtrudedTextGeometry_positionAttribute(
self as *const crate::QExtrudedTextGeometry,
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```virtual int Qt3DExtras::QExtrudedTextGeometry::qt_metacall(QMetaObject::Call arg1, int arg2, void** arg3)```</span>.
pub unsafe fn qt_metacall(
&mut self,
arg1: ::qt_core::q_meta_object::Call,
arg2: ::std::os::raw::c_int,
arg3: impl ::cpp_core::CastInto<::cpp_core::MutPtr<*mut ::std::ffi::c_void>>,
) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QExtrudedTextGeometry_qt_metacall(
self as *mut crate::QExtrudedTextGeometry,
arg1,
arg2,
::cpp_core::CastInto::<::cpp_core::MutPtr<*mut ::std::ffi::c_void>>::cast_into(arg3)
.as_mut_raw_ptr(),
)
}
/// Calls C++ function: <span style='color: green;'>```virtual void* Qt3DExtras::QExtrudedTextGeometry::qt_metacast(const char* arg1)```</span>.
pub unsafe fn qt_metacast(
&mut self,
arg1: impl ::cpp_core::CastInto<::cpp_core::Ptr<::std::os::raw::c_char>>,
) -> ::cpp_core::MutPtr<::std::ffi::c_void> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QExtrudedTextGeometry_qt_metacast(
self as *mut crate::QExtrudedTextGeometry,
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(arg1)
.as_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
/// <p>Holds the extrusion length of the text.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QExtrudedTextGeometry::setDepth(float extrusionLength)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qextrudedtextgeometry.html#extrusionLength-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the extrusion length of the text.</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>extrusionLength</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setDepth</b></span>(float <i>extrusionLength</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>depthChanged</b></span>(float <i>extrusionLength</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_depth(&mut self, extrusion_length: ::std::os::raw::c_float) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QExtrudedTextGeometry_setDepth(
self as *mut crate::QExtrudedTextGeometry,
extrusion_length,
)
}
/// <p>Holds the font of the text.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QExtrudedTextGeometry::setFont(const QFont& font)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qextrudedtextgeometry.html#font-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the font of the text.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QFont </td><td class="memItemRight bottomAlign"><span class="name"><b>font</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setFont</b></span>(const QFont &<i>font</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>fontChanged</b></span>(const QFont &<i>font</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_font(
&mut self,
font: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_gui::QFont>>,
) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QExtrudedTextGeometry_setFont(
self as *mut crate::QExtrudedTextGeometry,
::cpp_core::CastInto::<::cpp_core::Ref<::qt_gui::QFont>>::cast_into(font).as_raw_ptr(),
)
}
/// <p>Holds the text used for the mesh.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QExtrudedTextGeometry::setText(const QString& text)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qextrudedtextgeometry.html#text-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the text used for the mesh.</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>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setText</b></span>(const QString &<i>text</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>textChanged</b></span>(const QString &<i>text</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_text(
&mut self,
text: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_core::QString>>,
) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QExtrudedTextGeometry_setText(
self as *mut crate::QExtrudedTextGeometry,
::cpp_core::CastInto::<::cpp_core::Ref<::qt_core::QString>>::cast_into(text)
.as_raw_ptr(),
)
}
/// Returns a reference to the <span style='color: green;'>```staticMetaObject```</span> field.
pub unsafe fn static_meta_object() -> ::cpp_core::Ref<::qt_core::QMetaObject> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QExtrudedTextGeometry_staticMetaObject();
::cpp_core::Ref::from_raw(ffi_result).expect("attempted to construct a null Ref")
}
/// <p>Holds the text used for the mesh.</p>
///
/// Calls C++ function: <span style='color: green;'>```QString Qt3DExtras::QExtrudedTextGeometry::text() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qextrudedtextgeometry.html#text-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the text used for the mesh.</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>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setText</b></span>(const QString &<i>text</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>textChanged</b></span>(const QString &<i>text</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn text(&self) -> ::cpp_core::CppBox<::qt_core::QString> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QExtrudedTextGeometry_text(
self as *const crate::QExtrudedTextGeometry,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// Calls C++ function: <span style='color: green;'>```static QString Qt3DExtras::QExtrudedTextGeometry::tr(const char* s, const char* c, int n)```</span>.
pub unsafe fn tr(
s: impl ::cpp_core::CastInto<::cpp_core::Ptr<::std::os::raw::c_char>>,
c: impl ::cpp_core::CastInto<::cpp_core::Ptr<::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_extras_ffi_Qt3DExtras_QExtrudedTextGeometry_tr(
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(s)
.as_raw_ptr(),
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(c)
.as_raw_ptr(),
n,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// Calls C++ function: <span style='color: green;'>```static QString Qt3DExtras::QExtrudedTextGeometry::trUtf8(const char* s, const char* c, int n)```</span>.
pub unsafe fn tr_utf8(
s: impl ::cpp_core::CastInto<::cpp_core::Ptr<::std::os::raw::c_char>>,
c: impl ::cpp_core::CastInto<::cpp_core::Ptr<::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_extras_ffi_Qt3DExtras_QExtrudedTextGeometry_trUtf8(
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(s)
.as_raw_ptr(),
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(c)
.as_raw_ptr(),
n,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
}
/// <p>A 3D extruded Text mesh.</p>
///
/// C++ class: <span style='color: green;'>```Qt3DExtras::QExtrudedTextMesh```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qextrudedtextmesh.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>A 3D extruded Text mesh.</p></div>
#[repr(C)]
pub struct QExtrudedTextMesh {
_unused: u8,
}
impl QExtrudedTextMesh {
/// <p>Holds the text used for the mesh.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QExtrudedTextMesh::setText` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qextrudedtextmesh.html#text-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the text used for the mesh.</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>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setText</b></span>(const QString &<i>text</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>textChanged</b></span>(const QString &<i>text</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slot_set_text(&self) -> ::qt_core::Receiver<(*const ::qt_core::QString,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setText(const QString&)\0"),
)
}
}
/// <p>Holds the font of the text.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QExtrudedTextMesh::setFont` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qextrudedtextmesh.html#font-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the font of the text.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QFont </td><td class="memItemRight bottomAlign"><span class="name"><b>font</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setFont</b></span>(const QFont &<i>font</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>fontChanged</b></span>(const QFont &<i>font</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slot_set_font(&self) -> ::qt_core::Receiver<(*const ::qt_gui::QFont,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setFont(const QFont&)\0"),
)
}
}
/// <p>Holds the extrusion depth of the text.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QExtrudedTextMesh::setDepth` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qextrudedtextmesh.html#depth-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the extrusion depth of the text.</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>depth</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setDepth</b></span>(float <i>depth</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>depthChanged</b></span>(float <i>depth</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slot_set_depth(&self) -> ::qt_core::Receiver<(::std::os::raw::c_float,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setDepth(float)\0"),
)
}
}
/// <p>Holds the text used for the mesh.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QExtrudedTextMesh::textChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qextrudedtextmesh.html#text-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the text used for the mesh.</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>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setText</b></span>(const QString &<i>text</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>textChanged</b></span>(const QString &<i>text</i>)</td></tr>
/// </tbody></table></div></div>
pub fn text_changed(&self) -> ::qt_core::Signal<(*const ::qt_core::QString,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2textChanged(const QString&)\0"),
)
}
}
/// <p>Holds the font of the text.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QExtrudedTextMesh::fontChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qextrudedtextmesh.html#font-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the font of the text.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QFont </td><td class="memItemRight bottomAlign"><span class="name"><b>font</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setFont</b></span>(const QFont &<i>font</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>fontChanged</b></span>(const QFont &<i>font</i>)</td></tr>
/// </tbody></table></div></div>
pub fn font_changed(&self) -> ::qt_core::Signal<(*const ::qt_gui::QFont,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2fontChanged(const QFont&)\0"),
)
}
}
/// <p>Holds the extrusion depth of the text.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QExtrudedTextMesh::depthChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qextrudedtextmesh.html#depth-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the extrusion depth of the text.</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>depth</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setDepth</b></span>(float <i>depth</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>depthChanged</b></span>(float <i>depth</i>)</td></tr>
/// </tbody></table></div></div>
pub fn depth_changed(&self) -> ::qt_core::Signal<(::std::os::raw::c_float,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2depthChanged(float)\0"),
)
}
}
/// <p>Holds the extrusion depth of the text.</p>
///
/// Calls C++ function: <span style='color: green;'>```float Qt3DExtras::QExtrudedTextMesh::depth() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qextrudedtextmesh.html#depth-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the extrusion depth of the text.</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>depth</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setDepth</b></span>(float <i>depth</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>depthChanged</b></span>(float <i>depth</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn depth(&self) -> ::std::os::raw::c_float {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QExtrudedTextMesh_depth(
self as *const crate::QExtrudedTextMesh,
)
}
/// <p>Holds the font of the text.</p>
///
/// Calls C++ function: <span style='color: green;'>```QFont Qt3DExtras::QExtrudedTextMesh::font() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qextrudedtextmesh.html#font-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the font of the text.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QFont </td><td class="memItemRight bottomAlign"><span class="name"><b>font</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setFont</b></span>(const QFont &<i>font</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>fontChanged</b></span>(const QFont &<i>font</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn font(&self) -> ::cpp_core::CppBox<::qt_gui::QFont> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QExtrudedTextMesh_font(
self as *const crate::QExtrudedTextMesh,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// Calls C++ function: <span style='color: green;'>```virtual const QMetaObject* Qt3DExtras::QExtrudedTextMesh::metaObject() const```</span>.
pub unsafe fn meta_object(&self) -> ::cpp_core::Ptr<::qt_core::QMetaObject> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QExtrudedTextMesh_metaObject(
self as *const crate::QExtrudedTextMesh,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// <p>Constructs a new QText3DMesh with <i>parent</i>.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DExtras::QExtrudedTextMesh::QExtrudedTextMesh(Qt3DCore::QNode* parent = …)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qextrudedtextmesh.html#QExtrudedTextMesh">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Constructs a new QText3DMesh with <i>parent</i>.</p></div>
pub unsafe fn new_1a(
parent: impl ::cpp_core::CastInto<::cpp_core::MutPtr<::qt_3d_core::QNode>>,
) -> ::cpp_core::CppBox<crate::QExtrudedTextMesh> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QExtrudedTextMesh_QExtrudedTextMesh(
::cpp_core::CastInto::<::cpp_core::MutPtr<::qt_3d_core::QNode>>::cast_into(parent)
.as_mut_raw_ptr(),
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>A 3D extruded Text mesh.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DExtras::QExtrudedTextMesh::QExtrudedTextMesh()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qextrudedtextmesh.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>A 3D extruded Text mesh.</p></div>
pub unsafe fn new_0a() -> ::cpp_core::CppBox<crate::QExtrudedTextMesh> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QExtrudedTextMesh_QExtrudedTextMesh1();
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// Calls C++ function: <span style='color: green;'>```virtual int Qt3DExtras::QExtrudedTextMesh::qt_metacall(QMetaObject::Call arg1, int arg2, void** arg3)```</span>.
pub unsafe fn qt_metacall(
&mut self,
arg1: ::qt_core::q_meta_object::Call,
arg2: ::std::os::raw::c_int,
arg3: impl ::cpp_core::CastInto<::cpp_core::MutPtr<*mut ::std::ffi::c_void>>,
) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QExtrudedTextMesh_qt_metacall(
self as *mut crate::QExtrudedTextMesh,
arg1,
arg2,
::cpp_core::CastInto::<::cpp_core::MutPtr<*mut ::std::ffi::c_void>>::cast_into(arg3)
.as_mut_raw_ptr(),
)
}
/// Calls C++ function: <span style='color: green;'>```virtual void* Qt3DExtras::QExtrudedTextMesh::qt_metacast(const char* arg1)```</span>.
pub unsafe fn qt_metacast(
&mut self,
arg1: impl ::cpp_core::CastInto<::cpp_core::Ptr<::std::os::raw::c_char>>,
) -> ::cpp_core::MutPtr<::std::ffi::c_void> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QExtrudedTextMesh_qt_metacast(
self as *mut crate::QExtrudedTextMesh,
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(arg1)
.as_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
/// <p>Holds the extrusion depth of the text.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QExtrudedTextMesh::setDepth(float depth)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qextrudedtextmesh.html#depth-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the extrusion depth of the text.</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>depth</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setDepth</b></span>(float <i>depth</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>depthChanged</b></span>(float <i>depth</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_depth(&mut self, depth: ::std::os::raw::c_float) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QExtrudedTextMesh_setDepth(
self as *mut crate::QExtrudedTextMesh,
depth,
)
}
/// <p>Holds the font of the text.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QExtrudedTextMesh::setFont(const QFont& font)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qextrudedtextmesh.html#font-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the font of the text.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QFont </td><td class="memItemRight bottomAlign"><span class="name"><b>font</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setFont</b></span>(const QFont &<i>font</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>fontChanged</b></span>(const QFont &<i>font</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_font(
&mut self,
font: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_gui::QFont>>,
) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QExtrudedTextMesh_setFont(
self as *mut crate::QExtrudedTextMesh,
::cpp_core::CastInto::<::cpp_core::Ref<::qt_gui::QFont>>::cast_into(font).as_raw_ptr(),
)
}
/// <p>Holds the text used for the mesh.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QExtrudedTextMesh::setText(const QString& text)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qextrudedtextmesh.html#text-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the text used for the mesh.</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>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setText</b></span>(const QString &<i>text</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>textChanged</b></span>(const QString &<i>text</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_text(
&mut self,
text: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_core::QString>>,
) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QExtrudedTextMesh_setText(
self as *mut crate::QExtrudedTextMesh,
::cpp_core::CastInto::<::cpp_core::Ref<::qt_core::QString>>::cast_into(text)
.as_raw_ptr(),
)
}
/// Returns a reference to the <span style='color: green;'>```staticMetaObject```</span> field.
pub unsafe fn static_meta_object() -> ::cpp_core::Ref<::qt_core::QMetaObject> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QExtrudedTextMesh_staticMetaObject();
::cpp_core::Ref::from_raw(ffi_result).expect("attempted to construct a null Ref")
}
/// <p>Holds the text used for the mesh.</p>
///
/// Calls C++ function: <span style='color: green;'>```QString Qt3DExtras::QExtrudedTextMesh::text() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qextrudedtextmesh.html#text-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the text used for the mesh.</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>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setText</b></span>(const QString &<i>text</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>textChanged</b></span>(const QString &<i>text</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn text(&self) -> ::cpp_core::CppBox<::qt_core::QString> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QExtrudedTextMesh_text(
self as *const crate::QExtrudedTextMesh,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// Calls C++ function: <span style='color: green;'>```static QString Qt3DExtras::QExtrudedTextMesh::tr(const char* s, const char* c, int n)```</span>.
pub unsafe fn tr(
s: impl ::cpp_core::CastInto<::cpp_core::Ptr<::std::os::raw::c_char>>,
c: impl ::cpp_core::CastInto<::cpp_core::Ptr<::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_extras_ffi_Qt3DExtras_QExtrudedTextMesh_tr(
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(s)
.as_raw_ptr(),
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(c)
.as_raw_ptr(),
n,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// Calls C++ function: <span style='color: green;'>```static QString Qt3DExtras::QExtrudedTextMesh::trUtf8(const char* s, const char* c, int n)```</span>.
pub unsafe fn tr_utf8(
s: impl ::cpp_core::CastInto<::cpp_core::Ptr<::std::os::raw::c_char>>,
c: impl ::cpp_core::CastInto<::cpp_core::Ptr<::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_extras_ffi_Qt3DExtras_QExtrudedTextMesh_trUtf8(
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(s)
.as_raw_ptr(),
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(c)
.as_raw_ptr(),
n,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
}
/// <p>The <a href="http://doc.qt.io/qt-5/qt3dextras-qfirstpersoncameracontroller.html">QFirstPersonCameraController</a> class allows controlling the scene camera from the first person perspective.</p>
///
/// C++ class: <span style='color: green;'>```Qt3DExtras::QFirstPersonCameraController```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qfirstpersoncameracontroller.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>The <a href="http://doc.qt.io/qt-5/qt3dextras-qfirstpersoncameracontroller.html">QFirstPersonCameraController</a> class allows controlling the scene camera from the first person perspective.</p>
/// <p>The controls are:</p>
/// <div class="table"><table class="generic">
/// <thead><tr class="qt-style"><th>Input</th><th>Action</th></tr></thead>
/// <tbody><tr valign="top" class="odd"><td>Left mouse button</td><td>While the left mouse button is pressed, mouse movement along x-axis pans the camera and movement along y-axis tilts it.</td></tr>
/// <tr valign="top" class="even"><td>Mouse scroll wheel</td><td>Zooms the camera in and out without changing the view center.</td></tr>
/// <tr valign="top" class="odd"><td>Shift key</td><td>Turns the fine motion control active while pressed. Makes mouse pan and tilt less sensitive.</td></tr>
/// <tr valign="top" class="even"><td>Arrow keys</td><td>Move the camera horizontally relative to camera viewport.</td></tr>
/// <tr valign="top" class="odd"><td>Page up and page down keys</td><td>Move the camera vertically relative to camera viewport.</td></tr>
/// </tbody></table></div></div>
#[repr(C)]
pub struct QFirstPersonCameraController {
_unused: u8,
}
impl QFirstPersonCameraController {
/// <p>Holds the currently controlled camera.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QFirstPersonCameraController::cameraChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qfirstpersoncameracontroller.html#camera-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the currently controlled camera.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DRender::QCamera *</td><td class="memItemRight bottomAlign"><span class="name"><b>camera</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setCamera</b></span>(Qt3DRender::QCamera *<i>camera</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>cameraChanged</b></span>()</td></tr>
/// </tbody></table></div></div>
pub fn camera_changed(&self) -> ::qt_core::Signal<()> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2cameraChanged()\0"),
)
}
}
/// <p>Holds the current linear speed of the camera controller. Linear speed determines the movement speed of the camera.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QFirstPersonCameraController::linearSpeedChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qfirstpersoncameracontroller.html#linearSpeed-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current linear speed of the camera controller. Linear speed determines the movement speed of the camera.</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>linearSpeed</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setLinearSpeed</b></span>(float <i>linearSpeed</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>linearSpeedChanged</b></span>()</td></tr>
/// </tbody></table></div></div>
pub fn linear_speed_changed(&self) -> ::qt_core::Signal<()> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2linearSpeedChanged()\0"),
)
}
}
/// <p>Holds the current look speed of the camera controller. The look speed determines the turn rate of the camera pan and tilt.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QFirstPersonCameraController::lookSpeedChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qfirstpersoncameracontroller.html#lookSpeed-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current look speed of the camera controller. The look speed determines the turn rate of the camera pan and tilt.</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>lookSpeed</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setLookSpeed</b></span>(float <i>lookSpeed</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>lookSpeedChanged</b></span>()</td></tr>
/// </tbody></table></div></div>
pub fn look_speed_changed(&self) -> ::qt_core::Signal<()> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2lookSpeedChanged()\0"),
)
}
}
/// <p>Holds the current acceleration of the camera controller.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QFirstPersonCameraController::accelerationChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qfirstpersoncameracontroller.html#acceleration-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current acceleration of the camera controller.</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>
pub fn acceleration_changed(&self) -> ::qt_core::Signal<(::std::os::raw::c_float,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2accelerationChanged(float)\0"),
)
}
}
/// <p>Holds the current deceleration of the camera controller.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QFirstPersonCameraController::decelerationChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qfirstpersoncameracontroller.html#deceleration-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current deceleration of the camera controller.</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>
pub fn deceleration_changed(&self) -> ::qt_core::Signal<(::std::os::raw::c_float,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2decelerationChanged(float)\0"),
)
}
}
/// <p>Holds the current acceleration of the camera controller.</p>
///
/// Calls C++ function: <span style='color: green;'>```float Qt3DExtras::QFirstPersonCameraController::acceleration() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qfirstpersoncameracontroller.html#acceleration-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current acceleration of the camera controller.</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>
pub unsafe fn acceleration(&self) -> ::std::os::raw::c_float {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QFirstPersonCameraController_acceleration(
self as *const crate::QFirstPersonCameraController,
)
}
/// <p>Holds the currently controlled camera.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QCamera* Qt3DExtras::QFirstPersonCameraController::camera() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qfirstpersoncameracontroller.html#camera-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the currently controlled camera.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DRender::QCamera *</td><td class="memItemRight bottomAlign"><span class="name"><b>camera</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setCamera</b></span>(Qt3DRender::QCamera *<i>camera</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>cameraChanged</b></span>()</td></tr>
/// </tbody></table></div></div>
pub unsafe fn camera(&self) -> ::cpp_core::MutPtr<::qt_3d_render::QCamera> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QFirstPersonCameraController_camera(
self as *const crate::QFirstPersonCameraController,
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
/// <p>Holds the current deceleration of the camera controller.</p>
///
/// Calls C++ function: <span style='color: green;'>```float Qt3DExtras::QFirstPersonCameraController::deceleration() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qfirstpersoncameracontroller.html#deceleration-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current deceleration of the camera controller.</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>
pub unsafe fn deceleration(&self) -> ::std::os::raw::c_float {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QFirstPersonCameraController_deceleration(
self as *const crate::QFirstPersonCameraController,
)
}
/// <p>Holds the current linear speed of the camera controller. Linear speed determines the movement speed of the camera.</p>
///
/// Calls C++ function: <span style='color: green;'>```float Qt3DExtras::QFirstPersonCameraController::linearSpeed() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qfirstpersoncameracontroller.html#linearSpeed-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current linear speed of the camera controller. Linear speed determines the movement speed of the camera.</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>linearSpeed</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setLinearSpeed</b></span>(float <i>linearSpeed</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>linearSpeedChanged</b></span>()</td></tr>
/// </tbody></table></div></div>
pub unsafe fn linear_speed(&self) -> ::std::os::raw::c_float {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QFirstPersonCameraController_linearSpeed(
self as *const crate::QFirstPersonCameraController,
)
}
/// <p>Holds the current look speed of the camera controller. The look speed determines the turn rate of the camera pan and tilt.</p>
///
/// Calls C++ function: <span style='color: green;'>```float Qt3DExtras::QFirstPersonCameraController::lookSpeed() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qfirstpersoncameracontroller.html#lookSpeed-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current look speed of the camera controller. The look speed determines the turn rate of the camera pan and tilt.</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>lookSpeed</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setLookSpeed</b></span>(float <i>lookSpeed</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>lookSpeedChanged</b></span>()</td></tr>
/// </tbody></table></div></div>
pub unsafe fn look_speed(&self) -> ::std::os::raw::c_float {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QFirstPersonCameraController_lookSpeed(
self as *const crate::QFirstPersonCameraController,
)
}
/// Calls C++ function: <span style='color: green;'>```virtual const QMetaObject* Qt3DExtras::QFirstPersonCameraController::metaObject() const```</span>.
pub unsafe fn meta_object(&self) -> ::cpp_core::Ptr<::qt_core::QMetaObject> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QFirstPersonCameraController_metaObject(
self as *const crate::QFirstPersonCameraController,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// <p>Default constructs an instance of QFirstPersonCameraController.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DExtras::QFirstPersonCameraController::QFirstPersonCameraController(Qt3DCore::QNode* parent = …)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qfirstpersoncameracontroller.html#QFirstPersonCameraController">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Default constructs an instance of QFirstPersonCameraController.</p></div>
pub unsafe fn new_1a(
parent: impl ::cpp_core::CastInto<::cpp_core::MutPtr<::qt_3d_core::QNode>>,
) -> ::cpp_core::CppBox<crate::QFirstPersonCameraController> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QFirstPersonCameraController_QFirstPersonCameraController(::cpp_core::CastInto::<::cpp_core::MutPtr<::qt_3d_core::QNode>>::cast_into(parent).as_mut_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/qt3dextras-qfirstpersoncameracontroller.html">QFirstPersonCameraController</a> class allows controlling the scene camera from the first person perspective.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DExtras::QFirstPersonCameraController::QFirstPersonCameraController()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qfirstpersoncameracontroller.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>The <a href="http://doc.qt.io/qt-5/qt3dextras-qfirstpersoncameracontroller.html">QFirstPersonCameraController</a> class allows controlling the scene camera from the first person perspective.</p>
/// <p>The controls are:</p>
/// <div class="table"><table class="generic">
/// <thead><tr class="qt-style"><th>Input</th><th>Action</th></tr></thead>
/// <tbody><tr valign="top" class="odd"><td>Left mouse button</td><td>While the left mouse button is pressed, mouse movement along x-axis pans the camera and movement along y-axis tilts it.</td></tr>
/// <tr valign="top" class="even"><td>Mouse scroll wheel</td><td>Zooms the camera in and out without changing the view center.</td></tr>
/// <tr valign="top" class="odd"><td>Shift key</td><td>Turns the fine motion control active while pressed. Makes mouse pan and tilt less sensitive.</td></tr>
/// <tr valign="top" class="even"><td>Arrow keys</td><td>Move the camera horizontally relative to camera viewport.</td></tr>
/// <tr valign="top" class="odd"><td>Page up and page down keys</td><td>Move the camera vertically relative to camera viewport.</td></tr>
/// </tbody></table></div></div>
pub unsafe fn new_0a() -> ::cpp_core::CppBox<crate::QFirstPersonCameraController> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QFirstPersonCameraController_QFirstPersonCameraController1();
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// Calls C++ function: <span style='color: green;'>```virtual int Qt3DExtras::QFirstPersonCameraController::qt_metacall(QMetaObject::Call arg1, int arg2, void** arg3)```</span>.
pub unsafe fn qt_metacall(
&mut self,
arg1: ::qt_core::q_meta_object::Call,
arg2: ::std::os::raw::c_int,
arg3: impl ::cpp_core::CastInto<::cpp_core::MutPtr<*mut ::std::ffi::c_void>>,
) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QFirstPersonCameraController_qt_metacall(
self as *mut crate::QFirstPersonCameraController,
arg1,
arg2,
::cpp_core::CastInto::<::cpp_core::MutPtr<*mut ::std::ffi::c_void>>::cast_into(arg3)
.as_mut_raw_ptr(),
)
}
/// Calls C++ function: <span style='color: green;'>```virtual void* Qt3DExtras::QFirstPersonCameraController::qt_metacast(const char* arg1)```</span>.
pub unsafe fn qt_metacast(
&mut self,
arg1: impl ::cpp_core::CastInto<::cpp_core::Ptr<::std::os::raw::c_char>>,
) -> ::cpp_core::MutPtr<::std::ffi::c_void> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QFirstPersonCameraController_qt_metacast(
self as *mut crate::QFirstPersonCameraController,
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(arg1)
.as_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
/// <p>Holds the current acceleration of the camera controller.</p>
///
/// Calls C++ function: <span style='color: green;'>```void Qt3DExtras::QFirstPersonCameraController::setAcceleration(float acceleration)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qfirstpersoncameracontroller.html#acceleration-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current acceleration of the camera controller.</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>
pub unsafe fn set_acceleration(&mut self, acceleration: ::std::os::raw::c_float) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QFirstPersonCameraController_setAcceleration(
self as *mut crate::QFirstPersonCameraController,
acceleration,
)
}
/// <p>Holds the currently controlled camera.</p>
///
/// Calls C++ function: <span style='color: green;'>```void Qt3DExtras::QFirstPersonCameraController::setCamera(Qt3DRender::QCamera* camera)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qfirstpersoncameracontroller.html#camera-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the currently controlled camera.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DRender::QCamera *</td><td class="memItemRight bottomAlign"><span class="name"><b>camera</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setCamera</b></span>(Qt3DRender::QCamera *<i>camera</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>cameraChanged</b></span>()</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_camera(
&mut self,
camera: impl ::cpp_core::CastInto<::cpp_core::MutPtr<::qt_3d_render::QCamera>>,
) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QFirstPersonCameraController_setCamera(
self as *mut crate::QFirstPersonCameraController,
::cpp_core::CastInto::<::cpp_core::MutPtr<::qt_3d_render::QCamera>>::cast_into(camera)
.as_mut_raw_ptr(),
)
}
/// <p>Holds the current deceleration of the camera controller.</p>
///
/// Calls C++ function: <span style='color: green;'>```void Qt3DExtras::QFirstPersonCameraController::setDeceleration(float deceleration)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qfirstpersoncameracontroller.html#deceleration-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current deceleration of the camera controller.</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>
pub unsafe fn set_deceleration(&mut self, deceleration: ::std::os::raw::c_float) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QFirstPersonCameraController_setDeceleration(
self as *mut crate::QFirstPersonCameraController,
deceleration,
)
}
/// <p>Holds the current linear speed of the camera controller. Linear speed determines the movement speed of the camera.</p>
///
/// Calls C++ function: <span style='color: green;'>```void Qt3DExtras::QFirstPersonCameraController::setLinearSpeed(float linearSpeed)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qfirstpersoncameracontroller.html#linearSpeed-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current linear speed of the camera controller. Linear speed determines the movement speed of the camera.</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>linearSpeed</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setLinearSpeed</b></span>(float <i>linearSpeed</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>linearSpeedChanged</b></span>()</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_linear_speed(&mut self, linear_speed: ::std::os::raw::c_float) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QFirstPersonCameraController_setLinearSpeed(
self as *mut crate::QFirstPersonCameraController,
linear_speed,
)
}
/// <p>Holds the current look speed of the camera controller. The look speed determines the turn rate of the camera pan and tilt.</p>
///
/// Calls C++ function: <span style='color: green;'>```void Qt3DExtras::QFirstPersonCameraController::setLookSpeed(float lookSpeed)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qfirstpersoncameracontroller.html#lookSpeed-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current look speed of the camera controller. The look speed determines the turn rate of the camera pan and tilt.</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>lookSpeed</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setLookSpeed</b></span>(float <i>lookSpeed</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>lookSpeedChanged</b></span>()</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_look_speed(&mut self, look_speed: ::std::os::raw::c_float) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QFirstPersonCameraController_setLookSpeed(
self as *mut crate::QFirstPersonCameraController,
look_speed,
)
}
/// Returns a reference to the <span style='color: green;'>```staticMetaObject```</span> field.
pub unsafe fn static_meta_object() -> ::cpp_core::Ref<::qt_core::QMetaObject> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QFirstPersonCameraController_staticMetaObject();
::cpp_core::Ref::from_raw(ffi_result).expect("attempted to construct a null Ref")
}
/// Calls C++ function: <span style='color: green;'>```static QString Qt3DExtras::QFirstPersonCameraController::tr(const char* s, const char* c, int n)```</span>.
pub unsafe fn tr(
s: impl ::cpp_core::CastInto<::cpp_core::Ptr<::std::os::raw::c_char>>,
c: impl ::cpp_core::CastInto<::cpp_core::Ptr<::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_extras_ffi_Qt3DExtras_QFirstPersonCameraController_tr(
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(s)
.as_raw_ptr(),
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(c)
.as_raw_ptr(),
n,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// Calls C++ function: <span style='color: green;'>```static QString Qt3DExtras::QFirstPersonCameraController::trUtf8(const char* s, const char* c, int n)```</span>.
pub unsafe fn tr_utf8(
s: impl ::cpp_core::CastInto<::cpp_core::Ptr<::std::os::raw::c_char>>,
c: impl ::cpp_core::CastInto<::cpp_core::Ptr<::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_extras_ffi_Qt3DExtras_QFirstPersonCameraController_trUtf8(
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(s)
.as_raw_ptr(),
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(c)
.as_raw_ptr(),
n,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
}
/// <p>The <a href="http://doc.qt.io/qt-5/qt3dextras-qforwardrenderer.html">QForwardRenderer</a> provides a default <a href="http://doc.qt.io/qt-5/qt3drender-framegraph.html">FrameGraph</a> implementation of a forward renderer.</p>
///
/// C++ class: <span style='color: green;'>```Qt3DExtras::QForwardRenderer```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qforwardrenderer.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>The <a href="http://doc.qt.io/qt-5/qt3dextras-qforwardrenderer.html">QForwardRenderer</a> provides a default <a href="http://doc.qt.io/qt-5/qt3drender-framegraph.html">FrameGraph</a> implementation of a forward renderer.</p>
/// <p>Forward rendering is what OpenGL traditionally uses. It renders directly to the backbuffer one object at a time shading each one as it goes.</p>
/// <p><a href="http://doc.qt.io/qt-5/qt3dextras-qforwardrenderer.html">QForwardRenderer</a> is a single leaf <a href="http://doc.qt.io/qt-5/qt3drender-framegraph.html">FrameGraph</a> tree which contains a <a href="http://doc.qt.io/qt-5/qt3drender-qviewport.html">Qt3DRender::QViewport</a>, a <a href="http://doc.qt.io/qt-5/qt3drender-qcameraselector.html">Qt3DRender::QCameraSelector</a>, and a <a href="http://doc.qt.io/qt-5/qt3drender-qclearbuffers.html">Qt3DRender::QClearBuffers</a>. The <a href="http://doc.qt.io/qt-5/qt3dextras-qforwardrenderer.html">QForwardRenderer</a> has a default requirement filter key whose name is "renderingStyle" and value "forward". If you need to filter out your techniques, you should do so based on that filter key.</p>
/// <p>By default the viewport occupies the whole screen and the clear color is white. Frustum culling is also enabled.</p></div>
#[repr(C)]
pub struct QForwardRenderer {
_unused: u8,
}
impl QForwardRenderer {
/// <p>Holds the current normalized viewport rectangle.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QForwardRenderer::setViewportRect` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qforwardrenderer.html#viewportRect-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current normalized viewport rectangle.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QRectF </td><td class="memItemRight bottomAlign"><span class="name"><b>viewportRect</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setViewportRect</b></span>(const QRectF &<i>viewportRect</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>viewportRectChanged</b></span>(const QRectF &<i>viewportRect</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slot_set_viewport_rect(&self) -> ::qt_core::Receiver<(*const ::qt_core::QRectF,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"1setViewportRect(const QRectF&)\0",
),
)
}
}
/// <p>Holds the current clear color of the scene. The frame buffer is initialized to the clear color before rendering.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QForwardRenderer::setClearColor` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qforwardrenderer.html#clearColor-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current clear color of the scene. The frame buffer is initialized to the clear color before rendering.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QColor </td><td class="memItemRight bottomAlign"><span class="name"><b>clearColor</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setClearColor</b></span>(const QColor &<i>clearColor</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>clearColorChanged</b></span>(const QColor &<i>clearColor</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slot_set_clear_color(&self) -> ::qt_core::Receiver<(*const ::qt_gui::QColor,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setClearColor(const QColor&)\0"),
)
}
}
/// <p>Holds the current camera entity used to render the scene.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QForwardRenderer::setCamera` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qforwardrenderer.html#camera-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current camera entity used to render the scene.</p>
/// <p><b>Note: </b>A camera is a QEntity that has a QCameraLens as one of its components.</p><p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DCore::QEntity *</td><td class="memItemRight bottomAlign"><span class="name"><b>camera</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setCamera</b></span>(Qt3DCore::QEntity *<i>camera</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>cameraChanged</b></span>(Qt3DCore::QEntity *<i>camera</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slot_set_camera(&self) -> ::qt_core::Receiver<(*mut ::qt_3d_core::QEntity,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"1setCamera(Qt3DCore::QEntity*)\0",
),
)
}
}
/// Returns a built-in Qt slot `Qt3DExtras::QForwardRenderer::setSurface` that can be passed to `qt_core::Signal::connect`.
pub fn slot_set_surface(&self) -> ::qt_core::Receiver<(*mut ::qt_core::QObject,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setSurface(QObject*)\0"),
)
}
}
/// <p>Contains the size of the external render target. External render targets are relevant when rendering does not target a window surface (as set in <a href="http://doc.qt.io/qt-5/qt3dextras-qforwardrenderer.html#surface">surface()</a>).</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QForwardRenderer::setExternalRenderTargetSize` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qforwardrenderer.html#externalRenderTargetSize-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Contains the size of the external render target. External render targets are relevant when rendering does not target a window surface (as set in <a href="http://doc.qt.io/qt-5/qt3dextras-qforwardrenderer.html#surface">surface()</a>).</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QSize </td><td class="memItemRight bottomAlign"><span class="name"><b>externalRenderTargetSize</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setExternalRenderTargetSize</b></span>(const QSize &<i>size</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>externalRenderTargetSizeChanged</b></span>(const QSize &<i>size</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slot_set_external_render_target_size(
&self,
) -> ::qt_core::Receiver<(*const ::qt_core::QSize,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"1setExternalRenderTargetSize(const QSize&)\0",
),
)
}
}
/// <p>Indicates if the renderer applies frustum culling to the scene.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QForwardRenderer::setFrustumCullingEnabled` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qforwardrenderer.html#frustumCulling-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Indicates if the renderer applies frustum culling to the scene.</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>isFrustumCullingEnabled</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setFrustumCullingEnabled</b></span>(bool <i>enabled</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>frustumCullingEnabledChanged</b></span>(bool <i>enabled</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slot_set_frustum_culling_enabled(&self) -> ::qt_core::Receiver<(bool,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"1setFrustumCullingEnabled(bool)\0",
),
)
}
}
/// <p>Holds the gamma value the renderer applies to the scene.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QForwardRenderer::setGamma` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qforwardrenderer.html#gamma-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the gamma value the renderer applies to the scene.</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>gamma</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setGamma</b></span>(float <i>gamma</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>gammaChanged</b></span>(float <i>gamma</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slot_set_gamma(&self) -> ::qt_core::Receiver<(::std::os::raw::c_float,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setGamma(float)\0"),
)
}
}
/// <p>Holds the current normalized viewport rectangle.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QForwardRenderer::viewportRectChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qforwardrenderer.html#viewportRect-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current normalized viewport rectangle.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QRectF </td><td class="memItemRight bottomAlign"><span class="name"><b>viewportRect</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setViewportRect</b></span>(const QRectF &<i>viewportRect</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>viewportRectChanged</b></span>(const QRectF &<i>viewportRect</i>)</td></tr>
/// </tbody></table></div></div>
pub fn viewport_rect_changed(&self) -> ::qt_core::Signal<(*const ::qt_core::QRectF,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"2viewportRectChanged(const QRectF&)\0",
),
)
}
}
/// <p>Holds the current clear color of the scene. The frame buffer is initialized to the clear color before rendering.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QForwardRenderer::clearColorChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qforwardrenderer.html#clearColor-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current clear color of the scene. The frame buffer is initialized to the clear color before rendering.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QColor </td><td class="memItemRight bottomAlign"><span class="name"><b>clearColor</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setClearColor</b></span>(const QColor &<i>clearColor</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>clearColorChanged</b></span>(const QColor &<i>clearColor</i>)</td></tr>
/// </tbody></table></div></div>
pub fn clear_color_changed(&self) -> ::qt_core::Signal<(*const ::qt_gui::QColor,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"2clearColorChanged(const QColor&)\0",
),
)
}
}
/// <p>Holds the current camera entity used to render the scene.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QForwardRenderer::cameraChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qforwardrenderer.html#camera-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current camera entity used to render the scene.</p>
/// <p><b>Note: </b>A camera is a QEntity that has a QCameraLens as one of its components.</p><p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DCore::QEntity *</td><td class="memItemRight bottomAlign"><span class="name"><b>camera</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setCamera</b></span>(Qt3DCore::QEntity *<i>camera</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>cameraChanged</b></span>(Qt3DCore::QEntity *<i>camera</i>)</td></tr>
/// </tbody></table></div></div>
pub fn camera_changed(&self) -> ::qt_core::Signal<(*mut ::qt_3d_core::QEntity,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"2cameraChanged(Qt3DCore::QEntity*)\0",
),
)
}
}
/// Returns a built-in Qt signal `Qt3DExtras::QForwardRenderer::surfaceChanged` that can be passed to `qt_core::Signal::connect`.
pub fn surface_changed(&self) -> ::qt_core::Signal<(*mut ::qt_core::QObject,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2surfaceChanged(QObject*)\0"),
)
}
}
/// <p>Contains the size of the external render target. External render targets are relevant when rendering does not target a window surface (as set in <a href="http://doc.qt.io/qt-5/qt3dextras-qforwardrenderer.html#surface">surface()</a>).</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QForwardRenderer::externalRenderTargetSizeChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qforwardrenderer.html#externalRenderTargetSize-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Contains the size of the external render target. External render targets are relevant when rendering does not target a window surface (as set in <a href="http://doc.qt.io/qt-5/qt3dextras-qforwardrenderer.html#surface">surface()</a>).</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QSize </td><td class="memItemRight bottomAlign"><span class="name"><b>externalRenderTargetSize</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setExternalRenderTargetSize</b></span>(const QSize &<i>size</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>externalRenderTargetSizeChanged</b></span>(const QSize &<i>size</i>)</td></tr>
/// </tbody></table></div></div>
pub fn external_render_target_size_changed(
&self,
) -> ::qt_core::Signal<(*const ::qt_core::QSize,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"2externalRenderTargetSizeChanged(const QSize&)\0",
),
)
}
}
/// <p>Indicates if the renderer applies frustum culling to the scene.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QForwardRenderer::frustumCullingEnabledChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qforwardrenderer.html#frustumCulling-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Indicates if the renderer applies frustum culling to the scene.</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>isFrustumCullingEnabled</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setFrustumCullingEnabled</b></span>(bool <i>enabled</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>frustumCullingEnabledChanged</b></span>(bool <i>enabled</i>)</td></tr>
/// </tbody></table></div></div>
pub fn frustum_culling_enabled_changed(&self) -> ::qt_core::Signal<(bool,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"2frustumCullingEnabledChanged(bool)\0",
),
)
}
}
/// <p>Holds the gamma value the renderer applies to the scene.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QForwardRenderer::gammaChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qforwardrenderer.html#gamma-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the gamma value the renderer applies to the scene.</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>gamma</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setGamma</b></span>(float <i>gamma</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>gammaChanged</b></span>(float <i>gamma</i>)</td></tr>
/// </tbody></table></div></div>
pub fn gamma_changed(&self) -> ::qt_core::Signal<(::std::os::raw::c_float,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2gammaChanged(float)\0"),
)
}
}
/// <p>Holds the current camera entity used to render the scene.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QEntity* Qt3DExtras::QForwardRenderer::camera() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qforwardrenderer.html#camera-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current camera entity used to render the scene.</p>
/// <p><b>Note: </b>A camera is a QEntity that has a QCameraLens as one of its components.</p><p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DCore::QEntity *</td><td class="memItemRight bottomAlign"><span class="name"><b>camera</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setCamera</b></span>(Qt3DCore::QEntity *<i>camera</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>cameraChanged</b></span>(Qt3DCore::QEntity *<i>camera</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn camera(&self) -> ::cpp_core::MutPtr<::qt_3d_core::QEntity> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QForwardRenderer_camera(
self as *const crate::QForwardRenderer,
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
/// <p>Holds the current clear color of the scene. The frame buffer is initialized to the clear color before rendering.</p>
///
/// Calls C++ function: <span style='color: green;'>```QColor Qt3DExtras::QForwardRenderer::clearColor() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qforwardrenderer.html#clearColor-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current clear color of the scene. The frame buffer is initialized to the clear color before rendering.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QColor </td><td class="memItemRight bottomAlign"><span class="name"><b>clearColor</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setClearColor</b></span>(const QColor &<i>clearColor</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>clearColorChanged</b></span>(const QColor &<i>clearColor</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn clear_color(&self) -> ::cpp_core::CppBox<::qt_gui::QColor> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QForwardRenderer_clearColor(
self as *const crate::QForwardRenderer,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Contains the size of the external render target. External render targets are relevant when rendering does not target a window surface (as set in <a href="http://doc.qt.io/qt-5/qt3dextras-qforwardrenderer.html#surface">surface()</a>).</p>
///
/// Calls C++ function: <span style='color: green;'>```QSize Qt3DExtras::QForwardRenderer::externalRenderTargetSize() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qforwardrenderer.html#externalRenderTargetSize-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Contains the size of the external render target. External render targets are relevant when rendering does not target a window surface (as set in <a href="http://doc.qt.io/qt-5/qt3dextras-qforwardrenderer.html#surface">surface()</a>).</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QSize </td><td class="memItemRight bottomAlign"><span class="name"><b>externalRenderTargetSize</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setExternalRenderTargetSize</b></span>(const QSize &<i>size</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>externalRenderTargetSizeChanged</b></span>(const QSize &<i>size</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn external_render_target_size(&self) -> ::cpp_core::CppBox<::qt_core::QSize> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QForwardRenderer_externalRenderTargetSize(
self as *const crate::QForwardRenderer,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Holds the gamma value the renderer applies to the scene.</p>
///
/// Calls C++ function: <span style='color: green;'>```float Qt3DExtras::QForwardRenderer::gamma() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qforwardrenderer.html#gamma-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the gamma value the renderer applies to the scene.</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>gamma</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setGamma</b></span>(float <i>gamma</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>gammaChanged</b></span>(float <i>gamma</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn gamma(&self) -> ::std::os::raw::c_float {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QForwardRenderer_gamma(
self as *const crate::QForwardRenderer,
)
}
/// <p>Indicates if the renderer applies frustum culling to the scene.</p>
///
/// Calls C++ function: <span style='color: green;'>```bool Qt3DExtras::QForwardRenderer::isFrustumCullingEnabled() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qforwardrenderer.html#frustumCulling-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Indicates if the renderer applies frustum culling to the scene.</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>isFrustumCullingEnabled</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setFrustumCullingEnabled</b></span>(bool <i>enabled</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>frustumCullingEnabledChanged</b></span>(bool <i>enabled</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn is_frustum_culling_enabled(&self) -> bool {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QForwardRenderer_isFrustumCullingEnabled(
self as *const crate::QForwardRenderer,
)
}
/// Calls C++ function: <span style='color: green;'>```virtual const QMetaObject* Qt3DExtras::QForwardRenderer::metaObject() const```</span>.
pub unsafe fn meta_object(&self) -> ::cpp_core::Ptr<::qt_core::QMetaObject> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QForwardRenderer_metaObject(
self as *const crate::QForwardRenderer,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// <p>Default constructs an instance of QForwardRenderer.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DExtras::QForwardRenderer::QForwardRenderer(Qt3DCore::QNode* parent = …)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qforwardrenderer.html#QForwardRenderer">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Default constructs an instance of QForwardRenderer.</p></div>
pub unsafe fn new_1a(
parent: impl ::cpp_core::CastInto<::cpp_core::MutPtr<::qt_3d_core::QNode>>,
) -> ::cpp_core::CppBox<crate::QForwardRenderer> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QForwardRenderer_QForwardRenderer(
::cpp_core::CastInto::<::cpp_core::MutPtr<::qt_3d_core::QNode>>::cast_into(parent)
.as_mut_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/qt3dextras-qforwardrenderer.html">QForwardRenderer</a> provides a default <a href="http://doc.qt.io/qt-5/qt3drender-framegraph.html">FrameGraph</a> implementation of a forward renderer.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DExtras::QForwardRenderer::QForwardRenderer()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qforwardrenderer.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>The <a href="http://doc.qt.io/qt-5/qt3dextras-qforwardrenderer.html">QForwardRenderer</a> provides a default <a href="http://doc.qt.io/qt-5/qt3drender-framegraph.html">FrameGraph</a> implementation of a forward renderer.</p>
/// <p>Forward rendering is what OpenGL traditionally uses. It renders directly to the backbuffer one object at a time shading each one as it goes.</p>
/// <p><a href="http://doc.qt.io/qt-5/qt3dextras-qforwardrenderer.html">QForwardRenderer</a> is a single leaf <a href="http://doc.qt.io/qt-5/qt3drender-framegraph.html">FrameGraph</a> tree which contains a <a href="http://doc.qt.io/qt-5/qt3drender-qviewport.html">Qt3DRender::QViewport</a>, a <a href="http://doc.qt.io/qt-5/qt3drender-qcameraselector.html">Qt3DRender::QCameraSelector</a>, and a <a href="http://doc.qt.io/qt-5/qt3drender-qclearbuffers.html">Qt3DRender::QClearBuffers</a>. The <a href="http://doc.qt.io/qt-5/qt3dextras-qforwardrenderer.html">QForwardRenderer</a> has a default requirement filter key whose name is "renderingStyle" and value "forward". If you need to filter out your techniques, you should do so based on that filter key.</p>
/// <p>By default the viewport occupies the whole screen and the clear color is white. Frustum culling is also enabled.</p></div>
pub unsafe fn new_0a() -> ::cpp_core::CppBox<crate::QForwardRenderer> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QForwardRenderer_QForwardRenderer1();
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// Calls C++ function: <span style='color: green;'>```virtual int Qt3DExtras::QForwardRenderer::qt_metacall(QMetaObject::Call arg1, int arg2, void** arg3)```</span>.
pub unsafe fn qt_metacall(
&mut self,
arg1: ::qt_core::q_meta_object::Call,
arg2: ::std::os::raw::c_int,
arg3: impl ::cpp_core::CastInto<::cpp_core::MutPtr<*mut ::std::ffi::c_void>>,
) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QForwardRenderer_qt_metacall(
self as *mut crate::QForwardRenderer,
arg1,
arg2,
::cpp_core::CastInto::<::cpp_core::MutPtr<*mut ::std::ffi::c_void>>::cast_into(arg3)
.as_mut_raw_ptr(),
)
}
/// Calls C++ function: <span style='color: green;'>```virtual void* Qt3DExtras::QForwardRenderer::qt_metacast(const char* arg1)```</span>.
pub unsafe fn qt_metacast(
&mut self,
arg1: impl ::cpp_core::CastInto<::cpp_core::Ptr<::std::os::raw::c_char>>,
) -> ::cpp_core::MutPtr<::std::ffi::c_void> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QForwardRenderer_qt_metacast(
self as *mut crate::QForwardRenderer,
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(arg1)
.as_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
/// <p>Holds the current camera entity used to render the scene.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QForwardRenderer::setCamera(Qt3DCore::QEntity* camera)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qforwardrenderer.html#camera-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current camera entity used to render the scene.</p>
/// <p><b>Note: </b>A camera is a QEntity that has a QCameraLens as one of its components.</p><p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DCore::QEntity *</td><td class="memItemRight bottomAlign"><span class="name"><b>camera</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setCamera</b></span>(Qt3DCore::QEntity *<i>camera</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>cameraChanged</b></span>(Qt3DCore::QEntity *<i>camera</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_camera(
&mut self,
camera: impl ::cpp_core::CastInto<::cpp_core::MutPtr<::qt_3d_core::QEntity>>,
) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QForwardRenderer_setCamera(
self as *mut crate::QForwardRenderer,
::cpp_core::CastInto::<::cpp_core::MutPtr<::qt_3d_core::QEntity>>::cast_into(camera)
.as_mut_raw_ptr(),
)
}
/// <p>Holds the current clear color of the scene. The frame buffer is initialized to the clear color before rendering.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QForwardRenderer::setClearColor(const QColor& clearColor)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qforwardrenderer.html#clearColor-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current clear color of the scene. The frame buffer is initialized to the clear color before rendering.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QColor </td><td class="memItemRight bottomAlign"><span class="name"><b>clearColor</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setClearColor</b></span>(const QColor &<i>clearColor</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>clearColorChanged</b></span>(const QColor &<i>clearColor</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_clear_color(
&mut self,
clear_color: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_gui::QColor>>,
) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QForwardRenderer_setClearColor(
self as *mut crate::QForwardRenderer,
::cpp_core::CastInto::<::cpp_core::Ref<::qt_gui::QColor>>::cast_into(clear_color)
.as_raw_ptr(),
)
}
/// <p>Contains the size of the external render target. External render targets are relevant when rendering does not target a window surface (as set in <a href="http://doc.qt.io/qt-5/qt3dextras-qforwardrenderer.html#surface">surface()</a>).</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QForwardRenderer::setExternalRenderTargetSize(const QSize& size)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qforwardrenderer.html#externalRenderTargetSize-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Contains the size of the external render target. External render targets are relevant when rendering does not target a window surface (as set in <a href="http://doc.qt.io/qt-5/qt3dextras-qforwardrenderer.html#surface">surface()</a>).</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QSize </td><td class="memItemRight bottomAlign"><span class="name"><b>externalRenderTargetSize</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setExternalRenderTargetSize</b></span>(const QSize &<i>size</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>externalRenderTargetSizeChanged</b></span>(const QSize &<i>size</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_external_render_target_size(
&mut self,
size: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_core::QSize>>,
) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QForwardRenderer_setExternalRenderTargetSize(
self as *mut crate::QForwardRenderer,
::cpp_core::CastInto::<::cpp_core::Ref<::qt_core::QSize>>::cast_into(size).as_raw_ptr(),
)
}
/// <p>Indicates if the renderer applies frustum culling to the scene.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QForwardRenderer::setFrustumCullingEnabled(bool enabled)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qforwardrenderer.html#frustumCulling-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Indicates if the renderer applies frustum culling to the scene.</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>isFrustumCullingEnabled</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setFrustumCullingEnabled</b></span>(bool <i>enabled</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>frustumCullingEnabledChanged</b></span>(bool <i>enabled</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_frustum_culling_enabled(&mut self, enabled: bool) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QForwardRenderer_setFrustumCullingEnabled(
self as *mut crate::QForwardRenderer,
enabled,
)
}
/// <p>Holds the gamma value the renderer applies to the scene.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QForwardRenderer::setGamma(float gamma)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qforwardrenderer.html#gamma-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the gamma value the renderer applies to the scene.</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>gamma</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setGamma</b></span>(float <i>gamma</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>gammaChanged</b></span>(float <i>gamma</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_gamma(&mut self, gamma: ::std::os::raw::c_float) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QForwardRenderer_setGamma(
self as *mut crate::QForwardRenderer,
gamma,
)
}
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QForwardRenderer::setSurface(QObject* surface)```</span>.
pub unsafe fn set_surface(
&mut self,
surface: impl ::cpp_core::CastInto<::cpp_core::MutPtr<::qt_core::QObject>>,
) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QForwardRenderer_setSurface(
self as *mut crate::QForwardRenderer,
::cpp_core::CastInto::<::cpp_core::MutPtr<::qt_core::QObject>>::cast_into(surface)
.as_mut_raw_ptr(),
)
}
/// <p>Holds the current normalized viewport rectangle.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QForwardRenderer::setViewportRect(const QRectF& viewportRect)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qforwardrenderer.html#viewportRect-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current normalized viewport rectangle.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QRectF </td><td class="memItemRight bottomAlign"><span class="name"><b>viewportRect</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setViewportRect</b></span>(const QRectF &<i>viewportRect</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>viewportRectChanged</b></span>(const QRectF &<i>viewportRect</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_viewport_rect(
&mut self,
viewport_rect: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_core::QRectF>>,
) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QForwardRenderer_setViewportRect(
self as *mut crate::QForwardRenderer,
::cpp_core::CastInto::<::cpp_core::Ref<::qt_core::QRectF>>::cast_into(viewport_rect)
.as_raw_ptr(),
)
}
/// Returns a reference to the <span style='color: green;'>```staticMetaObject```</span> field.
pub unsafe fn static_meta_object() -> ::cpp_core::Ref<::qt_core::QMetaObject> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QForwardRenderer_staticMetaObject();
::cpp_core::Ref::from_raw(ffi_result).expect("attempted to construct a null Ref")
}
/// <p>Holds the current render surface.</p>
///
/// Calls C++ function: <span style='color: green;'>```QObject* Qt3DExtras::QForwardRenderer::surface() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qforwardrenderer.html#surface-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current render surface.</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><a href="http://doc.qt.io/qt-5/qt3dextras-qforwardrenderer.html#surface">surface</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/qt3dextras-qforwardrenderer.html#setSurface">setSurface</a></b></span>(QObject *<i>surface</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/qt3dextras-qforwardrenderer.html#surfaceChanged">surfaceChanged</a></b></span>(QObject *<i>surface</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn surface(&self) -> ::cpp_core::MutPtr<::qt_core::QObject> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QForwardRenderer_surface(
self as *const crate::QForwardRenderer,
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```static QString Qt3DExtras::QForwardRenderer::tr(const char* s, const char* c, int n)```</span>.
pub unsafe fn tr(
s: impl ::cpp_core::CastInto<::cpp_core::Ptr<::std::os::raw::c_char>>,
c: impl ::cpp_core::CastInto<::cpp_core::Ptr<::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_extras_ffi_Qt3DExtras_QForwardRenderer_tr(
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(s)
.as_raw_ptr(),
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(c)
.as_raw_ptr(),
n,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// Calls C++ function: <span style='color: green;'>```static QString Qt3DExtras::QForwardRenderer::trUtf8(const char* s, const char* c, int n)```</span>.
pub unsafe fn tr_utf8(
s: impl ::cpp_core::CastInto<::cpp_core::Ptr<::std::os::raw::c_char>>,
c: impl ::cpp_core::CastInto<::cpp_core::Ptr<::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_extras_ffi_Qt3DExtras_QForwardRenderer_trUtf8(
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(s)
.as_raw_ptr(),
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(c)
.as_raw_ptr(),
n,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Holds the current normalized viewport rectangle.</p>
///
/// Calls C++ function: <span style='color: green;'>```QRectF Qt3DExtras::QForwardRenderer::viewportRect() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qforwardrenderer.html#viewportRect-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current normalized viewport rectangle.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QRectF </td><td class="memItemRight bottomAlign"><span class="name"><b>viewportRect</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setViewportRect</b></span>(const QRectF &<i>viewportRect</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>viewportRectChanged</b></span>(const QRectF &<i>viewportRect</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn viewport_rect(&self) -> ::cpp_core::CppBox<::qt_core::QRectF> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QForwardRenderer_viewportRect(
self as *const crate::QForwardRenderer,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
}
/// <p>The <a href="http://doc.qt.io/qt-5/qt3dextras-qgoochmaterial.html">QGoochMaterial</a> provides a material that implements the Gooch shading model, popular in CAD and CAM applications.</p>
///
/// C++ class: <span style='color: green;'>```Qt3DExtras::QGoochMaterial```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qgoochmaterial.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>The <a href="http://doc.qt.io/qt-5/qt3dextras-qgoochmaterial.html">QGoochMaterial</a> provides a material that implements the Gooch shading model, popular in CAD and CAM applications.</p>
/// <p>The Gooch lighting model uses both color and brightness to help show the curvature of 3D surfaces. This is often better than models such as Phong that rely purely upon changes in brightness. In situations such as in CAD and CAM applications where photorealism is not a goal, the Gooch shading model in conjunction with some kind of silhouette edge inking is a popular solution.</p>
/// <p>The Gooch lighting model is explained fully in the <a href="http://www.cs.northwestern.edu/~ago820/SIG98/abstract.html">original Gooch paper</a>. The Gooch model mixes a diffuse object color with a user-provided cool color and warm color to produce the end points of a color ramp that is used to shade the object based upon the cosine of the angle between the vector from the fragment to the light source and the fragment's normal vector. Optionally, a specular highlight can be added on top. The relative contributions to the cool and warm colors by the diffuse color are controlled by the alpha and beta properties respecitvely.</p>
/// <p>This material uses an effect with a single render pass approach and performs per fragment lighting. Techniques are provided for OpenGL 2, OpenGL 3 or above as well as OpenGL ES 2.</p></div>
#[repr(C)]
pub struct QGoochMaterial {
_unused: u8,
}
impl QGoochMaterial {
/// <p>Holds the current diffuse color.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QGoochMaterial::setDiffuse` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qgoochmaterial.html#diffuse-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current diffuse color.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QColor </td><td class="memItemRight bottomAlign"><span class="name"><b>diffuse</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setDiffuse</b></span>(const QColor &<i>diffuse</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>diffuseChanged</b></span>(const QColor &<i>diffuse</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slot_set_diffuse(&self) -> ::qt_core::Receiver<(*const ::qt_gui::QColor,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setDiffuse(const QColor&)\0"),
)
}
}
/// <p>Holds the current specular color.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QGoochMaterial::setSpecular` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qgoochmaterial.html#specular-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current specular color.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QColor </td><td class="memItemRight bottomAlign"><span class="name"><b>specular</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setSpecular</b></span>(const QColor &<i>specular</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>specularChanged</b></span>(const QColor &<i>specular</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slot_set_specular(&self) -> ::qt_core::Receiver<(*const ::qt_gui::QColor,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setSpecular(const QColor&)\0"),
)
}
}
/// <p>Holds the current cool color.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QGoochMaterial::setCool` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qgoochmaterial.html#cool-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current cool color.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QColor </td><td class="memItemRight bottomAlign"><span class="name"><b>cool</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setCool</b></span>(const QColor &<i>cool</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>coolChanged</b></span>(const QColor &<i>cool</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slot_set_cool(&self) -> ::qt_core::Receiver<(*const ::qt_gui::QColor,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setCool(const QColor&)\0"),
)
}
}
/// <p>Holds the current warm color.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QGoochMaterial::setWarm` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qgoochmaterial.html#warm-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current warm color.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QColor </td><td class="memItemRight bottomAlign"><span class="name"><b>warm</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setWarm</b></span>(const QColor &<i>warm</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>warmChanged</b></span>(const QColor &<i>warm</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slot_set_warm(&self) -> ::qt_core::Receiver<(*const ::qt_gui::QColor,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setWarm(const QColor&)\0"),
)
}
}
/// <p>Holds the current alpha value. The start point of the color ramp used by the Gooch shader is calculated as {c = cool + alpha * diffuse}.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QGoochMaterial::setAlpha` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qgoochmaterial.html#alpha-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current alpha value. The start point of the color ramp used by the Gooch shader is calculated as {c = cool + alpha * diffuse}.</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>alpha</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setAlpha</b></span>(float <i>alpha</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>alphaChanged</b></span>(float <i>alpha</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slot_set_alpha(&self) -> ::qt_core::Receiver<(::std::os::raw::c_float,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setAlpha(float)\0"),
)
}
}
/// <p>Holds the current beta value. The start point of the color ramp used by the Gooch shader is calculated as {c = warm + beta * diffuse}.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QGoochMaterial::setBeta` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qgoochmaterial.html#beta-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current beta value. The start point of the color ramp used by the Gooch shader is calculated as {c = warm + beta * diffuse}.</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>beta</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setBeta</b></span>(float <i>beta</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>betaChanged</b></span>(float <i>beta</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slot_set_beta(&self) -> ::qt_core::Receiver<(::std::os::raw::c_float,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setBeta(float)\0"),
)
}
}
/// <p>Holds the current shininess value. Higher values of shininess result in a smaller and brighter highlight.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QGoochMaterial::setShininess` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qgoochmaterial.html#shininess-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current shininess value. Higher values of shininess result in a smaller and brighter highlight.</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>shininess</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setShininess</b></span>(float <i>shininess</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>shininessChanged</b></span>(float <i>shininess</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slot_set_shininess(&self) -> ::qt_core::Receiver<(::std::os::raw::c_float,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setShininess(float)\0"),
)
}
}
/// <p>Holds the current diffuse color.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QGoochMaterial::diffuseChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qgoochmaterial.html#diffuse-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current diffuse color.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QColor </td><td class="memItemRight bottomAlign"><span class="name"><b>diffuse</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setDiffuse</b></span>(const QColor &<i>diffuse</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>diffuseChanged</b></span>(const QColor &<i>diffuse</i>)</td></tr>
/// </tbody></table></div></div>
pub fn diffuse_changed(&self) -> ::qt_core::Signal<(*const ::qt_gui::QColor,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"2diffuseChanged(const QColor&)\0",
),
)
}
}
/// <p>Holds the current specular color.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QGoochMaterial::specularChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qgoochmaterial.html#specular-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current specular color.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QColor </td><td class="memItemRight bottomAlign"><span class="name"><b>specular</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setSpecular</b></span>(const QColor &<i>specular</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>specularChanged</b></span>(const QColor &<i>specular</i>)</td></tr>
/// </tbody></table></div></div>
pub fn specular_changed(&self) -> ::qt_core::Signal<(*const ::qt_gui::QColor,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"2specularChanged(const QColor&)\0",
),
)
}
}
/// <p>Holds the current cool color.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QGoochMaterial::coolChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qgoochmaterial.html#cool-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current cool color.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QColor </td><td class="memItemRight bottomAlign"><span class="name"><b>cool</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setCool</b></span>(const QColor &<i>cool</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>coolChanged</b></span>(const QColor &<i>cool</i>)</td></tr>
/// </tbody></table></div></div>
pub fn cool_changed(&self) -> ::qt_core::Signal<(*const ::qt_gui::QColor,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2coolChanged(const QColor&)\0"),
)
}
}
/// <p>Holds the current warm color.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QGoochMaterial::warmChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qgoochmaterial.html#warm-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current warm color.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QColor </td><td class="memItemRight bottomAlign"><span class="name"><b>warm</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setWarm</b></span>(const QColor &<i>warm</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>warmChanged</b></span>(const QColor &<i>warm</i>)</td></tr>
/// </tbody></table></div></div>
pub fn warm_changed(&self) -> ::qt_core::Signal<(*const ::qt_gui::QColor,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2warmChanged(const QColor&)\0"),
)
}
}
/// <p>Holds the current alpha value. The start point of the color ramp used by the Gooch shader is calculated as {c = cool + alpha * diffuse}.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QGoochMaterial::alphaChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qgoochmaterial.html#alpha-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current alpha value. The start point of the color ramp used by the Gooch shader is calculated as {c = cool + alpha * diffuse}.</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>alpha</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setAlpha</b></span>(float <i>alpha</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>alphaChanged</b></span>(float <i>alpha</i>)</td></tr>
/// </tbody></table></div></div>
pub fn alpha_changed(&self) -> ::qt_core::Signal<(::std::os::raw::c_float,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2alphaChanged(float)\0"),
)
}
}
/// <p>Holds the current beta value. The start point of the color ramp used by the Gooch shader is calculated as {c = warm + beta * diffuse}.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QGoochMaterial::betaChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qgoochmaterial.html#beta-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current beta value. The start point of the color ramp used by the Gooch shader is calculated as {c = warm + beta * diffuse}.</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>beta</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setBeta</b></span>(float <i>beta</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>betaChanged</b></span>(float <i>beta</i>)</td></tr>
/// </tbody></table></div></div>
pub fn beta_changed(&self) -> ::qt_core::Signal<(::std::os::raw::c_float,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2betaChanged(float)\0"),
)
}
}
/// <p>Holds the current shininess value. Higher values of shininess result in a smaller and brighter highlight.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QGoochMaterial::shininessChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qgoochmaterial.html#shininess-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current shininess value. Higher values of shininess result in a smaller and brighter highlight.</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>shininess</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setShininess</b></span>(float <i>shininess</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>shininessChanged</b></span>(float <i>shininess</i>)</td></tr>
/// </tbody></table></div></div>
pub fn shininess_changed(&self) -> ::qt_core::Signal<(::std::os::raw::c_float,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2shininessChanged(float)\0"),
)
}
}
/// <p>Holds the current alpha value. The start point of the color ramp used by the Gooch shader is calculated as {c = cool + alpha * diffuse}.</p>
///
/// Calls C++ function: <span style='color: green;'>```float Qt3DExtras::QGoochMaterial::alpha() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qgoochmaterial.html#alpha-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current alpha value. The start point of the color ramp used by the Gooch shader is calculated as {c = cool + alpha * diffuse}.</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>alpha</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setAlpha</b></span>(float <i>alpha</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>alphaChanged</b></span>(float <i>alpha</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn alpha(&self) -> ::std::os::raw::c_float {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QGoochMaterial_alpha(
self as *const crate::QGoochMaterial,
)
}
/// <p>Holds the current beta value. The start point of the color ramp used by the Gooch shader is calculated as {c = warm + beta * diffuse}.</p>
///
/// Calls C++ function: <span style='color: green;'>```float Qt3DExtras::QGoochMaterial::beta() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qgoochmaterial.html#beta-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current beta value. The start point of the color ramp used by the Gooch shader is calculated as {c = warm + beta * diffuse}.</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>beta</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setBeta</b></span>(float <i>beta</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>betaChanged</b></span>(float <i>beta</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn beta(&self) -> ::std::os::raw::c_float {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QGoochMaterial_beta(
self as *const crate::QGoochMaterial,
)
}
/// <p>Holds the current cool color.</p>
///
/// Calls C++ function: <span style='color: green;'>```QColor Qt3DExtras::QGoochMaterial::cool() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qgoochmaterial.html#cool-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current cool color.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QColor </td><td class="memItemRight bottomAlign"><span class="name"><b>cool</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setCool</b></span>(const QColor &<i>cool</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>coolChanged</b></span>(const QColor &<i>cool</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn cool(&self) -> ::cpp_core::CppBox<::qt_gui::QColor> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QGoochMaterial_cool(
self as *const crate::QGoochMaterial,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Holds the current diffuse color.</p>
///
/// Calls C++ function: <span style='color: green;'>```QColor Qt3DExtras::QGoochMaterial::diffuse() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qgoochmaterial.html#diffuse-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current diffuse color.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QColor </td><td class="memItemRight bottomAlign"><span class="name"><b>diffuse</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setDiffuse</b></span>(const QColor &<i>diffuse</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>diffuseChanged</b></span>(const QColor &<i>diffuse</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn diffuse(&self) -> ::cpp_core::CppBox<::qt_gui::QColor> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QGoochMaterial_diffuse(
self as *const crate::QGoochMaterial,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// Calls C++ function: <span style='color: green;'>```virtual const QMetaObject* Qt3DExtras::QGoochMaterial::metaObject() const```</span>.
pub unsafe fn meta_object(&self) -> ::cpp_core::Ptr<::qt_core::QMetaObject> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QGoochMaterial_metaObject(
self as *const crate::QGoochMaterial,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// <p>Default constructs an instance of QGoochMaterial.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DExtras::QGoochMaterial::QGoochMaterial(Qt3DCore::QNode* parent = …)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qgoochmaterial.html#QGoochMaterial">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Default constructs an instance of QGoochMaterial.</p></div>
pub unsafe fn new_1a(
parent: impl ::cpp_core::CastInto<::cpp_core::MutPtr<::qt_3d_core::QNode>>,
) -> ::cpp_core::CppBox<crate::QGoochMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QGoochMaterial_QGoochMaterial(
::cpp_core::CastInto::<::cpp_core::MutPtr<::qt_3d_core::QNode>>::cast_into(parent)
.as_mut_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/qt3dextras-qgoochmaterial.html">QGoochMaterial</a> provides a material that implements the Gooch shading model, popular in CAD and CAM applications.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DExtras::QGoochMaterial::QGoochMaterial()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qgoochmaterial.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>The <a href="http://doc.qt.io/qt-5/qt3dextras-qgoochmaterial.html">QGoochMaterial</a> provides a material that implements the Gooch shading model, popular in CAD and CAM applications.</p>
/// <p>The Gooch lighting model uses both color and brightness to help show the curvature of 3D surfaces. This is often better than models such as Phong that rely purely upon changes in brightness. In situations such as in CAD and CAM applications where photorealism is not a goal, the Gooch shading model in conjunction with some kind of silhouette edge inking is a popular solution.</p>
/// <p>The Gooch lighting model is explained fully in the <a href="http://www.cs.northwestern.edu/~ago820/SIG98/abstract.html">original Gooch paper</a>. The Gooch model mixes a diffuse object color with a user-provided cool color and warm color to produce the end points of a color ramp that is used to shade the object based upon the cosine of the angle between the vector from the fragment to the light source and the fragment's normal vector. Optionally, a specular highlight can be added on top. The relative contributions to the cool and warm colors by the diffuse color are controlled by the alpha and beta properties respecitvely.</p>
/// <p>This material uses an effect with a single render pass approach and performs per fragment lighting. Techniques are provided for OpenGL 2, OpenGL 3 or above as well as OpenGL ES 2.</p></div>
pub unsafe fn new_0a() -> ::cpp_core::CppBox<crate::QGoochMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QGoochMaterial_QGoochMaterial1();
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// Calls C++ function: <span style='color: green;'>```virtual int Qt3DExtras::QGoochMaterial::qt_metacall(QMetaObject::Call arg1, int arg2, void** arg3)```</span>.
pub unsafe fn qt_metacall(
&mut self,
arg1: ::qt_core::q_meta_object::Call,
arg2: ::std::os::raw::c_int,
arg3: impl ::cpp_core::CastInto<::cpp_core::MutPtr<*mut ::std::ffi::c_void>>,
) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QGoochMaterial_qt_metacall(
self as *mut crate::QGoochMaterial,
arg1,
arg2,
::cpp_core::CastInto::<::cpp_core::MutPtr<*mut ::std::ffi::c_void>>::cast_into(arg3)
.as_mut_raw_ptr(),
)
}
/// Calls C++ function: <span style='color: green;'>```virtual void* Qt3DExtras::QGoochMaterial::qt_metacast(const char* arg1)```</span>.
pub unsafe fn qt_metacast(
&mut self,
arg1: impl ::cpp_core::CastInto<::cpp_core::Ptr<::std::os::raw::c_char>>,
) -> ::cpp_core::MutPtr<::std::ffi::c_void> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QGoochMaterial_qt_metacast(
self as *mut crate::QGoochMaterial,
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(arg1)
.as_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
/// <p>Holds the current alpha value. The start point of the color ramp used by the Gooch shader is calculated as {c = cool + alpha * diffuse}.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QGoochMaterial::setAlpha(float alpha)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qgoochmaterial.html#alpha-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current alpha value. The start point of the color ramp used by the Gooch shader is calculated as {c = cool + alpha * diffuse}.</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>alpha</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setAlpha</b></span>(float <i>alpha</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>alphaChanged</b></span>(float <i>alpha</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_alpha(&mut self, alpha: ::std::os::raw::c_float) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QGoochMaterial_setAlpha(
self as *mut crate::QGoochMaterial,
alpha,
)
}
/// <p>Holds the current beta value. The start point of the color ramp used by the Gooch shader is calculated as {c = warm + beta * diffuse}.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QGoochMaterial::setBeta(float beta)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qgoochmaterial.html#beta-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current beta value. The start point of the color ramp used by the Gooch shader is calculated as {c = warm + beta * diffuse}.</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>beta</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setBeta</b></span>(float <i>beta</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>betaChanged</b></span>(float <i>beta</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_beta(&mut self, beta: ::std::os::raw::c_float) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QGoochMaterial_setBeta(
self as *mut crate::QGoochMaterial,
beta,
)
}
/// <p>Holds the current cool color.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QGoochMaterial::setCool(const QColor& cool)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qgoochmaterial.html#cool-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current cool color.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QColor </td><td class="memItemRight bottomAlign"><span class="name"><b>cool</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setCool</b></span>(const QColor &<i>cool</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>coolChanged</b></span>(const QColor &<i>cool</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_cool(
&mut self,
cool: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_gui::QColor>>,
) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QGoochMaterial_setCool(
self as *mut crate::QGoochMaterial,
::cpp_core::CastInto::<::cpp_core::Ref<::qt_gui::QColor>>::cast_into(cool).as_raw_ptr(),
)
}
/// <p>Holds the current diffuse color.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QGoochMaterial::setDiffuse(const QColor& diffuse)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qgoochmaterial.html#diffuse-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current diffuse color.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QColor </td><td class="memItemRight bottomAlign"><span class="name"><b>diffuse</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setDiffuse</b></span>(const QColor &<i>diffuse</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>diffuseChanged</b></span>(const QColor &<i>diffuse</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_diffuse(
&mut self,
diffuse: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_gui::QColor>>,
) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QGoochMaterial_setDiffuse(
self as *mut crate::QGoochMaterial,
::cpp_core::CastInto::<::cpp_core::Ref<::qt_gui::QColor>>::cast_into(diffuse)
.as_raw_ptr(),
)
}
/// <p>Holds the current shininess value. Higher values of shininess result in a smaller and brighter highlight.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QGoochMaterial::setShininess(float shininess)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qgoochmaterial.html#shininess-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current shininess value. Higher values of shininess result in a smaller and brighter highlight.</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>shininess</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setShininess</b></span>(float <i>shininess</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>shininessChanged</b></span>(float <i>shininess</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_shininess(&mut self, shininess: ::std::os::raw::c_float) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QGoochMaterial_setShininess(
self as *mut crate::QGoochMaterial,
shininess,
)
}
/// <p>Holds the current specular color.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QGoochMaterial::setSpecular(const QColor& specular)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qgoochmaterial.html#specular-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current specular color.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QColor </td><td class="memItemRight bottomAlign"><span class="name"><b>specular</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setSpecular</b></span>(const QColor &<i>specular</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>specularChanged</b></span>(const QColor &<i>specular</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_specular(
&mut self,
specular: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_gui::QColor>>,
) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QGoochMaterial_setSpecular(
self as *mut crate::QGoochMaterial,
::cpp_core::CastInto::<::cpp_core::Ref<::qt_gui::QColor>>::cast_into(specular)
.as_raw_ptr(),
)
}
/// <p>Holds the current warm color.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QGoochMaterial::setWarm(const QColor& warm)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qgoochmaterial.html#warm-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current warm color.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QColor </td><td class="memItemRight bottomAlign"><span class="name"><b>warm</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setWarm</b></span>(const QColor &<i>warm</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>warmChanged</b></span>(const QColor &<i>warm</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_warm(
&mut self,
warm: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_gui::QColor>>,
) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QGoochMaterial_setWarm(
self as *mut crate::QGoochMaterial,
::cpp_core::CastInto::<::cpp_core::Ref<::qt_gui::QColor>>::cast_into(warm).as_raw_ptr(),
)
}
/// <p>Holds the current shininess value. Higher values of shininess result in a smaller and brighter highlight.</p>
///
/// Calls C++ function: <span style='color: green;'>```float Qt3DExtras::QGoochMaterial::shininess() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qgoochmaterial.html#shininess-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current shininess value. Higher values of shininess result in a smaller and brighter highlight.</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>shininess</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setShininess</b></span>(float <i>shininess</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>shininessChanged</b></span>(float <i>shininess</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn shininess(&self) -> ::std::os::raw::c_float {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QGoochMaterial_shininess(
self as *const crate::QGoochMaterial,
)
}
/// <p>Holds the current specular color.</p>
///
/// Calls C++ function: <span style='color: green;'>```QColor Qt3DExtras::QGoochMaterial::specular() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qgoochmaterial.html#specular-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current specular color.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QColor </td><td class="memItemRight bottomAlign"><span class="name"><b>specular</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setSpecular</b></span>(const QColor &<i>specular</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>specularChanged</b></span>(const QColor &<i>specular</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn specular(&self) -> ::cpp_core::CppBox<::qt_gui::QColor> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QGoochMaterial_specular(
self as *const crate::QGoochMaterial,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// Returns a reference to the <span style='color: green;'>```staticMetaObject```</span> field.
pub unsafe fn static_meta_object() -> ::cpp_core::Ref<::qt_core::QMetaObject> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QGoochMaterial_staticMetaObject();
::cpp_core::Ref::from_raw(ffi_result).expect("attempted to construct a null Ref")
}
/// Calls C++ function: <span style='color: green;'>```static QString Qt3DExtras::QGoochMaterial::tr(const char* s, const char* c, int n)```</span>.
pub unsafe fn tr(
s: impl ::cpp_core::CastInto<::cpp_core::Ptr<::std::os::raw::c_char>>,
c: impl ::cpp_core::CastInto<::cpp_core::Ptr<::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_extras_ffi_Qt3DExtras_QGoochMaterial_tr(
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(s)
.as_raw_ptr(),
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(c)
.as_raw_ptr(),
n,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// Calls C++ function: <span style='color: green;'>```static QString Qt3DExtras::QGoochMaterial::trUtf8(const char* s, const char* c, int n)```</span>.
pub unsafe fn tr_utf8(
s: impl ::cpp_core::CastInto<::cpp_core::Ptr<::std::os::raw::c_char>>,
c: impl ::cpp_core::CastInto<::cpp_core::Ptr<::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_extras_ffi_Qt3DExtras_QGoochMaterial_trUtf8(
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(s)
.as_raw_ptr(),
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(c)
.as_raw_ptr(),
n,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Holds the current warm color.</p>
///
/// Calls C++ function: <span style='color: green;'>```QColor Qt3DExtras::QGoochMaterial::warm() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qgoochmaterial.html#warm-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current warm color.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QColor </td><td class="memItemRight bottomAlign"><span class="name"><b>warm</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setWarm</b></span>(const QColor &<i>warm</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>warmChanged</b></span>(const QColor &<i>warm</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn warm(&self) -> ::cpp_core::CppBox<::qt_gui::QColor> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QGoochMaterial_warm(
self as *const crate::QGoochMaterial,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
}
/// <p>The <a href="http://doc.qt.io/qt-5/qt3dextras-qmetalroughmaterial.html">QMetalRoughMaterial</a> provides a default implementation of PBR lighting.</p>
///
/// C++ class: <span style='color: green;'>```Qt3DExtras::QMetalRoughMaterial```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qmetalroughmaterial.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>The <a href="http://doc.qt.io/qt-5/qt3dextras-qmetalroughmaterial.html">QMetalRoughMaterial</a> provides a default implementation of PBR lighting.</p>
/// <p>This material uses an effect with a single render pass approach and performs per fragment lighting. Techniques are provided for OpenGL 3 only.</p></div>
#[repr(C)]
pub struct QMetalRoughMaterial {
_unused: u8,
}
impl QMetalRoughMaterial {
/// <p>Holds the current base color of the material.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QMetalRoughMaterial::setBaseColor` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qmetalroughmaterial.html#baseColor-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current base color of the material.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QColor </td><td class="memItemRight bottomAlign"><span class="name"><b>baseColor</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setBaseColor</b></span>(const QColor &<i>baseColor</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>baseColorChanged</b></span>(const QColor &<i>baseColor</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slot_set_base_color(&self) -> ::qt_core::Receiver<(*const ::qt_gui::QColor,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setBaseColor(const QColor&)\0"),
)
}
}
/// <p>Holds the current metalness level of the material, since is a value between 0 (purely dielectric, the default) and 1 (purely metallic).</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QMetalRoughMaterial::setMetalness` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qmetalroughmaterial.html#metalness-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current metalness level of the material, since is a value between 0 (purely dielectric, the default) and 1 (purely metallic).</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>metalness</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setMetalness</b></span>(float <i>metalness</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>metalnessChanged</b></span>(float <i>metalness</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slot_set_metalness(&self) -> ::qt_core::Receiver<(::std::os::raw::c_float,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setMetalness(float)\0"),
)
}
}
/// <p>Holds the current roughness level of the material.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QMetalRoughMaterial::setRoughness` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qmetalroughmaterial.html#roughness-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current roughness level of the material.</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>roughness</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setRoughness</b></span>(float <i>roughness</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>roughnessChanged</b></span>(float <i>roughness</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slot_set_roughness(&self) -> ::qt_core::Receiver<(::std::os::raw::c_float,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setRoughness(float)\0"),
)
}
}
/// <p>Holds the current base color of the material.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QMetalRoughMaterial::baseColorChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qmetalroughmaterial.html#baseColor-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current base color of the material.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QColor </td><td class="memItemRight bottomAlign"><span class="name"><b>baseColor</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setBaseColor</b></span>(const QColor &<i>baseColor</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>baseColorChanged</b></span>(const QColor &<i>baseColor</i>)</td></tr>
/// </tbody></table></div></div>
pub fn base_color_changed(&self) -> ::qt_core::Signal<(*const ::qt_gui::QColor,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"2baseColorChanged(const QColor&)\0",
),
)
}
}
/// <p>Holds the current metalness level of the material, since is a value between 0 (purely dielectric, the default) and 1 (purely metallic).</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QMetalRoughMaterial::metalnessChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qmetalroughmaterial.html#metalness-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current metalness level of the material, since is a value between 0 (purely dielectric, the default) and 1 (purely metallic).</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>metalness</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setMetalness</b></span>(float <i>metalness</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>metalnessChanged</b></span>(float <i>metalness</i>)</td></tr>
/// </tbody></table></div></div>
pub fn metalness_changed(&self) -> ::qt_core::Signal<(::std::os::raw::c_float,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2metalnessChanged(float)\0"),
)
}
}
/// <p>Holds the current roughness level of the material.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QMetalRoughMaterial::roughnessChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qmetalroughmaterial.html#roughness-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current roughness level of the material.</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>roughness</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setRoughness</b></span>(float <i>roughness</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>roughnessChanged</b></span>(float <i>roughness</i>)</td></tr>
/// </tbody></table></div></div>
pub fn roughness_changed(&self) -> ::qt_core::Signal<(::std::os::raw::c_float,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2roughnessChanged(float)\0"),
)
}
}
/// <p>Holds the current ambient occlusion map texture of the material. This can only be a texture, otherwise it is ignored. By default this map is not set.</p>
///
/// Calls C++ function: <span style='color: green;'>```QVariant Qt3DExtras::QMetalRoughMaterial::ambientOcclusion() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qmetalroughmaterial.html#ambientOcclusion-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current ambient occlusion map texture of the material. This can only be a texture, otherwise it is ignored. By default this map is not set.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QVariant </td><td class="memItemRight bottomAlign"><span class="name"><b>ambientOcclusion</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setAmbientOcclusion</b></span>(const QVariant &<i>ambientOcclusion</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>ambientOcclusionChanged</b></span>(const QVariant &<i>ambientOcclusion</i>)</td></tr>
/// </tbody></table></div></div>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn ambient_occlusion(&self) -> ::cpp_core::CppBox<::qt_core::QVariant> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QMetalRoughMaterial_ambientOcclusion(
self as *const crate::QMetalRoughMaterial,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Holds the current ambient occlusion map texture of the material. This can only be a texture, otherwise it is ignored. By default this map is not set.</p>
///
/// Calls C++ function: <span style='color: green;'>```void Qt3DExtras::QMetalRoughMaterial::ambientOcclusionChanged(const QVariant& ambientOcclusion)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qmetalroughmaterial.html#ambientOcclusion-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current ambient occlusion map texture of the material. This can only be a texture, otherwise it is ignored. By default this map is not set.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QVariant </td><td class="memItemRight bottomAlign"><span class="name"><b>ambientOcclusion</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setAmbientOcclusion</b></span>(const QVariant &<i>ambientOcclusion</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>ambientOcclusionChanged</b></span>(const QVariant &<i>ambientOcclusion</i>)</td></tr>
/// </tbody></table></div></div>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn ambient_occlusion_changed(
&mut self,
ambient_occlusion: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_core::QVariant>>,
) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QMetalRoughMaterial_ambientOcclusionChanged(
self as *mut crate::QMetalRoughMaterial,
::cpp_core::CastInto::<::cpp_core::Ref<::qt_core::QVariant>>::cast_into(
ambient_occlusion,
)
.as_raw_ptr(),
)
}
/// <p>Holds the current base color of the material.</p>
///
/// Calls C++ function: <span style='color: green;'>```QColor Qt3DExtras::QMetalRoughMaterial::baseColor() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qmetalroughmaterial.html#baseColor-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current base color of the material.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QColor </td><td class="memItemRight bottomAlign"><span class="name"><b>baseColor</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setBaseColor</b></span>(const QColor &<i>baseColor</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>baseColorChanged</b></span>(const QColor &<i>baseColor</i>)</td></tr>
/// </tbody></table></div></div>
///
/// This item is available if `cpp_lib_version="5.9.7"`.
#[cfg(any(cpp_lib_version = "5.9.7", feature = "ritual_rustdoc"))]
pub unsafe fn base_color(&self) -> ::cpp_core::CppBox<::qt_gui::QColor> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QMetalRoughMaterial_baseColor(
self as *const crate::QMetalRoughMaterial,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Holds the current base color of the material. This can be either a plain color value or a texture. By default the value of this property is "grey".</p>
///
/// Calls C++ function: <span style='color: green;'>```QVariant Qt3DExtras::QMetalRoughMaterial::baseColor() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qmetalroughmaterial.html#baseColor-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current base color of the material. This can be either a plain color value or a texture. By default the value of this property is "grey".</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QVariant </td><td class="memItemRight bottomAlign"><span class="name"><b>baseColor</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setBaseColor</b></span>(const QVariant &<i>baseColor</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>baseColorChanged</b></span>(const QVariant &<i>baseColor</i>)</td></tr>
/// </tbody></table></div></div>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn base_color2(&self) -> ::cpp_core::CppBox<::qt_core::QVariant> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QMetalRoughMaterial_baseColor2(
self as *const crate::QMetalRoughMaterial,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Holds the current base color of the material. This can be either a plain color value or a texture. By default the value of this property is "grey".</p>
///
/// Calls C++ function: <span style='color: green;'>```void Qt3DExtras::QMetalRoughMaterial::baseColorChanged(const QVariant& baseColor)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qmetalroughmaterial.html#baseColor-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current base color of the material. This can be either a plain color value or a texture. By default the value of this property is "grey".</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QVariant </td><td class="memItemRight bottomAlign"><span class="name"><b>baseColor</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setBaseColor</b></span>(const QVariant &<i>baseColor</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>baseColorChanged</b></span>(const QVariant &<i>baseColor</i>)</td></tr>
/// </tbody></table></div></div>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn base_color_changed2(
&mut self,
base_color: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_core::QVariant>>,
) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QMetalRoughMaterial_baseColorChanged(
self as *mut crate::QMetalRoughMaterial,
::cpp_core::CastInto::<::cpp_core::Ref<::qt_core::QVariant>>::cast_into(base_color)
.as_raw_ptr(),
)
}
/// Calls C++ function: <span style='color: green;'>```virtual const QMetaObject* Qt3DExtras::QMetalRoughMaterial::metaObject() const```</span>.
pub unsafe fn meta_object(&self) -> ::cpp_core::Ptr<::qt_core::QMetaObject> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QMetalRoughMaterial_metaObject(
self as *const crate::QMetalRoughMaterial,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// <p>Holds the current metalness level of the material, since is a value between 0 (purely dielectric, the default) and 1 (purely metallic).</p>
///
/// Calls C++ function: <span style='color: green;'>```float Qt3DExtras::QMetalRoughMaterial::metalness() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qmetalroughmaterial.html#metalness-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current metalness level of the material, since is a value between 0 (purely dielectric, the default) and 1 (purely metallic).</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>metalness</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setMetalness</b></span>(float <i>metalness</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>metalnessChanged</b></span>(float <i>metalness</i>)</td></tr>
/// </tbody></table></div></div>
///
/// This item is available if `cpp_lib_version="5.9.7"`.
#[cfg(any(cpp_lib_version = "5.9.7", feature = "ritual_rustdoc"))]
pub unsafe fn metalness(&self) -> ::std::os::raw::c_float {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QMetalRoughMaterial_metalness(
self as *const crate::QMetalRoughMaterial,
)
}
/// <p>Holds the current metalness level of the material, since is a value between 0 (purely dielectric, the default) and 1 (purely metallic). This can be either a plain uniform value or a texture. By default the value of this property is 0.</p>
///
/// Calls C++ function: <span style='color: green;'>```QVariant Qt3DExtras::QMetalRoughMaterial::metalness() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qmetalroughmaterial.html#metalness-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current metalness level of the material, since is a value between 0 (purely dielectric, the default) and 1 (purely metallic). This can be either a plain uniform value or a texture. By default the value of this property is 0.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QVariant </td><td class="memItemRight bottomAlign"><span class="name"><b>metalness</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setMetalness</b></span>(const QVariant &<i>metalness</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>metalnessChanged</b></span>(const QVariant &<i>metalness</i>)</td></tr>
/// </tbody></table></div></div>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn metalness2(&self) -> ::cpp_core::CppBox<::qt_core::QVariant> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QMetalRoughMaterial_metalness2(
self as *const crate::QMetalRoughMaterial,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Holds the current metalness level of the material, since is a value between 0 (purely dielectric, the default) and 1 (purely metallic). This can be either a plain uniform value or a texture. By default the value of this property is 0.</p>
///
/// Calls C++ function: <span style='color: green;'>```void Qt3DExtras::QMetalRoughMaterial::metalnessChanged(const QVariant& metalness)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qmetalroughmaterial.html#metalness-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current metalness level of the material, since is a value between 0 (purely dielectric, the default) and 1 (purely metallic). This can be either a plain uniform value or a texture. By default the value of this property is 0.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QVariant </td><td class="memItemRight bottomAlign"><span class="name"><b>metalness</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setMetalness</b></span>(const QVariant &<i>metalness</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>metalnessChanged</b></span>(const QVariant &<i>metalness</i>)</td></tr>
/// </tbody></table></div></div>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn metalness_changed2(
&mut self,
metalness: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_core::QVariant>>,
) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QMetalRoughMaterial_metalnessChanged(
self as *mut crate::QMetalRoughMaterial,
::cpp_core::CastInto::<::cpp_core::Ref<::qt_core::QVariant>>::cast_into(metalness)
.as_raw_ptr(),
)
}
/// <p>Default constructs an instance of QMetalRoughMaterial.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DExtras::QMetalRoughMaterial::QMetalRoughMaterial(Qt3DCore::QNode* parent = …)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qmetalroughmaterial.html#QMetalRoughMaterial">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Default constructs an instance of QMetalRoughMaterial.</p></div>
pub unsafe fn new_1a(
parent: impl ::cpp_core::CastInto<::cpp_core::MutPtr<::qt_3d_core::QNode>>,
) -> ::cpp_core::CppBox<crate::QMetalRoughMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QMetalRoughMaterial_QMetalRoughMaterial(
::cpp_core::CastInto::<::cpp_core::MutPtr<::qt_3d_core::QNode>>::cast_into(parent)
.as_mut_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/qt3dextras-qmetalroughmaterial.html">QMetalRoughMaterial</a> provides a default implementation of PBR lighting.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DExtras::QMetalRoughMaterial::QMetalRoughMaterial()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qmetalroughmaterial.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>The <a href="http://doc.qt.io/qt-5/qt3dextras-qmetalroughmaterial.html">QMetalRoughMaterial</a> provides a default implementation of PBR lighting.</p>
/// <p>This material uses an effect with a single render pass approach and performs per fragment lighting. Techniques are provided for OpenGL 3 only.</p></div>
pub unsafe fn new_0a() -> ::cpp_core::CppBox<crate::QMetalRoughMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QMetalRoughMaterial_QMetalRoughMaterial1(
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Holds the current normal map texture of the material. This can only be a texture, otherwise it is ignored. By default this map is not set.</p>
///
/// Calls C++ function: <span style='color: green;'>```QVariant Qt3DExtras::QMetalRoughMaterial::normal() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qmetalroughmaterial.html#normal-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current normal map texture of the material. This can only be a texture, otherwise it is ignored. By default this map is not set.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QVariant </td><td class="memItemRight bottomAlign"><span class="name"><b>normal</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setNormal</b></span>(const QVariant &<i>normal</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>normalChanged</b></span>(const QVariant &<i>normal</i>)</td></tr>
/// </tbody></table></div></div>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn normal(&self) -> ::cpp_core::CppBox<::qt_core::QVariant> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QMetalRoughMaterial_normal(
self as *const crate::QMetalRoughMaterial,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Holds the current normal map texture of the material. This can only be a texture, otherwise it is ignored. By default this map is not set.</p>
///
/// Calls C++ function: <span style='color: green;'>```void Qt3DExtras::QMetalRoughMaterial::normalChanged(const QVariant& normal)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qmetalroughmaterial.html#normal-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current normal map texture of the material. This can only be a texture, otherwise it is ignored. By default this map is not set.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QVariant </td><td class="memItemRight bottomAlign"><span class="name"><b>normal</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setNormal</b></span>(const QVariant &<i>normal</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>normalChanged</b></span>(const QVariant &<i>normal</i>)</td></tr>
/// </tbody></table></div></div>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn normal_changed(
&mut self,
normal: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_core::QVariant>>,
) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QMetalRoughMaterial_normalChanged(
self as *mut crate::QMetalRoughMaterial,
::cpp_core::CastInto::<::cpp_core::Ref<::qt_core::QVariant>>::cast_into(normal)
.as_raw_ptr(),
)
}
/// Calls C++ function: <span style='color: green;'>```virtual int Qt3DExtras::QMetalRoughMaterial::qt_metacall(QMetaObject::Call arg1, int arg2, void** arg3)```</span>.
pub unsafe fn qt_metacall(
&mut self,
arg1: ::qt_core::q_meta_object::Call,
arg2: ::std::os::raw::c_int,
arg3: impl ::cpp_core::CastInto<::cpp_core::MutPtr<*mut ::std::ffi::c_void>>,
) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QMetalRoughMaterial_qt_metacall(
self as *mut crate::QMetalRoughMaterial,
arg1,
arg2,
::cpp_core::CastInto::<::cpp_core::MutPtr<*mut ::std::ffi::c_void>>::cast_into(arg3)
.as_mut_raw_ptr(),
)
}
/// Calls C++ function: <span style='color: green;'>```virtual void* Qt3DExtras::QMetalRoughMaterial::qt_metacast(const char* arg1)```</span>.
pub unsafe fn qt_metacast(
&mut self,
arg1: impl ::cpp_core::CastInto<::cpp_core::Ptr<::std::os::raw::c_char>>,
) -> ::cpp_core::MutPtr<::std::ffi::c_void> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QMetalRoughMaterial_qt_metacast(
self as *mut crate::QMetalRoughMaterial,
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(arg1)
.as_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
/// <p>Holds the current roughness level of the material.</p>
///
/// Calls C++ function: <span style='color: green;'>```float Qt3DExtras::QMetalRoughMaterial::roughness() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qmetalroughmaterial.html#roughness-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current roughness level of the material.</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>roughness</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setRoughness</b></span>(float <i>roughness</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>roughnessChanged</b></span>(float <i>roughness</i>)</td></tr>
/// </tbody></table></div></div>
///
/// This item is available if `cpp_lib_version="5.9.7"`.
#[cfg(any(cpp_lib_version = "5.9.7", feature = "ritual_rustdoc"))]
pub unsafe fn roughness(&self) -> ::std::os::raw::c_float {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QMetalRoughMaterial_roughness(
self as *const crate::QMetalRoughMaterial,
)
}
/// <p>Holds the current roughness level of the material. This can be either a plain uniform value or a texture. By default the value of this property is 0.</p>
///
/// Calls C++ function: <span style='color: green;'>```QVariant Qt3DExtras::QMetalRoughMaterial::roughness() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qmetalroughmaterial.html#roughness-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current roughness level of the material. This can be either a plain uniform value or a texture. By default the value of this property is 0.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QVariant </td><td class="memItemRight bottomAlign"><span class="name"><b>roughness</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setRoughness</b></span>(const QVariant &<i>roughness</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>roughnessChanged</b></span>(const QVariant &<i>roughness</i>)</td></tr>
/// </tbody></table></div></div>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn roughness2(&self) -> ::cpp_core::CppBox<::qt_core::QVariant> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QMetalRoughMaterial_roughness2(
self as *const crate::QMetalRoughMaterial,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Holds the current roughness level of the material. This can be either a plain uniform value or a texture. By default the value of this property is 0.</p>
///
/// Calls C++ function: <span style='color: green;'>```void Qt3DExtras::QMetalRoughMaterial::roughnessChanged(const QVariant& roughness)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qmetalroughmaterial.html#roughness-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current roughness level of the material. This can be either a plain uniform value or a texture. By default the value of this property is 0.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QVariant </td><td class="memItemRight bottomAlign"><span class="name"><b>roughness</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setRoughness</b></span>(const QVariant &<i>roughness</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>roughnessChanged</b></span>(const QVariant &<i>roughness</i>)</td></tr>
/// </tbody></table></div></div>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn roughness_changed2(
&mut self,
roughness: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_core::QVariant>>,
) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QMetalRoughMaterial_roughnessChanged(
self as *mut crate::QMetalRoughMaterial,
::cpp_core::CastInto::<::cpp_core::Ref<::qt_core::QVariant>>::cast_into(roughness)
.as_raw_ptr(),
)
}
/// <p>Holds the current ambient occlusion map texture of the material. This can only be a texture, otherwise it is ignored. By default this map is not set.</p>
///
/// Calls C++ function: <span style='color: green;'>```void Qt3DExtras::QMetalRoughMaterial::setAmbientOcclusion(const QVariant& ambientOcclusion)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qmetalroughmaterial.html#ambientOcclusion-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current ambient occlusion map texture of the material. This can only be a texture, otherwise it is ignored. By default this map is not set.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QVariant </td><td class="memItemRight bottomAlign"><span class="name"><b>ambientOcclusion</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setAmbientOcclusion</b></span>(const QVariant &<i>ambientOcclusion</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>ambientOcclusionChanged</b></span>(const QVariant &<i>ambientOcclusion</i>)</td></tr>
/// </tbody></table></div></div>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn set_ambient_occlusion(
&mut self,
ambient_occlusion: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_core::QVariant>>,
) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QMetalRoughMaterial_setAmbientOcclusion(
self as *mut crate::QMetalRoughMaterial,
::cpp_core::CastInto::<::cpp_core::Ref<::qt_core::QVariant>>::cast_into(
ambient_occlusion,
)
.as_raw_ptr(),
)
}
/// <p>Holds the current base color of the material.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QMetalRoughMaterial::setBaseColor(const QColor& baseColor)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qmetalroughmaterial.html#baseColor-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current base color of the material.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QColor </td><td class="memItemRight bottomAlign"><span class="name"><b>baseColor</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setBaseColor</b></span>(const QColor &<i>baseColor</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>baseColorChanged</b></span>(const QColor &<i>baseColor</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_base_color_q_color(
&mut self,
base_color: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_gui::QColor>>,
) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QMetalRoughMaterial_setBaseColor(
self as *mut crate::QMetalRoughMaterial,
::cpp_core::CastInto::<::cpp_core::Ref<::qt_gui::QColor>>::cast_into(base_color)
.as_raw_ptr(),
)
}
/// <p>Holds the current base color of the material. This can be either a plain color value or a texture. By default the value of this property is "grey".</p>
///
/// Calls C++ function: <span style='color: green;'>```void Qt3DExtras::QMetalRoughMaterial::setBaseColor(const QVariant& baseColor)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qmetalroughmaterial.html#baseColor-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current base color of the material. This can be either a plain color value or a texture. By default the value of this property is "grey".</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QVariant </td><td class="memItemRight bottomAlign"><span class="name"><b>baseColor</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setBaseColor</b></span>(const QVariant &<i>baseColor</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>baseColorChanged</b></span>(const QVariant &<i>baseColor</i>)</td></tr>
/// </tbody></table></div></div>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn set_base_color_q_variant(
&mut self,
base_color: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_core::QVariant>>,
) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QMetalRoughMaterial_setBaseColor2(
self as *mut crate::QMetalRoughMaterial,
::cpp_core::CastInto::<::cpp_core::Ref<::qt_core::QVariant>>::cast_into(base_color)
.as_raw_ptr(),
)
}
/// <p>Holds the current metalness level of the material, since is a value between 0 (purely dielectric, the default) and 1 (purely metallic).</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QMetalRoughMaterial::setMetalness(float metalness)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qmetalroughmaterial.html#metalness-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current metalness level of the material, since is a value between 0 (purely dielectric, the default) and 1 (purely metallic).</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>metalness</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setMetalness</b></span>(float <i>metalness</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>metalnessChanged</b></span>(float <i>metalness</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_metalness_float(&mut self, metalness: ::std::os::raw::c_float) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QMetalRoughMaterial_setMetalness(
self as *mut crate::QMetalRoughMaterial,
metalness,
)
}
/// <p>Holds the current metalness level of the material, since is a value between 0 (purely dielectric, the default) and 1 (purely metallic). This can be either a plain uniform value or a texture. By default the value of this property is 0.</p>
///
/// Calls C++ function: <span style='color: green;'>```void Qt3DExtras::QMetalRoughMaterial::setMetalness(const QVariant& metalness)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qmetalroughmaterial.html#metalness-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current metalness level of the material, since is a value between 0 (purely dielectric, the default) and 1 (purely metallic). This can be either a plain uniform value or a texture. By default the value of this property is 0.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QVariant </td><td class="memItemRight bottomAlign"><span class="name"><b>metalness</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setMetalness</b></span>(const QVariant &<i>metalness</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>metalnessChanged</b></span>(const QVariant &<i>metalness</i>)</td></tr>
/// </tbody></table></div></div>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn set_metalness_q_variant(
&mut self,
metalness: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_core::QVariant>>,
) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QMetalRoughMaterial_setMetalness2(
self as *mut crate::QMetalRoughMaterial,
::cpp_core::CastInto::<::cpp_core::Ref<::qt_core::QVariant>>::cast_into(metalness)
.as_raw_ptr(),
)
}
/// <p>Holds the current normal map texture of the material. This can only be a texture, otherwise it is ignored. By default this map is not set.</p>
///
/// Calls C++ function: <span style='color: green;'>```void Qt3DExtras::QMetalRoughMaterial::setNormal(const QVariant& normal)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qmetalroughmaterial.html#normal-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current normal map texture of the material. This can only be a texture, otherwise it is ignored. By default this map is not set.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QVariant </td><td class="memItemRight bottomAlign"><span class="name"><b>normal</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setNormal</b></span>(const QVariant &<i>normal</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>normalChanged</b></span>(const QVariant &<i>normal</i>)</td></tr>
/// </tbody></table></div></div>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn set_normal(
&mut self,
normal: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_core::QVariant>>,
) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QMetalRoughMaterial_setNormal(
self as *mut crate::QMetalRoughMaterial,
::cpp_core::CastInto::<::cpp_core::Ref<::qt_core::QVariant>>::cast_into(normal)
.as_raw_ptr(),
)
}
/// <p>Holds the current roughness level of the material.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QMetalRoughMaterial::setRoughness(float roughness)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qmetalroughmaterial.html#roughness-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current roughness level of the material.</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>roughness</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setRoughness</b></span>(float <i>roughness</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>roughnessChanged</b></span>(float <i>roughness</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_roughness_float(&mut self, roughness: ::std::os::raw::c_float) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QMetalRoughMaterial_setRoughness(
self as *mut crate::QMetalRoughMaterial,
roughness,
)
}
/// <p>Holds the current roughness level of the material. This can be either a plain uniform value or a texture. By default the value of this property is 0.</p>
///
/// Calls C++ function: <span style='color: green;'>```void Qt3DExtras::QMetalRoughMaterial::setRoughness(const QVariant& roughness)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qmetalroughmaterial.html#roughness-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current roughness level of the material. This can be either a plain uniform value or a texture. By default the value of this property is 0.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QVariant </td><td class="memItemRight bottomAlign"><span class="name"><b>roughness</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setRoughness</b></span>(const QVariant &<i>roughness</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>roughnessChanged</b></span>(const QVariant &<i>roughness</i>)</td></tr>
/// </tbody></table></div></div>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn set_roughness_q_variant(
&mut self,
roughness: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_core::QVariant>>,
) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QMetalRoughMaterial_setRoughness2(
self as *mut crate::QMetalRoughMaterial,
::cpp_core::CastInto::<::cpp_core::Ref<::qt_core::QVariant>>::cast_into(roughness)
.as_raw_ptr(),
)
}
/// <p>Holds the current texture scale. It is applied as a multiplier to texture coordinates at render time. Defaults to 1.0.</p>
///
/// Calls C++ function: <span style='color: green;'>```void Qt3DExtras::QMetalRoughMaterial::setTextureScale(float textureScale)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qmetalroughmaterial.html#textureScale-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current texture scale. It is applied as a multiplier to texture coordinates at render time. Defaults to 1.0.</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>textureScale</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setTextureScale</b></span>(float <i>textureScale</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>textureScaleChanged</b></span>(float <i>textureScale</i>)</td></tr>
/// </tbody></table></div></div>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn set_texture_scale(&mut self, texture_scale: ::std::os::raw::c_float) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QMetalRoughMaterial_setTextureScale(
self as *mut crate::QMetalRoughMaterial,
texture_scale,
)
}
/// Returns a reference to the <span style='color: green;'>```staticMetaObject```</span> field.
pub unsafe fn static_meta_object() -> ::cpp_core::Ref<::qt_core::QMetaObject> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QMetalRoughMaterial_staticMetaObject();
::cpp_core::Ref::from_raw(ffi_result).expect("attempted to construct a null Ref")
}
/// <p>Holds the current texture scale. It is applied as a multiplier to texture coordinates at render time. Defaults to 1.0.</p>
///
/// Calls C++ function: <span style='color: green;'>```float Qt3DExtras::QMetalRoughMaterial::textureScale() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qmetalroughmaterial.html#textureScale-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current texture scale. It is applied as a multiplier to texture coordinates at render time. Defaults to 1.0.</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>textureScale</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setTextureScale</b></span>(float <i>textureScale</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>textureScaleChanged</b></span>(float <i>textureScale</i>)</td></tr>
/// </tbody></table></div></div>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn texture_scale(&self) -> ::std::os::raw::c_float {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QMetalRoughMaterial_textureScale(
self as *const crate::QMetalRoughMaterial,
)
}
/// <p>Holds the current texture scale. It is applied as a multiplier to texture coordinates at render time. Defaults to 1.0.</p>
///
/// Calls C++ function: <span style='color: green;'>```void Qt3DExtras::QMetalRoughMaterial::textureScaleChanged(float textureScale)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qmetalroughmaterial.html#textureScale-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current texture scale. It is applied as a multiplier to texture coordinates at render time. Defaults to 1.0.</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>textureScale</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setTextureScale</b></span>(float <i>textureScale</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>textureScaleChanged</b></span>(float <i>textureScale</i>)</td></tr>
/// </tbody></table></div></div>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn texture_scale_changed(&mut self, texture_scale: ::std::os::raw::c_float) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QMetalRoughMaterial_textureScaleChanged(
self as *mut crate::QMetalRoughMaterial,
texture_scale,
)
}
/// Calls C++ function: <span style='color: green;'>```static QString Qt3DExtras::QMetalRoughMaterial::tr(const char* s, const char* c, int n)```</span>.
pub unsafe fn tr(
s: impl ::cpp_core::CastInto<::cpp_core::Ptr<::std::os::raw::c_char>>,
c: impl ::cpp_core::CastInto<::cpp_core::Ptr<::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_extras_ffi_Qt3DExtras_QMetalRoughMaterial_tr(
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(s)
.as_raw_ptr(),
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(c)
.as_raw_ptr(),
n,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// Calls C++ function: <span style='color: green;'>```static QString Qt3DExtras::QMetalRoughMaterial::trUtf8(const char* s, const char* c, int n)```</span>.
pub unsafe fn tr_utf8(
s: impl ::cpp_core::CastInto<::cpp_core::Ptr<::std::os::raw::c_char>>,
c: impl ::cpp_core::CastInto<::cpp_core::Ptr<::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_extras_ffi_Qt3DExtras_QMetalRoughMaterial_trUtf8(
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(s)
.as_raw_ptr(),
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(c)
.as_raw_ptr(),
n,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
}
/// <p>The <a href="http://doc.qt.io/qt-5/qt3dextras-qmorphphongmaterial.html">QMorphPhongMaterial</a> class provides a default implementation of the phong lighting effect.</p>
///
/// C++ class: <span style='color: green;'>```Qt3DExtras::QMorphPhongMaterial```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qmorphphongmaterial.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>The <a href="http://doc.qt.io/qt-5/qt3dextras-qmorphphongmaterial.html">QMorphPhongMaterial</a> class provides a default implementation of the phong lighting effect.</p>
/// <p>The phong lighting effect is based on the combination of 3 lighting components ambient, diffuse and specular. The relative strengths of these components are controlled by means of their reflectivity coefficients which are modelled as RGB triplets:</p>
/// <ul>
/// <li>Ambient is the color that is emitted by an object without any other light source.</li>
/// <li>Diffuse is the color that is emitted for rought surface reflections with the lights.</li>
/// <li>Specular is the color emitted for shiny surface reflections with the lights.</li>
/// <li>The shininess of a surface is controlled by a float property.</li>
/// </ul>
/// <p>This material uses an effect with a single render pass approach and performs per fragment lighting. Techniques are provided for OpenGL 2, OpenGL 3 or above as well as OpenGL ES 2.</p></div>
#[repr(C)]
pub struct QMorphPhongMaterial {
_unused: u8,
}
impl QMorphPhongMaterial {
/// <p>Holds the ambient color.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QMorphPhongMaterial::setAmbient` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qmorphphongmaterial.html#ambient-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the ambient color.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QColor </td><td class="memItemRight bottomAlign"><span class="name"><b>ambient</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setAmbient</b></span>(const QColor &<i>ambient</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>ambientChanged</b></span>(const QColor &<i>ambient</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slot_set_ambient(&self) -> ::qt_core::Receiver<(*const ::qt_gui::QColor,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setAmbient(const QColor&)\0"),
)
}
}
/// <p>Holds the diffuse color.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QMorphPhongMaterial::setDiffuse` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qmorphphongmaterial.html#diffuse-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the diffuse color.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QColor </td><td class="memItemRight bottomAlign"><span class="name"><b>diffuse</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setDiffuse</b></span>(const QColor &<i>diffuse</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>diffuseChanged</b></span>(const QColor &<i>diffuse</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slot_set_diffuse(&self) -> ::qt_core::Receiver<(*const ::qt_gui::QColor,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setDiffuse(const QColor&)\0"),
)
}
}
/// <p>Holds the specular color.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QMorphPhongMaterial::setSpecular` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qmorphphongmaterial.html#specular-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the specular color.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QColor </td><td class="memItemRight bottomAlign"><span class="name"><b>specular</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setSpecular</b></span>(const QColor &<i>specular</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>specularChanged</b></span>(const QColor &<i>specular</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slot_set_specular(&self) -> ::qt_core::Receiver<(*const ::qt_gui::QColor,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setSpecular(const QColor&)\0"),
)
}
}
/// <p>Holds the shininess exponent.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QMorphPhongMaterial::setShininess` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qmorphphongmaterial.html#shininess-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the shininess exponent.</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>shininess</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setShininess</b></span>(float <i>shininess</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>shininessChanged</b></span>(float <i>shininess</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slot_set_shininess(&self) -> ::qt_core::Receiver<(::std::os::raw::c_float,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setShininess(float)\0"),
)
}
}
/// <p>Contains the interpolation method of the Phong lighting effect.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QMorphPhongMaterial::setInterpolator` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qmorphphongmaterial.html#interpolator-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Contains the interpolation method of the Phong lighting effect.</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>interpolator</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setInterpolator</b></span>(float <i>interpolator</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>interpolatorChanged</b></span>(float <i>interpolator</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slot_set_interpolator(&self) -> ::qt_core::Receiver<(::std::os::raw::c_float,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setInterpolator(float)\0"),
)
}
}
/// <p>Holds the ambient color.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QMorphPhongMaterial::ambientChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qmorphphongmaterial.html#ambient-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the ambient color.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QColor </td><td class="memItemRight bottomAlign"><span class="name"><b>ambient</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setAmbient</b></span>(const QColor &<i>ambient</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>ambientChanged</b></span>(const QColor &<i>ambient</i>)</td></tr>
/// </tbody></table></div></div>
pub fn ambient_changed(&self) -> ::qt_core::Signal<(*const ::qt_gui::QColor,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"2ambientChanged(const QColor&)\0",
),
)
}
}
/// <p>Holds the diffuse color.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QMorphPhongMaterial::diffuseChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qmorphphongmaterial.html#diffuse-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the diffuse color.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QColor </td><td class="memItemRight bottomAlign"><span class="name"><b>diffuse</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setDiffuse</b></span>(const QColor &<i>diffuse</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>diffuseChanged</b></span>(const QColor &<i>diffuse</i>)</td></tr>
/// </tbody></table></div></div>
pub fn diffuse_changed(&self) -> ::qt_core::Signal<(*const ::qt_gui::QColor,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"2diffuseChanged(const QColor&)\0",
),
)
}
}
/// <p>Holds the specular color.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QMorphPhongMaterial::specularChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qmorphphongmaterial.html#specular-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the specular color.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QColor </td><td class="memItemRight bottomAlign"><span class="name"><b>specular</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setSpecular</b></span>(const QColor &<i>specular</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>specularChanged</b></span>(const QColor &<i>specular</i>)</td></tr>
/// </tbody></table></div></div>
pub fn specular_changed(&self) -> ::qt_core::Signal<(*const ::qt_gui::QColor,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"2specularChanged(const QColor&)\0",
),
)
}
}
/// <p>Holds the shininess exponent.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QMorphPhongMaterial::shininessChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qmorphphongmaterial.html#shininess-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the shininess exponent.</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>shininess</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setShininess</b></span>(float <i>shininess</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>shininessChanged</b></span>(float <i>shininess</i>)</td></tr>
/// </tbody></table></div></div>
pub fn shininess_changed(&self) -> ::qt_core::Signal<(::std::os::raw::c_float,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2shininessChanged(float)\0"),
)
}
}
/// <p>Contains the interpolation method of the Phong lighting effect.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QMorphPhongMaterial::interpolatorChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qmorphphongmaterial.html#interpolator-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Contains the interpolation method of the Phong lighting effect.</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>interpolator</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setInterpolator</b></span>(float <i>interpolator</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>interpolatorChanged</b></span>(float <i>interpolator</i>)</td></tr>
/// </tbody></table></div></div>
pub fn interpolator_changed(&self) -> ::qt_core::Signal<(::std::os::raw::c_float,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2interpolatorChanged(float)\0"),
)
}
}
/// <p>Holds the ambient color.</p>
///
/// Calls C++ function: <span style='color: green;'>```QColor Qt3DExtras::QMorphPhongMaterial::ambient() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qmorphphongmaterial.html#ambient-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the ambient color.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QColor </td><td class="memItemRight bottomAlign"><span class="name"><b>ambient</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setAmbient</b></span>(const QColor &<i>ambient</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>ambientChanged</b></span>(const QColor &<i>ambient</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn ambient(&self) -> ::cpp_core::CppBox<::qt_gui::QColor> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QMorphPhongMaterial_ambient(
self as *const crate::QMorphPhongMaterial,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Holds the diffuse color.</p>
///
/// Calls C++ function: <span style='color: green;'>```QColor Qt3DExtras::QMorphPhongMaterial::diffuse() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qmorphphongmaterial.html#diffuse-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the diffuse color.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QColor </td><td class="memItemRight bottomAlign"><span class="name"><b>diffuse</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setDiffuse</b></span>(const QColor &<i>diffuse</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>diffuseChanged</b></span>(const QColor &<i>diffuse</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn diffuse(&self) -> ::cpp_core::CppBox<::qt_gui::QColor> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QMorphPhongMaterial_diffuse(
self as *const crate::QMorphPhongMaterial,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Contains the interpolation method of the Phong lighting effect.</p>
///
/// Calls C++ function: <span style='color: green;'>```float Qt3DExtras::QMorphPhongMaterial::interpolator() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qmorphphongmaterial.html#interpolator-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Contains the interpolation method of the Phong lighting effect.</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>interpolator</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setInterpolator</b></span>(float <i>interpolator</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>interpolatorChanged</b></span>(float <i>interpolator</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn interpolator(&self) -> ::std::os::raw::c_float {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QMorphPhongMaterial_interpolator(
self as *const crate::QMorphPhongMaterial,
)
}
/// Calls C++ function: <span style='color: green;'>```virtual const QMetaObject* Qt3DExtras::QMorphPhongMaterial::metaObject() const```</span>.
pub unsafe fn meta_object(&self) -> ::cpp_core::Ptr<::qt_core::QMetaObject> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QMorphPhongMaterial_metaObject(
self as *const crate::QMorphPhongMaterial,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// <p>Default constructs an instance of QMorphPhongMaterial.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DExtras::QMorphPhongMaterial::QMorphPhongMaterial(Qt3DCore::QNode* parent = …)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qmorphphongmaterial.html#QMorphPhongMaterial">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Default constructs an instance of QMorphPhongMaterial.</p></div>
pub unsafe fn new_1a(
parent: impl ::cpp_core::CastInto<::cpp_core::MutPtr<::qt_3d_core::QNode>>,
) -> ::cpp_core::CppBox<crate::QMorphPhongMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QMorphPhongMaterial_QMorphPhongMaterial(
::cpp_core::CastInto::<::cpp_core::MutPtr<::qt_3d_core::QNode>>::cast_into(parent)
.as_mut_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/qt3dextras-qmorphphongmaterial.html">QMorphPhongMaterial</a> class provides a default implementation of the phong lighting effect.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DExtras::QMorphPhongMaterial::QMorphPhongMaterial()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qmorphphongmaterial.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>The <a href="http://doc.qt.io/qt-5/qt3dextras-qmorphphongmaterial.html">QMorphPhongMaterial</a> class provides a default implementation of the phong lighting effect.</p>
/// <p>The phong lighting effect is based on the combination of 3 lighting components ambient, diffuse and specular. The relative strengths of these components are controlled by means of their reflectivity coefficients which are modelled as RGB triplets:</p>
/// <ul>
/// <li>Ambient is the color that is emitted by an object without any other light source.</li>
/// <li>Diffuse is the color that is emitted for rought surface reflections with the lights.</li>
/// <li>Specular is the color emitted for shiny surface reflections with the lights.</li>
/// <li>The shininess of a surface is controlled by a float property.</li>
/// </ul>
/// <p>This material uses an effect with a single render pass approach and performs per fragment lighting. Techniques are provided for OpenGL 2, OpenGL 3 or above as well as OpenGL ES 2.</p></div>
pub unsafe fn new_0a() -> ::cpp_core::CppBox<crate::QMorphPhongMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QMorphPhongMaterial_QMorphPhongMaterial1(
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// Calls C++ function: <span style='color: green;'>```virtual int Qt3DExtras::QMorphPhongMaterial::qt_metacall(QMetaObject::Call arg1, int arg2, void** arg3)```</span>.
pub unsafe fn qt_metacall(
&mut self,
arg1: ::qt_core::q_meta_object::Call,
arg2: ::std::os::raw::c_int,
arg3: impl ::cpp_core::CastInto<::cpp_core::MutPtr<*mut ::std::ffi::c_void>>,
) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QMorphPhongMaterial_qt_metacall(
self as *mut crate::QMorphPhongMaterial,
arg1,
arg2,
::cpp_core::CastInto::<::cpp_core::MutPtr<*mut ::std::ffi::c_void>>::cast_into(arg3)
.as_mut_raw_ptr(),
)
}
/// Calls C++ function: <span style='color: green;'>```virtual void* Qt3DExtras::QMorphPhongMaterial::qt_metacast(const char* arg1)```</span>.
pub unsafe fn qt_metacast(
&mut self,
arg1: impl ::cpp_core::CastInto<::cpp_core::Ptr<::std::os::raw::c_char>>,
) -> ::cpp_core::MutPtr<::std::ffi::c_void> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QMorphPhongMaterial_qt_metacast(
self as *mut crate::QMorphPhongMaterial,
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(arg1)
.as_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
/// <p>Holds the ambient color.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QMorphPhongMaterial::setAmbient(const QColor& ambient)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qmorphphongmaterial.html#ambient-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the ambient color.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QColor </td><td class="memItemRight bottomAlign"><span class="name"><b>ambient</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setAmbient</b></span>(const QColor &<i>ambient</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>ambientChanged</b></span>(const QColor &<i>ambient</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_ambient(
&mut self,
ambient: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_gui::QColor>>,
) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QMorphPhongMaterial_setAmbient(
self as *mut crate::QMorphPhongMaterial,
::cpp_core::CastInto::<::cpp_core::Ref<::qt_gui::QColor>>::cast_into(ambient)
.as_raw_ptr(),
)
}
/// <p>Holds the diffuse color.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QMorphPhongMaterial::setDiffuse(const QColor& diffuse)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qmorphphongmaterial.html#diffuse-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the diffuse color.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QColor </td><td class="memItemRight bottomAlign"><span class="name"><b>diffuse</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setDiffuse</b></span>(const QColor &<i>diffuse</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>diffuseChanged</b></span>(const QColor &<i>diffuse</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_diffuse(
&mut self,
diffuse: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_gui::QColor>>,
) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QMorphPhongMaterial_setDiffuse(
self as *mut crate::QMorphPhongMaterial,
::cpp_core::CastInto::<::cpp_core::Ref<::qt_gui::QColor>>::cast_into(diffuse)
.as_raw_ptr(),
)
}
/// <p>Contains the interpolation method of the Phong lighting effect.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QMorphPhongMaterial::setInterpolator(float interpolator)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qmorphphongmaterial.html#interpolator-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Contains the interpolation method of the Phong lighting effect.</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>interpolator</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setInterpolator</b></span>(float <i>interpolator</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>interpolatorChanged</b></span>(float <i>interpolator</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_interpolator(&mut self, interpolator: ::std::os::raw::c_float) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QMorphPhongMaterial_setInterpolator(
self as *mut crate::QMorphPhongMaterial,
interpolator,
)
}
/// <p>Holds the shininess exponent.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QMorphPhongMaterial::setShininess(float shininess)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qmorphphongmaterial.html#shininess-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the shininess exponent.</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>shininess</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setShininess</b></span>(float <i>shininess</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>shininessChanged</b></span>(float <i>shininess</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_shininess(&mut self, shininess: ::std::os::raw::c_float) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QMorphPhongMaterial_setShininess(
self as *mut crate::QMorphPhongMaterial,
shininess,
)
}
/// <p>Holds the specular color.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QMorphPhongMaterial::setSpecular(const QColor& specular)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qmorphphongmaterial.html#specular-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the specular color.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QColor </td><td class="memItemRight bottomAlign"><span class="name"><b>specular</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setSpecular</b></span>(const QColor &<i>specular</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>specularChanged</b></span>(const QColor &<i>specular</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_specular(
&mut self,
specular: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_gui::QColor>>,
) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QMorphPhongMaterial_setSpecular(
self as *mut crate::QMorphPhongMaterial,
::cpp_core::CastInto::<::cpp_core::Ref<::qt_gui::QColor>>::cast_into(specular)
.as_raw_ptr(),
)
}
/// <p>Holds the shininess exponent.</p>
///
/// Calls C++ function: <span style='color: green;'>```float Qt3DExtras::QMorphPhongMaterial::shininess() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qmorphphongmaterial.html#shininess-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the shininess exponent.</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>shininess</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setShininess</b></span>(float <i>shininess</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>shininessChanged</b></span>(float <i>shininess</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn shininess(&self) -> ::std::os::raw::c_float {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QMorphPhongMaterial_shininess(
self as *const crate::QMorphPhongMaterial,
)
}
/// <p>Holds the specular color.</p>
///
/// Calls C++ function: <span style='color: green;'>```QColor Qt3DExtras::QMorphPhongMaterial::specular() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qmorphphongmaterial.html#specular-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the specular color.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QColor </td><td class="memItemRight bottomAlign"><span class="name"><b>specular</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setSpecular</b></span>(const QColor &<i>specular</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>specularChanged</b></span>(const QColor &<i>specular</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn specular(&self) -> ::cpp_core::CppBox<::qt_gui::QColor> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QMorphPhongMaterial_specular(
self as *const crate::QMorphPhongMaterial,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// Returns a reference to the <span style='color: green;'>```staticMetaObject```</span> field.
pub unsafe fn static_meta_object() -> ::cpp_core::Ref<::qt_core::QMetaObject> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QMorphPhongMaterial_staticMetaObject();
::cpp_core::Ref::from_raw(ffi_result).expect("attempted to construct a null Ref")
}
/// Calls C++ function: <span style='color: green;'>```static QString Qt3DExtras::QMorphPhongMaterial::tr(const char* s, const char* c, int n)```</span>.
pub unsafe fn tr(
s: impl ::cpp_core::CastInto<::cpp_core::Ptr<::std::os::raw::c_char>>,
c: impl ::cpp_core::CastInto<::cpp_core::Ptr<::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_extras_ffi_Qt3DExtras_QMorphPhongMaterial_tr(
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(s)
.as_raw_ptr(),
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(c)
.as_raw_ptr(),
n,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// Calls C++ function: <span style='color: green;'>```static QString Qt3DExtras::QMorphPhongMaterial::trUtf8(const char* s, const char* c, int n)```</span>.
pub unsafe fn tr_utf8(
s: impl ::cpp_core::CastInto<::cpp_core::Ptr<::std::os::raw::c_char>>,
c: impl ::cpp_core::CastInto<::cpp_core::Ptr<::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_extras_ffi_Qt3DExtras_QMorphPhongMaterial_trUtf8(
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(s)
.as_raw_ptr(),
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(c)
.as_raw_ptr(),
n,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
}
/// <p>The <a href="http://doc.qt.io/qt-5/qt3dextras-qnormaldiffusemapmaterial.html">QNormalDiffuseMapMaterial</a> provides a default implementation of the phong lighting and bump effect where the diffuse light component is read from a texture map and the normals of the mesh being rendered from a normal texture map.</p>
///
/// C++ class: <span style='color: green;'>```Qt3DExtras::QNormalDiffuseMapMaterial```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qnormaldiffusemapmaterial.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>The <a href="http://doc.qt.io/qt-5/qt3dextras-qnormaldiffusemapmaterial.html">QNormalDiffuseMapMaterial</a> provides a default implementation of the phong lighting and bump effect where the diffuse light component is read from a texture map and the normals of the mesh being rendered from a normal texture map.</p>
/// <p>The specular lighting effect is based on the combination of 3 lighting components ambient, diffuse and specular. The relative strengths of these components are controlled by means of their reflectivity coefficients which are modelled as RGB triplets:</p>
/// <ul>
/// <li>Ambient is the color that is emitted by an object without any other light source.</li>
/// <li>Diffuse is the color that is emitted for rought surface reflections with the lights.</li>
/// <li>Specular is the color emitted for shiny surface reflections with the lights.</li>
/// <li>The shininess of a surface is controlled by a float property.</li>
/// </ul>
/// <p>This material uses an effect with a single render pass approach and performs per fragment lighting. Techniques are provided for OpenGL 2, OpenGL 3 or above as well as OpenGL ES 2.</p></div>
#[repr(C)]
pub struct QNormalDiffuseMapMaterial {
_unused: u8,
}
impl QNormalDiffuseMapMaterial {
/// <p>Holds the current ambient color.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QNormalDiffuseMapMaterial::setAmbient` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qnormaldiffusemapmaterial.html#ambient-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current ambient color.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QColor </td><td class="memItemRight bottomAlign"><span class="name"><b>ambient</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setAmbient</b></span>(const QColor &<i>ambient</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>ambientChanged</b></span>(const QColor &<i>ambient</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slot_set_ambient(&self) -> ::qt_core::Receiver<(*const ::qt_gui::QColor,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setAmbient(const QColor&)\0"),
)
}
}
/// <p>Holds the current specular color.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QNormalDiffuseMapMaterial::setSpecular` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qnormaldiffusemapmaterial.html#specular-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current specular color.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QColor </td><td class="memItemRight bottomAlign"><span class="name"><b>specular</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setSpecular</b></span>(const QColor &<i>specular</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>specularChanged</b></span>(const QColor &<i>specular</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slot_set_specular(&self) -> ::qt_core::Receiver<(*const ::qt_gui::QColor,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setSpecular(const QColor&)\0"),
)
}
}
/// <p>Holds the current diffuse map texture.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QNormalDiffuseMapMaterial::setDiffuse` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qnormaldiffusemapmaterial.html#diffuse-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current diffuse map texture.</p>
/// <p>By default, the diffuse texture has these properties:</p>
/// <ul>
/// <li>Linear minification and magnification filters</li>
/// <li>Linear mipmap with mipmapping enabled</li>
/// <li>Repeat wrap modeM</li>
/// <li>Maximum anisotropy of 16.0</li>
/// </ul>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DRender::QAbstractTexture *</td><td class="memItemRight bottomAlign"><span class="name"><b>diffuse</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setDiffuse</b></span>(Qt3DRender::QAbstractTexture *<i>diffuse</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>diffuseChanged</b></span>(Qt3DRender::QAbstractTexture *<i>diffuse</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slot_set_diffuse(
&self,
) -> ::qt_core::Receiver<(*mut ::qt_3d_render::QAbstractTexture,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"1setDiffuse(Qt3DRender::QAbstractTexture*)\0",
),
)
}
}
/// <p>Holds the current normal map texture.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QNormalDiffuseMapMaterial::setNormal` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qnormaldiffusemapmaterial.html#normal-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current normal map texture.</p>
/// <p>By default, the normal texture has the following properties:</p>
/// <ul>
/// <li>Linear minification and magnification filters</li>
/// <li>Repeat wrap mode</li>
/// <li>Maximum anisotropy of 16.0</li>
/// </ul>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DRender::QAbstractTexture *</td><td class="memItemRight bottomAlign"><span class="name"><b>normal</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setNormal</b></span>(Qt3DRender::QAbstractTexture *<i>normal</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>normalChanged</b></span>(Qt3DRender::QAbstractTexture *<i>normal</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slot_set_normal(&self) -> ::qt_core::Receiver<(*mut ::qt_3d_render::QAbstractTexture,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"1setNormal(Qt3DRender::QAbstractTexture*)\0",
),
)
}
}
/// <p>Holds the current shininess as a float value.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QNormalDiffuseMapMaterial::setShininess` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qnormaldiffusemapmaterial.html#shininess-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current shininess as a float 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>shininess</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setShininess</b></span>(float <i>shininess</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>shininessChanged</b></span>(float <i>shininess</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slot_set_shininess(&self) -> ::qt_core::Receiver<(::std::os::raw::c_float,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setShininess(float)\0"),
)
}
}
/// <p>Holds the current texture scale. It is applied as a multiplier to texture coordinates at render time. Defaults to 1.0.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QNormalDiffuseMapMaterial::setTextureScale` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qnormaldiffusemapmaterial.html#textureScale-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current texture scale. It is applied as a multiplier to texture coordinates at render time. Defaults to 1.0.</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>textureScale</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setTextureScale</b></span>(float <i>textureScale</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>textureScaleChanged</b></span>(float <i>textureScale</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slot_set_texture_scale(&self) -> ::qt_core::Receiver<(::std::os::raw::c_float,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setTextureScale(float)\0"),
)
}
}
/// <p>Holds the current ambient color.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QNormalDiffuseMapMaterial::ambientChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qnormaldiffusemapmaterial.html#ambient-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current ambient color.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QColor </td><td class="memItemRight bottomAlign"><span class="name"><b>ambient</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setAmbient</b></span>(const QColor &<i>ambient</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>ambientChanged</b></span>(const QColor &<i>ambient</i>)</td></tr>
/// </tbody></table></div></div>
pub fn ambient_changed(&self) -> ::qt_core::Signal<(*const ::qt_gui::QColor,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"2ambientChanged(const QColor&)\0",
),
)
}
}
/// <p>Holds the current diffuse map texture.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QNormalDiffuseMapMaterial::diffuseChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qnormaldiffusemapmaterial.html#diffuse-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current diffuse map texture.</p>
/// <p>By default, the diffuse texture has these properties:</p>
/// <ul>
/// <li>Linear minification and magnification filters</li>
/// <li>Linear mipmap with mipmapping enabled</li>
/// <li>Repeat wrap modeM</li>
/// <li>Maximum anisotropy of 16.0</li>
/// </ul>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DRender::QAbstractTexture *</td><td class="memItemRight bottomAlign"><span class="name"><b>diffuse</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setDiffuse</b></span>(Qt3DRender::QAbstractTexture *<i>diffuse</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>diffuseChanged</b></span>(Qt3DRender::QAbstractTexture *<i>diffuse</i>)</td></tr>
/// </tbody></table></div></div>
pub fn diffuse_changed(&self) -> ::qt_core::Signal<(*mut ::qt_3d_render::QAbstractTexture,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"2diffuseChanged(Qt3DRender::QAbstractTexture*)\0",
),
)
}
}
/// <p>Holds the current normal map texture.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QNormalDiffuseMapMaterial::normalChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qnormaldiffusemapmaterial.html#normal-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current normal map texture.</p>
/// <p>By default, the normal texture has the following properties:</p>
/// <ul>
/// <li>Linear minification and magnification filters</li>
/// <li>Repeat wrap mode</li>
/// <li>Maximum anisotropy of 16.0</li>
/// </ul>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DRender::QAbstractTexture *</td><td class="memItemRight bottomAlign"><span class="name"><b>normal</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setNormal</b></span>(Qt3DRender::QAbstractTexture *<i>normal</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>normalChanged</b></span>(Qt3DRender::QAbstractTexture *<i>normal</i>)</td></tr>
/// </tbody></table></div></div>
pub fn normal_changed(&self) -> ::qt_core::Signal<(*mut ::qt_3d_render::QAbstractTexture,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"2normalChanged(Qt3DRender::QAbstractTexture*)\0",
),
)
}
}
/// <p>Holds the current specular color.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QNormalDiffuseMapMaterial::specularChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qnormaldiffusemapmaterial.html#specular-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current specular color.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QColor </td><td class="memItemRight bottomAlign"><span class="name"><b>specular</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setSpecular</b></span>(const QColor &<i>specular</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>specularChanged</b></span>(const QColor &<i>specular</i>)</td></tr>
/// </tbody></table></div></div>
pub fn specular_changed(&self) -> ::qt_core::Signal<(*const ::qt_gui::QColor,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"2specularChanged(const QColor&)\0",
),
)
}
}
/// <p>Holds the current shininess as a float value.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QNormalDiffuseMapMaterial::shininessChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qnormaldiffusemapmaterial.html#shininess-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current shininess as a float 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>shininess</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setShininess</b></span>(float <i>shininess</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>shininessChanged</b></span>(float <i>shininess</i>)</td></tr>
/// </tbody></table></div></div>
pub fn shininess_changed(&self) -> ::qt_core::Signal<(::std::os::raw::c_float,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2shininessChanged(float)\0"),
)
}
}
/// <p>Holds the current texture scale. It is applied as a multiplier to texture coordinates at render time. Defaults to 1.0.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QNormalDiffuseMapMaterial::textureScaleChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qnormaldiffusemapmaterial.html#textureScale-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current texture scale. It is applied as a multiplier to texture coordinates at render time. Defaults to 1.0.</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>textureScale</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setTextureScale</b></span>(float <i>textureScale</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>textureScaleChanged</b></span>(float <i>textureScale</i>)</td></tr>
/// </tbody></table></div></div>
pub fn texture_scale_changed(&self) -> ::qt_core::Signal<(::std::os::raw::c_float,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2textureScaleChanged(float)\0"),
)
}
}
/// <p>Holds the current ambient color.</p>
///
/// Calls C++ function: <span style='color: green;'>```QColor Qt3DExtras::QNormalDiffuseMapMaterial::ambient() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qnormaldiffusemapmaterial.html#ambient-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current ambient color.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QColor </td><td class="memItemRight bottomAlign"><span class="name"><b>ambient</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setAmbient</b></span>(const QColor &<i>ambient</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>ambientChanged</b></span>(const QColor &<i>ambient</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn ambient(&self) -> ::cpp_core::CppBox<::qt_gui::QColor> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QNormalDiffuseMapMaterial_ambient(
self as *const crate::QNormalDiffuseMapMaterial,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Holds the current diffuse map texture.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QAbstractTexture* Qt3DExtras::QNormalDiffuseMapMaterial::diffuse() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qnormaldiffusemapmaterial.html#diffuse-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current diffuse map texture.</p>
/// <p>By default, the diffuse texture has these properties:</p>
/// <ul>
/// <li>Linear minification and magnification filters</li>
/// <li>Linear mipmap with mipmapping enabled</li>
/// <li>Repeat wrap modeM</li>
/// <li>Maximum anisotropy of 16.0</li>
/// </ul>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DRender::QAbstractTexture *</td><td class="memItemRight bottomAlign"><span class="name"><b>diffuse</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setDiffuse</b></span>(Qt3DRender::QAbstractTexture *<i>diffuse</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>diffuseChanged</b></span>(Qt3DRender::QAbstractTexture *<i>diffuse</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn diffuse(&self) -> ::cpp_core::MutPtr<::qt_3d_render::QAbstractTexture> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QNormalDiffuseMapMaterial_diffuse(
self as *const crate::QNormalDiffuseMapMaterial,
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```virtual const QMetaObject* Qt3DExtras::QNormalDiffuseMapMaterial::metaObject() const```</span>.
pub unsafe fn meta_object(&self) -> ::cpp_core::Ptr<::qt_core::QMetaObject> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QNormalDiffuseMapMaterial_metaObject(
self as *const crate::QNormalDiffuseMapMaterial,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// <p>Default constructs an instance of QNormalDiffuseMapMaterial.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DExtras::QNormalDiffuseMapMaterial::QNormalDiffuseMapMaterial(Qt3DCore::QNode* parent = …)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qnormaldiffusemapmaterial.html#QNormalDiffuseMapMaterial">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Default constructs an instance of QNormalDiffuseMapMaterial.</p></div>
pub unsafe fn new_1a(
parent: impl ::cpp_core::CastInto<::cpp_core::MutPtr<::qt_3d_core::QNode>>,
) -> ::cpp_core::CppBox<crate::QNormalDiffuseMapMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QNormalDiffuseMapMaterial_QNormalDiffuseMapMaterial(::cpp_core::CastInto::<::cpp_core::MutPtr<::qt_3d_core::QNode>>::cast_into(parent).as_mut_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/qt3dextras-qnormaldiffusemapmaterial.html">QNormalDiffuseMapMaterial</a> provides a default implementation of the phong lighting and bump effect where the diffuse light component is read from a texture map and the normals of the mesh being rendered from a normal texture map.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DExtras::QNormalDiffuseMapMaterial::QNormalDiffuseMapMaterial()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qnormaldiffusemapmaterial.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>The <a href="http://doc.qt.io/qt-5/qt3dextras-qnormaldiffusemapmaterial.html">QNormalDiffuseMapMaterial</a> provides a default implementation of the phong lighting and bump effect where the diffuse light component is read from a texture map and the normals of the mesh being rendered from a normal texture map.</p>
/// <p>The specular lighting effect is based on the combination of 3 lighting components ambient, diffuse and specular. The relative strengths of these components are controlled by means of their reflectivity coefficients which are modelled as RGB triplets:</p>
/// <ul>
/// <li>Ambient is the color that is emitted by an object without any other light source.</li>
/// <li>Diffuse is the color that is emitted for rought surface reflections with the lights.</li>
/// <li>Specular is the color emitted for shiny surface reflections with the lights.</li>
/// <li>The shininess of a surface is controlled by a float property.</li>
/// </ul>
/// <p>This material uses an effect with a single render pass approach and performs per fragment lighting. Techniques are provided for OpenGL 2, OpenGL 3 or above as well as OpenGL ES 2.</p></div>
pub unsafe fn new_0a() -> ::cpp_core::CppBox<crate::QNormalDiffuseMapMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QNormalDiffuseMapMaterial_QNormalDiffuseMapMaterial1();
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Holds the current normal map texture.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QAbstractTexture* Qt3DExtras::QNormalDiffuseMapMaterial::normal() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qnormaldiffusemapmaterial.html#normal-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current normal map texture.</p>
/// <p>By default, the normal texture has the following properties:</p>
/// <ul>
/// <li>Linear minification and magnification filters</li>
/// <li>Repeat wrap mode</li>
/// <li>Maximum anisotropy of 16.0</li>
/// </ul>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DRender::QAbstractTexture *</td><td class="memItemRight bottomAlign"><span class="name"><b>normal</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setNormal</b></span>(Qt3DRender::QAbstractTexture *<i>normal</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>normalChanged</b></span>(Qt3DRender::QAbstractTexture *<i>normal</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn normal(&self) -> ::cpp_core::MutPtr<::qt_3d_render::QAbstractTexture> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QNormalDiffuseMapMaterial_normal(
self as *const crate::QNormalDiffuseMapMaterial,
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```virtual int Qt3DExtras::QNormalDiffuseMapMaterial::qt_metacall(QMetaObject::Call arg1, int arg2, void** arg3)```</span>.
pub unsafe fn qt_metacall(
&mut self,
arg1: ::qt_core::q_meta_object::Call,
arg2: ::std::os::raw::c_int,
arg3: impl ::cpp_core::CastInto<::cpp_core::MutPtr<*mut ::std::ffi::c_void>>,
) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QNormalDiffuseMapMaterial_qt_metacall(
self as *mut crate::QNormalDiffuseMapMaterial,
arg1,
arg2,
::cpp_core::CastInto::<::cpp_core::MutPtr<*mut ::std::ffi::c_void>>::cast_into(arg3)
.as_mut_raw_ptr(),
)
}
/// Calls C++ function: <span style='color: green;'>```virtual void* Qt3DExtras::QNormalDiffuseMapMaterial::qt_metacast(const char* arg1)```</span>.
pub unsafe fn qt_metacast(
&mut self,
arg1: impl ::cpp_core::CastInto<::cpp_core::Ptr<::std::os::raw::c_char>>,
) -> ::cpp_core::MutPtr<::std::ffi::c_void> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QNormalDiffuseMapMaterial_qt_metacast(
self as *mut crate::QNormalDiffuseMapMaterial,
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(arg1)
.as_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
/// <p>Holds the current ambient color.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QNormalDiffuseMapMaterial::setAmbient(const QColor& ambient)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qnormaldiffusemapmaterial.html#ambient-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current ambient color.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QColor </td><td class="memItemRight bottomAlign"><span class="name"><b>ambient</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setAmbient</b></span>(const QColor &<i>ambient</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>ambientChanged</b></span>(const QColor &<i>ambient</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_ambient(
&mut self,
ambient: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_gui::QColor>>,
) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QNormalDiffuseMapMaterial_setAmbient(
self as *mut crate::QNormalDiffuseMapMaterial,
::cpp_core::CastInto::<::cpp_core::Ref<::qt_gui::QColor>>::cast_into(ambient)
.as_raw_ptr(),
)
}
/// <p>Holds the current diffuse map texture.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QNormalDiffuseMapMaterial::setDiffuse(Qt3DRender::QAbstractTexture* diffuse)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qnormaldiffusemapmaterial.html#diffuse-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current diffuse map texture.</p>
/// <p>By default, the diffuse texture has these properties:</p>
/// <ul>
/// <li>Linear minification and magnification filters</li>
/// <li>Linear mipmap with mipmapping enabled</li>
/// <li>Repeat wrap modeM</li>
/// <li>Maximum anisotropy of 16.0</li>
/// </ul>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DRender::QAbstractTexture *</td><td class="memItemRight bottomAlign"><span class="name"><b>diffuse</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setDiffuse</b></span>(Qt3DRender::QAbstractTexture *<i>diffuse</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>diffuseChanged</b></span>(Qt3DRender::QAbstractTexture *<i>diffuse</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_diffuse(
&mut self,
diffuse: impl ::cpp_core::CastInto<::cpp_core::MutPtr<::qt_3d_render::QAbstractTexture>>,
) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QNormalDiffuseMapMaterial_setDiffuse(self as *mut crate::QNormalDiffuseMapMaterial, ::cpp_core::CastInto::<::cpp_core::MutPtr<::qt_3d_render::QAbstractTexture>>::cast_into(diffuse).as_mut_raw_ptr())
}
/// <p>Holds the current normal map texture.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QNormalDiffuseMapMaterial::setNormal(Qt3DRender::QAbstractTexture* normal)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qnormaldiffusemapmaterial.html#normal-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current normal map texture.</p>
/// <p>By default, the normal texture has the following properties:</p>
/// <ul>
/// <li>Linear minification and magnification filters</li>
/// <li>Repeat wrap mode</li>
/// <li>Maximum anisotropy of 16.0</li>
/// </ul>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DRender::QAbstractTexture *</td><td class="memItemRight bottomAlign"><span class="name"><b>normal</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setNormal</b></span>(Qt3DRender::QAbstractTexture *<i>normal</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>normalChanged</b></span>(Qt3DRender::QAbstractTexture *<i>normal</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_normal(
&mut self,
normal: impl ::cpp_core::CastInto<::cpp_core::MutPtr<::qt_3d_render::QAbstractTexture>>,
) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QNormalDiffuseMapMaterial_setNormal(self as *mut crate::QNormalDiffuseMapMaterial, ::cpp_core::CastInto::<::cpp_core::MutPtr<::qt_3d_render::QAbstractTexture>>::cast_into(normal).as_mut_raw_ptr())
}
/// <p>Holds the current shininess as a float value.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QNormalDiffuseMapMaterial::setShininess(float shininess)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qnormaldiffusemapmaterial.html#shininess-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current shininess as a float 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>shininess</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setShininess</b></span>(float <i>shininess</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>shininessChanged</b></span>(float <i>shininess</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_shininess(&mut self, shininess: ::std::os::raw::c_float) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QNormalDiffuseMapMaterial_setShininess(
self as *mut crate::QNormalDiffuseMapMaterial,
shininess,
)
}
/// <p>Holds the current specular color.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QNormalDiffuseMapMaterial::setSpecular(const QColor& specular)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qnormaldiffusemapmaterial.html#specular-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current specular color.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QColor </td><td class="memItemRight bottomAlign"><span class="name"><b>specular</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setSpecular</b></span>(const QColor &<i>specular</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>specularChanged</b></span>(const QColor &<i>specular</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_specular(
&mut self,
specular: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_gui::QColor>>,
) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QNormalDiffuseMapMaterial_setSpecular(
self as *mut crate::QNormalDiffuseMapMaterial,
::cpp_core::CastInto::<::cpp_core::Ref<::qt_gui::QColor>>::cast_into(specular)
.as_raw_ptr(),
)
}
/// <p>Holds the current texture scale. It is applied as a multiplier to texture coordinates at render time. Defaults to 1.0.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QNormalDiffuseMapMaterial::setTextureScale(float textureScale)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qnormaldiffusemapmaterial.html#textureScale-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current texture scale. It is applied as a multiplier to texture coordinates at render time. Defaults to 1.0.</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>textureScale</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setTextureScale</b></span>(float <i>textureScale</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>textureScaleChanged</b></span>(float <i>textureScale</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_texture_scale(&mut self, texture_scale: ::std::os::raw::c_float) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QNormalDiffuseMapMaterial_setTextureScale(
self as *mut crate::QNormalDiffuseMapMaterial,
texture_scale,
)
}
/// <p>Holds the current shininess as a float value.</p>
///
/// Calls C++ function: <span style='color: green;'>```float Qt3DExtras::QNormalDiffuseMapMaterial::shininess() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qnormaldiffusemapmaterial.html#shininess-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current shininess as a float 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>shininess</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setShininess</b></span>(float <i>shininess</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>shininessChanged</b></span>(float <i>shininess</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn shininess(&self) -> ::std::os::raw::c_float {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QNormalDiffuseMapMaterial_shininess(
self as *const crate::QNormalDiffuseMapMaterial,
)
}
/// <p>Holds the current specular color.</p>
///
/// Calls C++ function: <span style='color: green;'>```QColor Qt3DExtras::QNormalDiffuseMapMaterial::specular() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qnormaldiffusemapmaterial.html#specular-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current specular color.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QColor </td><td class="memItemRight bottomAlign"><span class="name"><b>specular</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setSpecular</b></span>(const QColor &<i>specular</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>specularChanged</b></span>(const QColor &<i>specular</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn specular(&self) -> ::cpp_core::CppBox<::qt_gui::QColor> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QNormalDiffuseMapMaterial_specular(
self as *const crate::QNormalDiffuseMapMaterial,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// Returns a reference to the <span style='color: green;'>```staticMetaObject```</span> field.
pub unsafe fn static_meta_object() -> ::cpp_core::Ref<::qt_core::QMetaObject> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QNormalDiffuseMapMaterial_staticMetaObject();
::cpp_core::Ref::from_raw(ffi_result).expect("attempted to construct a null Ref")
}
/// <p>Holds the current texture scale. It is applied as a multiplier to texture coordinates at render time. Defaults to 1.0.</p>
///
/// Calls C++ function: <span style='color: green;'>```float Qt3DExtras::QNormalDiffuseMapMaterial::textureScale() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qnormaldiffusemapmaterial.html#textureScale-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current texture scale. It is applied as a multiplier to texture coordinates at render time. Defaults to 1.0.</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>textureScale</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setTextureScale</b></span>(float <i>textureScale</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>textureScaleChanged</b></span>(float <i>textureScale</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn texture_scale(&self) -> ::std::os::raw::c_float {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QNormalDiffuseMapMaterial_textureScale(
self as *const crate::QNormalDiffuseMapMaterial,
)
}
/// Calls C++ function: <span style='color: green;'>```static QString Qt3DExtras::QNormalDiffuseMapMaterial::tr(const char* s, const char* c, int n)```</span>.
pub unsafe fn tr(
s: impl ::cpp_core::CastInto<::cpp_core::Ptr<::std::os::raw::c_char>>,
c: impl ::cpp_core::CastInto<::cpp_core::Ptr<::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_extras_ffi_Qt3DExtras_QNormalDiffuseMapMaterial_tr(
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(s)
.as_raw_ptr(),
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(c)
.as_raw_ptr(),
n,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// Calls C++ function: <span style='color: green;'>```static QString Qt3DExtras::QNormalDiffuseMapMaterial::trUtf8(const char* s, const char* c, int n)```</span>.
pub unsafe fn tr_utf8(
s: impl ::cpp_core::CastInto<::cpp_core::Ptr<::std::os::raw::c_char>>,
c: impl ::cpp_core::CastInto<::cpp_core::Ptr<::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_extras_ffi_Qt3DExtras_QNormalDiffuseMapMaterial_trUtf8(
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(s)
.as_raw_ptr(),
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(c)
.as_raw_ptr(),
n,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
}
/// <p>The <a href="http://doc.qt.io/qt-5/qt3dextras-qnormaldiffusemapalphamaterial.html">QNormalDiffuseMapAlphaMaterial</a> provides a specialization of <a href="http://doc.qt.io/qt-5/qt3dextras-qnormaldiffusemapmaterial.html">QNormalDiffuseMapMaterial</a> with alpha coverage and a depth test performed in the rendering pass.</p>
///
/// C++ class: <span style='color: green;'>```Qt3DExtras::QNormalDiffuseMapAlphaMaterial```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qnormaldiffusemapalphamaterial.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>The <a href="http://doc.qt.io/qt-5/qt3dextras-qnormaldiffusemapalphamaterial.html">QNormalDiffuseMapAlphaMaterial</a> provides a specialization of <a href="http://doc.qt.io/qt-5/qt3dextras-qnormaldiffusemapmaterial.html">QNormalDiffuseMapMaterial</a> with alpha coverage and a depth test performed in the rendering pass.</p>
/// <p>The specular lighting effect is based on the combination of 3 lighting components ambient, diffuse and specular. The relative strengths of these components are controlled by means of their reflectivity coefficients which are modelled as RGB triplets:</p>
/// <ul>
/// <li>Ambient is the color that is emitted by an object without any other light source.</li>
/// <li>Diffuse is the color that is emitted for rought surface reflections with the lights.</li>
/// <li>Specular is the color emitted for shiny surface reflections with the lights.</li>
/// <li>The shininess of a surface is controlled by a float property.</li>
/// </ul>
/// <p>This material uses an effect with a single render pass approach and performs per fragment lighting. Techniques are provided for OpenGL 2, OpenGL 3 or above as well as OpenGL ES 2.</p></div>
#[repr(C)]
pub struct QNormalDiffuseMapAlphaMaterial {
_unused: u8,
}
impl QNormalDiffuseMapAlphaMaterial {
/// Calls C++ function: <span style='color: green;'>```virtual const QMetaObject* Qt3DExtras::QNormalDiffuseMapAlphaMaterial::metaObject() const```</span>.
pub unsafe fn meta_object(&self) -> ::cpp_core::Ptr<::qt_core::QMetaObject> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QNormalDiffuseMapAlphaMaterial_metaObject(
self as *const crate::QNormalDiffuseMapAlphaMaterial,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// <p>Default constructs an instance of QNormalDiffuseMapAlphaMaterial.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DExtras::QNormalDiffuseMapAlphaMaterial::QNormalDiffuseMapAlphaMaterial(Qt3DCore::QNode* parent = …)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qnormaldiffusemapalphamaterial.html#QNormalDiffuseMapAlphaMaterial">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Default constructs an instance of QNormalDiffuseMapAlphaMaterial.</p></div>
pub unsafe fn new_1a(
parent: impl ::cpp_core::CastInto<::cpp_core::MutPtr<::qt_3d_core::QNode>>,
) -> ::cpp_core::CppBox<crate::QNormalDiffuseMapAlphaMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QNormalDiffuseMapAlphaMaterial_QNormalDiffuseMapAlphaMaterial(::cpp_core::CastInto::<::cpp_core::MutPtr<::qt_3d_core::QNode>>::cast_into(parent).as_mut_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/qt3dextras-qnormaldiffusemapalphamaterial.html">QNormalDiffuseMapAlphaMaterial</a> provides a specialization of <a href="http://doc.qt.io/qt-5/qt3dextras-qnormaldiffusemapmaterial.html">QNormalDiffuseMapMaterial</a> with alpha coverage and a depth test performed in the rendering pass.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DExtras::QNormalDiffuseMapAlphaMaterial::QNormalDiffuseMapAlphaMaterial()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qnormaldiffusemapalphamaterial.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>The <a href="http://doc.qt.io/qt-5/qt3dextras-qnormaldiffusemapalphamaterial.html">QNormalDiffuseMapAlphaMaterial</a> provides a specialization of <a href="http://doc.qt.io/qt-5/qt3dextras-qnormaldiffusemapmaterial.html">QNormalDiffuseMapMaterial</a> with alpha coverage and a depth test performed in the rendering pass.</p>
/// <p>The specular lighting effect is based on the combination of 3 lighting components ambient, diffuse and specular. The relative strengths of these components are controlled by means of their reflectivity coefficients which are modelled as RGB triplets:</p>
/// <ul>
/// <li>Ambient is the color that is emitted by an object without any other light source.</li>
/// <li>Diffuse is the color that is emitted for rought surface reflections with the lights.</li>
/// <li>Specular is the color emitted for shiny surface reflections with the lights.</li>
/// <li>The shininess of a surface is controlled by a float property.</li>
/// </ul>
/// <p>This material uses an effect with a single render pass approach and performs per fragment lighting. Techniques are provided for OpenGL 2, OpenGL 3 or above as well as OpenGL ES 2.</p></div>
pub unsafe fn new_0a() -> ::cpp_core::CppBox<crate::QNormalDiffuseMapAlphaMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QNormalDiffuseMapAlphaMaterial_QNormalDiffuseMapAlphaMaterial1();
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// Calls C++ function: <span style='color: green;'>```virtual int Qt3DExtras::QNormalDiffuseMapAlphaMaterial::qt_metacall(QMetaObject::Call arg1, int arg2, void** arg3)```</span>.
pub unsafe fn qt_metacall(
&mut self,
arg1: ::qt_core::q_meta_object::Call,
arg2: ::std::os::raw::c_int,
arg3: impl ::cpp_core::CastInto<::cpp_core::MutPtr<*mut ::std::ffi::c_void>>,
) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QNormalDiffuseMapAlphaMaterial_qt_metacall(
self as *mut crate::QNormalDiffuseMapAlphaMaterial,
arg1,
arg2,
::cpp_core::CastInto::<::cpp_core::MutPtr<*mut ::std::ffi::c_void>>::cast_into(arg3)
.as_mut_raw_ptr(),
)
}
/// Calls C++ function: <span style='color: green;'>```virtual void* Qt3DExtras::QNormalDiffuseMapAlphaMaterial::qt_metacast(const char* arg1)```</span>.
pub unsafe fn qt_metacast(
&mut self,
arg1: impl ::cpp_core::CastInto<::cpp_core::Ptr<::std::os::raw::c_char>>,
) -> ::cpp_core::MutPtr<::std::ffi::c_void> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QNormalDiffuseMapAlphaMaterial_qt_metacast(self as *mut crate::QNormalDiffuseMapAlphaMaterial, ::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(arg1).as_raw_ptr());
::cpp_core::MutPtr::from_raw(ffi_result)
}
/// Returns a reference to the <span style='color: green;'>```staticMetaObject```</span> field.
pub unsafe fn static_meta_object() -> ::cpp_core::Ref<::qt_core::QMetaObject> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QNormalDiffuseMapAlphaMaterial_staticMetaObject();
::cpp_core::Ref::from_raw(ffi_result).expect("attempted to construct a null Ref")
}
/// Calls C++ function: <span style='color: green;'>```static QString Qt3DExtras::QNormalDiffuseMapAlphaMaterial::tr(const char* s, const char* c, int n)```</span>.
pub unsafe fn tr(
s: impl ::cpp_core::CastInto<::cpp_core::Ptr<::std::os::raw::c_char>>,
c: impl ::cpp_core::CastInto<::cpp_core::Ptr<::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_extras_ffi_Qt3DExtras_QNormalDiffuseMapAlphaMaterial_tr(
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(s)
.as_raw_ptr(),
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(c)
.as_raw_ptr(),
n,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// Calls C++ function: <span style='color: green;'>```static QString Qt3DExtras::QNormalDiffuseMapAlphaMaterial::trUtf8(const char* s, const char* c, int n)```</span>.
pub unsafe fn tr_utf8(
s: impl ::cpp_core::CastInto<::cpp_core::Ptr<::std::os::raw::c_char>>,
c: impl ::cpp_core::CastInto<::cpp_core::Ptr<::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_extras_ffi_Qt3DExtras_QNormalDiffuseMapAlphaMaterial_trUtf8(
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(s)
.as_raw_ptr(),
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(c)
.as_raw_ptr(),
n,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
}
/// <p>The <a href="http://doc.qt.io/qt-5/qt3dextras-qnormaldiffusespecularmapmaterial.html">QNormalDiffuseSpecularMapMaterial</a> provides a default implementation of the phong lighting and bump effect where the diffuse and specular light components are read from texture maps and the normals of the mesh being rendered from a normal texture map.</p>
///
/// C++ class: <span style='color: green;'>```Qt3DExtras::QNormalDiffuseSpecularMapMaterial```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qnormaldiffusespecularmapmaterial.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>The <a href="http://doc.qt.io/qt-5/qt3dextras-qnormaldiffusespecularmapmaterial.html">QNormalDiffuseSpecularMapMaterial</a> provides a default implementation of the phong lighting and bump effect where the diffuse and specular light components are read from texture maps and the normals of the mesh being rendered from a normal texture map.</p>
/// <p>The specular lighting effect is based on the combination of 3 lighting components ambient, diffuse and specular. The relative strengths of these components are controlled by means of their reflectivity coefficients which are modelled as RGB triplets:</p>
/// <ul>
/// <li>Ambient is the color that is emitted by an object without any other light source.</li>
/// <li>Diffuse is the color that is emitted for rought surface reflections with the lights.</li>
/// <li>Specular is the color emitted for shiny surface reflections with the lights.</li>
/// <li>The shininess of a surface is controlled by a float property.</li>
/// </ul>
/// <p>This material uses an effect with a single render pass approach and performs per fragment lighting. Techniques are provided for OpenGL 2, OpenGL 3 or above as well as OpenGL ES 2.</p></div>
#[repr(C)]
pub struct QNormalDiffuseSpecularMapMaterial {
_unused: u8,
}
impl QNormalDiffuseSpecularMapMaterial {
/// <p>Holds the current ambient color.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QNormalDiffuseSpecularMapMaterial::setAmbient` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qnormaldiffusespecularmapmaterial.html#ambient-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current ambient color.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QColor </td><td class="memItemRight bottomAlign"><span class="name"><b>ambient</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setAmbient</b></span>(const QColor &<i>ambient</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>ambientChanged</b></span>(const QColor &<i>ambient</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slot_set_ambient(&self) -> ::qt_core::Receiver<(*const ::qt_gui::QColor,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setAmbient(const QColor&)\0"),
)
}
}
/// <p>Holds the current diffuse map texture.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QNormalDiffuseSpecularMapMaterial::setDiffuse` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qnormaldiffusespecularmapmaterial.html#diffuse-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current diffuse map texture.</p>
/// <p>By default, the diffuse texture has the following properties:</p>
/// <ul>
/// <li>Linear minification and magnification filters</li>
/// <li>Linear mipmap with mipmapping enabled</li>
/// <li>Repeat wrap mode</li>
/// <li>Maximum anisotropy of 16.0</li>
/// </ul>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DRender::QAbstractTexture *</td><td class="memItemRight bottomAlign"><span class="name"><b>diffuse</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setDiffuse</b></span>(Qt3DRender::QAbstractTexture *<i>diffuse</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>diffuseChanged</b></span>(Qt3DRender::QAbstractTexture *<i>diffuse</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slot_set_diffuse(
&self,
) -> ::qt_core::Receiver<(*mut ::qt_3d_render::QAbstractTexture,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"1setDiffuse(Qt3DRender::QAbstractTexture*)\0",
),
)
}
}
/// <p>Holds the current normal map texture.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QNormalDiffuseSpecularMapMaterial::setNormal` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qnormaldiffusespecularmapmaterial.html#normal-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current normal map texture.</p>
/// <p>By default, the normal texture has the following properties:</p>
/// <ul>
/// <li>Linear minification and magnification filters</li>
/// <li>Repeat wrap mode</li>
/// <li>Maximum anisotropy of 16.0</li>
/// </ul>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DRender::QAbstractTexture *</td><td class="memItemRight bottomAlign"><span class="name"><b>normal</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setNormal</b></span>(Qt3DRender::QAbstractTexture *<i>normal</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>normalChanged</b></span>(Qt3DRender::QAbstractTexture *<i>normal</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slot_set_normal(&self) -> ::qt_core::Receiver<(*mut ::qt_3d_render::QAbstractTexture,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"1setNormal(Qt3DRender::QAbstractTexture*)\0",
),
)
}
}
/// <p>Holds the current specular map texture.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QNormalDiffuseSpecularMapMaterial::setSpecular` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qnormaldiffusespecularmapmaterial.html#specular-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current specular map texture.</p>
/// <p>By default, the specular texture has the following properties:</p>
/// <ul>
/// <li>Linear minification and magnification filters</li>
/// <li>Linear mipmap with mipmapping enabled</li>
/// <li>Repeat wrap mode</li>
/// <li>Maximum anisotropy of 16.0</li>
/// </ul>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DRender::QAbstractTexture *</td><td class="memItemRight bottomAlign"><span class="name"><b>specular</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setSpecular</b></span>(Qt3DRender::QAbstractTexture *<i>specular</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>specularChanged</b></span>(Qt3DRender::QAbstractTexture *<i>specular</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slot_set_specular(
&self,
) -> ::qt_core::Receiver<(*mut ::qt_3d_render::QAbstractTexture,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"1setSpecular(Qt3DRender::QAbstractTexture*)\0",
),
)
}
}
/// <p>Holds the current shininess as a float value.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QNormalDiffuseSpecularMapMaterial::setShininess` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qnormaldiffusespecularmapmaterial.html#shininess-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current shininess as a float 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>shininess</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setShininess</b></span>(float <i>shininess</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>shininessChanged</b></span>(float <i>shininess</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slot_set_shininess(&self) -> ::qt_core::Receiver<(::std::os::raw::c_float,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setShininess(float)\0"),
)
}
}
/// <p>Holds the current texture scale. It is applied as a multiplier to texture coordinates at render time. Defaults to 1.0.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QNormalDiffuseSpecularMapMaterial::setTextureScale` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qnormaldiffusespecularmapmaterial.html#textureScale-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current texture scale. It is applied as a multiplier to texture coordinates at render time. Defaults to 1.0.</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>textureScale</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setTextureScale</b></span>(float <i>textureScale</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>textureScaleChanged</b></span>(float <i>textureScale</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slot_set_texture_scale(&self) -> ::qt_core::Receiver<(::std::os::raw::c_float,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setTextureScale(float)\0"),
)
}
}
/// <p>Holds the current ambient color.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QNormalDiffuseSpecularMapMaterial::ambientChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qnormaldiffusespecularmapmaterial.html#ambient-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current ambient color.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QColor </td><td class="memItemRight bottomAlign"><span class="name"><b>ambient</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setAmbient</b></span>(const QColor &<i>ambient</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>ambientChanged</b></span>(const QColor &<i>ambient</i>)</td></tr>
/// </tbody></table></div></div>
pub fn ambient_changed(&self) -> ::qt_core::Signal<(*const ::qt_gui::QColor,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"2ambientChanged(const QColor&)\0",
),
)
}
}
/// <p>Holds the current diffuse map texture.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QNormalDiffuseSpecularMapMaterial::diffuseChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qnormaldiffusespecularmapmaterial.html#diffuse-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current diffuse map texture.</p>
/// <p>By default, the diffuse texture has the following properties:</p>
/// <ul>
/// <li>Linear minification and magnification filters</li>
/// <li>Linear mipmap with mipmapping enabled</li>
/// <li>Repeat wrap mode</li>
/// <li>Maximum anisotropy of 16.0</li>
/// </ul>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DRender::QAbstractTexture *</td><td class="memItemRight bottomAlign"><span class="name"><b>diffuse</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setDiffuse</b></span>(Qt3DRender::QAbstractTexture *<i>diffuse</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>diffuseChanged</b></span>(Qt3DRender::QAbstractTexture *<i>diffuse</i>)</td></tr>
/// </tbody></table></div></div>
pub fn diffuse_changed(&self) -> ::qt_core::Signal<(*mut ::qt_3d_render::QAbstractTexture,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"2diffuseChanged(Qt3DRender::QAbstractTexture*)\0",
),
)
}
}
/// <p>Holds the current normal map texture.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QNormalDiffuseSpecularMapMaterial::normalChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qnormaldiffusespecularmapmaterial.html#normal-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current normal map texture.</p>
/// <p>By default, the normal texture has the following properties:</p>
/// <ul>
/// <li>Linear minification and magnification filters</li>
/// <li>Repeat wrap mode</li>
/// <li>Maximum anisotropy of 16.0</li>
/// </ul>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DRender::QAbstractTexture *</td><td class="memItemRight bottomAlign"><span class="name"><b>normal</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setNormal</b></span>(Qt3DRender::QAbstractTexture *<i>normal</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>normalChanged</b></span>(Qt3DRender::QAbstractTexture *<i>normal</i>)</td></tr>
/// </tbody></table></div></div>
pub fn normal_changed(&self) -> ::qt_core::Signal<(*mut ::qt_3d_render::QAbstractTexture,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"2normalChanged(Qt3DRender::QAbstractTexture*)\0",
),
)
}
}
/// <p>Holds the current specular map texture.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QNormalDiffuseSpecularMapMaterial::specularChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qnormaldiffusespecularmapmaterial.html#specular-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current specular map texture.</p>
/// <p>By default, the specular texture has the following properties:</p>
/// <ul>
/// <li>Linear minification and magnification filters</li>
/// <li>Linear mipmap with mipmapping enabled</li>
/// <li>Repeat wrap mode</li>
/// <li>Maximum anisotropy of 16.0</li>
/// </ul>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DRender::QAbstractTexture *</td><td class="memItemRight bottomAlign"><span class="name"><b>specular</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setSpecular</b></span>(Qt3DRender::QAbstractTexture *<i>specular</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>specularChanged</b></span>(Qt3DRender::QAbstractTexture *<i>specular</i>)</td></tr>
/// </tbody></table></div></div>
pub fn specular_changed(&self) -> ::qt_core::Signal<(*mut ::qt_3d_render::QAbstractTexture,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"2specularChanged(Qt3DRender::QAbstractTexture*)\0",
),
)
}
}
/// <p>Holds the current shininess as a float value.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QNormalDiffuseSpecularMapMaterial::shininessChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qnormaldiffusespecularmapmaterial.html#shininess-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current shininess as a float 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>shininess</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setShininess</b></span>(float <i>shininess</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>shininessChanged</b></span>(float <i>shininess</i>)</td></tr>
/// </tbody></table></div></div>
pub fn shininess_changed(&self) -> ::qt_core::Signal<(::std::os::raw::c_float,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2shininessChanged(float)\0"),
)
}
}
/// <p>Holds the current texture scale. It is applied as a multiplier to texture coordinates at render time. Defaults to 1.0.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QNormalDiffuseSpecularMapMaterial::textureScaleChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qnormaldiffusespecularmapmaterial.html#textureScale-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current texture scale. It is applied as a multiplier to texture coordinates at render time. Defaults to 1.0.</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>textureScale</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setTextureScale</b></span>(float <i>textureScale</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>textureScaleChanged</b></span>(float <i>textureScale</i>)</td></tr>
/// </tbody></table></div></div>
pub fn texture_scale_changed(&self) -> ::qt_core::Signal<(::std::os::raw::c_float,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2textureScaleChanged(float)\0"),
)
}
}
/// <p>Holds the current ambient color.</p>
///
/// Calls C++ function: <span style='color: green;'>```QColor Qt3DExtras::QNormalDiffuseSpecularMapMaterial::ambient() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qnormaldiffusespecularmapmaterial.html#ambient-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current ambient color.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QColor </td><td class="memItemRight bottomAlign"><span class="name"><b>ambient</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setAmbient</b></span>(const QColor &<i>ambient</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>ambientChanged</b></span>(const QColor &<i>ambient</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn ambient(&self) -> ::cpp_core::CppBox<::qt_gui::QColor> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QNormalDiffuseSpecularMapMaterial_ambient(
self as *const crate::QNormalDiffuseSpecularMapMaterial,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Holds the current diffuse map texture.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QAbstractTexture* Qt3DExtras::QNormalDiffuseSpecularMapMaterial::diffuse() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qnormaldiffusespecularmapmaterial.html#diffuse-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current diffuse map texture.</p>
/// <p>By default, the diffuse texture has the following properties:</p>
/// <ul>
/// <li>Linear minification and magnification filters</li>
/// <li>Linear mipmap with mipmapping enabled</li>
/// <li>Repeat wrap mode</li>
/// <li>Maximum anisotropy of 16.0</li>
/// </ul>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DRender::QAbstractTexture *</td><td class="memItemRight bottomAlign"><span class="name"><b>diffuse</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setDiffuse</b></span>(Qt3DRender::QAbstractTexture *<i>diffuse</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>diffuseChanged</b></span>(Qt3DRender::QAbstractTexture *<i>diffuse</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn diffuse(&self) -> ::cpp_core::MutPtr<::qt_3d_render::QAbstractTexture> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QNormalDiffuseSpecularMapMaterial_diffuse(
self as *const crate::QNormalDiffuseSpecularMapMaterial,
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```virtual const QMetaObject* Qt3DExtras::QNormalDiffuseSpecularMapMaterial::metaObject() const```</span>.
pub unsafe fn meta_object(&self) -> ::cpp_core::Ptr<::qt_core::QMetaObject> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QNormalDiffuseSpecularMapMaterial_metaObject(self as *const crate::QNormalDiffuseSpecularMapMaterial);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// <p>Default constructs an instance of QNormalDiffuseSpecularMapMaterial.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DExtras::QNormalDiffuseSpecularMapMaterial::QNormalDiffuseSpecularMapMaterial(Qt3DCore::QNode* parent = …)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qnormaldiffusespecularmapmaterial.html#QNormalDiffuseSpecularMapMaterial">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Default constructs an instance of QNormalDiffuseSpecularMapMaterial.</p></div>
pub unsafe fn new_1a(
parent: impl ::cpp_core::CastInto<::cpp_core::MutPtr<::qt_3d_core::QNode>>,
) -> ::cpp_core::CppBox<crate::QNormalDiffuseSpecularMapMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QNormalDiffuseSpecularMapMaterial_QNormalDiffuseSpecularMapMaterial(::cpp_core::CastInto::<::cpp_core::MutPtr<::qt_3d_core::QNode>>::cast_into(parent).as_mut_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/qt3dextras-qnormaldiffusespecularmapmaterial.html">QNormalDiffuseSpecularMapMaterial</a> provides a default implementation of the phong lighting and bump effect where the diffuse and specular light components are read from texture maps and the normals of the mesh being rendered from a normal texture map.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DExtras::QNormalDiffuseSpecularMapMaterial::QNormalDiffuseSpecularMapMaterial()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qnormaldiffusespecularmapmaterial.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>The <a href="http://doc.qt.io/qt-5/qt3dextras-qnormaldiffusespecularmapmaterial.html">QNormalDiffuseSpecularMapMaterial</a> provides a default implementation of the phong lighting and bump effect where the diffuse and specular light components are read from texture maps and the normals of the mesh being rendered from a normal texture map.</p>
/// <p>The specular lighting effect is based on the combination of 3 lighting components ambient, diffuse and specular. The relative strengths of these components are controlled by means of their reflectivity coefficients which are modelled as RGB triplets:</p>
/// <ul>
/// <li>Ambient is the color that is emitted by an object without any other light source.</li>
/// <li>Diffuse is the color that is emitted for rought surface reflections with the lights.</li>
/// <li>Specular is the color emitted for shiny surface reflections with the lights.</li>
/// <li>The shininess of a surface is controlled by a float property.</li>
/// </ul>
/// <p>This material uses an effect with a single render pass approach and performs per fragment lighting. Techniques are provided for OpenGL 2, OpenGL 3 or above as well as OpenGL ES 2.</p></div>
pub unsafe fn new_0a() -> ::cpp_core::CppBox<crate::QNormalDiffuseSpecularMapMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QNormalDiffuseSpecularMapMaterial_QNormalDiffuseSpecularMapMaterial1();
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Holds the current normal map texture.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QAbstractTexture* Qt3DExtras::QNormalDiffuseSpecularMapMaterial::normal() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qnormaldiffusespecularmapmaterial.html#normal-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current normal map texture.</p>
/// <p>By default, the normal texture has the following properties:</p>
/// <ul>
/// <li>Linear minification and magnification filters</li>
/// <li>Repeat wrap mode</li>
/// <li>Maximum anisotropy of 16.0</li>
/// </ul>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DRender::QAbstractTexture *</td><td class="memItemRight bottomAlign"><span class="name"><b>normal</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setNormal</b></span>(Qt3DRender::QAbstractTexture *<i>normal</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>normalChanged</b></span>(Qt3DRender::QAbstractTexture *<i>normal</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn normal(&self) -> ::cpp_core::MutPtr<::qt_3d_render::QAbstractTexture> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QNormalDiffuseSpecularMapMaterial_normal(
self as *const crate::QNormalDiffuseSpecularMapMaterial,
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```virtual int Qt3DExtras::QNormalDiffuseSpecularMapMaterial::qt_metacall(QMetaObject::Call arg1, int arg2, void** arg3)```</span>.
pub unsafe fn qt_metacall(
&mut self,
arg1: ::qt_core::q_meta_object::Call,
arg2: ::std::os::raw::c_int,
arg3: impl ::cpp_core::CastInto<::cpp_core::MutPtr<*mut ::std::ffi::c_void>>,
) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QNormalDiffuseSpecularMapMaterial_qt_metacall(
self as *mut crate::QNormalDiffuseSpecularMapMaterial,
arg1,
arg2,
::cpp_core::CastInto::<::cpp_core::MutPtr<*mut ::std::ffi::c_void>>::cast_into(arg3)
.as_mut_raw_ptr(),
)
}
/// Calls C++ function: <span style='color: green;'>```virtual void* Qt3DExtras::QNormalDiffuseSpecularMapMaterial::qt_metacast(const char* arg1)```</span>.
pub unsafe fn qt_metacast(
&mut self,
arg1: impl ::cpp_core::CastInto<::cpp_core::Ptr<::std::os::raw::c_char>>,
) -> ::cpp_core::MutPtr<::std::ffi::c_void> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QNormalDiffuseSpecularMapMaterial_qt_metacast(self as *mut crate::QNormalDiffuseSpecularMapMaterial, ::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(arg1).as_raw_ptr());
::cpp_core::MutPtr::from_raw(ffi_result)
}
/// <p>Holds the current ambient color.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QNormalDiffuseSpecularMapMaterial::setAmbient(const QColor& ambient)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qnormaldiffusespecularmapmaterial.html#ambient-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current ambient color.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QColor </td><td class="memItemRight bottomAlign"><span class="name"><b>ambient</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setAmbient</b></span>(const QColor &<i>ambient</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>ambientChanged</b></span>(const QColor &<i>ambient</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_ambient(
&mut self,
ambient: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_gui::QColor>>,
) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QNormalDiffuseSpecularMapMaterial_setAmbient(
self as *mut crate::QNormalDiffuseSpecularMapMaterial,
::cpp_core::CastInto::<::cpp_core::Ref<::qt_gui::QColor>>::cast_into(ambient)
.as_raw_ptr(),
)
}
/// <p>Holds the current diffuse map texture.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QNormalDiffuseSpecularMapMaterial::setDiffuse(Qt3DRender::QAbstractTexture* diffuse)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qnormaldiffusespecularmapmaterial.html#diffuse-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current diffuse map texture.</p>
/// <p>By default, the diffuse texture has the following properties:</p>
/// <ul>
/// <li>Linear minification and magnification filters</li>
/// <li>Linear mipmap with mipmapping enabled</li>
/// <li>Repeat wrap mode</li>
/// <li>Maximum anisotropy of 16.0</li>
/// </ul>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DRender::QAbstractTexture *</td><td class="memItemRight bottomAlign"><span class="name"><b>diffuse</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setDiffuse</b></span>(Qt3DRender::QAbstractTexture *<i>diffuse</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>diffuseChanged</b></span>(Qt3DRender::QAbstractTexture *<i>diffuse</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_diffuse(
&mut self,
diffuse: impl ::cpp_core::CastInto<::cpp_core::MutPtr<::qt_3d_render::QAbstractTexture>>,
) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QNormalDiffuseSpecularMapMaterial_setDiffuse(self as *mut crate::QNormalDiffuseSpecularMapMaterial, ::cpp_core::CastInto::<::cpp_core::MutPtr<::qt_3d_render::QAbstractTexture>>::cast_into(diffuse).as_mut_raw_ptr())
}
/// <p>Holds the current normal map texture.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QNormalDiffuseSpecularMapMaterial::setNormal(Qt3DRender::QAbstractTexture* normal)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qnormaldiffusespecularmapmaterial.html#normal-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current normal map texture.</p>
/// <p>By default, the normal texture has the following properties:</p>
/// <ul>
/// <li>Linear minification and magnification filters</li>
/// <li>Repeat wrap mode</li>
/// <li>Maximum anisotropy of 16.0</li>
/// </ul>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DRender::QAbstractTexture *</td><td class="memItemRight bottomAlign"><span class="name"><b>normal</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setNormal</b></span>(Qt3DRender::QAbstractTexture *<i>normal</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>normalChanged</b></span>(Qt3DRender::QAbstractTexture *<i>normal</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_normal(
&mut self,
normal: impl ::cpp_core::CastInto<::cpp_core::MutPtr<::qt_3d_render::QAbstractTexture>>,
) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QNormalDiffuseSpecularMapMaterial_setNormal(self as *mut crate::QNormalDiffuseSpecularMapMaterial, ::cpp_core::CastInto::<::cpp_core::MutPtr<::qt_3d_render::QAbstractTexture>>::cast_into(normal).as_mut_raw_ptr())
}
/// <p>Holds the current shininess as a float value.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QNormalDiffuseSpecularMapMaterial::setShininess(float shininess)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qnormaldiffusespecularmapmaterial.html#shininess-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current shininess as a float 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>shininess</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setShininess</b></span>(float <i>shininess</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>shininessChanged</b></span>(float <i>shininess</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_shininess(&mut self, shininess: ::std::os::raw::c_float) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QNormalDiffuseSpecularMapMaterial_setShininess(
self as *mut crate::QNormalDiffuseSpecularMapMaterial,
shininess,
)
}
/// <p>Holds the current specular map texture.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QNormalDiffuseSpecularMapMaterial::setSpecular(Qt3DRender::QAbstractTexture* specular)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qnormaldiffusespecularmapmaterial.html#specular-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current specular map texture.</p>
/// <p>By default, the specular texture has the following properties:</p>
/// <ul>
/// <li>Linear minification and magnification filters</li>
/// <li>Linear mipmap with mipmapping enabled</li>
/// <li>Repeat wrap mode</li>
/// <li>Maximum anisotropy of 16.0</li>
/// </ul>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DRender::QAbstractTexture *</td><td class="memItemRight bottomAlign"><span class="name"><b>specular</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setSpecular</b></span>(Qt3DRender::QAbstractTexture *<i>specular</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>specularChanged</b></span>(Qt3DRender::QAbstractTexture *<i>specular</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_specular(
&mut self,
specular: impl ::cpp_core::CastInto<::cpp_core::MutPtr<::qt_3d_render::QAbstractTexture>>,
) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QNormalDiffuseSpecularMapMaterial_setSpecular(self as *mut crate::QNormalDiffuseSpecularMapMaterial, ::cpp_core::CastInto::<::cpp_core::MutPtr<::qt_3d_render::QAbstractTexture>>::cast_into(specular).as_mut_raw_ptr())
}
/// <p>Holds the current texture scale. It is applied as a multiplier to texture coordinates at render time. Defaults to 1.0.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QNormalDiffuseSpecularMapMaterial::setTextureScale(float textureScale)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qnormaldiffusespecularmapmaterial.html#textureScale-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current texture scale. It is applied as a multiplier to texture coordinates at render time. Defaults to 1.0.</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>textureScale</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setTextureScale</b></span>(float <i>textureScale</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>textureScaleChanged</b></span>(float <i>textureScale</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_texture_scale(&mut self, texture_scale: ::std::os::raw::c_float) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QNormalDiffuseSpecularMapMaterial_setTextureScale(self as *mut crate::QNormalDiffuseSpecularMapMaterial, texture_scale)
}
/// <p>Holds the current shininess as a float value.</p>
///
/// Calls C++ function: <span style='color: green;'>```float Qt3DExtras::QNormalDiffuseSpecularMapMaterial::shininess() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qnormaldiffusespecularmapmaterial.html#shininess-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current shininess as a float 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>shininess</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setShininess</b></span>(float <i>shininess</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>shininessChanged</b></span>(float <i>shininess</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn shininess(&self) -> ::std::os::raw::c_float {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QNormalDiffuseSpecularMapMaterial_shininess(
self as *const crate::QNormalDiffuseSpecularMapMaterial,
)
}
/// <p>Holds the current specular map texture.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QAbstractTexture* Qt3DExtras::QNormalDiffuseSpecularMapMaterial::specular() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qnormaldiffusespecularmapmaterial.html#specular-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current specular map texture.</p>
/// <p>By default, the specular texture has the following properties:</p>
/// <ul>
/// <li>Linear minification and magnification filters</li>
/// <li>Linear mipmap with mipmapping enabled</li>
/// <li>Repeat wrap mode</li>
/// <li>Maximum anisotropy of 16.0</li>
/// </ul>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DRender::QAbstractTexture *</td><td class="memItemRight bottomAlign"><span class="name"><b>specular</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setSpecular</b></span>(Qt3DRender::QAbstractTexture *<i>specular</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>specularChanged</b></span>(Qt3DRender::QAbstractTexture *<i>specular</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn specular(&self) -> ::cpp_core::MutPtr<::qt_3d_render::QAbstractTexture> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QNormalDiffuseSpecularMapMaterial_specular(self as *const crate::QNormalDiffuseSpecularMapMaterial);
::cpp_core::MutPtr::from_raw(ffi_result)
}
/// Returns a reference to the <span style='color: green;'>```staticMetaObject```</span> field.
pub unsafe fn static_meta_object() -> ::cpp_core::Ref<::qt_core::QMetaObject> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QNormalDiffuseSpecularMapMaterial_staticMetaObject();
::cpp_core::Ref::from_raw(ffi_result).expect("attempted to construct a null Ref")
}
/// <p>Holds the current texture scale. It is applied as a multiplier to texture coordinates at render time. Defaults to 1.0.</p>
///
/// Calls C++ function: <span style='color: green;'>```float Qt3DExtras::QNormalDiffuseSpecularMapMaterial::textureScale() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qnormaldiffusespecularmapmaterial.html#textureScale-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current texture scale. It is applied as a multiplier to texture coordinates at render time. Defaults to 1.0.</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>textureScale</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setTextureScale</b></span>(float <i>textureScale</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>textureScaleChanged</b></span>(float <i>textureScale</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn texture_scale(&self) -> ::std::os::raw::c_float {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QNormalDiffuseSpecularMapMaterial_textureScale(
self as *const crate::QNormalDiffuseSpecularMapMaterial,
)
}
/// Calls C++ function: <span style='color: green;'>```static QString Qt3DExtras::QNormalDiffuseSpecularMapMaterial::tr(const char* s, const char* c, int n)```</span>.
pub unsafe fn tr(
s: impl ::cpp_core::CastInto<::cpp_core::Ptr<::std::os::raw::c_char>>,
c: impl ::cpp_core::CastInto<::cpp_core::Ptr<::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_extras_ffi_Qt3DExtras_QNormalDiffuseSpecularMapMaterial_tr(
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(s)
.as_raw_ptr(),
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(c)
.as_raw_ptr(),
n,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// Calls C++ function: <span style='color: green;'>```static QString Qt3DExtras::QNormalDiffuseSpecularMapMaterial::trUtf8(const char* s, const char* c, int n)```</span>.
pub unsafe fn tr_utf8(
s: impl ::cpp_core::CastInto<::cpp_core::Ptr<::std::os::raw::c_char>>,
c: impl ::cpp_core::CastInto<::cpp_core::Ptr<::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_extras_ffi_Qt3DExtras_QNormalDiffuseSpecularMapMaterial_trUtf8(
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(s)
.as_raw_ptr(),
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(c)
.as_raw_ptr(),
n,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
}
/// <p>The <a href="http://doc.qt.io/qt-5/qt3dextras-qorbitcameracontroller.html">QOrbitCameraController</a> class allows controlling the scene camera along orbital path.</p>
///
/// C++ class: <span style='color: green;'>```Qt3DExtras::QOrbitCameraController```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qorbitcameracontroller.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>The <a href="http://doc.qt.io/qt-5/qt3dextras-qorbitcameracontroller.html">QOrbitCameraController</a> class allows controlling the scene camera along orbital path.</p>
/// <p>The controls are:</p>
/// <div class="table"><table class="generic">
/// <thead><tr class="qt-style"><th>Input</th><th>Action</th></tr></thead>
/// <tbody><tr valign="top" class="odd"><td>Left mouse button</td><td>While the left mouse button is pressed, mouse movement along x-axis moves the camera left and right and movement along y-axis moves it up and down.</td></tr>
/// <tr valign="top" class="even"><td>Right mouse button</td><td>While the right mouse button is pressed, mouse movement along x-axis pans the camera around the camera view center and movement along y-axis tilts it around the camera view center.</td></tr>
/// <tr valign="top" class="odd"><td>Both left and right mouse button</td><td>While both the left and the right mouse button are pressed, mouse movement along y-axis zooms the camera in and out without changing the view center.</td></tr>
/// <tr valign="top" class="even"><td>Mouse scroll wheel</td><td>Zooms the camera in and out without changing the view center.</td></tr>
/// <tr valign="top" class="odd"><td>Arrow keys</td><td>Move the camera vertically and horizontally relative to camera viewport.</td></tr>
/// <tr valign="top" class="even"><td>Page up and page down keys</td><td>Move the camera forwards and backwards.</td></tr>
/// <tr valign="top" class="odd"><td>Shift key</td><td>Changes the behavior of the up and down arrow keys to zoom the camera in and out without changing the view center. The other movement keys are disabled.</td></tr>
/// <tr valign="top" class="even"><td>Alt key</td><td>Changes the behovior of the arrow keys to pan and tilt the camera around the view center. Disables the page up and page down keys.</td></tr>
/// </tbody></table></div></div>
#[repr(C)]
pub struct QOrbitCameraController {
_unused: u8,
}
impl QOrbitCameraController {
/// <p>Holds the currently controlled camera.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QOrbitCameraController::cameraChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qorbitcameracontroller.html#camera-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the currently controlled camera.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DRender::QCamera *</td><td class="memItemRight bottomAlign"><span class="name"><b>camera</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setCamera</b></span>(Qt3DRender::QCamera *<i>camera</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>cameraChanged</b></span>()</td></tr>
/// </tbody></table></div></div>
pub fn camera_changed(&self) -> ::qt_core::Signal<()> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2cameraChanged()\0"),
)
}
}
/// <p>Holds the current linear speed of the camera controller. Linear speed determines the movement speed of the camera.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QOrbitCameraController::linearSpeedChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qorbitcameracontroller.html#linearSpeed-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current linear speed of the camera controller. Linear speed determines the movement speed of the camera.</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>linearSpeed</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setLinearSpeed</b></span>(float <i>linearSpeed</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>linearSpeedChanged</b></span>()</td></tr>
/// </tbody></table></div></div>
pub fn linear_speed_changed(&self) -> ::qt_core::Signal<()> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2linearSpeedChanged()\0"),
)
}
}
/// <p>Holds the current look speed of the camera controller. The look speed determines the turn rate of the camera pan and tilt.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QOrbitCameraController::lookSpeedChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qorbitcameracontroller.html#lookSpeed-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current look speed of the camera controller. The look speed determines the turn rate of the camera pan and tilt.</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>lookSpeed</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setLookSpeed</b></span>(float <i>lookSpeed</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>lookSpeedChanged</b></span>()</td></tr>
/// </tbody></table></div></div>
pub fn look_speed_changed(&self) -> ::qt_core::Signal<()> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2lookSpeedChanged()\0"),
)
}
}
/// <p>Holds the current zoom-in limit. The zoom-in limit determines how close to the view center the camera can be zoomed.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QOrbitCameraController::zoomInLimitChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qorbitcameracontroller.html#zoomInLimit-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current zoom-in limit. The zoom-in limit determines how close to the view center the camera can be zoomed.</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>zoomInLimit</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setZoomInLimit</b></span>(float <i>zoomInLimit</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>zoomInLimitChanged</b></span>()</td></tr>
/// </tbody></table></div></div>
pub fn zoom_in_limit_changed(&self) -> ::qt_core::Signal<()> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2zoomInLimitChanged()\0"),
)
}
}
/// <p>Holds the currently controlled camera.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QCamera* Qt3DExtras::QOrbitCameraController::camera() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qorbitcameracontroller.html#camera-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the currently controlled camera.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DRender::QCamera *</td><td class="memItemRight bottomAlign"><span class="name"><b>camera</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setCamera</b></span>(Qt3DRender::QCamera *<i>camera</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>cameraChanged</b></span>()</td></tr>
/// </tbody></table></div></div>
pub unsafe fn camera(&self) -> ::cpp_core::MutPtr<::qt_3d_render::QCamera> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QOrbitCameraController_camera(
self as *const crate::QOrbitCameraController,
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
/// <p>Holds the current linear speed of the camera controller. Linear speed determines the movement speed of the camera.</p>
///
/// Calls C++ function: <span style='color: green;'>```float Qt3DExtras::QOrbitCameraController::linearSpeed() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qorbitcameracontroller.html#linearSpeed-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current linear speed of the camera controller. Linear speed determines the movement speed of the camera.</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>linearSpeed</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setLinearSpeed</b></span>(float <i>linearSpeed</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>linearSpeedChanged</b></span>()</td></tr>
/// </tbody></table></div></div>
pub unsafe fn linear_speed(&self) -> ::std::os::raw::c_float {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QOrbitCameraController_linearSpeed(
self as *const crate::QOrbitCameraController,
)
}
/// <p>Holds the current look speed of the camera controller. The look speed determines the turn rate of the camera pan and tilt.</p>
///
/// Calls C++ function: <span style='color: green;'>```float Qt3DExtras::QOrbitCameraController::lookSpeed() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qorbitcameracontroller.html#lookSpeed-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current look speed of the camera controller. The look speed determines the turn rate of the camera pan and tilt.</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>lookSpeed</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setLookSpeed</b></span>(float <i>lookSpeed</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>lookSpeedChanged</b></span>()</td></tr>
/// </tbody></table></div></div>
pub unsafe fn look_speed(&self) -> ::std::os::raw::c_float {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QOrbitCameraController_lookSpeed(
self as *const crate::QOrbitCameraController,
)
}
/// Calls C++ function: <span style='color: green;'>```virtual const QMetaObject* Qt3DExtras::QOrbitCameraController::metaObject() const```</span>.
pub unsafe fn meta_object(&self) -> ::cpp_core::Ptr<::qt_core::QMetaObject> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QOrbitCameraController_metaObject(
self as *const crate::QOrbitCameraController,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// <p>Default constructs an instance of QOrbitCameraController.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DExtras::QOrbitCameraController::QOrbitCameraController(Qt3DCore::QNode* parent = …)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qorbitcameracontroller.html#QOrbitCameraController">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Default constructs an instance of QOrbitCameraController.</p></div>
pub unsafe fn new_1a(
parent: impl ::cpp_core::CastInto<::cpp_core::MutPtr<::qt_3d_core::QNode>>,
) -> ::cpp_core::CppBox<crate::QOrbitCameraController> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QOrbitCameraController_QOrbitCameraController(::cpp_core::CastInto::<::cpp_core::MutPtr<::qt_3d_core::QNode>>::cast_into(parent).as_mut_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/qt3dextras-qorbitcameracontroller.html">QOrbitCameraController</a> class allows controlling the scene camera along orbital path.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DExtras::QOrbitCameraController::QOrbitCameraController()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qorbitcameracontroller.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>The <a href="http://doc.qt.io/qt-5/qt3dextras-qorbitcameracontroller.html">QOrbitCameraController</a> class allows controlling the scene camera along orbital path.</p>
/// <p>The controls are:</p>
/// <div class="table"><table class="generic">
/// <thead><tr class="qt-style"><th>Input</th><th>Action</th></tr></thead>
/// <tbody><tr valign="top" class="odd"><td>Left mouse button</td><td>While the left mouse button is pressed, mouse movement along x-axis moves the camera left and right and movement along y-axis moves it up and down.</td></tr>
/// <tr valign="top" class="even"><td>Right mouse button</td><td>While the right mouse button is pressed, mouse movement along x-axis pans the camera around the camera view center and movement along y-axis tilts it around the camera view center.</td></tr>
/// <tr valign="top" class="odd"><td>Both left and right mouse button</td><td>While both the left and the right mouse button are pressed, mouse movement along y-axis zooms the camera in and out without changing the view center.</td></tr>
/// <tr valign="top" class="even"><td>Mouse scroll wheel</td><td>Zooms the camera in and out without changing the view center.</td></tr>
/// <tr valign="top" class="odd"><td>Arrow keys</td><td>Move the camera vertically and horizontally relative to camera viewport.</td></tr>
/// <tr valign="top" class="even"><td>Page up and page down keys</td><td>Move the camera forwards and backwards.</td></tr>
/// <tr valign="top" class="odd"><td>Shift key</td><td>Changes the behavior of the up and down arrow keys to zoom the camera in and out without changing the view center. The other movement keys are disabled.</td></tr>
/// <tr valign="top" class="even"><td>Alt key</td><td>Changes the behovior of the arrow keys to pan and tilt the camera around the view center. Disables the page up and page down keys.</td></tr>
/// </tbody></table></div></div>
pub unsafe fn new_0a() -> ::cpp_core::CppBox<crate::QOrbitCameraController> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QOrbitCameraController_QOrbitCameraController1();
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// Calls C++ function: <span style='color: green;'>```virtual int Qt3DExtras::QOrbitCameraController::qt_metacall(QMetaObject::Call arg1, int arg2, void** arg3)```</span>.
pub unsafe fn qt_metacall(
&mut self,
arg1: ::qt_core::q_meta_object::Call,
arg2: ::std::os::raw::c_int,
arg3: impl ::cpp_core::CastInto<::cpp_core::MutPtr<*mut ::std::ffi::c_void>>,
) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QOrbitCameraController_qt_metacall(
self as *mut crate::QOrbitCameraController,
arg1,
arg2,
::cpp_core::CastInto::<::cpp_core::MutPtr<*mut ::std::ffi::c_void>>::cast_into(arg3)
.as_mut_raw_ptr(),
)
}
/// Calls C++ function: <span style='color: green;'>```virtual void* Qt3DExtras::QOrbitCameraController::qt_metacast(const char* arg1)```</span>.
pub unsafe fn qt_metacast(
&mut self,
arg1: impl ::cpp_core::CastInto<::cpp_core::Ptr<::std::os::raw::c_char>>,
) -> ::cpp_core::MutPtr<::std::ffi::c_void> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QOrbitCameraController_qt_metacast(
self as *mut crate::QOrbitCameraController,
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(arg1)
.as_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
/// <p>Holds the currently controlled camera.</p>
///
/// Calls C++ function: <span style='color: green;'>```void Qt3DExtras::QOrbitCameraController::setCamera(Qt3DRender::QCamera* camera)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qorbitcameracontroller.html#camera-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the currently controlled camera.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DRender::QCamera *</td><td class="memItemRight bottomAlign"><span class="name"><b>camera</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setCamera</b></span>(Qt3DRender::QCamera *<i>camera</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>cameraChanged</b></span>()</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_camera(
&mut self,
camera: impl ::cpp_core::CastInto<::cpp_core::MutPtr<::qt_3d_render::QCamera>>,
) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QOrbitCameraController_setCamera(
self as *mut crate::QOrbitCameraController,
::cpp_core::CastInto::<::cpp_core::MutPtr<::qt_3d_render::QCamera>>::cast_into(camera)
.as_mut_raw_ptr(),
)
}
/// <p>Holds the current linear speed of the camera controller. Linear speed determines the movement speed of the camera.</p>
///
/// Calls C++ function: <span style='color: green;'>```void Qt3DExtras::QOrbitCameraController::setLinearSpeed(float linearSpeed)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qorbitcameracontroller.html#linearSpeed-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current linear speed of the camera controller. Linear speed determines the movement speed of the camera.</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>linearSpeed</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setLinearSpeed</b></span>(float <i>linearSpeed</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>linearSpeedChanged</b></span>()</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_linear_speed(&mut self, linear_speed: ::std::os::raw::c_float) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QOrbitCameraController_setLinearSpeed(
self as *mut crate::QOrbitCameraController,
linear_speed,
)
}
/// <p>Holds the current look speed of the camera controller. The look speed determines the turn rate of the camera pan and tilt.</p>
///
/// Calls C++ function: <span style='color: green;'>```void Qt3DExtras::QOrbitCameraController::setLookSpeed(float lookSpeed)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qorbitcameracontroller.html#lookSpeed-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current look speed of the camera controller. The look speed determines the turn rate of the camera pan and tilt.</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>lookSpeed</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setLookSpeed</b></span>(float <i>lookSpeed</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>lookSpeedChanged</b></span>()</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_look_speed(&mut self, look_speed: ::std::os::raw::c_float) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QOrbitCameraController_setLookSpeed(
self as *mut crate::QOrbitCameraController,
look_speed,
)
}
/// <p>Holds the current zoom-in limit. The zoom-in limit determines how close to the view center the camera can be zoomed.</p>
///
/// Calls C++ function: <span style='color: green;'>```void Qt3DExtras::QOrbitCameraController::setZoomInLimit(float zoomInLimit)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qorbitcameracontroller.html#zoomInLimit-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current zoom-in limit. The zoom-in limit determines how close to the view center the camera can be zoomed.</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>zoomInLimit</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setZoomInLimit</b></span>(float <i>zoomInLimit</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>zoomInLimitChanged</b></span>()</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_zoom_in_limit(&mut self, zoom_in_limit: ::std::os::raw::c_float) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QOrbitCameraController_setZoomInLimit(
self as *mut crate::QOrbitCameraController,
zoom_in_limit,
)
}
/// Returns a reference to the <span style='color: green;'>```staticMetaObject```</span> field.
pub unsafe fn static_meta_object() -> ::cpp_core::Ref<::qt_core::QMetaObject> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QOrbitCameraController_staticMetaObject();
::cpp_core::Ref::from_raw(ffi_result).expect("attempted to construct a null Ref")
}
/// Calls C++ function: <span style='color: green;'>```static QString Qt3DExtras::QOrbitCameraController::tr(const char* s, const char* c, int n)```</span>.
pub unsafe fn tr(
s: impl ::cpp_core::CastInto<::cpp_core::Ptr<::std::os::raw::c_char>>,
c: impl ::cpp_core::CastInto<::cpp_core::Ptr<::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_extras_ffi_Qt3DExtras_QOrbitCameraController_tr(
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(s)
.as_raw_ptr(),
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(c)
.as_raw_ptr(),
n,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// Calls C++ function: <span style='color: green;'>```static QString Qt3DExtras::QOrbitCameraController::trUtf8(const char* s, const char* c, int n)```</span>.
pub unsafe fn tr_utf8(
s: impl ::cpp_core::CastInto<::cpp_core::Ptr<::std::os::raw::c_char>>,
c: impl ::cpp_core::CastInto<::cpp_core::Ptr<::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_extras_ffi_Qt3DExtras_QOrbitCameraController_trUtf8(
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(s)
.as_raw_ptr(),
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(c)
.as_raw_ptr(),
n,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Holds the current zoom-in limit. The zoom-in limit determines how close to the view center the camera can be zoomed.</p>
///
/// Calls C++ function: <span style='color: green;'>```float Qt3DExtras::QOrbitCameraController::zoomInLimit() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qorbitcameracontroller.html#zoomInLimit-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current zoom-in limit. The zoom-in limit determines how close to the view center the camera can be zoomed.</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>zoomInLimit</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setZoomInLimit</b></span>(float <i>zoomInLimit</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>zoomInLimitChanged</b></span>()</td></tr>
/// </tbody></table></div></div>
pub unsafe fn zoom_in_limit(&self) -> ::std::os::raw::c_float {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QOrbitCameraController_zoomInLimit(
self as *const crate::QOrbitCameraController,
)
}
}
/// <p>The <a href="http://doc.qt.io/qt-5/qt3dextras-qpervertexcolormaterial.html">QPerVertexColorMaterial</a> class provides a default implementation for rendering the color properties set for each vertex.</p>
///
/// C++ class: <span style='color: green;'>```Qt3DExtras::QPerVertexColorMaterial```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qpervertexcolormaterial.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>The <a href="http://doc.qt.io/qt-5/qt3dextras-qpervertexcolormaterial.html">QPerVertexColorMaterial</a> class provides a default implementation for rendering the color properties set for each vertex.</p>
/// <p>This lighting effect is based on the combination of 2 lighting components ambient and diffuse. Ambient is set by the vertex color. Diffuse takes in account the normal distribution of each vertex.</p>
/// <ul>
/// <li>Ambient is the color that is emitted by an object without any other light source.</li>
/// <li>Diffuse is the color that is emitted for rough surface reflections with the lights</li>
/// </ul>
/// <p>This material uses an effect with a single render pass approach and forms fragment lighting. Techniques are provided for OpenGL 2, OpenGL 3 or above as well as OpenGL ES 2.</p></div>
#[repr(C)]
pub struct QPerVertexColorMaterial {
_unused: u8,
}
impl QPerVertexColorMaterial {
/// Calls C++ function: <span style='color: green;'>```virtual const QMetaObject* Qt3DExtras::QPerVertexColorMaterial::metaObject() const```</span>.
pub unsafe fn meta_object(&self) -> ::cpp_core::Ptr<::qt_core::QMetaObject> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QPerVertexColorMaterial_metaObject(
self as *const crate::QPerVertexColorMaterial,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// <p>Default constructs an instance of QPerVertexColorMaterial.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DExtras::QPerVertexColorMaterial::QPerVertexColorMaterial(Qt3DCore::QNode* parent = …)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qpervertexcolormaterial.html#QPerVertexColorMaterial">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Default constructs an instance of QPerVertexColorMaterial.</p></div>
pub unsafe fn new_1a(
parent: impl ::cpp_core::CastInto<::cpp_core::MutPtr<::qt_3d_core::QNode>>,
) -> ::cpp_core::CppBox<crate::QPerVertexColorMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QPerVertexColorMaterial_QPerVertexColorMaterial(::cpp_core::CastInto::<::cpp_core::MutPtr<::qt_3d_core::QNode>>::cast_into(parent).as_mut_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/qt3dextras-qpervertexcolormaterial.html">QPerVertexColorMaterial</a> class provides a default implementation for rendering the color properties set for each vertex.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DExtras::QPerVertexColorMaterial::QPerVertexColorMaterial()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qpervertexcolormaterial.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>The <a href="http://doc.qt.io/qt-5/qt3dextras-qpervertexcolormaterial.html">QPerVertexColorMaterial</a> class provides a default implementation for rendering the color properties set for each vertex.</p>
/// <p>This lighting effect is based on the combination of 2 lighting components ambient and diffuse. Ambient is set by the vertex color. Diffuse takes in account the normal distribution of each vertex.</p>
/// <ul>
/// <li>Ambient is the color that is emitted by an object without any other light source.</li>
/// <li>Diffuse is the color that is emitted for rough surface reflections with the lights</li>
/// </ul>
/// <p>This material uses an effect with a single render pass approach and forms fragment lighting. Techniques are provided for OpenGL 2, OpenGL 3 or above as well as OpenGL ES 2.</p></div>
pub unsafe fn new_0a() -> ::cpp_core::CppBox<crate::QPerVertexColorMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QPerVertexColorMaterial_QPerVertexColorMaterial1();
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// Calls C++ function: <span style='color: green;'>```virtual int Qt3DExtras::QPerVertexColorMaterial::qt_metacall(QMetaObject::Call arg1, int arg2, void** arg3)```</span>.
pub unsafe fn qt_metacall(
&mut self,
arg1: ::qt_core::q_meta_object::Call,
arg2: ::std::os::raw::c_int,
arg3: impl ::cpp_core::CastInto<::cpp_core::MutPtr<*mut ::std::ffi::c_void>>,
) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QPerVertexColorMaterial_qt_metacall(
self as *mut crate::QPerVertexColorMaterial,
arg1,
arg2,
::cpp_core::CastInto::<::cpp_core::MutPtr<*mut ::std::ffi::c_void>>::cast_into(arg3)
.as_mut_raw_ptr(),
)
}
/// Calls C++ function: <span style='color: green;'>```virtual void* Qt3DExtras::QPerVertexColorMaterial::qt_metacast(const char* arg1)```</span>.
pub unsafe fn qt_metacast(
&mut self,
arg1: impl ::cpp_core::CastInto<::cpp_core::Ptr<::std::os::raw::c_char>>,
) -> ::cpp_core::MutPtr<::std::ffi::c_void> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QPerVertexColorMaterial_qt_metacast(
self as *mut crate::QPerVertexColorMaterial,
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(arg1)
.as_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
/// Returns a reference to the <span style='color: green;'>```staticMetaObject```</span> field.
pub unsafe fn static_meta_object() -> ::cpp_core::Ref<::qt_core::QMetaObject> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QPerVertexColorMaterial_staticMetaObject(
);
::cpp_core::Ref::from_raw(ffi_result).expect("attempted to construct a null Ref")
}
/// Calls C++ function: <span style='color: green;'>```static QString Qt3DExtras::QPerVertexColorMaterial::tr(const char* s, const char* c, int n)```</span>.
pub unsafe fn tr(
s: impl ::cpp_core::CastInto<::cpp_core::Ptr<::std::os::raw::c_char>>,
c: impl ::cpp_core::CastInto<::cpp_core::Ptr<::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_extras_ffi_Qt3DExtras_QPerVertexColorMaterial_tr(
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(s)
.as_raw_ptr(),
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(c)
.as_raw_ptr(),
n,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// Calls C++ function: <span style='color: green;'>```static QString Qt3DExtras::QPerVertexColorMaterial::trUtf8(const char* s, const char* c, int n)```</span>.
pub unsafe fn tr_utf8(
s: impl ::cpp_core::CastInto<::cpp_core::Ptr<::std::os::raw::c_char>>,
c: impl ::cpp_core::CastInto<::cpp_core::Ptr<::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_extras_ffi_Qt3DExtras_QPerVertexColorMaterial_trUtf8(
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(s)
.as_raw_ptr(),
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(c)
.as_raw_ptr(),
n,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
}
/// <p>The <a href="http://doc.qt.io/qt-5/qt3dextras-qphongalphamaterial.html">QPhongAlphaMaterial</a> class provides a default implementation of the phong lighting effect with alpha.</p>
///
/// C++ class: <span style='color: green;'>```Qt3DExtras::QPhongAlphaMaterial```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qphongalphamaterial.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>The <a href="http://doc.qt.io/qt-5/qt3dextras-qphongalphamaterial.html">QPhongAlphaMaterial</a> class provides a default implementation of the phong lighting effect with alpha.</p>
/// <p>The phong lighting effect is based on the combination of 3 lighting components ambient, diffuse and specular. The relative strengths of these components are controlled by means of their reflectivity coefficients which are modelled as RGB triplets:</p>
/// <ul>
/// <li>Ambient is the color that is emitted by an object without any other light source.</li>
/// <li>Diffuse is the color that is emitted for rought surface reflections with the lights.</li>
/// <li>Specular is the color emitted for shiny surface reflections with the lights.</li>
/// <li>The shininess of a surface is controlled by a float property.</li>
/// <li>Alpha is the transparency of the surface between 0 (fully transparent) and 1 (opaque).</li>
/// </ul>
/// <p>This material uses an effect with a single render pass approach and performs per fragment lighting. Techniques are provided for OpenGL 2, OpenGL 3 or above as well as OpenGL ES 2.</p></div>
#[repr(C)]
pub struct QPhongAlphaMaterial {
_unused: u8,
}
impl QPhongAlphaMaterial {
/// <p>Holds the ambient color.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QPhongAlphaMaterial::setAmbient` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qphongalphamaterial.html#ambient-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the ambient color.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QColor </td><td class="memItemRight bottomAlign"><span class="name"><b>ambient</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setAmbient</b></span>(const QColor &<i>ambient</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>ambientChanged</b></span>(const QColor &<i>ambient</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slot_set_ambient(&self) -> ::qt_core::Receiver<(*const ::qt_gui::QColor,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setAmbient(const QColor&)\0"),
)
}
}
/// <p>Holds the diffuse color.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QPhongAlphaMaterial::setDiffuse` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qphongalphamaterial.html#diffuse-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the diffuse color.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QColor </td><td class="memItemRight bottomAlign"><span class="name"><b>diffuse</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setDiffuse</b></span>(const QColor &<i>diffuse</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>diffuseChanged</b></span>(const QColor &<i>diffuse</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slot_set_diffuse(&self) -> ::qt_core::Receiver<(*const ::qt_gui::QColor,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setDiffuse(const QColor&)\0"),
)
}
}
/// <p>Holds the specular color.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QPhongAlphaMaterial::setSpecular` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qphongalphamaterial.html#specular-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the specular color.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QColor </td><td class="memItemRight bottomAlign"><span class="name"><b>specular</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setSpecular</b></span>(const QColor &<i>specular</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>specularChanged</b></span>(const QColor &<i>specular</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slot_set_specular(&self) -> ::qt_core::Receiver<(*const ::qt_gui::QColor,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setSpecular(const QColor&)\0"),
)
}
}
/// <p>Holds the shininess exponent.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QPhongAlphaMaterial::setShininess` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qphongalphamaterial.html#shininess-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the shininess exponent.</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>shininess</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setShininess</b></span>(float <i>shininess</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>shininessChanged</b></span>(float <i>shininess</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slot_set_shininess(&self) -> ::qt_core::Receiver<(::std::os::raw::c_float,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setShininess(float)\0"),
)
}
}
/// <p>Holds the alpha component of the object which varies between 0 and 1.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QPhongAlphaMaterial::setAlpha` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qphongalphamaterial.html#alpha-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the alpha component of the object which varies between 0 and 1.</p>
/// <p>The default value is 0.5f.</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>alpha</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setAlpha</b></span>(float <i>alpha</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>alphaChanged</b></span>(float <i>alpha</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slot_set_alpha(&self) -> ::qt_core::Receiver<(::std::os::raw::c_float,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setAlpha(float)\0"),
)
}
}
/// <p>Holds the blend equation source RGB blending argument.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QPhongAlphaMaterial::setSourceRgbArg` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qphongalphamaterial.html#sourceRgbArg-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the blend equation source RGB blending argument.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DRender::QBlendEquationArguments::Blending </td><td class="memItemRight bottomAlign"><span class="name"><b>sourceRgbArg</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setSourceRgbArg</b></span>(Qt3DRender::QBlendEquationArguments::Blending <i>sourceRgbArg</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>sourceRgbArgChanged</b></span>(Qt3DRender::QBlendEquationArguments::Blending <i>sourceRgbArg</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qt3drender-qblendequationarguments.html#Blending-enum">Qt3DRender::QBlendEquationArguments::Blending</a>.</p></div>
pub fn slot_set_source_rgb_arg(
&self,
) -> ::qt_core::Receiver<(::qt_3d_render::q_blend_equation_arguments::Blending,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"1setSourceRgbArg(Qt3DRender::QBlendEquationArguments::Blending)\0",
),
)
}
}
/// <p>Holds the blend equation destination RGB blending argument.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QPhongAlphaMaterial::setDestinationRgbArg` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qphongalphamaterial.html#destinationRgbArg-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the blend equation destination RGB blending argument.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DRender::QBlendEquationArguments::Blending </td><td class="memItemRight bottomAlign"><span class="name"><b>destinationRgbArg</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setDestinationRgbArg</b></span>(Qt3DRender::QBlendEquationArguments::Blending <i>destinationRgbArg</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>destinationRgbArgChanged</b></span>(Qt3DRender::QBlendEquationArguments::Blending <i>destinationRgbArg</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qt3drender-qblendequationarguments.html#Blending-enum">Qt3DRender::QBlendEquationArguments::Blending</a>.</p></div>
pub fn slot_set_destination_rgb_arg(
&self,
) -> ::qt_core::Receiver<(::qt_3d_render::q_blend_equation_arguments::Blending,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"1setDestinationRgbArg(Qt3DRender::QBlendEquationArguments::Blending)\0",
),
)
}
}
/// <p>Holds the blend equation source alpha blending argument.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QPhongAlphaMaterial::setSourceAlphaArg` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qphongalphamaterial.html#sourceAlphaArg-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the blend equation source alpha blending argument.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DRender::QBlendEquationArguments::Blending </td><td class="memItemRight bottomAlign"><span class="name"><b>sourceAlphaArg</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setSourceAlphaArg</b></span>(Qt3DRender::QBlendEquationArguments::Blending <i>sourceAlphaArg</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>sourceAlphaArgChanged</b></span>(Qt3DRender::QBlendEquationArguments::Blending <i>sourceAlphaArg</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qt3drender-qblendequationarguments.html#Blending-enum">Qt3DRender::QBlendEquationArguments::Blending</a>.</p></div>
pub fn slot_set_source_alpha_arg(
&self,
) -> ::qt_core::Receiver<(::qt_3d_render::q_blend_equation_arguments::Blending,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"1setSourceAlphaArg(Qt3DRender::QBlendEquationArguments::Blending)\0",
),
)
}
}
/// <p>Holds the blend equation destination alpha blending argument.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QPhongAlphaMaterial::setDestinationAlphaArg` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qphongalphamaterial.html#destinationAlphaArg-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the blend equation destination alpha blending argument.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DRender::QBlendEquationArguments::Blending </td><td class="memItemRight bottomAlign"><span class="name"><b>destinationAlphaArg</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setDestinationAlphaArg</b></span>(Qt3DRender::QBlendEquationArguments::Blending <i>destinationAlphaArg</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>destinationAlphaArgChanged</b></span>(Qt3DRender::QBlendEquationArguments::Blending <i>destinationAlphaArg</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qt3drender-qblendequationarguments.html#Blending-enum">Qt3DRender::QBlendEquationArguments::Blending</a>.</p></div>
pub fn slot_set_destination_alpha_arg(
&self,
) -> ::qt_core::Receiver<(::qt_3d_render::q_blend_equation_arguments::Blending,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"1setDestinationAlphaArg(Qt3DRender::QBlendEquationArguments::Blending)\0",
),
)
}
}
/// <p>Holds the blend equation function argument.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QPhongAlphaMaterial::setBlendFunctionArg` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qphongalphamaterial.html#blendFunctionArg-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the blend equation function argument.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DRender::QBlendEquation::BlendFunction </td><td class="memItemRight bottomAlign"><span class="name"><b>blendFunctionArg</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setBlendFunctionArg</b></span>(Qt3DRender::QBlendEquation::BlendFunction <i>blendFunctionArg</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>blendFunctionArgChanged</b></span>(Qt3DRender::QBlendEquation::BlendFunction <i>blendFunctionArg</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qt3drender-qblendequation.html#BlendFunction-enum">Qt3DRender::QBlendEquation::BlendFunction</a>.</p></div>
pub fn slot_set_blend_function_arg(
&self,
) -> ::qt_core::Receiver<(::qt_3d_render::q_blend_equation::BlendFunction,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"1setBlendFunctionArg(Qt3DRender::QBlendEquation::BlendFunction)\0",
),
)
}
}
/// <p>Holds the ambient color.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QPhongAlphaMaterial::ambientChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qphongalphamaterial.html#ambient-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the ambient color.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QColor </td><td class="memItemRight bottomAlign"><span class="name"><b>ambient</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setAmbient</b></span>(const QColor &<i>ambient</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>ambientChanged</b></span>(const QColor &<i>ambient</i>)</td></tr>
/// </tbody></table></div></div>
pub fn ambient_changed(&self) -> ::qt_core::Signal<(*const ::qt_gui::QColor,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"2ambientChanged(const QColor&)\0",
),
)
}
}
/// <p>Holds the diffuse color.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QPhongAlphaMaterial::diffuseChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qphongalphamaterial.html#diffuse-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the diffuse color.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QColor </td><td class="memItemRight bottomAlign"><span class="name"><b>diffuse</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setDiffuse</b></span>(const QColor &<i>diffuse</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>diffuseChanged</b></span>(const QColor &<i>diffuse</i>)</td></tr>
/// </tbody></table></div></div>
pub fn diffuse_changed(&self) -> ::qt_core::Signal<(*const ::qt_gui::QColor,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"2diffuseChanged(const QColor&)\0",
),
)
}
}
/// <p>Holds the specular color.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QPhongAlphaMaterial::specularChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qphongalphamaterial.html#specular-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the specular color.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QColor </td><td class="memItemRight bottomAlign"><span class="name"><b>specular</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setSpecular</b></span>(const QColor &<i>specular</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>specularChanged</b></span>(const QColor &<i>specular</i>)</td></tr>
/// </tbody></table></div></div>
pub fn specular_changed(&self) -> ::qt_core::Signal<(*const ::qt_gui::QColor,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"2specularChanged(const QColor&)\0",
),
)
}
}
/// <p>Holds the shininess exponent.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QPhongAlphaMaterial::shininessChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qphongalphamaterial.html#shininess-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the shininess exponent.</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>shininess</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setShininess</b></span>(float <i>shininess</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>shininessChanged</b></span>(float <i>shininess</i>)</td></tr>
/// </tbody></table></div></div>
pub fn shininess_changed(&self) -> ::qt_core::Signal<(::std::os::raw::c_float,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2shininessChanged(float)\0"),
)
}
}
/// <p>Holds the alpha component of the object which varies between 0 and 1.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QPhongAlphaMaterial::alphaChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qphongalphamaterial.html#alpha-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the alpha component of the object which varies between 0 and 1.</p>
/// <p>The default value is 0.5f.</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>alpha</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setAlpha</b></span>(float <i>alpha</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>alphaChanged</b></span>(float <i>alpha</i>)</td></tr>
/// </tbody></table></div></div>
pub fn alpha_changed(&self) -> ::qt_core::Signal<(::std::os::raw::c_float,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2alphaChanged(float)\0"),
)
}
}
/// <p>Holds the blend equation source RGB blending argument.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QPhongAlphaMaterial::sourceRgbArgChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qphongalphamaterial.html#sourceRgbArg-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the blend equation source RGB blending argument.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DRender::QBlendEquationArguments::Blending </td><td class="memItemRight bottomAlign"><span class="name"><b>sourceRgbArg</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setSourceRgbArg</b></span>(Qt3DRender::QBlendEquationArguments::Blending <i>sourceRgbArg</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>sourceRgbArgChanged</b></span>(Qt3DRender::QBlendEquationArguments::Blending <i>sourceRgbArg</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qt3drender-qblendequationarguments.html#Blending-enum">Qt3DRender::QBlendEquationArguments::Blending</a>.</p></div>
pub fn source_rgb_arg_changed(
&self,
) -> ::qt_core::Signal<(::qt_3d_render::q_blend_equation_arguments::Blending,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"2sourceRgbArgChanged(Qt3DRender::QBlendEquationArguments::Blending)\0",
),
)
}
}
/// <p>Holds the blend equation destination RGB blending argument.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QPhongAlphaMaterial::destinationRgbArgChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qphongalphamaterial.html#destinationRgbArg-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the blend equation destination RGB blending argument.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DRender::QBlendEquationArguments::Blending </td><td class="memItemRight bottomAlign"><span class="name"><b>destinationRgbArg</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setDestinationRgbArg</b></span>(Qt3DRender::QBlendEquationArguments::Blending <i>destinationRgbArg</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>destinationRgbArgChanged</b></span>(Qt3DRender::QBlendEquationArguments::Blending <i>destinationRgbArg</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qt3drender-qblendequationarguments.html#Blending-enum">Qt3DRender::QBlendEquationArguments::Blending</a>.</p></div>
pub fn destination_rgb_arg_changed(
&self,
) -> ::qt_core::Signal<(::qt_3d_render::q_blend_equation_arguments::Blending,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"2destinationRgbArgChanged(Qt3DRender::QBlendEquationArguments::Blending)\0",
),
)
}
}
/// <p>Holds the blend equation source alpha blending argument.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QPhongAlphaMaterial::sourceAlphaArgChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qphongalphamaterial.html#sourceAlphaArg-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the blend equation source alpha blending argument.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DRender::QBlendEquationArguments::Blending </td><td class="memItemRight bottomAlign"><span class="name"><b>sourceAlphaArg</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setSourceAlphaArg</b></span>(Qt3DRender::QBlendEquationArguments::Blending <i>sourceAlphaArg</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>sourceAlphaArgChanged</b></span>(Qt3DRender::QBlendEquationArguments::Blending <i>sourceAlphaArg</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qt3drender-qblendequationarguments.html#Blending-enum">Qt3DRender::QBlendEquationArguments::Blending</a>.</p></div>
pub fn source_alpha_arg_changed(
&self,
) -> ::qt_core::Signal<(::qt_3d_render::q_blend_equation_arguments::Blending,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"2sourceAlphaArgChanged(Qt3DRender::QBlendEquationArguments::Blending)\0",
),
)
}
}
/// <p>Holds the blend equation destination alpha blending argument.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QPhongAlphaMaterial::destinationAlphaArgChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qphongalphamaterial.html#destinationAlphaArg-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the blend equation destination alpha blending argument.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DRender::QBlendEquationArguments::Blending </td><td class="memItemRight bottomAlign"><span class="name"><b>destinationAlphaArg</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setDestinationAlphaArg</b></span>(Qt3DRender::QBlendEquationArguments::Blending <i>destinationAlphaArg</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>destinationAlphaArgChanged</b></span>(Qt3DRender::QBlendEquationArguments::Blending <i>destinationAlphaArg</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qt3drender-qblendequationarguments.html#Blending-enum">Qt3DRender::QBlendEquationArguments::Blending</a>.</p></div>
pub fn destination_alpha_arg_changed(
&self,
) -> ::qt_core::Signal<(::qt_3d_render::q_blend_equation_arguments::Blending,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"2destinationAlphaArgChanged(Qt3DRender::QBlendEquationArguments::Blending)\0",
),
)
}
}
/// <p>Holds the blend equation function argument.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QPhongAlphaMaterial::blendFunctionArgChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qphongalphamaterial.html#blendFunctionArg-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the blend equation function argument.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DRender::QBlendEquation::BlendFunction </td><td class="memItemRight bottomAlign"><span class="name"><b>blendFunctionArg</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setBlendFunctionArg</b></span>(Qt3DRender::QBlendEquation::BlendFunction <i>blendFunctionArg</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>blendFunctionArgChanged</b></span>(Qt3DRender::QBlendEquation::BlendFunction <i>blendFunctionArg</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qt3drender-qblendequation.html#BlendFunction-enum">Qt3DRender::QBlendEquation::BlendFunction</a>.</p></div>
pub fn blend_function_arg_changed(
&self,
) -> ::qt_core::Signal<(::qt_3d_render::q_blend_equation::BlendFunction,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"2blendFunctionArgChanged(Qt3DRender::QBlendEquation::BlendFunction)\0",
),
)
}
}
/// <p>Holds the alpha component of the object which varies between 0 and 1.</p>
///
/// Calls C++ function: <span style='color: green;'>```float Qt3DExtras::QPhongAlphaMaterial::alpha() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qphongalphamaterial.html#alpha-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the alpha component of the object which varies between 0 and 1.</p>
/// <p>The default value is 0.5f.</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>alpha</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setAlpha</b></span>(float <i>alpha</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>alphaChanged</b></span>(float <i>alpha</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn alpha(&self) -> ::std::os::raw::c_float {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QPhongAlphaMaterial_alpha(
self as *const crate::QPhongAlphaMaterial,
)
}
/// <p>Holds the ambient color.</p>
///
/// Calls C++ function: <span style='color: green;'>```QColor Qt3DExtras::QPhongAlphaMaterial::ambient() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qphongalphamaterial.html#ambient-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the ambient color.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QColor </td><td class="memItemRight bottomAlign"><span class="name"><b>ambient</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setAmbient</b></span>(const QColor &<i>ambient</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>ambientChanged</b></span>(const QColor &<i>ambient</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn ambient(&self) -> ::cpp_core::CppBox<::qt_gui::QColor> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QPhongAlphaMaterial_ambient(
self as *const crate::QPhongAlphaMaterial,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Holds the blend equation function argument.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QBlendEquation::BlendFunction Qt3DExtras::QPhongAlphaMaterial::blendFunctionArg() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qphongalphamaterial.html#blendFunctionArg-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the blend equation function argument.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DRender::QBlendEquation::BlendFunction </td><td class="memItemRight bottomAlign"><span class="name"><b>blendFunctionArg</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setBlendFunctionArg</b></span>(Qt3DRender::QBlendEquation::BlendFunction <i>blendFunctionArg</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>blendFunctionArgChanged</b></span>(Qt3DRender::QBlendEquation::BlendFunction <i>blendFunctionArg</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qt3drender-qblendequation.html#BlendFunction-enum">Qt3DRender::QBlendEquation::BlendFunction</a>.</p></div>
pub unsafe fn blend_function_arg(&self) -> ::qt_3d_render::q_blend_equation::BlendFunction {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QPhongAlphaMaterial_blendFunctionArg(
self as *const crate::QPhongAlphaMaterial,
)
}
/// <p>Holds the blend equation destination alpha blending argument.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QBlendEquationArguments::Blending Qt3DExtras::QPhongAlphaMaterial::destinationAlphaArg() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qphongalphamaterial.html#destinationAlphaArg-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the blend equation destination alpha blending argument.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DRender::QBlendEquationArguments::Blending </td><td class="memItemRight bottomAlign"><span class="name"><b>destinationAlphaArg</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setDestinationAlphaArg</b></span>(Qt3DRender::QBlendEquationArguments::Blending <i>destinationAlphaArg</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>destinationAlphaArgChanged</b></span>(Qt3DRender::QBlendEquationArguments::Blending <i>destinationAlphaArg</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qt3drender-qblendequationarguments.html#Blending-enum">Qt3DRender::QBlendEquationArguments::Blending</a>.</p></div>
pub unsafe fn destination_alpha_arg(
&self,
) -> ::qt_3d_render::q_blend_equation_arguments::Blending {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QPhongAlphaMaterial_destinationAlphaArg(
self as *const crate::QPhongAlphaMaterial,
)
}
/// <p>Holds the blend equation destination RGB blending argument.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QBlendEquationArguments::Blending Qt3DExtras::QPhongAlphaMaterial::destinationRgbArg() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qphongalphamaterial.html#destinationRgbArg-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the blend equation destination RGB blending argument.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DRender::QBlendEquationArguments::Blending </td><td class="memItemRight bottomAlign"><span class="name"><b>destinationRgbArg</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setDestinationRgbArg</b></span>(Qt3DRender::QBlendEquationArguments::Blending <i>destinationRgbArg</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>destinationRgbArgChanged</b></span>(Qt3DRender::QBlendEquationArguments::Blending <i>destinationRgbArg</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qt3drender-qblendequationarguments.html#Blending-enum">Qt3DRender::QBlendEquationArguments::Blending</a>.</p></div>
pub unsafe fn destination_rgb_arg(
&self,
) -> ::qt_3d_render::q_blend_equation_arguments::Blending {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QPhongAlphaMaterial_destinationRgbArg(
self as *const crate::QPhongAlphaMaterial,
)
}
/// <p>Holds the diffuse color.</p>
///
/// Calls C++ function: <span style='color: green;'>```QColor Qt3DExtras::QPhongAlphaMaterial::diffuse() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qphongalphamaterial.html#diffuse-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the diffuse color.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QColor </td><td class="memItemRight bottomAlign"><span class="name"><b>diffuse</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setDiffuse</b></span>(const QColor &<i>diffuse</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>diffuseChanged</b></span>(const QColor &<i>diffuse</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn diffuse(&self) -> ::cpp_core::CppBox<::qt_gui::QColor> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QPhongAlphaMaterial_diffuse(
self as *const crate::QPhongAlphaMaterial,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// Calls C++ function: <span style='color: green;'>```virtual const QMetaObject* Qt3DExtras::QPhongAlphaMaterial::metaObject() const```</span>.
pub unsafe fn meta_object(&self) -> ::cpp_core::Ptr<::qt_core::QMetaObject> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QPhongAlphaMaterial_metaObject(
self as *const crate::QPhongAlphaMaterial,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// <p>Default constructs an instance of QPhongAlphaMaterial.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DExtras::QPhongAlphaMaterial::QPhongAlphaMaterial(Qt3DCore::QNode* parent = …)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qphongalphamaterial.html#QPhongAlphaMaterial">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Default constructs an instance of QPhongAlphaMaterial.</p></div>
pub unsafe fn new_1a(
parent: impl ::cpp_core::CastInto<::cpp_core::MutPtr<::qt_3d_core::QNode>>,
) -> ::cpp_core::CppBox<crate::QPhongAlphaMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QPhongAlphaMaterial_QPhongAlphaMaterial(
::cpp_core::CastInto::<::cpp_core::MutPtr<::qt_3d_core::QNode>>::cast_into(parent)
.as_mut_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/qt3dextras-qphongalphamaterial.html">QPhongAlphaMaterial</a> class provides a default implementation of the phong lighting effect with alpha.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DExtras::QPhongAlphaMaterial::QPhongAlphaMaterial()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qphongalphamaterial.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>The <a href="http://doc.qt.io/qt-5/qt3dextras-qphongalphamaterial.html">QPhongAlphaMaterial</a> class provides a default implementation of the phong lighting effect with alpha.</p>
/// <p>The phong lighting effect is based on the combination of 3 lighting components ambient, diffuse and specular. The relative strengths of these components are controlled by means of their reflectivity coefficients which are modelled as RGB triplets:</p>
/// <ul>
/// <li>Ambient is the color that is emitted by an object without any other light source.</li>
/// <li>Diffuse is the color that is emitted for rought surface reflections with the lights.</li>
/// <li>Specular is the color emitted for shiny surface reflections with the lights.</li>
/// <li>The shininess of a surface is controlled by a float property.</li>
/// <li>Alpha is the transparency of the surface between 0 (fully transparent) and 1 (opaque).</li>
/// </ul>
/// <p>This material uses an effect with a single render pass approach and performs per fragment lighting. Techniques are provided for OpenGL 2, OpenGL 3 or above as well as OpenGL ES 2.</p></div>
pub unsafe fn new_0a() -> ::cpp_core::CppBox<crate::QPhongAlphaMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QPhongAlphaMaterial_QPhongAlphaMaterial1(
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// Calls C++ function: <span style='color: green;'>```virtual int Qt3DExtras::QPhongAlphaMaterial::qt_metacall(QMetaObject::Call arg1, int arg2, void** arg3)```</span>.
pub unsafe fn qt_metacall(
&mut self,
arg1: ::qt_core::q_meta_object::Call,
arg2: ::std::os::raw::c_int,
arg3: impl ::cpp_core::CastInto<::cpp_core::MutPtr<*mut ::std::ffi::c_void>>,
) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QPhongAlphaMaterial_qt_metacall(
self as *mut crate::QPhongAlphaMaterial,
arg1,
arg2,
::cpp_core::CastInto::<::cpp_core::MutPtr<*mut ::std::ffi::c_void>>::cast_into(arg3)
.as_mut_raw_ptr(),
)
}
/// Calls C++ function: <span style='color: green;'>```virtual void* Qt3DExtras::QPhongAlphaMaterial::qt_metacast(const char* arg1)```</span>.
pub unsafe fn qt_metacast(
&mut self,
arg1: impl ::cpp_core::CastInto<::cpp_core::Ptr<::std::os::raw::c_char>>,
) -> ::cpp_core::MutPtr<::std::ffi::c_void> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QPhongAlphaMaterial_qt_metacast(
self as *mut crate::QPhongAlphaMaterial,
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(arg1)
.as_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
/// <p>Holds the alpha component of the object which varies between 0 and 1.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QPhongAlphaMaterial::setAlpha(float alpha)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qphongalphamaterial.html#alpha-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the alpha component of the object which varies between 0 and 1.</p>
/// <p>The default value is 0.5f.</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>alpha</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setAlpha</b></span>(float <i>alpha</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>alphaChanged</b></span>(float <i>alpha</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_alpha(&mut self, alpha: ::std::os::raw::c_float) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QPhongAlphaMaterial_setAlpha(
self as *mut crate::QPhongAlphaMaterial,
alpha,
)
}
/// <p>Holds the ambient color.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QPhongAlphaMaterial::setAmbient(const QColor& ambient)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qphongalphamaterial.html#ambient-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the ambient color.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QColor </td><td class="memItemRight bottomAlign"><span class="name"><b>ambient</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setAmbient</b></span>(const QColor &<i>ambient</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>ambientChanged</b></span>(const QColor &<i>ambient</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_ambient(
&mut self,
ambient: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_gui::QColor>>,
) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QPhongAlphaMaterial_setAmbient(
self as *mut crate::QPhongAlphaMaterial,
::cpp_core::CastInto::<::cpp_core::Ref<::qt_gui::QColor>>::cast_into(ambient)
.as_raw_ptr(),
)
}
/// <p>Holds the blend equation function argument.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QPhongAlphaMaterial::setBlendFunctionArg(Qt3DRender::QBlendEquation::BlendFunction blendFunctionArg)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qphongalphamaterial.html#blendFunctionArg-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the blend equation function argument.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DRender::QBlendEquation::BlendFunction </td><td class="memItemRight bottomAlign"><span class="name"><b>blendFunctionArg</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setBlendFunctionArg</b></span>(Qt3DRender::QBlendEquation::BlendFunction <i>blendFunctionArg</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>blendFunctionArgChanged</b></span>(Qt3DRender::QBlendEquation::BlendFunction <i>blendFunctionArg</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qt3drender-qblendequation.html#BlendFunction-enum">Qt3DRender::QBlendEquation::BlendFunction</a>.</p></div>
pub unsafe fn set_blend_function_arg(
&mut self,
blend_function_arg: ::qt_3d_render::q_blend_equation::BlendFunction,
) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QPhongAlphaMaterial_setBlendFunctionArg(
self as *mut crate::QPhongAlphaMaterial,
blend_function_arg,
)
}
/// <p>Holds the blend equation destination alpha blending argument.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QPhongAlphaMaterial::setDestinationAlphaArg(Qt3DRender::QBlendEquationArguments::Blending destinationAlphaArg)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qphongalphamaterial.html#destinationAlphaArg-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the blend equation destination alpha blending argument.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DRender::QBlendEquationArguments::Blending </td><td class="memItemRight bottomAlign"><span class="name"><b>destinationAlphaArg</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setDestinationAlphaArg</b></span>(Qt3DRender::QBlendEquationArguments::Blending <i>destinationAlphaArg</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>destinationAlphaArgChanged</b></span>(Qt3DRender::QBlendEquationArguments::Blending <i>destinationAlphaArg</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qt3drender-qblendequationarguments.html#Blending-enum">Qt3DRender::QBlendEquationArguments::Blending</a>.</p></div>
pub unsafe fn set_destination_alpha_arg(
&mut self,
destination_alpha_arg: ::qt_3d_render::q_blend_equation_arguments::Blending,
) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QPhongAlphaMaterial_setDestinationAlphaArg(
self as *mut crate::QPhongAlphaMaterial,
destination_alpha_arg,
)
}
/// <p>Holds the blend equation destination RGB blending argument.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QPhongAlphaMaterial::setDestinationRgbArg(Qt3DRender::QBlendEquationArguments::Blending destinationRgbArg)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qphongalphamaterial.html#destinationRgbArg-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the blend equation destination RGB blending argument.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DRender::QBlendEquationArguments::Blending </td><td class="memItemRight bottomAlign"><span class="name"><b>destinationRgbArg</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setDestinationRgbArg</b></span>(Qt3DRender::QBlendEquationArguments::Blending <i>destinationRgbArg</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>destinationRgbArgChanged</b></span>(Qt3DRender::QBlendEquationArguments::Blending <i>destinationRgbArg</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qt3drender-qblendequationarguments.html#Blending-enum">Qt3DRender::QBlendEquationArguments::Blending</a>.</p></div>
pub unsafe fn set_destination_rgb_arg(
&mut self,
destination_rgb_arg: ::qt_3d_render::q_blend_equation_arguments::Blending,
) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QPhongAlphaMaterial_setDestinationRgbArg(
self as *mut crate::QPhongAlphaMaterial,
destination_rgb_arg,
)
}
/// <p>Holds the diffuse color.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QPhongAlphaMaterial::setDiffuse(const QColor& diffuse)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qphongalphamaterial.html#diffuse-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the diffuse color.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QColor </td><td class="memItemRight bottomAlign"><span class="name"><b>diffuse</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setDiffuse</b></span>(const QColor &<i>diffuse</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>diffuseChanged</b></span>(const QColor &<i>diffuse</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_diffuse(
&mut self,
diffuse: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_gui::QColor>>,
) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QPhongAlphaMaterial_setDiffuse(
self as *mut crate::QPhongAlphaMaterial,
::cpp_core::CastInto::<::cpp_core::Ref<::qt_gui::QColor>>::cast_into(diffuse)
.as_raw_ptr(),
)
}
/// <p>Holds the shininess exponent.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QPhongAlphaMaterial::setShininess(float shininess)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qphongalphamaterial.html#shininess-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the shininess exponent.</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>shininess</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setShininess</b></span>(float <i>shininess</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>shininessChanged</b></span>(float <i>shininess</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_shininess(&mut self, shininess: ::std::os::raw::c_float) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QPhongAlphaMaterial_setShininess(
self as *mut crate::QPhongAlphaMaterial,
shininess,
)
}
/// <p>Holds the blend equation source alpha blending argument.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QPhongAlphaMaterial::setSourceAlphaArg(Qt3DRender::QBlendEquationArguments::Blending sourceAlphaArg)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qphongalphamaterial.html#sourceAlphaArg-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the blend equation source alpha blending argument.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DRender::QBlendEquationArguments::Blending </td><td class="memItemRight bottomAlign"><span class="name"><b>sourceAlphaArg</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setSourceAlphaArg</b></span>(Qt3DRender::QBlendEquationArguments::Blending <i>sourceAlphaArg</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>sourceAlphaArgChanged</b></span>(Qt3DRender::QBlendEquationArguments::Blending <i>sourceAlphaArg</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qt3drender-qblendequationarguments.html#Blending-enum">Qt3DRender::QBlendEquationArguments::Blending</a>.</p></div>
pub unsafe fn set_source_alpha_arg(
&mut self,
source_alpha_arg: ::qt_3d_render::q_blend_equation_arguments::Blending,
) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QPhongAlphaMaterial_setSourceAlphaArg(
self as *mut crate::QPhongAlphaMaterial,
source_alpha_arg,
)
}
/// <p>Holds the blend equation source RGB blending argument.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QPhongAlphaMaterial::setSourceRgbArg(Qt3DRender::QBlendEquationArguments::Blending sourceRgbArg)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qphongalphamaterial.html#sourceRgbArg-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the blend equation source RGB blending argument.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DRender::QBlendEquationArguments::Blending </td><td class="memItemRight bottomAlign"><span class="name"><b>sourceRgbArg</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setSourceRgbArg</b></span>(Qt3DRender::QBlendEquationArguments::Blending <i>sourceRgbArg</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>sourceRgbArgChanged</b></span>(Qt3DRender::QBlendEquationArguments::Blending <i>sourceRgbArg</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qt3drender-qblendequationarguments.html#Blending-enum">Qt3DRender::QBlendEquationArguments::Blending</a>.</p></div>
pub unsafe fn set_source_rgb_arg(
&mut self,
source_rgb_arg: ::qt_3d_render::q_blend_equation_arguments::Blending,
) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QPhongAlphaMaterial_setSourceRgbArg(
self as *mut crate::QPhongAlphaMaterial,
source_rgb_arg,
)
}
/// <p>Holds the specular color.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QPhongAlphaMaterial::setSpecular(const QColor& specular)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qphongalphamaterial.html#specular-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the specular color.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QColor </td><td class="memItemRight bottomAlign"><span class="name"><b>specular</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setSpecular</b></span>(const QColor &<i>specular</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>specularChanged</b></span>(const QColor &<i>specular</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_specular(
&mut self,
specular: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_gui::QColor>>,
) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QPhongAlphaMaterial_setSpecular(
self as *mut crate::QPhongAlphaMaterial,
::cpp_core::CastInto::<::cpp_core::Ref<::qt_gui::QColor>>::cast_into(specular)
.as_raw_ptr(),
)
}
/// <p>Holds the shininess exponent.</p>
///
/// Calls C++ function: <span style='color: green;'>```float Qt3DExtras::QPhongAlphaMaterial::shininess() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qphongalphamaterial.html#shininess-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the shininess exponent.</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>shininess</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setShininess</b></span>(float <i>shininess</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>shininessChanged</b></span>(float <i>shininess</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn shininess(&self) -> ::std::os::raw::c_float {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QPhongAlphaMaterial_shininess(
self as *const crate::QPhongAlphaMaterial,
)
}
/// <p>Holds the blend equation source alpha blending argument.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QBlendEquationArguments::Blending Qt3DExtras::QPhongAlphaMaterial::sourceAlphaArg() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qphongalphamaterial.html#sourceAlphaArg-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the blend equation source alpha blending argument.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DRender::QBlendEquationArguments::Blending </td><td class="memItemRight bottomAlign"><span class="name"><b>sourceAlphaArg</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setSourceAlphaArg</b></span>(Qt3DRender::QBlendEquationArguments::Blending <i>sourceAlphaArg</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>sourceAlphaArgChanged</b></span>(Qt3DRender::QBlendEquationArguments::Blending <i>sourceAlphaArg</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qt3drender-qblendequationarguments.html#Blending-enum">Qt3DRender::QBlendEquationArguments::Blending</a>.</p></div>
pub unsafe fn source_alpha_arg(&self) -> ::qt_3d_render::q_blend_equation_arguments::Blending {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QPhongAlphaMaterial_sourceAlphaArg(
self as *const crate::QPhongAlphaMaterial,
)
}
/// <p>Holds the blend equation source RGB blending argument.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QBlendEquationArguments::Blending Qt3DExtras::QPhongAlphaMaterial::sourceRgbArg() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qphongalphamaterial.html#sourceRgbArg-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the blend equation source RGB blending argument.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DRender::QBlendEquationArguments::Blending </td><td class="memItemRight bottomAlign"><span class="name"><b>sourceRgbArg</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setSourceRgbArg</b></span>(Qt3DRender::QBlendEquationArguments::Blending <i>sourceRgbArg</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>sourceRgbArgChanged</b></span>(Qt3DRender::QBlendEquationArguments::Blending <i>sourceRgbArg</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qt3drender-qblendequationarguments.html#Blending-enum">Qt3DRender::QBlendEquationArguments::Blending</a>.</p></div>
pub unsafe fn source_rgb_arg(&self) -> ::qt_3d_render::q_blend_equation_arguments::Blending {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QPhongAlphaMaterial_sourceRgbArg(
self as *const crate::QPhongAlphaMaterial,
)
}
/// <p>Holds the specular color.</p>
///
/// Calls C++ function: <span style='color: green;'>```QColor Qt3DExtras::QPhongAlphaMaterial::specular() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qphongalphamaterial.html#specular-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the specular color.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QColor </td><td class="memItemRight bottomAlign"><span class="name"><b>specular</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setSpecular</b></span>(const QColor &<i>specular</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>specularChanged</b></span>(const QColor &<i>specular</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn specular(&self) -> ::cpp_core::CppBox<::qt_gui::QColor> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QPhongAlphaMaterial_specular(
self as *const crate::QPhongAlphaMaterial,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// Returns a reference to the <span style='color: green;'>```staticMetaObject```</span> field.
pub unsafe fn static_meta_object() -> ::cpp_core::Ref<::qt_core::QMetaObject> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QPhongAlphaMaterial_staticMetaObject();
::cpp_core::Ref::from_raw(ffi_result).expect("attempted to construct a null Ref")
}
/// Calls C++ function: <span style='color: green;'>```static QString Qt3DExtras::QPhongAlphaMaterial::tr(const char* s, const char* c, int n)```</span>.
pub unsafe fn tr(
s: impl ::cpp_core::CastInto<::cpp_core::Ptr<::std::os::raw::c_char>>,
c: impl ::cpp_core::CastInto<::cpp_core::Ptr<::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_extras_ffi_Qt3DExtras_QPhongAlphaMaterial_tr(
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(s)
.as_raw_ptr(),
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(c)
.as_raw_ptr(),
n,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// Calls C++ function: <span style='color: green;'>```static QString Qt3DExtras::QPhongAlphaMaterial::trUtf8(const char* s, const char* c, int n)```</span>.
pub unsafe fn tr_utf8(
s: impl ::cpp_core::CastInto<::cpp_core::Ptr<::std::os::raw::c_char>>,
c: impl ::cpp_core::CastInto<::cpp_core::Ptr<::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_extras_ffi_Qt3DExtras_QPhongAlphaMaterial_trUtf8(
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(s)
.as_raw_ptr(),
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(c)
.as_raw_ptr(),
n,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
}
/// <p>The <a href="http://doc.qt.io/qt-5/qt3dextras-qphongmaterial.html">QPhongMaterial</a> class provides a default implementation of the phong lighting effect.</p>
///
/// C++ class: <span style='color: green;'>```Qt3DExtras::QPhongMaterial```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qphongmaterial.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>The <a href="http://doc.qt.io/qt-5/qt3dextras-qphongmaterial.html">QPhongMaterial</a> class provides a default implementation of the phong lighting effect.</p>
/// <p>The phong lighting effect is based on the combination of 3 lighting components ambient, diffuse and specular. The relative strengths of these components are controlled by means of their reflectivity coefficients which are modelled as RGB triplets:</p>
/// <ul>
/// <li>Ambient is the color that is emitted by an object without any other light source.</li>
/// <li>Diffuse is the color that is emitted for rought surface reflections with the lights.</li>
/// <li>Specular is the color emitted for shiny surface reflections with the lights.</li>
/// <li>The shininess of a surface is controlled by a float property.</li>
/// </ul>
/// <p>This material uses an effect with a single render pass approach and performs per fragment lighting. Techniques are provided for OpenGL 2, OpenGL 3 or above as well as OpenGL ES 2.</p></div>
#[repr(C)]
pub struct QPhongMaterial {
_unused: u8,
}
impl QPhongMaterial {
/// <p>Holds the ambient color.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QPhongMaterial::setAmbient` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qphongmaterial.html#ambient-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the ambient color.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QColor </td><td class="memItemRight bottomAlign"><span class="name"><b>ambient</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setAmbient</b></span>(const QColor &<i>ambient</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>ambientChanged</b></span>(const QColor &<i>ambient</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slot_set_ambient(&self) -> ::qt_core::Receiver<(*const ::qt_gui::QColor,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setAmbient(const QColor&)\0"),
)
}
}
/// <p>Holds the diffuse color.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QPhongMaterial::setDiffuse` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qphongmaterial.html#diffuse-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the diffuse color.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QColor </td><td class="memItemRight bottomAlign"><span class="name"><b>diffuse</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setDiffuse</b></span>(const QColor &<i>diffuse</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>diffuseChanged</b></span>(const QColor &<i>diffuse</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slot_set_diffuse(&self) -> ::qt_core::Receiver<(*const ::qt_gui::QColor,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setDiffuse(const QColor&)\0"),
)
}
}
/// <p>Holds the specular color.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QPhongMaterial::setSpecular` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qphongmaterial.html#specular-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the specular color.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QColor </td><td class="memItemRight bottomAlign"><span class="name"><b>specular</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setSpecular</b></span>(const QColor &<i>specular</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>specularChanged</b></span>(const QColor &<i>specular</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slot_set_specular(&self) -> ::qt_core::Receiver<(*const ::qt_gui::QColor,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setSpecular(const QColor&)\0"),
)
}
}
/// <p>Holds the shininess exponent.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QPhongMaterial::setShininess` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qphongmaterial.html#shininess-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the shininess exponent.</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>shininess</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setShininess</b></span>(float <i>shininess</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>shininessChanged</b></span>(float <i>shininess</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slot_set_shininess(&self) -> ::qt_core::Receiver<(::std::os::raw::c_float,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setShininess(float)\0"),
)
}
}
/// <p>Holds the ambient color.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QPhongMaterial::ambientChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qphongmaterial.html#ambient-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the ambient color.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QColor </td><td class="memItemRight bottomAlign"><span class="name"><b>ambient</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setAmbient</b></span>(const QColor &<i>ambient</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>ambientChanged</b></span>(const QColor &<i>ambient</i>)</td></tr>
/// </tbody></table></div></div>
pub fn ambient_changed(&self) -> ::qt_core::Signal<(*const ::qt_gui::QColor,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"2ambientChanged(const QColor&)\0",
),
)
}
}
/// <p>Holds the diffuse color.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QPhongMaterial::diffuseChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qphongmaterial.html#diffuse-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the diffuse color.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QColor </td><td class="memItemRight bottomAlign"><span class="name"><b>diffuse</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setDiffuse</b></span>(const QColor &<i>diffuse</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>diffuseChanged</b></span>(const QColor &<i>diffuse</i>)</td></tr>
/// </tbody></table></div></div>
pub fn diffuse_changed(&self) -> ::qt_core::Signal<(*const ::qt_gui::QColor,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"2diffuseChanged(const QColor&)\0",
),
)
}
}
/// <p>Holds the specular color.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QPhongMaterial::specularChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qphongmaterial.html#specular-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the specular color.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QColor </td><td class="memItemRight bottomAlign"><span class="name"><b>specular</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setSpecular</b></span>(const QColor &<i>specular</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>specularChanged</b></span>(const QColor &<i>specular</i>)</td></tr>
/// </tbody></table></div></div>
pub fn specular_changed(&self) -> ::qt_core::Signal<(*const ::qt_gui::QColor,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"2specularChanged(const QColor&)\0",
),
)
}
}
/// <p>Holds the shininess exponent.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QPhongMaterial::shininessChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qphongmaterial.html#shininess-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the shininess exponent.</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>shininess</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setShininess</b></span>(float <i>shininess</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>shininessChanged</b></span>(float <i>shininess</i>)</td></tr>
/// </tbody></table></div></div>
pub fn shininess_changed(&self) -> ::qt_core::Signal<(::std::os::raw::c_float,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2shininessChanged(float)\0"),
)
}
}
/// <p>Holds the ambient color.</p>
///
/// Calls C++ function: <span style='color: green;'>```QColor Qt3DExtras::QPhongMaterial::ambient() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qphongmaterial.html#ambient-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the ambient color.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QColor </td><td class="memItemRight bottomAlign"><span class="name"><b>ambient</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setAmbient</b></span>(const QColor &<i>ambient</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>ambientChanged</b></span>(const QColor &<i>ambient</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn ambient(&self) -> ::cpp_core::CppBox<::qt_gui::QColor> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QPhongMaterial_ambient(
self as *const crate::QPhongMaterial,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Holds the diffuse color.</p>
///
/// Calls C++ function: <span style='color: green;'>```QColor Qt3DExtras::QPhongMaterial::diffuse() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qphongmaterial.html#diffuse-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the diffuse color.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QColor </td><td class="memItemRight bottomAlign"><span class="name"><b>diffuse</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setDiffuse</b></span>(const QColor &<i>diffuse</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>diffuseChanged</b></span>(const QColor &<i>diffuse</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn diffuse(&self) -> ::cpp_core::CppBox<::qt_gui::QColor> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QPhongMaterial_diffuse(
self as *const crate::QPhongMaterial,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// Calls C++ function: <span style='color: green;'>```virtual const QMetaObject* Qt3DExtras::QPhongMaterial::metaObject() const```</span>.
pub unsafe fn meta_object(&self) -> ::cpp_core::Ptr<::qt_core::QMetaObject> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QPhongMaterial_metaObject(
self as *const crate::QPhongMaterial,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// <p>Default constructs an instance of QPhongMaterial.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DExtras::QPhongMaterial::QPhongMaterial(Qt3DCore::QNode* parent = …)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qphongmaterial.html#QPhongMaterial">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Default constructs an instance of QPhongMaterial.</p></div>
pub unsafe fn new_1a(
parent: impl ::cpp_core::CastInto<::cpp_core::MutPtr<::qt_3d_core::QNode>>,
) -> ::cpp_core::CppBox<crate::QPhongMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QPhongMaterial_QPhongMaterial(
::cpp_core::CastInto::<::cpp_core::MutPtr<::qt_3d_core::QNode>>::cast_into(parent)
.as_mut_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/qt3dextras-qphongmaterial.html">QPhongMaterial</a> class provides a default implementation of the phong lighting effect.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DExtras::QPhongMaterial::QPhongMaterial()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qphongmaterial.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>The <a href="http://doc.qt.io/qt-5/qt3dextras-qphongmaterial.html">QPhongMaterial</a> class provides a default implementation of the phong lighting effect.</p>
/// <p>The phong lighting effect is based on the combination of 3 lighting components ambient, diffuse and specular. The relative strengths of these components are controlled by means of their reflectivity coefficients which are modelled as RGB triplets:</p>
/// <ul>
/// <li>Ambient is the color that is emitted by an object without any other light source.</li>
/// <li>Diffuse is the color that is emitted for rought surface reflections with the lights.</li>
/// <li>Specular is the color emitted for shiny surface reflections with the lights.</li>
/// <li>The shininess of a surface is controlled by a float property.</li>
/// </ul>
/// <p>This material uses an effect with a single render pass approach and performs per fragment lighting. Techniques are provided for OpenGL 2, OpenGL 3 or above as well as OpenGL ES 2.</p></div>
pub unsafe fn new_0a() -> ::cpp_core::CppBox<crate::QPhongMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QPhongMaterial_QPhongMaterial1();
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// Calls C++ function: <span style='color: green;'>```virtual int Qt3DExtras::QPhongMaterial::qt_metacall(QMetaObject::Call arg1, int arg2, void** arg3)```</span>.
pub unsafe fn qt_metacall(
&mut self,
arg1: ::qt_core::q_meta_object::Call,
arg2: ::std::os::raw::c_int,
arg3: impl ::cpp_core::CastInto<::cpp_core::MutPtr<*mut ::std::ffi::c_void>>,
) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QPhongMaterial_qt_metacall(
self as *mut crate::QPhongMaterial,
arg1,
arg2,
::cpp_core::CastInto::<::cpp_core::MutPtr<*mut ::std::ffi::c_void>>::cast_into(arg3)
.as_mut_raw_ptr(),
)
}
/// Calls C++ function: <span style='color: green;'>```virtual void* Qt3DExtras::QPhongMaterial::qt_metacast(const char* arg1)```</span>.
pub unsafe fn qt_metacast(
&mut self,
arg1: impl ::cpp_core::CastInto<::cpp_core::Ptr<::std::os::raw::c_char>>,
) -> ::cpp_core::MutPtr<::std::ffi::c_void> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QPhongMaterial_qt_metacast(
self as *mut crate::QPhongMaterial,
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(arg1)
.as_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
/// <p>Holds the ambient color.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QPhongMaterial::setAmbient(const QColor& ambient)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qphongmaterial.html#ambient-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the ambient color.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QColor </td><td class="memItemRight bottomAlign"><span class="name"><b>ambient</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setAmbient</b></span>(const QColor &<i>ambient</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>ambientChanged</b></span>(const QColor &<i>ambient</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_ambient(
&mut self,
ambient: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_gui::QColor>>,
) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QPhongMaterial_setAmbient(
self as *mut crate::QPhongMaterial,
::cpp_core::CastInto::<::cpp_core::Ref<::qt_gui::QColor>>::cast_into(ambient)
.as_raw_ptr(),
)
}
/// <p>Holds the diffuse color.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QPhongMaterial::setDiffuse(const QColor& diffuse)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qphongmaterial.html#diffuse-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the diffuse color.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QColor </td><td class="memItemRight bottomAlign"><span class="name"><b>diffuse</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setDiffuse</b></span>(const QColor &<i>diffuse</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>diffuseChanged</b></span>(const QColor &<i>diffuse</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_diffuse(
&mut self,
diffuse: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_gui::QColor>>,
) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QPhongMaterial_setDiffuse(
self as *mut crate::QPhongMaterial,
::cpp_core::CastInto::<::cpp_core::Ref<::qt_gui::QColor>>::cast_into(diffuse)
.as_raw_ptr(),
)
}
/// <p>Holds the shininess exponent.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QPhongMaterial::setShininess(float shininess)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qphongmaterial.html#shininess-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the shininess exponent.</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>shininess</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setShininess</b></span>(float <i>shininess</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>shininessChanged</b></span>(float <i>shininess</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_shininess(&mut self, shininess: ::std::os::raw::c_float) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QPhongMaterial_setShininess(
self as *mut crate::QPhongMaterial,
shininess,
)
}
/// <p>Holds the specular color.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QPhongMaterial::setSpecular(const QColor& specular)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qphongmaterial.html#specular-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the specular color.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QColor </td><td class="memItemRight bottomAlign"><span class="name"><b>specular</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setSpecular</b></span>(const QColor &<i>specular</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>specularChanged</b></span>(const QColor &<i>specular</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_specular(
&mut self,
specular: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_gui::QColor>>,
) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QPhongMaterial_setSpecular(
self as *mut crate::QPhongMaterial,
::cpp_core::CastInto::<::cpp_core::Ref<::qt_gui::QColor>>::cast_into(specular)
.as_raw_ptr(),
)
}
/// <p>Holds the shininess exponent.</p>
///
/// Calls C++ function: <span style='color: green;'>```float Qt3DExtras::QPhongMaterial::shininess() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qphongmaterial.html#shininess-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the shininess exponent.</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>shininess</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setShininess</b></span>(float <i>shininess</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>shininessChanged</b></span>(float <i>shininess</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn shininess(&self) -> ::std::os::raw::c_float {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QPhongMaterial_shininess(
self as *const crate::QPhongMaterial,
)
}
/// <p>Holds the specular color.</p>
///
/// Calls C++ function: <span style='color: green;'>```QColor Qt3DExtras::QPhongMaterial::specular() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qphongmaterial.html#specular-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the specular color.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QColor </td><td class="memItemRight bottomAlign"><span class="name"><b>specular</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setSpecular</b></span>(const QColor &<i>specular</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>specularChanged</b></span>(const QColor &<i>specular</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn specular(&self) -> ::cpp_core::CppBox<::qt_gui::QColor> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QPhongMaterial_specular(
self as *const crate::QPhongMaterial,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// Returns a reference to the <span style='color: green;'>```staticMetaObject```</span> field.
pub unsafe fn static_meta_object() -> ::cpp_core::Ref<::qt_core::QMetaObject> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QPhongMaterial_staticMetaObject();
::cpp_core::Ref::from_raw(ffi_result).expect("attempted to construct a null Ref")
}
/// Calls C++ function: <span style='color: green;'>```static QString Qt3DExtras::QPhongMaterial::tr(const char* s, const char* c, int n)```</span>.
pub unsafe fn tr(
s: impl ::cpp_core::CastInto<::cpp_core::Ptr<::std::os::raw::c_char>>,
c: impl ::cpp_core::CastInto<::cpp_core::Ptr<::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_extras_ffi_Qt3DExtras_QPhongMaterial_tr(
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(s)
.as_raw_ptr(),
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(c)
.as_raw_ptr(),
n,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// Calls C++ function: <span style='color: green;'>```static QString Qt3DExtras::QPhongMaterial::trUtf8(const char* s, const char* c, int n)```</span>.
pub unsafe fn tr_utf8(
s: impl ::cpp_core::CastInto<::cpp_core::Ptr<::std::os::raw::c_char>>,
c: impl ::cpp_core::CastInto<::cpp_core::Ptr<::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_extras_ffi_Qt3DExtras_QPhongMaterial_trUtf8(
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(s)
.as_raw_ptr(),
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(c)
.as_raw_ptr(),
n,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
}
/// <p>The <a href="http://doc.qt.io/qt-5/qt3dextras-qplanegeometry.html">QPlaneGeometry</a> class allows creation of a plane in 3D space.</p>
///
/// C++ class: <span style='color: green;'>```Qt3DExtras::QPlaneGeometry```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qplanegeometry.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>The <a href="http://doc.qt.io/qt-5/qt3dextras-qplanegeometry.html">QPlaneGeometry</a> class allows creation of a plane in 3D space.</p>
/// <p>The <a href="http://doc.qt.io/qt-5/qt3dextras-qplanegeometry.html">QPlaneGeometry</a> class is most commonly used internally by the <a href="http://doc.qt.io/qt-5/qt3dextras-qplanemesh.html">QPlaneMesh</a> but can also be used in custom <a href="http://doc.qt.io/qt-5/qt3drender-qgeometryrenderer.html">Qt3DRender::QGeometryRenderer</a> subclasses.</p></div>
#[repr(C)]
pub struct QPlaneGeometry {
_unused: u8,
}
impl QPlaneGeometry {
/// <p>Holds the plane resolution.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QPlaneGeometry::setResolution` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qplanegeometry.html#resolution-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the plane resolution.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QSize </td><td class="memItemRight bottomAlign"><span class="name"><b>resolution</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setResolution</b></span>(const QSize &<i>resolution</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>resolutionChanged</b></span>(const QSize &<i>resolution</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slot_set_resolution(&self) -> ::qt_core::Receiver<(*const ::qt_core::QSize,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setResolution(const QSize&)\0"),
)
}
}
/// <p>Holds the plane width.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QPlaneGeometry::setWidth` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qplanegeometry.html#width-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the plane width.</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>width</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setWidth</b></span>(float <i>width</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>widthChanged</b></span>(float <i>width</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slot_set_width(&self) -> ::qt_core::Receiver<(::std::os::raw::c_float,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setWidth(float)\0"),
)
}
}
/// <p>Holds the plane height.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QPlaneGeometry::setHeight` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qplanegeometry.html#height-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the plane height.</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>height</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setHeight</b></span>(float <i>height</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>heightChanged</b></span>(float <i>height</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slot_set_height(&self) -> ::qt_core::Receiver<(::std::os::raw::c_float,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setHeight(float)\0"),
)
}
}
/// <p>Controls if the UV coordinates of the plane should be flipped vertically.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QPlaneGeometry::setMirrored` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qplanegeometry.html#mirrored-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Controls if the UV coordinates of the plane should be flipped vertically.</p>
/// <p>This property was introduced in Qt 5.9.</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>mirrored</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setMirrored</b></span>(bool <i>mirrored</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>mirroredChanged</b></span>(bool <i>mirrored</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slot_set_mirrored(&self) -> ::qt_core::Receiver<(bool,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setMirrored(bool)\0"),
)
}
}
/// <p>Holds the plane resolution.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QPlaneGeometry::resolutionChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qplanegeometry.html#resolution-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the plane resolution.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QSize </td><td class="memItemRight bottomAlign"><span class="name"><b>resolution</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setResolution</b></span>(const QSize &<i>resolution</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>resolutionChanged</b></span>(const QSize &<i>resolution</i>)</td></tr>
/// </tbody></table></div></div>
pub fn resolution_changed(&self) -> ::qt_core::Signal<(*const ::qt_core::QSize,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"2resolutionChanged(const QSize&)\0",
),
)
}
}
/// <p>Holds the plane width.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QPlaneGeometry::widthChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qplanegeometry.html#width-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the plane width.</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>width</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setWidth</b></span>(float <i>width</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>widthChanged</b></span>(float <i>width</i>)</td></tr>
/// </tbody></table></div></div>
pub fn width_changed(&self) -> ::qt_core::Signal<(::std::os::raw::c_float,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2widthChanged(float)\0"),
)
}
}
/// <p>Holds the plane height.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QPlaneGeometry::heightChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qplanegeometry.html#height-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the plane height.</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>height</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setHeight</b></span>(float <i>height</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>heightChanged</b></span>(float <i>height</i>)</td></tr>
/// </tbody></table></div></div>
pub fn height_changed(&self) -> ::qt_core::Signal<(::std::os::raw::c_float,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2heightChanged(float)\0"),
)
}
}
/// <p>Controls if the UV coordinates of the plane should be flipped vertically.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QPlaneGeometry::mirroredChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qplanegeometry.html#mirrored-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Controls if the UV coordinates of the plane should be flipped vertically.</p>
/// <p>This property was introduced in Qt 5.9.</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>mirrored</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setMirrored</b></span>(bool <i>mirrored</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>mirroredChanged</b></span>(bool <i>mirrored</i>)</td></tr>
/// </tbody></table></div></div>
pub fn mirrored_changed(&self) -> ::qt_core::Signal<(bool,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2mirroredChanged(bool)\0"),
)
}
}
/// <p>Holds the plane height.</p>
///
/// Calls C++ function: <span style='color: green;'>```float Qt3DExtras::QPlaneGeometry::height() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qplanegeometry.html#height-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the plane height.</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>height</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setHeight</b></span>(float <i>height</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>heightChanged</b></span>(float <i>height</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn height(&self) -> ::std::os::raw::c_float {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QPlaneGeometry_height(
self as *const crate::QPlaneGeometry,
)
}
/// <p>Holds the geometry index attribute.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QAttribute* Qt3DExtras::QPlaneGeometry::indexAttribute() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qplanegeometry.html#indexAttribute-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the geometry index attribute.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DRender::QAttribute *</td><td class="memItemRight bottomAlign"><span class="name"><b>indexAttribute</b></span>() const</td></tr>
/// </tbody></table></div></div>
pub unsafe fn index_attribute(&self) -> ::cpp_core::MutPtr<::qt_3d_render::QAttribute> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QPlaneGeometry_indexAttribute(
self as *const crate::QPlaneGeometry,
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```virtual const QMetaObject* Qt3DExtras::QPlaneGeometry::metaObject() const```</span>.
pub unsafe fn meta_object(&self) -> ::cpp_core::Ptr<::qt_core::QMetaObject> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QPlaneGeometry_metaObject(
self as *const crate::QPlaneGeometry,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// <p>Controls if the UV coordinates of the plane should be flipped vertically.</p>
///
/// Calls C++ function: <span style='color: green;'>```bool Qt3DExtras::QPlaneGeometry::mirrored() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qplanegeometry.html#mirrored-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Controls if the UV coordinates of the plane should be flipped vertically.</p>
/// <p>This property was introduced in Qt 5.9.</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>mirrored</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setMirrored</b></span>(bool <i>mirrored</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>mirroredChanged</b></span>(bool <i>mirrored</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn mirrored(&self) -> bool {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QPlaneGeometry_mirrored(
self as *const crate::QPlaneGeometry,
)
}
/// <p>Constructs a new <a href="http://doc.qt.io/qt-5/qt3dextras-qplanegeometry.html">QPlaneGeometry</a> with <i>parent</i>.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DExtras::QPlaneGeometry::QPlaneGeometry(Qt3DCore::QNode* parent = …)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qplanegeometry.html#QPlaneGeometry">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/qt3dextras-qplanegeometry.html">QPlaneGeometry</a> with <i>parent</i>.</p></div>
pub unsafe fn new_1a(
parent: impl ::cpp_core::CastInto<::cpp_core::MutPtr<::qt_3d_core::QNode>>,
) -> ::cpp_core::CppBox<crate::QPlaneGeometry> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QPlaneGeometry_QPlaneGeometry(
::cpp_core::CastInto::<::cpp_core::MutPtr<::qt_3d_core::QNode>>::cast_into(parent)
.as_mut_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/qt3dextras-qplanegeometry.html">QPlaneGeometry</a> class allows creation of a plane in 3D space.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DExtras::QPlaneGeometry::QPlaneGeometry()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qplanegeometry.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>The <a href="http://doc.qt.io/qt-5/qt3dextras-qplanegeometry.html">QPlaneGeometry</a> class allows creation of a plane in 3D space.</p>
/// <p>The <a href="http://doc.qt.io/qt-5/qt3dextras-qplanegeometry.html">QPlaneGeometry</a> class is most commonly used internally by the <a href="http://doc.qt.io/qt-5/qt3dextras-qplanemesh.html">QPlaneMesh</a> but can also be used in custom <a href="http://doc.qt.io/qt-5/qt3drender-qgeometryrenderer.html">Qt3DRender::QGeometryRenderer</a> subclasses.</p></div>
pub unsafe fn new_0a() -> ::cpp_core::CppBox<crate::QPlaneGeometry> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QPlaneGeometry_QPlaneGeometry1();
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Holds the geometry normal attribute.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QAttribute* Qt3DExtras::QPlaneGeometry::normalAttribute() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qplanegeometry.html#normalAttribute-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the geometry normal attribute.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DRender::QAttribute *</td><td class="memItemRight bottomAlign"><span class="name"><b>normalAttribute</b></span>() const</td></tr>
/// </tbody></table></div></div>
pub unsafe fn normal_attribute(&self) -> ::cpp_core::MutPtr<::qt_3d_render::QAttribute> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QPlaneGeometry_normalAttribute(
self as *const crate::QPlaneGeometry,
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
/// <p>Holds the geometry position attribute.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QAttribute* Qt3DExtras::QPlaneGeometry::positionAttribute() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qplanegeometry.html#positionAttribute-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the geometry position attribute.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DRender::QAttribute *</td><td class="memItemRight bottomAlign"><span class="name"><b>positionAttribute</b></span>() const</td></tr>
/// </tbody></table></div></div>
pub unsafe fn position_attribute(&self) -> ::cpp_core::MutPtr<::qt_3d_render::QAttribute> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QPlaneGeometry_positionAttribute(
self as *const crate::QPlaneGeometry,
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```virtual int Qt3DExtras::QPlaneGeometry::qt_metacall(QMetaObject::Call arg1, int arg2, void** arg3)```</span>.
pub unsafe fn qt_metacall(
&mut self,
arg1: ::qt_core::q_meta_object::Call,
arg2: ::std::os::raw::c_int,
arg3: impl ::cpp_core::CastInto<::cpp_core::MutPtr<*mut ::std::ffi::c_void>>,
) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QPlaneGeometry_qt_metacall(
self as *mut crate::QPlaneGeometry,
arg1,
arg2,
::cpp_core::CastInto::<::cpp_core::MutPtr<*mut ::std::ffi::c_void>>::cast_into(arg3)
.as_mut_raw_ptr(),
)
}
/// Calls C++ function: <span style='color: green;'>```virtual void* Qt3DExtras::QPlaneGeometry::qt_metacast(const char* arg1)```</span>.
pub unsafe fn qt_metacast(
&mut self,
arg1: impl ::cpp_core::CastInto<::cpp_core::Ptr<::std::os::raw::c_char>>,
) -> ::cpp_core::MutPtr<::std::ffi::c_void> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QPlaneGeometry_qt_metacast(
self as *mut crate::QPlaneGeometry,
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(arg1)
.as_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
/// <p>Holds the plane resolution.</p>
///
/// Calls C++ function: <span style='color: green;'>```QSize Qt3DExtras::QPlaneGeometry::resolution() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qplanegeometry.html#resolution-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the plane resolution.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QSize </td><td class="memItemRight bottomAlign"><span class="name"><b>resolution</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setResolution</b></span>(const QSize &<i>resolution</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>resolutionChanged</b></span>(const QSize &<i>resolution</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn resolution(&self) -> ::cpp_core::CppBox<::qt_core::QSize> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QPlaneGeometry_resolution(
self as *const crate::QPlaneGeometry,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Holds the plane height.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QPlaneGeometry::setHeight(float height)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qplanegeometry.html#height-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the plane height.</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>height</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setHeight</b></span>(float <i>height</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>heightChanged</b></span>(float <i>height</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_height(&mut self, height: ::std::os::raw::c_float) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QPlaneGeometry_setHeight(
self as *mut crate::QPlaneGeometry,
height,
)
}
/// <p>Controls if the UV coordinates of the plane should be flipped vertically.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QPlaneGeometry::setMirrored(bool mirrored)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qplanegeometry.html#mirrored-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Controls if the UV coordinates of the plane should be flipped vertically.</p>
/// <p>This property was introduced in Qt 5.9.</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>mirrored</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setMirrored</b></span>(bool <i>mirrored</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>mirroredChanged</b></span>(bool <i>mirrored</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_mirrored(&mut self, mirrored: bool) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QPlaneGeometry_setMirrored(
self as *mut crate::QPlaneGeometry,
mirrored,
)
}
/// <p>Holds the plane resolution.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QPlaneGeometry::setResolution(const QSize& resolution)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qplanegeometry.html#resolution-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the plane resolution.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QSize </td><td class="memItemRight bottomAlign"><span class="name"><b>resolution</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setResolution</b></span>(const QSize &<i>resolution</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>resolutionChanged</b></span>(const QSize &<i>resolution</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_resolution(
&mut self,
resolution: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_core::QSize>>,
) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QPlaneGeometry_setResolution(
self as *mut crate::QPlaneGeometry,
::cpp_core::CastInto::<::cpp_core::Ref<::qt_core::QSize>>::cast_into(resolution)
.as_raw_ptr(),
)
}
/// <p>Holds the plane width.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QPlaneGeometry::setWidth(float width)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qplanegeometry.html#width-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the plane width.</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>width</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setWidth</b></span>(float <i>width</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>widthChanged</b></span>(float <i>width</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_width(&mut self, width: ::std::os::raw::c_float) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QPlaneGeometry_setWidth(
self as *mut crate::QPlaneGeometry,
width,
)
}
/// Returns a reference to the <span style='color: green;'>```staticMetaObject```</span> field.
pub unsafe fn static_meta_object() -> ::cpp_core::Ref<::qt_core::QMetaObject> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QPlaneGeometry_staticMetaObject();
::cpp_core::Ref::from_raw(ffi_result).expect("attempted to construct a null Ref")
}
/// <p>Holds the geometry tangent attribute.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QAttribute* Qt3DExtras::QPlaneGeometry::tangentAttribute() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qplanegeometry.html#tangentAttribute-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the geometry tangent attribute.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DRender::QAttribute *</td><td class="memItemRight bottomAlign"><span class="name"><b>tangentAttribute</b></span>() const</td></tr>
/// </tbody></table></div></div>
pub unsafe fn tangent_attribute(&self) -> ::cpp_core::MutPtr<::qt_3d_render::QAttribute> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QPlaneGeometry_tangentAttribute(
self as *const crate::QPlaneGeometry,
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
/// <p>Holds the geometry texture coordinate attribute.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QAttribute* Qt3DExtras::QPlaneGeometry::texCoordAttribute() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qplanegeometry.html#texCoordAttribute-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the geometry texture coordinate attribute.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DRender::QAttribute *</td><td class="memItemRight bottomAlign"><span class="name"><b>texCoordAttribute</b></span>() const</td></tr>
/// </tbody></table></div></div>
pub unsafe fn tex_coord_attribute(&self) -> ::cpp_core::MutPtr<::qt_3d_render::QAttribute> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QPlaneGeometry_texCoordAttribute(
self as *const crate::QPlaneGeometry,
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```static QString Qt3DExtras::QPlaneGeometry::tr(const char* s, const char* c, int n)```</span>.
pub unsafe fn tr(
s: impl ::cpp_core::CastInto<::cpp_core::Ptr<::std::os::raw::c_char>>,
c: impl ::cpp_core::CastInto<::cpp_core::Ptr<::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_extras_ffi_Qt3DExtras_QPlaneGeometry_tr(
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(s)
.as_raw_ptr(),
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(c)
.as_raw_ptr(),
n,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// Calls C++ function: <span style='color: green;'>```static QString Qt3DExtras::QPlaneGeometry::trUtf8(const char* s, const char* c, int n)```</span>.
pub unsafe fn tr_utf8(
s: impl ::cpp_core::CastInto<::cpp_core::Ptr<::std::os::raw::c_char>>,
c: impl ::cpp_core::CastInto<::cpp_core::Ptr<::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_extras_ffi_Qt3DExtras_QPlaneGeometry_trUtf8(
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(s)
.as_raw_ptr(),
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(c)
.as_raw_ptr(),
n,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Updates indices based on mesh resolution.</p>
///
/// Calls C++ function: <span style='color: green;'>```void Qt3DExtras::QPlaneGeometry::updateIndices()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qplanegeometry.html#updateIndices">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Updates indices based on mesh resolution.</p></div>
pub unsafe fn update_indices(&mut self) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QPlaneGeometry_updateIndices(
self as *mut crate::QPlaneGeometry,
)
}
/// <p>Updates vertices based on mesh resolution, width, and height properties.</p>
///
/// Calls C++ function: <span style='color: green;'>```void Qt3DExtras::QPlaneGeometry::updateVertices()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qplanegeometry.html#updateVertices">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Updates vertices based on mesh resolution, width, and height properties.</p></div>
pub unsafe fn update_vertices(&mut self) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QPlaneGeometry_updateVertices(
self as *mut crate::QPlaneGeometry,
)
}
/// <p>Holds the plane width.</p>
///
/// Calls C++ function: <span style='color: green;'>```float Qt3DExtras::QPlaneGeometry::width() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qplanegeometry.html#width-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the plane width.</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>width</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setWidth</b></span>(float <i>width</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>widthChanged</b></span>(float <i>width</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn width(&self) -> ::std::os::raw::c_float {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QPlaneGeometry_width(
self as *const crate::QPlaneGeometry,
)
}
}
/// <p>A square planar mesh.</p>
///
/// C++ class: <span style='color: green;'>```Qt3DExtras::QPlaneMesh```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qplanemesh.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>A square planar mesh.</p></div>
#[repr(C)]
pub struct QPlaneMesh {
_unused: u8,
}
impl QPlaneMesh {
/// <p>Holds the plane width.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QPlaneMesh::setWidth` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qplanemesh.html#width-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the plane width.</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>width</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setWidth</b></span>(float <i>width</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>widthChanged</b></span>(float <i>width</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slot_set_width(&self) -> ::qt_core::Receiver<(::std::os::raw::c_float,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setWidth(float)\0"),
)
}
}
/// <p>Holds the plane height.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QPlaneMesh::setHeight` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qplanemesh.html#height-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the plane height.</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>height</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setHeight</b></span>(float <i>height</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>heightChanged</b></span>(float <i>height</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slot_set_height(&self) -> ::qt_core::Receiver<(::std::os::raw::c_float,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setHeight(float)\0"),
)
}
}
/// <p>Holds the plane resolution. The width and height values of this property specify the number of vertices generated for the mesh in the respective dimensions.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QPlaneMesh::setMeshResolution` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qplanemesh.html#meshResolution-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the plane resolution. The width and height values of this property specify the number of vertices generated for the mesh in the respective dimensions.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QSize </td><td class="memItemRight bottomAlign"><span class="name"><b>meshResolution</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setMeshResolution</b></span>(const QSize &<i>resolution</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>meshResolutionChanged</b></span>(const QSize &<i>meshResolution</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slot_set_mesh_resolution(&self) -> ::qt_core::Receiver<(*const ::qt_core::QSize,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"1setMeshResolution(const QSize&)\0",
),
)
}
}
/// <p>Controls if the UV coordinates of the plane should be flipped vertically.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QPlaneMesh::setMirrored` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qplanemesh.html#mirrored-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Controls if the UV coordinates of the plane should be flipped vertically.</p>
/// <p>This property was introduced in Qt 5.9.</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>mirrored</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setMirrored</b></span>(bool <i>mirrored</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>mirroredChanged</b></span>(bool <i>mirrored</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slot_set_mirrored(&self) -> ::qt_core::Receiver<(bool,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setMirrored(bool)\0"),
)
}
}
/// <p>Holds the plane resolution. The width and height values of this property specify the number of vertices generated for the mesh in the respective dimensions.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QPlaneMesh::meshResolutionChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qplanemesh.html#meshResolution-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the plane resolution. The width and height values of this property specify the number of vertices generated for the mesh in the respective dimensions.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QSize </td><td class="memItemRight bottomAlign"><span class="name"><b>meshResolution</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setMeshResolution</b></span>(const QSize &<i>resolution</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>meshResolutionChanged</b></span>(const QSize &<i>meshResolution</i>)</td></tr>
/// </tbody></table></div></div>
pub fn mesh_resolution_changed(&self) -> ::qt_core::Signal<(*const ::qt_core::QSize,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"2meshResolutionChanged(const QSize&)\0",
),
)
}
}
/// <p>Holds the plane width.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QPlaneMesh::widthChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qplanemesh.html#width-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the plane width.</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>width</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setWidth</b></span>(float <i>width</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>widthChanged</b></span>(float <i>width</i>)</td></tr>
/// </tbody></table></div></div>
pub fn width_changed(&self) -> ::qt_core::Signal<(::std::os::raw::c_float,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2widthChanged(float)\0"),
)
}
}
/// <p>Holds the plane height.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QPlaneMesh::heightChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qplanemesh.html#height-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the plane height.</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>height</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setHeight</b></span>(float <i>height</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>heightChanged</b></span>(float <i>height</i>)</td></tr>
/// </tbody></table></div></div>
pub fn height_changed(&self) -> ::qt_core::Signal<(::std::os::raw::c_float,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2heightChanged(float)\0"),
)
}
}
/// <p>Controls if the UV coordinates of the plane should be flipped vertically.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QPlaneMesh::mirroredChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qplanemesh.html#mirrored-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Controls if the UV coordinates of the plane should be flipped vertically.</p>
/// <p>This property was introduced in Qt 5.9.</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>mirrored</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setMirrored</b></span>(bool <i>mirrored</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>mirroredChanged</b></span>(bool <i>mirrored</i>)</td></tr>
/// </tbody></table></div></div>
pub fn mirrored_changed(&self) -> ::qt_core::Signal<(bool,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2mirroredChanged(bool)\0"),
)
}
}
/// <p>Holds the plane height.</p>
///
/// Calls C++ function: <span style='color: green;'>```float Qt3DExtras::QPlaneMesh::height() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qplanemesh.html#height-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the plane height.</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>height</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setHeight</b></span>(float <i>height</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>heightChanged</b></span>(float <i>height</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn height(&self) -> ::std::os::raw::c_float {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QPlaneMesh_height(
self as *const crate::QPlaneMesh,
)
}
/// <p>Holds the plane resolution. The width and height values of this property specify the number of vertices generated for the mesh in the respective dimensions.</p>
///
/// Calls C++ function: <span style='color: green;'>```QSize Qt3DExtras::QPlaneMesh::meshResolution() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qplanemesh.html#meshResolution-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the plane resolution. The width and height values of this property specify the number of vertices generated for the mesh in the respective dimensions.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QSize </td><td class="memItemRight bottomAlign"><span class="name"><b>meshResolution</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setMeshResolution</b></span>(const QSize &<i>resolution</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>meshResolutionChanged</b></span>(const QSize &<i>meshResolution</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn mesh_resolution(&self) -> ::cpp_core::CppBox<::qt_core::QSize> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QPlaneMesh_meshResolution(
self as *const crate::QPlaneMesh,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// Calls C++ function: <span style='color: green;'>```virtual const QMetaObject* Qt3DExtras::QPlaneMesh::metaObject() const```</span>.
pub unsafe fn meta_object(&self) -> ::cpp_core::Ptr<::qt_core::QMetaObject> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QPlaneMesh_metaObject(
self as *const crate::QPlaneMesh,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// <p>Controls if the UV coordinates of the plane should be flipped vertically.</p>
///
/// Calls C++ function: <span style='color: green;'>```bool Qt3DExtras::QPlaneMesh::mirrored() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qplanemesh.html#mirrored-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Controls if the UV coordinates of the plane should be flipped vertically.</p>
/// <p>This property was introduced in Qt 5.9.</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>mirrored</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setMirrored</b></span>(bool <i>mirrored</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>mirroredChanged</b></span>(bool <i>mirrored</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn mirrored(&self) -> bool {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QPlaneMesh_mirrored(
self as *const crate::QPlaneMesh,
)
}
/// <p>Default constructs an instance of QPlaneMesh.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DExtras::QPlaneMesh::QPlaneMesh(Qt3DCore::QNode* parent = …)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qplanemesh.html#QPlaneMesh">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Default constructs an instance of QPlaneMesh.</p></div>
pub unsafe fn new_1a(
parent: impl ::cpp_core::CastInto<::cpp_core::MutPtr<::qt_3d_core::QNode>>,
) -> ::cpp_core::CppBox<crate::QPlaneMesh> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QPlaneMesh_QPlaneMesh(
::cpp_core::CastInto::<::cpp_core::MutPtr<::qt_3d_core::QNode>>::cast_into(parent)
.as_mut_raw_ptr(),
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>A square planar mesh.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DExtras::QPlaneMesh::QPlaneMesh()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qplanemesh.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>A square planar mesh.</p></div>
pub unsafe fn new_0a() -> ::cpp_core::CppBox<crate::QPlaneMesh> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QPlaneMesh_QPlaneMesh1();
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// Calls C++ function: <span style='color: green;'>```virtual int Qt3DExtras::QPlaneMesh::qt_metacall(QMetaObject::Call arg1, int arg2, void** arg3)```</span>.
pub unsafe fn qt_metacall(
&mut self,
arg1: ::qt_core::q_meta_object::Call,
arg2: ::std::os::raw::c_int,
arg3: impl ::cpp_core::CastInto<::cpp_core::MutPtr<*mut ::std::ffi::c_void>>,
) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QPlaneMesh_qt_metacall(
self as *mut crate::QPlaneMesh,
arg1,
arg2,
::cpp_core::CastInto::<::cpp_core::MutPtr<*mut ::std::ffi::c_void>>::cast_into(arg3)
.as_mut_raw_ptr(),
)
}
/// Calls C++ function: <span style='color: green;'>```virtual void* Qt3DExtras::QPlaneMesh::qt_metacast(const char* arg1)```</span>.
pub unsafe fn qt_metacast(
&mut self,
arg1: impl ::cpp_core::CastInto<::cpp_core::Ptr<::std::os::raw::c_char>>,
) -> ::cpp_core::MutPtr<::std::ffi::c_void> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QPlaneMesh_qt_metacast(
self as *mut crate::QPlaneMesh,
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(arg1)
.as_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
/// <p>Holds the plane height.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QPlaneMesh::setHeight(float height)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qplanemesh.html#height-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the plane height.</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>height</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setHeight</b></span>(float <i>height</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>heightChanged</b></span>(float <i>height</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_height(&mut self, height: ::std::os::raw::c_float) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QPlaneMesh_setHeight(
self as *mut crate::QPlaneMesh,
height,
)
}
/// <p>Holds the plane resolution. The width and height values of this property specify the number of vertices generated for the mesh in the respective dimensions.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QPlaneMesh::setMeshResolution(const QSize& resolution)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qplanemesh.html#meshResolution-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the plane resolution. The width and height values of this property specify the number of vertices generated for the mesh in the respective dimensions.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QSize </td><td class="memItemRight bottomAlign"><span class="name"><b>meshResolution</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setMeshResolution</b></span>(const QSize &<i>resolution</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>meshResolutionChanged</b></span>(const QSize &<i>meshResolution</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_mesh_resolution(
&mut self,
resolution: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_core::QSize>>,
) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QPlaneMesh_setMeshResolution(
self as *mut crate::QPlaneMesh,
::cpp_core::CastInto::<::cpp_core::Ref<::qt_core::QSize>>::cast_into(resolution)
.as_raw_ptr(),
)
}
/// <p>Controls if the UV coordinates of the plane should be flipped vertically.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QPlaneMesh::setMirrored(bool mirrored)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qplanemesh.html#mirrored-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Controls if the UV coordinates of the plane should be flipped vertically.</p>
/// <p>This property was introduced in Qt 5.9.</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>mirrored</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setMirrored</b></span>(bool <i>mirrored</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>mirroredChanged</b></span>(bool <i>mirrored</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_mirrored(&mut self, mirrored: bool) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QPlaneMesh_setMirrored(
self as *mut crate::QPlaneMesh,
mirrored,
)
}
/// <p>Holds the plane width.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QPlaneMesh::setWidth(float width)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qplanemesh.html#width-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the plane width.</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>width</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setWidth</b></span>(float <i>width</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>widthChanged</b></span>(float <i>width</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_width(&mut self, width: ::std::os::raw::c_float) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QPlaneMesh_setWidth(
self as *mut crate::QPlaneMesh,
width,
)
}
/// Returns a reference to the <span style='color: green;'>```staticMetaObject```</span> field.
pub unsafe fn static_meta_object() -> ::cpp_core::Ref<::qt_core::QMetaObject> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QPlaneMesh_staticMetaObject();
::cpp_core::Ref::from_raw(ffi_result).expect("attempted to construct a null Ref")
}
/// Calls C++ function: <span style='color: green;'>```static QString Qt3DExtras::QPlaneMesh::tr(const char* s, const char* c, int n)```</span>.
pub unsafe fn tr(
s: impl ::cpp_core::CastInto<::cpp_core::Ptr<::std::os::raw::c_char>>,
c: impl ::cpp_core::CastInto<::cpp_core::Ptr<::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_extras_ffi_Qt3DExtras_QPlaneMesh_tr(
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(s)
.as_raw_ptr(),
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(c)
.as_raw_ptr(),
n,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// Calls C++ function: <span style='color: green;'>```static QString Qt3DExtras::QPlaneMesh::trUtf8(const char* s, const char* c, int n)```</span>.
pub unsafe fn tr_utf8(
s: impl ::cpp_core::CastInto<::cpp_core::Ptr<::std::os::raw::c_char>>,
c: impl ::cpp_core::CastInto<::cpp_core::Ptr<::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_extras_ffi_Qt3DExtras_QPlaneMesh_trUtf8(
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(s)
.as_raw_ptr(),
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(c)
.as_raw_ptr(),
n,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Holds the plane width.</p>
///
/// Calls C++ function: <span style='color: green;'>```float Qt3DExtras::QPlaneMesh::width() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qplanemesh.html#width-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the plane width.</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>width</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setWidth</b></span>(float <i>width</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>widthChanged</b></span>(float <i>width</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn width(&self) -> ::std::os::raw::c_float {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QPlaneMesh_width(
self as *const crate::QPlaneMesh,
)
}
}
/// <p><a href="http://doc.qt.io/qt-5/qt3dextras-qskyboxentity.html">Qt3DExtras::QSkyboxEntity</a> is a convenience <a href="http://doc.qt.io/qt-5/qt3dcore-qentity.html">Qt3DCore::QEntity</a> subclass that can be used to insert a skybox in a 3D scene.</p>
///
/// C++ class: <span style='color: green;'>```Qt3DExtras::QSkyboxEntity```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qskyboxentity.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p><a href="http://doc.qt.io/qt-5/qt3dextras-qskyboxentity.html">Qt3DExtras::QSkyboxEntity</a> is a convenience <a href="http://doc.qt.io/qt-5/qt3dcore-qentity.html">Qt3DCore::QEntity</a> subclass that can be used to insert a skybox in a 3D scene.</p>
/// <p>By specifying a base name and an extension, <a href="http://doc.qt.io/qt-5/qt3dextras-qskyboxentity.html">Qt3DExtras::QSkyboxEntity</a> will take care of building a TextureCubeMap to be rendered at runtime. The images in the source directory should match the pattern: <b>base</b> name + * "_posx|_posy|_posz|_negx|_negy|_negz" + extension</p>
/// <p>By default the extension defaults to .png.</p>
/// <p>Be sure to disable frustum culling in the FrameGraph through which the skybox rendering happens.</p>
/// <p><b>Note: </b>Please note that you shouldn't try to render a skybox with an orthographic projection.</p></div>
#[repr(C)]
pub struct QSkyboxEntity {
_unused: u8,
}
impl QSkyboxEntity {
/// <p>Sets the base name to <i>baseName</i>.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QSkyboxEntity::setBaseName` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qskyboxentity.html#setBaseName">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Sets the base name to <i>baseName</i>.</p>
/// <p><b>Note:</b> Setter function for property <a href="http://doc.qt.io/qt-5/qt3dextras-qskyboxentity.html#baseName-prop">baseName</a>. </p><p><b>See also </b><a href="http://doc.qt.io/qt-5/qt3dextras-qskyboxentity.html#baseName">baseName</a>().</p></div>
pub fn slot_set_base_name(&self) -> ::qt_core::Receiver<(*const ::qt_core::QString,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setBaseName(const QString&)\0"),
)
}
}
/// <p>Sets the extension to <i>extension</i>.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QSkyboxEntity::setExtension` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qskyboxentity.html#setExtension">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Sets the extension to <i>extension</i>.</p>
/// <p><b>Note:</b> Setter function for property <a href="http://doc.qt.io/qt-5/qt3dextras-qskyboxentity.html#extension-prop">extension</a>. </p><p><b>See also </b><a href="http://doc.qt.io/qt-5/qt3dextras-qskyboxentity.html#extension">extension</a>().</p></div>
pub fn slot_set_extension(&self) -> ::qt_core::Receiver<(*const ::qt_core::QString,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setExtension(const QString&)\0"),
)
}
}
/// <p>Sets the gamma correction enable state to <i>enabled</i>.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QSkyboxEntity::setGammaCorrectEnabled` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qskyboxentity.html#setGammaCorrectEnabled">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Sets the gamma correction enable state to <i>enabled</i>.</p>
/// <p>This function was introduced in Qt 5.9.</p>
/// <p><b>Note:</b> Setter function for property <a href="http://doc.qt.io/qt-5/qt3dextras-qskyboxentity.html#gammaCorrect-prop">gammaCorrect</a>. </p><p><b>See also </b><a href="http://doc.qt.io/qt-5/qt3dextras-qskyboxentity.html#isGammaCorrectEnabled">isGammaCorrectEnabled</a>().</p></div>
pub fn slot_set_gamma_correct_enabled(&self) -> ::qt_core::Receiver<(bool,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setGammaCorrectEnabled(bool)\0"),
)
}
}
/// <p>Contains the base name of the Skybox.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QSkyboxEntity::baseNameChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qskyboxentity.html#baseName-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Contains the base name of the Skybox.</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><a href="http://doc.qt.io/qt-5/qt3dextras-qskyboxentity.html#baseName">baseName</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/qt3dextras-qskyboxentity.html#setBaseName">setBaseName</a></b></span>(const QString &<i>baseName</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>baseNameChanged</b></span>(const QString &<i>path</i>)</td></tr>
/// </tbody></table></div></div>
pub fn base_name_changed(&self) -> ::qt_core::Signal<(*const ::qt_core::QString,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"2baseNameChanged(const QString&)\0",
),
)
}
}
/// <p>Contains the extension of the Skybox.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QSkyboxEntity::extensionChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qskyboxentity.html#extension-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Contains the extension of the Skybox.</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><a href="http://doc.qt.io/qt-5/qt3dextras-qskyboxentity.html#extension">extension</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/qt3dextras-qskyboxentity.html#setExtension">setExtension</a></b></span>(const QString &<i>extension</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>extensionChanged</b></span>(const QString &<i>extension</i>)</td></tr>
/// </tbody></table></div></div>
pub fn extension_changed(&self) -> ::qt_core::Signal<(*const ::qt_core::QString,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"2extensionChanged(const QString&)\0",
),
)
}
}
/// <p>A boolean indicating whether gamma correction is enabled.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QSkyboxEntity::gammaCorrectEnabledChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qskyboxentity.html#gammaCorrect-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>A boolean indicating whether gamma correction is enabled.</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><a href="http://doc.qt.io/qt-5/qt3dextras-qskyboxentity.html#isGammaCorrectEnabled">isGammaCorrectEnabled</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/qt3dextras-qskyboxentity.html#setGammaCorrectEnabled">setGammaCorrectEnabled</a></b></span>(bool <i>enabled</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>gammaCorrectEnabledChanged</b></span>(bool <i>enabled</i>)</td></tr>
/// </tbody></table></div></div>
pub fn gamma_correct_enabled_changed(&self) -> ::qt_core::Signal<(bool,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"2gammaCorrectEnabledChanged(bool)\0",
),
)
}
}
/// <p>Contains the base name of the Skybox.</p>
///
/// Calls C++ function: <span style='color: green;'>```QString Qt3DExtras::QSkyboxEntity::baseName() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qskyboxentity.html#baseName-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Contains the base name of the Skybox.</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><a href="http://doc.qt.io/qt-5/qt3dextras-qskyboxentity.html#baseName">baseName</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/qt3dextras-qskyboxentity.html#setBaseName">setBaseName</a></b></span>(const QString &<i>baseName</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>baseNameChanged</b></span>(const QString &<i>path</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn base_name(&self) -> ::cpp_core::CppBox<::qt_core::QString> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QSkyboxEntity_baseName(
self as *const crate::QSkyboxEntity,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Contains the extension of the Skybox.</p>
///
/// Calls C++ function: <span style='color: green;'>```QString Qt3DExtras::QSkyboxEntity::extension() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qskyboxentity.html#extension-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Contains the extension of the Skybox.</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><a href="http://doc.qt.io/qt-5/qt3dextras-qskyboxentity.html#extension">extension</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/qt3dextras-qskyboxentity.html#setExtension">setExtension</a></b></span>(const QString &<i>extension</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>extensionChanged</b></span>(const QString &<i>extension</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn extension(&self) -> ::cpp_core::CppBox<::qt_core::QString> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QSkyboxEntity_extension(
self as *const crate::QSkyboxEntity,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Returns true if gamma correction is enabled for this skybox.</p>
///
/// Calls C++ function: <span style='color: green;'>```bool Qt3DExtras::QSkyboxEntity::isGammaCorrectEnabled() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qskyboxentity.html#isGammaCorrectEnabled">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns true if gamma correction is enabled for this skybox.</p>
/// <p>This function was introduced in Qt 5.9.</p>
/// <p><b>Note:</b> Getter function for property <a href="http://doc.qt.io/qt-5/qt3dextras-qskyboxentity.html#gammaCorrect-prop">gammaCorrect</a>. </p></div>
pub unsafe fn is_gamma_correct_enabled(&self) -> bool {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QSkyboxEntity_isGammaCorrectEnabled(
self as *const crate::QSkyboxEntity,
)
}
/// Calls C++ function: <span style='color: green;'>```virtual const QMetaObject* Qt3DExtras::QSkyboxEntity::metaObject() const```</span>.
pub unsafe fn meta_object(&self) -> ::cpp_core::Ptr<::qt_core::QMetaObject> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QSkyboxEntity_metaObject(
self as *const crate::QSkyboxEntity,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// <p>Default constructs an instance of QSkyboxEntity.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DExtras::QSkyboxEntity::QSkyboxEntity(Qt3DCore::QNode* parent = …)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qskyboxentity.html#QSkyboxEntity">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Default constructs an instance of QSkyboxEntity.</p></div>
pub unsafe fn new_1a(
parent: impl ::cpp_core::CastInto<::cpp_core::MutPtr<::qt_3d_core::QNode>>,
) -> ::cpp_core::CppBox<crate::QSkyboxEntity> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QSkyboxEntity_QSkyboxEntity(
::cpp_core::CastInto::<::cpp_core::MutPtr<::qt_3d_core::QNode>>::cast_into(parent)
.as_mut_raw_ptr(),
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p><a href="http://doc.qt.io/qt-5/qt3dextras-qskyboxentity.html">Qt3DExtras::QSkyboxEntity</a> is a convenience <a href="http://doc.qt.io/qt-5/qt3dcore-qentity.html">Qt3DCore::QEntity</a> subclass that can be used to insert a skybox in a 3D scene.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DExtras::QSkyboxEntity::QSkyboxEntity()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qskyboxentity.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p><a href="http://doc.qt.io/qt-5/qt3dextras-qskyboxentity.html">Qt3DExtras::QSkyboxEntity</a> is a convenience <a href="http://doc.qt.io/qt-5/qt3dcore-qentity.html">Qt3DCore::QEntity</a> subclass that can be used to insert a skybox in a 3D scene.</p>
/// <p>By specifying a base name and an extension, <a href="http://doc.qt.io/qt-5/qt3dextras-qskyboxentity.html">Qt3DExtras::QSkyboxEntity</a> will take care of building a TextureCubeMap to be rendered at runtime. The images in the source directory should match the pattern: <b>base</b> name + * "_posx|_posy|_posz|_negx|_negy|_negz" + extension</p>
/// <p>By default the extension defaults to .png.</p>
/// <p>Be sure to disable frustum culling in the FrameGraph through which the skybox rendering happens.</p>
/// <p><b>Note: </b>Please note that you shouldn't try to render a skybox with an orthographic projection.</p></div>
pub unsafe fn new_0a() -> ::cpp_core::CppBox<crate::QSkyboxEntity> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QSkyboxEntity_QSkyboxEntity1();
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// Calls C++ function: <span style='color: green;'>```virtual int Qt3DExtras::QSkyboxEntity::qt_metacall(QMetaObject::Call arg1, int arg2, void** arg3)```</span>.
pub unsafe fn qt_metacall(
&mut self,
arg1: ::qt_core::q_meta_object::Call,
arg2: ::std::os::raw::c_int,
arg3: impl ::cpp_core::CastInto<::cpp_core::MutPtr<*mut ::std::ffi::c_void>>,
) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QSkyboxEntity_qt_metacall(
self as *mut crate::QSkyboxEntity,
arg1,
arg2,
::cpp_core::CastInto::<::cpp_core::MutPtr<*mut ::std::ffi::c_void>>::cast_into(arg3)
.as_mut_raw_ptr(),
)
}
/// Calls C++ function: <span style='color: green;'>```virtual void* Qt3DExtras::QSkyboxEntity::qt_metacast(const char* arg1)```</span>.
pub unsafe fn qt_metacast(
&mut self,
arg1: impl ::cpp_core::CastInto<::cpp_core::Ptr<::std::os::raw::c_char>>,
) -> ::cpp_core::MutPtr<::std::ffi::c_void> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QSkyboxEntity_qt_metacast(
self as *mut crate::QSkyboxEntity,
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(arg1)
.as_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
/// <p>Sets the base name to <i>baseName</i>.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QSkyboxEntity::setBaseName(const QString& path)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qskyboxentity.html#setBaseName">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Sets the base name to <i>baseName</i>.</p>
/// <p><b>Note:</b> Setter function for property <a href="http://doc.qt.io/qt-5/qt3dextras-qskyboxentity.html#baseName-prop">baseName</a>. </p><p><b>See also </b><a href="http://doc.qt.io/qt-5/qt3dextras-qskyboxentity.html#baseName">baseName</a>().</p></div>
pub unsafe fn set_base_name(
&mut self,
path: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_core::QString>>,
) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QSkyboxEntity_setBaseName(
self as *mut crate::QSkyboxEntity,
::cpp_core::CastInto::<::cpp_core::Ref<::qt_core::QString>>::cast_into(path)
.as_raw_ptr(),
)
}
/// <p>Sets the extension to <i>extension</i>.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QSkyboxEntity::setExtension(const QString& extension)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qskyboxentity.html#setExtension">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Sets the extension to <i>extension</i>.</p>
/// <p><b>Note:</b> Setter function for property <a href="http://doc.qt.io/qt-5/qt3dextras-qskyboxentity.html#extension-prop">extension</a>. </p><p><b>See also </b><a href="http://doc.qt.io/qt-5/qt3dextras-qskyboxentity.html#extension">extension</a>().</p></div>
pub unsafe fn set_extension(
&mut self,
extension: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_core::QString>>,
) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QSkyboxEntity_setExtension(
self as *mut crate::QSkyboxEntity,
::cpp_core::CastInto::<::cpp_core::Ref<::qt_core::QString>>::cast_into(extension)
.as_raw_ptr(),
)
}
/// <p>Sets the gamma correction enable state to <i>enabled</i>.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QSkyboxEntity::setGammaCorrectEnabled(bool enabled)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qskyboxentity.html#setGammaCorrectEnabled">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Sets the gamma correction enable state to <i>enabled</i>.</p>
/// <p>This function was introduced in Qt 5.9.</p>
/// <p><b>Note:</b> Setter function for property <a href="http://doc.qt.io/qt-5/qt3dextras-qskyboxentity.html#gammaCorrect-prop">gammaCorrect</a>. </p><p><b>See also </b><a href="http://doc.qt.io/qt-5/qt3dextras-qskyboxentity.html#isGammaCorrectEnabled">isGammaCorrectEnabled</a>().</p></div>
pub unsafe fn set_gamma_correct_enabled(&mut self, enabled: bool) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QSkyboxEntity_setGammaCorrectEnabled(
self as *mut crate::QSkyboxEntity,
enabled,
)
}
/// Returns a reference to the <span style='color: green;'>```staticMetaObject```</span> field.
pub unsafe fn static_meta_object() -> ::cpp_core::Ref<::qt_core::QMetaObject> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QSkyboxEntity_staticMetaObject();
::cpp_core::Ref::from_raw(ffi_result).expect("attempted to construct a null Ref")
}
/// Calls C++ function: <span style='color: green;'>```static QString Qt3DExtras::QSkyboxEntity::tr(const char* s, const char* c, int n)```</span>.
pub unsafe fn tr(
s: impl ::cpp_core::CastInto<::cpp_core::Ptr<::std::os::raw::c_char>>,
c: impl ::cpp_core::CastInto<::cpp_core::Ptr<::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_extras_ffi_Qt3DExtras_QSkyboxEntity_tr(
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(s)
.as_raw_ptr(),
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(c)
.as_raw_ptr(),
n,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// Calls C++ function: <span style='color: green;'>```static QString Qt3DExtras::QSkyboxEntity::trUtf8(const char* s, const char* c, int n)```</span>.
pub unsafe fn tr_utf8(
s: impl ::cpp_core::CastInto<::cpp_core::Ptr<::std::os::raw::c_char>>,
c: impl ::cpp_core::CastInto<::cpp_core::Ptr<::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_extras_ffi_Qt3DExtras_QSkyboxEntity_trUtf8(
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(s)
.as_raw_ptr(),
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(c)
.as_raw_ptr(),
n,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
}
/// <p>The <a href="http://doc.qt.io/qt-5/qt3dextras-qspheregeometry.html">QSphereGeometry</a> class allows creation of a sphere in 3D space.</p>
///
/// C++ class: <span style='color: green;'>```Qt3DExtras::QSphereGeometry```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qspheregeometry.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>The <a href="http://doc.qt.io/qt-5/qt3dextras-qspheregeometry.html">QSphereGeometry</a> class allows creation of a sphere in 3D space.</p>
/// <p>The <a href="http://doc.qt.io/qt-5/qt3dextras-qspheregeometry.html">QSphereGeometry</a> class is most commonly used internally by the <a href="http://doc.qt.io/qt-5/qt3dextras-qspheremesh.html">QSphereMesh</a> but can also be used in custom <a href="http://doc.qt.io/qt-5/qt3drender-qgeometryrenderer.html">Qt3DRender::QGeometryRenderer</a> subclasses.</p></div>
#[repr(C)]
pub struct QSphereGeometry {
_unused: u8,
}
impl QSphereGeometry {
/// <p>Holds the number of rings in the sphere.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QSphereGeometry::setRings` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qspheregeometry.html#rings-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the number of rings in the sphere.</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>rings</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setRings</b></span>(int <i>rings</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>ringsChanged</b></span>(int <i>rings</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slot_set_rings(&self) -> ::qt_core::Receiver<(::std::os::raw::c_int,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setRings(int)\0"),
)
}
}
/// <p>Holds the number of slices in the sphere.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QSphereGeometry::setSlices` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qspheregeometry.html#slices-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the number of slices in the sphere.</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>slices</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setSlices</b></span>(int <i>slices</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>slicesChanged</b></span>(int <i>slices</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slot_set_slices(&self) -> ::qt_core::Receiver<(::std::os::raw::c_int,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setSlices(int)\0"),
)
}
}
/// <p>Holds the radius of the sphere.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QSphereGeometry::setRadius` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qspheregeometry.html#radius-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the radius of the sphere.</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>radius</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setRadius</b></span>(float <i>radius</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>radiusChanged</b></span>(float <i>radius</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slot_set_radius(&self) -> ::qt_core::Receiver<(::std::os::raw::c_float,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setRadius(float)\0"),
)
}
}
/// <p>Holds the value of the automatic tangent vectors generation flag. Tangent vectors are orthogonal to normal vectors.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QSphereGeometry::setGenerateTangents` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qspheregeometry.html#generateTangents-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the value of the automatic tangent vectors generation flag. Tangent vectors are orthogonal to normal vectors.</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>generateTangents</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setGenerateTangents</b></span>(bool <i>gen</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>generateTangentsChanged</b></span>(bool <i>generateTangents</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slot_set_generate_tangents(&self) -> ::qt_core::Receiver<(bool,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setGenerateTangents(bool)\0"),
)
}
}
/// <p>Holds the radius of the sphere.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QSphereGeometry::radiusChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qspheregeometry.html#radius-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the radius of the sphere.</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>radius</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setRadius</b></span>(float <i>radius</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>radiusChanged</b></span>(float <i>radius</i>)</td></tr>
/// </tbody></table></div></div>
pub fn radius_changed(&self) -> ::qt_core::Signal<(::std::os::raw::c_float,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2radiusChanged(float)\0"),
)
}
}
/// <p>Holds the number of rings in the sphere.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QSphereGeometry::ringsChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qspheregeometry.html#rings-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the number of rings in the sphere.</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>rings</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setRings</b></span>(int <i>rings</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>ringsChanged</b></span>(int <i>rings</i>)</td></tr>
/// </tbody></table></div></div>
pub fn rings_changed(&self) -> ::qt_core::Signal<(::std::os::raw::c_int,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2ringsChanged(int)\0"),
)
}
}
/// <p>Holds the number of slices in the sphere.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QSphereGeometry::slicesChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qspheregeometry.html#slices-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the number of slices in the sphere.</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>slices</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setSlices</b></span>(int <i>slices</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>slicesChanged</b></span>(int <i>slices</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slices_changed(&self) -> ::qt_core::Signal<(::std::os::raw::c_int,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2slicesChanged(int)\0"),
)
}
}
/// <p>Holds the value of the automatic tangent vectors generation flag. Tangent vectors are orthogonal to normal vectors.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QSphereGeometry::generateTangentsChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qspheregeometry.html#generateTangents-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the value of the automatic tangent vectors generation flag. Tangent vectors are orthogonal to normal vectors.</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>generateTangents</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setGenerateTangents</b></span>(bool <i>gen</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>generateTangentsChanged</b></span>(bool <i>generateTangents</i>)</td></tr>
/// </tbody></table></div></div>
pub fn generate_tangents_changed(&self) -> ::qt_core::Signal<(bool,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"2generateTangentsChanged(bool)\0",
),
)
}
}
/// <p>Holds the value of the automatic tangent vectors generation flag. Tangent vectors are orthogonal to normal vectors.</p>
///
/// Calls C++ function: <span style='color: green;'>```bool Qt3DExtras::QSphereGeometry::generateTangents() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qspheregeometry.html#generateTangents-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the value of the automatic tangent vectors generation flag. Tangent vectors are orthogonal to normal vectors.</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>generateTangents</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setGenerateTangents</b></span>(bool <i>gen</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>generateTangentsChanged</b></span>(bool <i>generateTangents</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn generate_tangents(&self) -> bool {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QSphereGeometry_generateTangents(
self as *const crate::QSphereGeometry,
)
}
/// <p>Holds the geometry index attribute.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QAttribute* Qt3DExtras::QSphereGeometry::indexAttribute() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qspheregeometry.html#indexAttribute-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the geometry index attribute.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DRender::QAttribute *</td><td class="memItemRight bottomAlign"><span class="name"><b>indexAttribute</b></span>() const</td></tr>
/// </tbody></table></div></div>
pub unsafe fn index_attribute(&self) -> ::cpp_core::MutPtr<::qt_3d_render::QAttribute> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QSphereGeometry_indexAttribute(
self as *const crate::QSphereGeometry,
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```virtual const QMetaObject* Qt3DExtras::QSphereGeometry::metaObject() const```</span>.
pub unsafe fn meta_object(&self) -> ::cpp_core::Ptr<::qt_core::QMetaObject> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QSphereGeometry_metaObject(
self as *const crate::QSphereGeometry,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// <p>Constructs a new <a href="http://doc.qt.io/qt-5/qt3dextras-qspheregeometry.html">QSphereGeometry</a> with <i>parent</i>.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DExtras::QSphereGeometry::QSphereGeometry(Qt3DCore::QNode* parent = …)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qspheregeometry.html#QSphereGeometry">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/qt3dextras-qspheregeometry.html">QSphereGeometry</a> with <i>parent</i>.</p></div>
pub unsafe fn new_1a(
parent: impl ::cpp_core::CastInto<::cpp_core::MutPtr<::qt_3d_core::QNode>>,
) -> ::cpp_core::CppBox<crate::QSphereGeometry> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QSphereGeometry_QSphereGeometry(
::cpp_core::CastInto::<::cpp_core::MutPtr<::qt_3d_core::QNode>>::cast_into(parent)
.as_mut_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/qt3dextras-qspheregeometry.html">QSphereGeometry</a> class allows creation of a sphere in 3D space.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DExtras::QSphereGeometry::QSphereGeometry()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qspheregeometry.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>The <a href="http://doc.qt.io/qt-5/qt3dextras-qspheregeometry.html">QSphereGeometry</a> class allows creation of a sphere in 3D space.</p>
/// <p>The <a href="http://doc.qt.io/qt-5/qt3dextras-qspheregeometry.html">QSphereGeometry</a> class is most commonly used internally by the <a href="http://doc.qt.io/qt-5/qt3dextras-qspheremesh.html">QSphereMesh</a> but can also be used in custom <a href="http://doc.qt.io/qt-5/qt3drender-qgeometryrenderer.html">Qt3DRender::QGeometryRenderer</a> subclasses.</p></div>
pub unsafe fn new_0a() -> ::cpp_core::CppBox<crate::QSphereGeometry> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QSphereGeometry_QSphereGeometry1();
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Holds the geometry normal attribute.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QAttribute* Qt3DExtras::QSphereGeometry::normalAttribute() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qspheregeometry.html#normalAttribute-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the geometry normal attribute.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DRender::QAttribute *</td><td class="memItemRight bottomAlign"><span class="name"><b>normalAttribute</b></span>() const</td></tr>
/// </tbody></table></div></div>
pub unsafe fn normal_attribute(&self) -> ::cpp_core::MutPtr<::qt_3d_render::QAttribute> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QSphereGeometry_normalAttribute(
self as *const crate::QSphereGeometry,
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
/// <p>Holds the geometry position attribute.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QAttribute* Qt3DExtras::QSphereGeometry::positionAttribute() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qspheregeometry.html#positionAttribute-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the geometry position attribute.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DRender::QAttribute *</td><td class="memItemRight bottomAlign"><span class="name"><b>positionAttribute</b></span>() const</td></tr>
/// </tbody></table></div></div>
pub unsafe fn position_attribute(&self) -> ::cpp_core::MutPtr<::qt_3d_render::QAttribute> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QSphereGeometry_positionAttribute(
self as *const crate::QSphereGeometry,
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```virtual int Qt3DExtras::QSphereGeometry::qt_metacall(QMetaObject::Call arg1, int arg2, void** arg3)```</span>.
pub unsafe fn qt_metacall(
&mut self,
arg1: ::qt_core::q_meta_object::Call,
arg2: ::std::os::raw::c_int,
arg3: impl ::cpp_core::CastInto<::cpp_core::MutPtr<*mut ::std::ffi::c_void>>,
) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QSphereGeometry_qt_metacall(
self as *mut crate::QSphereGeometry,
arg1,
arg2,
::cpp_core::CastInto::<::cpp_core::MutPtr<*mut ::std::ffi::c_void>>::cast_into(arg3)
.as_mut_raw_ptr(),
)
}
/// Calls C++ function: <span style='color: green;'>```virtual void* Qt3DExtras::QSphereGeometry::qt_metacast(const char* arg1)```</span>.
pub unsafe fn qt_metacast(
&mut self,
arg1: impl ::cpp_core::CastInto<::cpp_core::Ptr<::std::os::raw::c_char>>,
) -> ::cpp_core::MutPtr<::std::ffi::c_void> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QSphereGeometry_qt_metacast(
self as *mut crate::QSphereGeometry,
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(arg1)
.as_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
/// <p>Holds the radius of the sphere.</p>
///
/// Calls C++ function: <span style='color: green;'>```float Qt3DExtras::QSphereGeometry::radius() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qspheregeometry.html#radius-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the radius of the sphere.</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>radius</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setRadius</b></span>(float <i>radius</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>radiusChanged</b></span>(float <i>radius</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn radius(&self) -> ::std::os::raw::c_float {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QSphereGeometry_radius(
self as *const crate::QSphereGeometry,
)
}
/// <p>Holds the number of rings in the sphere.</p>
///
/// Calls C++ function: <span style='color: green;'>```int Qt3DExtras::QSphereGeometry::rings() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qspheregeometry.html#rings-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the number of rings in the sphere.</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>rings</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setRings</b></span>(int <i>rings</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>ringsChanged</b></span>(int <i>rings</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn rings(&self) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QSphereGeometry_rings(
self as *const crate::QSphereGeometry,
)
}
/// <p>Holds the value of the automatic tangent vectors generation flag. Tangent vectors are orthogonal to normal vectors.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QSphereGeometry::setGenerateTangents(bool gen)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qspheregeometry.html#generateTangents-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the value of the automatic tangent vectors generation flag. Tangent vectors are orthogonal to normal vectors.</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>generateTangents</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setGenerateTangents</b></span>(bool <i>gen</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>generateTangentsChanged</b></span>(bool <i>generateTangents</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_generate_tangents(&mut self, gen: bool) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QSphereGeometry_setGenerateTangents(
self as *mut crate::QSphereGeometry,
gen,
)
}
/// <p>Holds the radius of the sphere.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QSphereGeometry::setRadius(float radius)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qspheregeometry.html#radius-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the radius of the sphere.</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>radius</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setRadius</b></span>(float <i>radius</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>radiusChanged</b></span>(float <i>radius</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_radius(&mut self, radius: ::std::os::raw::c_float) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QSphereGeometry_setRadius(
self as *mut crate::QSphereGeometry,
radius,
)
}
/// <p>Holds the number of rings in the sphere.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QSphereGeometry::setRings(int rings)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qspheregeometry.html#rings-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the number of rings in the sphere.</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>rings</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setRings</b></span>(int <i>rings</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>ringsChanged</b></span>(int <i>rings</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_rings(&mut self, rings: ::std::os::raw::c_int) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QSphereGeometry_setRings(
self as *mut crate::QSphereGeometry,
rings,
)
}
/// <p>Holds the number of slices in the sphere.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QSphereGeometry::setSlices(int slices)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qspheregeometry.html#slices-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the number of slices in the sphere.</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>slices</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setSlices</b></span>(int <i>slices</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>slicesChanged</b></span>(int <i>slices</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_slices(&mut self, slices: ::std::os::raw::c_int) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QSphereGeometry_setSlices(
self as *mut crate::QSphereGeometry,
slices,
)
}
/// <p>Holds the number of slices in the sphere.</p>
///
/// Calls C++ function: <span style='color: green;'>```int Qt3DExtras::QSphereGeometry::slices() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qspheregeometry.html#slices-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the number of slices in the sphere.</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>slices</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setSlices</b></span>(int <i>slices</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>slicesChanged</b></span>(int <i>slices</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn slices(&self) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QSphereGeometry_slices(
self as *const crate::QSphereGeometry,
)
}
/// Returns a reference to the <span style='color: green;'>```staticMetaObject```</span> field.
pub unsafe fn static_meta_object() -> ::cpp_core::Ref<::qt_core::QMetaObject> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QSphereGeometry_staticMetaObject();
::cpp_core::Ref::from_raw(ffi_result).expect("attempted to construct a null Ref")
}
/// <p>Holds the geometry tangent attribute.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QAttribute* Qt3DExtras::QSphereGeometry::tangentAttribute() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qspheregeometry.html#tangentAttribute-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the geometry tangent attribute.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DRender::QAttribute *</td><td class="memItemRight bottomAlign"><span class="name"><b>tangentAttribute</b></span>() const</td></tr>
/// </tbody></table></div></div>
pub unsafe fn tangent_attribute(&self) -> ::cpp_core::MutPtr<::qt_3d_render::QAttribute> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QSphereGeometry_tangentAttribute(
self as *const crate::QSphereGeometry,
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
/// <p>Holds the geometry texture coordinate attribute.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QAttribute* Qt3DExtras::QSphereGeometry::texCoordAttribute() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qspheregeometry.html#texCoordAttribute-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the geometry texture coordinate attribute.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DRender::QAttribute *</td><td class="memItemRight bottomAlign"><span class="name"><b>texCoordAttribute</b></span>() const</td></tr>
/// </tbody></table></div></div>
pub unsafe fn tex_coord_attribute(&self) -> ::cpp_core::MutPtr<::qt_3d_render::QAttribute> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QSphereGeometry_texCoordAttribute(
self as *const crate::QSphereGeometry,
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```static QString Qt3DExtras::QSphereGeometry::tr(const char* s, const char* c, int n)```</span>.
pub unsafe fn tr(
s: impl ::cpp_core::CastInto<::cpp_core::Ptr<::std::os::raw::c_char>>,
c: impl ::cpp_core::CastInto<::cpp_core::Ptr<::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_extras_ffi_Qt3DExtras_QSphereGeometry_tr(
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(s)
.as_raw_ptr(),
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(c)
.as_raw_ptr(),
n,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// Calls C++ function: <span style='color: green;'>```static QString Qt3DExtras::QSphereGeometry::trUtf8(const char* s, const char* c, int n)```</span>.
pub unsafe fn tr_utf8(
s: impl ::cpp_core::CastInto<::cpp_core::Ptr<::std::os::raw::c_char>>,
c: impl ::cpp_core::CastInto<::cpp_core::Ptr<::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_extras_ffi_Qt3DExtras_QSphereGeometry_trUtf8(
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(s)
.as_raw_ptr(),
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(c)
.as_raw_ptr(),
n,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Updates indices based on rings and slices properties.</p>
///
/// Calls C++ function: <span style='color: green;'>```void Qt3DExtras::QSphereGeometry::updateIndices()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qspheregeometry.html#updateIndices">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Updates indices based on rings and slices properties.</p></div>
pub unsafe fn update_indices(&mut self) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QSphereGeometry_updateIndices(
self as *mut crate::QSphereGeometry,
)
}
/// <p>Updates vertices based on rings, slices, and radius properties</p>
///
/// Calls C++ function: <span style='color: green;'>```void Qt3DExtras::QSphereGeometry::updateVertices()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qspheregeometry.html#updateVertices">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Updates vertices based on rings, slices, and radius properties</p></div>
pub unsafe fn update_vertices(&mut self) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QSphereGeometry_updateVertices(
self as *mut crate::QSphereGeometry,
)
}
}
/// <p>A spherical mesh.</p>
///
/// C++ class: <span style='color: green;'>```Qt3DExtras::QSphereMesh```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qspheremesh.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>A spherical mesh.</p></div>
#[repr(C)]
pub struct QSphereMesh {
_unused: u8,
}
impl QSphereMesh {
/// <p>Holds the number of rings in the mesh.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QSphereMesh::setRings` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qspheremesh.html#rings-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the number of rings in the mesh.</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>rings</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setRings</b></span>(int <i>rings</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>ringsChanged</b></span>(int <i>rings</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slot_set_rings(&self) -> ::qt_core::Receiver<(::std::os::raw::c_int,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setRings(int)\0"),
)
}
}
/// <p>Holds the number of slices in the mesh.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QSphereMesh::setSlices` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qspheremesh.html#slices-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the number of slices in the mesh.</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>slices</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setSlices</b></span>(int <i>slices</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>slicesChanged</b></span>(int <i>slices</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slot_set_slices(&self) -> ::qt_core::Receiver<(::std::os::raw::c_int,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setSlices(int)\0"),
)
}
}
/// <p>Holds the radius of the sphere.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QSphereMesh::setRadius` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qspheremesh.html#radius-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the radius of the sphere.</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>radius</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setRadius</b></span>(float <i>radius</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>radiusChanged</b></span>(float <i>radius</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slot_set_radius(&self) -> ::qt_core::Receiver<(::std::os::raw::c_float,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setRadius(float)\0"),
)
}
}
/// <p>Holds the value of the automatic tangent vectors generation flag. Tangent vectors are orthogonal to normal vectors.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QSphereMesh::setGenerateTangents` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qspheremesh.html#generateTangents-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the value of the automatic tangent vectors generation flag. Tangent vectors are orthogonal to normal vectors.</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>generateTangents</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setGenerateTangents</b></span>(bool <i>gen</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>generateTangentsChanged</b></span>(bool <i>generateTangents</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slot_set_generate_tangents(&self) -> ::qt_core::Receiver<(bool,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setGenerateTangents(bool)\0"),
)
}
}
/// <p>Holds the radius of the sphere.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QSphereMesh::radiusChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qspheremesh.html#radius-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the radius of the sphere.</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>radius</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setRadius</b></span>(float <i>radius</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>radiusChanged</b></span>(float <i>radius</i>)</td></tr>
/// </tbody></table></div></div>
pub fn radius_changed(&self) -> ::qt_core::Signal<(::std::os::raw::c_float,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2radiusChanged(float)\0"),
)
}
}
/// <p>Holds the number of rings in the mesh.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QSphereMesh::ringsChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qspheremesh.html#rings-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the number of rings in the mesh.</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>rings</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setRings</b></span>(int <i>rings</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>ringsChanged</b></span>(int <i>rings</i>)</td></tr>
/// </tbody></table></div></div>
pub fn rings_changed(&self) -> ::qt_core::Signal<(::std::os::raw::c_int,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2ringsChanged(int)\0"),
)
}
}
/// <p>Holds the number of slices in the mesh.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QSphereMesh::slicesChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qspheremesh.html#slices-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the number of slices in the mesh.</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>slices</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setSlices</b></span>(int <i>slices</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>slicesChanged</b></span>(int <i>slices</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slices_changed(&self) -> ::qt_core::Signal<(::std::os::raw::c_int,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2slicesChanged(int)\0"),
)
}
}
/// <p>Holds the value of the automatic tangent vectors generation flag. Tangent vectors are orthogonal to normal vectors.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QSphereMesh::generateTangentsChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qspheremesh.html#generateTangents-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the value of the automatic tangent vectors generation flag. Tangent vectors are orthogonal to normal vectors.</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>generateTangents</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setGenerateTangents</b></span>(bool <i>gen</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>generateTangentsChanged</b></span>(bool <i>generateTangents</i>)</td></tr>
/// </tbody></table></div></div>
pub fn generate_tangents_changed(&self) -> ::qt_core::Signal<(bool,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"2generateTangentsChanged(bool)\0",
),
)
}
}
/// <p>Holds the value of the automatic tangent vectors generation flag. Tangent vectors are orthogonal to normal vectors.</p>
///
/// Calls C++ function: <span style='color: green;'>```bool Qt3DExtras::QSphereMesh::generateTangents() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qspheremesh.html#generateTangents-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the value of the automatic tangent vectors generation flag. Tangent vectors are orthogonal to normal vectors.</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>generateTangents</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setGenerateTangents</b></span>(bool <i>gen</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>generateTangentsChanged</b></span>(bool <i>generateTangents</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn generate_tangents(&self) -> bool {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QSphereMesh_generateTangents(
self as *const crate::QSphereMesh,
)
}
/// Calls C++ function: <span style='color: green;'>```virtual const QMetaObject* Qt3DExtras::QSphereMesh::metaObject() const```</span>.
pub unsafe fn meta_object(&self) -> ::cpp_core::Ptr<::qt_core::QMetaObject> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QSphereMesh_metaObject(
self as *const crate::QSphereMesh,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// <p>Default constructs an instance of QSphereMesh.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DExtras::QSphereMesh::QSphereMesh(Qt3DCore::QNode* parent = …)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qspheremesh.html#QSphereMesh">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Default constructs an instance of QSphereMesh.</p></div>
pub unsafe fn new_1a(
parent: impl ::cpp_core::CastInto<::cpp_core::MutPtr<::qt_3d_core::QNode>>,
) -> ::cpp_core::CppBox<crate::QSphereMesh> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QSphereMesh_QSphereMesh(
::cpp_core::CastInto::<::cpp_core::MutPtr<::qt_3d_core::QNode>>::cast_into(parent)
.as_mut_raw_ptr(),
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>A spherical mesh.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DExtras::QSphereMesh::QSphereMesh()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qspheremesh.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>A spherical mesh.</p></div>
pub unsafe fn new_0a() -> ::cpp_core::CppBox<crate::QSphereMesh> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QSphereMesh_QSphereMesh1();
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// Calls C++ function: <span style='color: green;'>```virtual int Qt3DExtras::QSphereMesh::qt_metacall(QMetaObject::Call arg1, int arg2, void** arg3)```</span>.
pub unsafe fn qt_metacall(
&mut self,
arg1: ::qt_core::q_meta_object::Call,
arg2: ::std::os::raw::c_int,
arg3: impl ::cpp_core::CastInto<::cpp_core::MutPtr<*mut ::std::ffi::c_void>>,
) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QSphereMesh_qt_metacall(
self as *mut crate::QSphereMesh,
arg1,
arg2,
::cpp_core::CastInto::<::cpp_core::MutPtr<*mut ::std::ffi::c_void>>::cast_into(arg3)
.as_mut_raw_ptr(),
)
}
/// Calls C++ function: <span style='color: green;'>```virtual void* Qt3DExtras::QSphereMesh::qt_metacast(const char* arg1)```</span>.
pub unsafe fn qt_metacast(
&mut self,
arg1: impl ::cpp_core::CastInto<::cpp_core::Ptr<::std::os::raw::c_char>>,
) -> ::cpp_core::MutPtr<::std::ffi::c_void> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QSphereMesh_qt_metacast(
self as *mut crate::QSphereMesh,
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(arg1)
.as_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
/// <p>Holds the radius of the sphere.</p>
///
/// Calls C++ function: <span style='color: green;'>```float Qt3DExtras::QSphereMesh::radius() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qspheremesh.html#radius-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the radius of the sphere.</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>radius</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setRadius</b></span>(float <i>radius</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>radiusChanged</b></span>(float <i>radius</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn radius(&self) -> ::std::os::raw::c_float {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QSphereMesh_radius(
self as *const crate::QSphereMesh,
)
}
/// <p>Holds the number of rings in the mesh.</p>
///
/// Calls C++ function: <span style='color: green;'>```int Qt3DExtras::QSphereMesh::rings() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qspheremesh.html#rings-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the number of rings in the mesh.</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>rings</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setRings</b></span>(int <i>rings</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>ringsChanged</b></span>(int <i>rings</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn rings(&self) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QSphereMesh_rings(
self as *const crate::QSphereMesh,
)
}
/// <p>Holds the value of the automatic tangent vectors generation flag. Tangent vectors are orthogonal to normal vectors.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QSphereMesh::setGenerateTangents(bool gen)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qspheremesh.html#generateTangents-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the value of the automatic tangent vectors generation flag. Tangent vectors are orthogonal to normal vectors.</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>generateTangents</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setGenerateTangents</b></span>(bool <i>gen</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>generateTangentsChanged</b></span>(bool <i>generateTangents</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_generate_tangents(&mut self, gen: bool) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QSphereMesh_setGenerateTangents(
self as *mut crate::QSphereMesh,
gen,
)
}
/// <p>Holds the radius of the sphere.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QSphereMesh::setRadius(float radius)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qspheremesh.html#radius-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the radius of the sphere.</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>radius</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setRadius</b></span>(float <i>radius</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>radiusChanged</b></span>(float <i>radius</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_radius(&mut self, radius: ::std::os::raw::c_float) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QSphereMesh_setRadius(
self as *mut crate::QSphereMesh,
radius,
)
}
/// <p>Holds the number of rings in the mesh.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QSphereMesh::setRings(int rings)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qspheremesh.html#rings-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the number of rings in the mesh.</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>rings</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setRings</b></span>(int <i>rings</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>ringsChanged</b></span>(int <i>rings</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_rings(&mut self, rings: ::std::os::raw::c_int) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QSphereMesh_setRings(
self as *mut crate::QSphereMesh,
rings,
)
}
/// <p>Holds the number of slices in the mesh.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QSphereMesh::setSlices(int slices)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qspheremesh.html#slices-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the number of slices in the mesh.</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>slices</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setSlices</b></span>(int <i>slices</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>slicesChanged</b></span>(int <i>slices</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_slices(&mut self, slices: ::std::os::raw::c_int) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QSphereMesh_setSlices(
self as *mut crate::QSphereMesh,
slices,
)
}
/// <p>Holds the number of slices in the mesh.</p>
///
/// Calls C++ function: <span style='color: green;'>```int Qt3DExtras::QSphereMesh::slices() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qspheremesh.html#slices-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the number of slices in the mesh.</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>slices</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setSlices</b></span>(int <i>slices</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>slicesChanged</b></span>(int <i>slices</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn slices(&self) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QSphereMesh_slices(
self as *const crate::QSphereMesh,
)
}
/// Returns a reference to the <span style='color: green;'>```staticMetaObject```</span> field.
pub unsafe fn static_meta_object() -> ::cpp_core::Ref<::qt_core::QMetaObject> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QSphereMesh_staticMetaObject();
::cpp_core::Ref::from_raw(ffi_result).expect("attempted to construct a null Ref")
}
/// Calls C++ function: <span style='color: green;'>```static QString Qt3DExtras::QSphereMesh::tr(const char* s, const char* c, int n)```</span>.
pub unsafe fn tr(
s: impl ::cpp_core::CastInto<::cpp_core::Ptr<::std::os::raw::c_char>>,
c: impl ::cpp_core::CastInto<::cpp_core::Ptr<::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_extras_ffi_Qt3DExtras_QSphereMesh_tr(
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(s)
.as_raw_ptr(),
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(c)
.as_raw_ptr(),
n,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// Calls C++ function: <span style='color: green;'>```static QString Qt3DExtras::QSphereMesh::trUtf8(const char* s, const char* c, int n)```</span>.
pub unsafe fn tr_utf8(
s: impl ::cpp_core::CastInto<::cpp_core::Ptr<::std::os::raw::c_char>>,
c: impl ::cpp_core::CastInto<::cpp_core::Ptr<::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_extras_ffi_Qt3DExtras_QSphereMesh_trUtf8(
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(s)
.as_raw_ptr(),
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(c)
.as_raw_ptr(),
n,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
}
/// C++ class: <span style='color: green;'>```Qt3DExtras::Qt3DWindow```</span>.
#[repr(C)]
pub struct Qt3DWindow {
_unused: u8,
}
impl Qt3DWindow {
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qt3dextras-qt3dwindow.html#setActiveFrameGraph">setActiveFrameGraph</a>().</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QFrameGraphNode* Qt3DExtras::Qt3DWindow::activeFrameGraph() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qt3dwindow.html#activeFrameGraph">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p><b>See also </b><a href="http://doc.qt.io/qt-5/qt3dextras-qt3dwindow.html#setActiveFrameGraph">setActiveFrameGraph</a>().</p></div>
pub unsafe fn active_frame_graph(&self) -> ::cpp_core::MutPtr<::qt_3d_render::QFrameGraphNode> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_Qt3DWindow_activeFrameGraph(
self as *const crate::Qt3DWindow,
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QCamera* Qt3DExtras::Qt3DWindow::camera() const```</span>.
pub unsafe fn camera(&self) -> ::cpp_core::MutPtr<::qt_3d_render::QCamera> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_Qt3DWindow_camera(
self as *const crate::Qt3DWindow,
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
/// <p>Returns the node of the default framegraph</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QForwardRenderer* Qt3DExtras::Qt3DWindow::defaultFrameGraph() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qt3dwindow.html#defaultFrameGraph">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the node of the default framegraph</p></div>
pub unsafe fn default_frame_graph(&self) -> ::cpp_core::MutPtr<crate::QForwardRenderer> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_Qt3DWindow_defaultFrameGraph(
self as *const crate::Qt3DWindow,
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```virtual const QMetaObject* Qt3DExtras::Qt3DWindow::metaObject() const```</span>.
pub unsafe fn meta_object(&self) -> ::cpp_core::Ptr<::qt_core::QMetaObject> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_Qt3DWindow_metaObject(
self as *const crate::Qt3DWindow,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// <p>Default constructs an instance of Qt3DWindow.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DExtras::Qt3DWindow::Qt3DWindow(QScreen* screen = …)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qt3dwindow.html#Qt3DWindow">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Default constructs an instance of Qt3DWindow.</p></div>
pub unsafe fn new_1a(
screen: impl ::cpp_core::CastInto<::cpp_core::MutPtr<::qt_gui::QScreen>>,
) -> ::cpp_core::CppBox<crate::Qt3DWindow> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_Qt3DWindow_Qt3DWindow(
::cpp_core::CastInto::<::cpp_core::MutPtr<::qt_gui::QScreen>>::cast_into(screen)
.as_mut_raw_ptr(),
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DExtras::Qt3DWindow::Qt3DWindow()```</span>.
pub unsafe fn new_0a() -> ::cpp_core::CppBox<crate::Qt3DWindow> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_Qt3DWindow_Qt3DWindow1();
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// Calls C++ function: <span style='color: green;'>```virtual int Qt3DExtras::Qt3DWindow::qt_metacall(QMetaObject::Call arg1, int arg2, void** arg3)```</span>.
pub unsafe fn qt_metacall(
&mut self,
arg1: ::qt_core::q_meta_object::Call,
arg2: ::std::os::raw::c_int,
arg3: impl ::cpp_core::CastInto<::cpp_core::MutPtr<*mut ::std::ffi::c_void>>,
) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_Qt3DWindow_qt_metacall(
self as *mut crate::Qt3DWindow,
arg1,
arg2,
::cpp_core::CastInto::<::cpp_core::MutPtr<*mut ::std::ffi::c_void>>::cast_into(arg3)
.as_mut_raw_ptr(),
)
}
/// Calls C++ function: <span style='color: green;'>```virtual void* Qt3DExtras::Qt3DWindow::qt_metacast(const char* arg1)```</span>.
pub unsafe fn qt_metacast(
&mut self,
arg1: impl ::cpp_core::CastInto<::cpp_core::Ptr<::std::os::raw::c_char>>,
) -> ::cpp_core::MutPtr<::std::ffi::c_void> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_Qt3DWindow_qt_metacast(
self as *mut crate::Qt3DWindow,
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(arg1)
.as_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
/// <p>Registers the specified <i>aspect</i>.</p>
///
/// Calls C++ function: <span style='color: green;'>```void Qt3DExtras::Qt3DWindow::registerAspect(Qt3DCore::QAbstractAspect* aspect)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qt3dwindow.html#registerAspect">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Registers the specified <i>aspect</i>.</p></div>
pub unsafe fn register_aspect_q_abstract_aspect(
&mut self,
aspect: impl ::cpp_core::CastInto<::cpp_core::MutPtr<::qt_3d_core::QAbstractAspect>>,
) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_Qt3DWindow_registerAspect(
self as *mut crate::Qt3DWindow,
::cpp_core::CastInto::<::cpp_core::MutPtr<::qt_3d_core::QAbstractAspect>>::cast_into(
aspect,
)
.as_mut_raw_ptr(),
)
}
/// <p>Registers the specified aspect <i>name</i>.</p>
///
/// Calls C++ function: <span style='color: green;'>```void Qt3DExtras::Qt3DWindow::registerAspect(const QString& name)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qt3dwindow.html#registerAspect-1">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Registers the specified aspect <i>name</i>.</p></div>
pub unsafe fn register_aspect_q_string(
&mut self,
name: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_core::QString>>,
) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_Qt3DWindow_registerAspect1(
self as *mut crate::Qt3DWindow,
::cpp_core::CastInto::<::cpp_core::Ref<::qt_core::QString>>::cast_into(name)
.as_raw_ptr(),
)
}
/// <p>Returns the render settings of the 3D Window.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QRenderSettings* Qt3DExtras::Qt3DWindow::renderSettings() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qt3dwindow.html#renderSettings">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the render settings of the 3D Window.</p></div>
pub unsafe fn render_settings(&self) -> ::cpp_core::MutPtr<::qt_3d_render::QRenderSettings> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_Qt3DWindow_renderSettings(
self as *const crate::Qt3DWindow,
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qt3dextras-qt3dwindow.html#activeFrameGraph">activeFrameGraph</a>().</p>
///
/// Calls C++ function: <span style='color: green;'>```void Qt3DExtras::Qt3DWindow::setActiveFrameGraph(Qt3DRender::QFrameGraphNode* activeFrameGraph)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qt3dwindow.html#setActiveFrameGraph">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p><b>See also </b><a href="http://doc.qt.io/qt-5/qt3dextras-qt3dwindow.html#activeFrameGraph">activeFrameGraph</a>().</p></div>
pub unsafe fn set_active_frame_graph(
&mut self,
active_frame_graph: impl ::cpp_core::CastInto<
::cpp_core::MutPtr<::qt_3d_render::QFrameGraphNode>,
>,
) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_Qt3DWindow_setActiveFrameGraph(
self as *mut crate::Qt3DWindow,
::cpp_core::CastInto::<::cpp_core::MutPtr<::qt_3d_render::QFrameGraphNode>>::cast_into(
active_frame_graph,
)
.as_mut_raw_ptr(),
)
}
/// <p>Sets the specified <i>root</i> entity of the scene.</p>
///
/// Calls C++ function: <span style='color: green;'>```void Qt3DExtras::Qt3DWindow::setRootEntity(Qt3DCore::QEntity* root)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qt3dwindow.html#setRootEntity">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Sets the specified <i>root</i> entity of the scene.</p></div>
pub unsafe fn set_root_entity(
&mut self,
root: impl ::cpp_core::CastInto<::cpp_core::MutPtr<::qt_3d_core::QEntity>>,
) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_Qt3DWindow_setRootEntity(
self as *mut crate::Qt3DWindow,
::cpp_core::CastInto::<::cpp_core::MutPtr<::qt_3d_core::QEntity>>::cast_into(root)
.as_mut_raw_ptr(),
)
}
/// Returns a reference to the <span style='color: green;'>```staticMetaObject```</span> field.
pub unsafe fn static_meta_object() -> ::cpp_core::Ref<::qt_core::QMetaObject> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_Qt3DWindow_staticMetaObject();
::cpp_core::Ref::from_raw(ffi_result).expect("attempted to construct a null Ref")
}
/// Calls C++ function: <span style='color: green;'>```static QString Qt3DExtras::Qt3DWindow::tr(const char* s, const char* c, int n)```</span>.
pub unsafe fn tr(
s: impl ::cpp_core::CastInto<::cpp_core::Ptr<::std::os::raw::c_char>>,
c: impl ::cpp_core::CastInto<::cpp_core::Ptr<::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_extras_ffi_Qt3DExtras_Qt3DWindow_tr(
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(s)
.as_raw_ptr(),
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(c)
.as_raw_ptr(),
n,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// Calls C++ function: <span style='color: green;'>```static QString Qt3DExtras::Qt3DWindow::trUtf8(const char* s, const char* c, int n)```</span>.
pub unsafe fn tr_utf8(
s: impl ::cpp_core::CastInto<::cpp_core::Ptr<::std::os::raw::c_char>>,
c: impl ::cpp_core::CastInto<::cpp_core::Ptr<::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_extras_ffi_Qt3DExtras_Qt3DWindow_trUtf8(
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(s)
.as_raw_ptr(),
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(c)
.as_raw_ptr(),
n,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
}
/// <p><a href="http://doc.qt.io/qt-5/qt3dextras-qtext2dentity.html">QText2DEntity</a> allows creation of a 2D text in 3D space.</p>
///
/// C++ class: <span style='color: green;'>```Qt3DExtras::QText2DEntity```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qtext2dentity.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p><a href="http://doc.qt.io/qt-5/qt3dextras-qtext2dentity.html">QText2DEntity</a> allows creation of a 2D text in 3D space.</p>
/// <p>The <a href="http://doc.qt.io/qt-5/qt3dextras-qtext2dentity.html">QText2DEntity</a> renders text as triangles in the XY plane. The geometry will be fitted in the rectangle of specified width and height. If the resulting geometry is wider than the specified width, the remainder will be rendered on the new line.</p>
/// <p>The entity can be positionned in the scene by adding a transform component.</p>
/// <p><a href="http://doc.qt.io/qt-5/qt3dextras-qtext2dentity.html">QText2DEntity</a> will create geometry based on the shape of the glyphs and a solid material using the specified color.</p></div>
#[repr(C)]
pub struct QText2DEntity {
_unused: u8,
}
impl QText2DEntity {
/// <p><b>Access functions:</b></p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QText2DEntity::fontChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qtext2dentity.html#font-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"> QFont </td><td class="memItemRight bottomAlign"><span class="name"><b>font</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setFont</b></span>(const QFont &<i>font</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>fontChanged</b></span>(const QFont &<i>font</i>)</td></tr>
/// </tbody></table></div></div>
pub fn font_changed(&self) -> ::qt_core::Signal<(*const ::qt_gui::QFont,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2fontChanged(const QFont&)\0"),
)
}
}
/// <p><b>Access functions:</b></p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QText2DEntity::colorChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qtext2dentity.html#color-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"> QColor </td><td class="memItemRight bottomAlign"><span class="name"><b>color</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setColor</b></span>(const QColor &<i>color</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>colorChanged</b></span>(const QColor &<i>color</i>)</td></tr>
/// </tbody></table></div></div>
pub fn color_changed(&self) -> ::qt_core::Signal<(*const ::qt_gui::QColor,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2colorChanged(const QColor&)\0"),
)
}
}
/// <p><b>Access functions:</b></p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QText2DEntity::textChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qtext2dentity.html#text-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QString </td><td class="memItemRight bottomAlign"><span class="name"><b>text</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setText</b></span>(const QString &<i>text</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>textChanged</b></span>(const QString &<i>text</i>)</td></tr>
/// </tbody></table></div></div>
pub fn text_changed(&self) -> ::qt_core::Signal<(*const ::qt_core::QString,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2textChanged(const QString&)\0"),
)
}
}
/// <p><b>Access functions:</b></p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QText2DEntity::widthChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qtext2dentity.html#width-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>width</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setWidth</b></span>(float <i>width</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>widthChanged</b></span>(float <i>width</i>)</td></tr>
/// </tbody></table></div></div>
pub fn width_changed(&self) -> ::qt_core::Signal<(::std::os::raw::c_float,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2widthChanged(float)\0"),
)
}
}
/// <p><b>Access functions:</b></p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QText2DEntity::heightChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qtext2dentity.html#height-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>height</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setHeight</b></span>(float <i>height</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>heightChanged</b></span>(float <i>height</i>)</td></tr>
/// </tbody></table></div></div>
pub fn height_changed(&self) -> ::qt_core::Signal<(::std::os::raw::c_float,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2heightChanged(float)\0"),
)
}
}
/// <p><b>Access functions:</b></p>
///
/// Calls C++ function: <span style='color: green;'>```QColor Qt3DExtras::QText2DEntity::color() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qtext2dentity.html#color-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"> QColor </td><td class="memItemRight bottomAlign"><span class="name"><b>color</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setColor</b></span>(const QColor &<i>color</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>colorChanged</b></span>(const QColor &<i>color</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn color(&self) -> ::cpp_core::CppBox<::qt_gui::QColor> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QText2DEntity_color(
self as *const crate::QText2DEntity,
);
::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;'>```QFont Qt3DExtras::QText2DEntity::font() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qtext2dentity.html#font-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"> QFont </td><td class="memItemRight bottomAlign"><span class="name"><b>font</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setFont</b></span>(const QFont &<i>font</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>fontChanged</b></span>(const QFont &<i>font</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn font(&self) -> ::cpp_core::CppBox<::qt_gui::QFont> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QText2DEntity_font(
self as *const crate::QText2DEntity,
);
::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 Qt3DExtras::QText2DEntity::height() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qtext2dentity.html#height-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>height</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setHeight</b></span>(float <i>height</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>heightChanged</b></span>(float <i>height</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn height(&self) -> ::std::os::raw::c_float {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QText2DEntity_height(
self as *const crate::QText2DEntity,
)
}
/// Calls C++ function: <span style='color: green;'>```virtual const QMetaObject* Qt3DExtras::QText2DEntity::metaObject() const```</span>.
pub unsafe fn meta_object(&self) -> ::cpp_core::Ptr<::qt_core::QMetaObject> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QText2DEntity_metaObject(
self as *const crate::QText2DEntity,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// <p>Default constructs an instance of QText2DEntity.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DExtras::QText2DEntity::QText2DEntity(Qt3DCore::QNode* parent = …)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qtext2dentity.html#QText2DEntity">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Default constructs an instance of QText2DEntity.</p></div>
pub unsafe fn new_1a(
parent: impl ::cpp_core::CastInto<::cpp_core::MutPtr<::qt_3d_core::QNode>>,
) -> ::cpp_core::CppBox<crate::QText2DEntity> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QText2DEntity_QText2DEntity(
::cpp_core::CastInto::<::cpp_core::MutPtr<::qt_3d_core::QNode>>::cast_into(parent)
.as_mut_raw_ptr(),
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p><a href="http://doc.qt.io/qt-5/qt3dextras-qtext2dentity.html">QText2DEntity</a> allows creation of a 2D text in 3D space.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DExtras::QText2DEntity::QText2DEntity()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qtext2dentity.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p><a href="http://doc.qt.io/qt-5/qt3dextras-qtext2dentity.html">QText2DEntity</a> allows creation of a 2D text in 3D space.</p>
/// <p>The <a href="http://doc.qt.io/qt-5/qt3dextras-qtext2dentity.html">QText2DEntity</a> renders text as triangles in the XY plane. The geometry will be fitted in the rectangle of specified width and height. If the resulting geometry is wider than the specified width, the remainder will be rendered on the new line.</p>
/// <p>The entity can be positionned in the scene by adding a transform component.</p>
/// <p><a href="http://doc.qt.io/qt-5/qt3dextras-qtext2dentity.html">QText2DEntity</a> will create geometry based on the shape of the glyphs and a solid material using the specified color.</p></div>
pub unsafe fn new_0a() -> ::cpp_core::CppBox<crate::QText2DEntity> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QText2DEntity_QText2DEntity1();
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// Calls C++ function: <span style='color: green;'>```virtual int Qt3DExtras::QText2DEntity::qt_metacall(QMetaObject::Call arg1, int arg2, void** arg3)```</span>.
pub unsafe fn qt_metacall(
&mut self,
arg1: ::qt_core::q_meta_object::Call,
arg2: ::std::os::raw::c_int,
arg3: impl ::cpp_core::CastInto<::cpp_core::MutPtr<*mut ::std::ffi::c_void>>,
) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QText2DEntity_qt_metacall(
self as *mut crate::QText2DEntity,
arg1,
arg2,
::cpp_core::CastInto::<::cpp_core::MutPtr<*mut ::std::ffi::c_void>>::cast_into(arg3)
.as_mut_raw_ptr(),
)
}
/// Calls C++ function: <span style='color: green;'>```virtual void* Qt3DExtras::QText2DEntity::qt_metacast(const char* arg1)```</span>.
pub unsafe fn qt_metacast(
&mut self,
arg1: impl ::cpp_core::CastInto<::cpp_core::Ptr<::std::os::raw::c_char>>,
) -> ::cpp_core::MutPtr<::std::ffi::c_void> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QText2DEntity_qt_metacast(
self as *mut crate::QText2DEntity,
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(arg1)
.as_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
/// <p><b>Access functions:</b></p>
///
/// Calls C++ function: <span style='color: green;'>```void Qt3DExtras::QText2DEntity::setColor(const QColor& color)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qtext2dentity.html#color-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"> QColor </td><td class="memItemRight bottomAlign"><span class="name"><b>color</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setColor</b></span>(const QColor &<i>color</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>colorChanged</b></span>(const QColor &<i>color</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_color(
&mut self,
color: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_gui::QColor>>,
) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QText2DEntity_setColor(
self as *mut crate::QText2DEntity,
::cpp_core::CastInto::<::cpp_core::Ref<::qt_gui::QColor>>::cast_into(color)
.as_raw_ptr(),
)
}
/// <p><b>Access functions:</b></p>
///
/// Calls C++ function: <span style='color: green;'>```void Qt3DExtras::QText2DEntity::setFont(const QFont& font)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qtext2dentity.html#font-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"> QFont </td><td class="memItemRight bottomAlign"><span class="name"><b>font</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setFont</b></span>(const QFont &<i>font</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>fontChanged</b></span>(const QFont &<i>font</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_font(
&mut self,
font: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_gui::QFont>>,
) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QText2DEntity_setFont(
self as *mut crate::QText2DEntity,
::cpp_core::CastInto::<::cpp_core::Ref<::qt_gui::QFont>>::cast_into(font).as_raw_ptr(),
)
}
/// <p><b>Access functions:</b></p>
///
/// Calls C++ function: <span style='color: green;'>```void Qt3DExtras::QText2DEntity::setHeight(float height)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qtext2dentity.html#height-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>height</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setHeight</b></span>(float <i>height</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>heightChanged</b></span>(float <i>height</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_height(&mut self, height: ::std::os::raw::c_float) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QText2DEntity_setHeight(
self as *mut crate::QText2DEntity,
height,
)
}
/// <p><b>Access functions:</b></p>
///
/// Calls C++ function: <span style='color: green;'>```void Qt3DExtras::QText2DEntity::setText(const QString& text)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qtext2dentity.html#text-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QString </td><td class="memItemRight bottomAlign"><span class="name"><b>text</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setText</b></span>(const QString &<i>text</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>textChanged</b></span>(const QString &<i>text</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_text(
&mut self,
text: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_core::QString>>,
) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QText2DEntity_setText(
self as *mut crate::QText2DEntity,
::cpp_core::CastInto::<::cpp_core::Ref<::qt_core::QString>>::cast_into(text)
.as_raw_ptr(),
)
}
/// <p><b>Access functions:</b></p>
///
/// Calls C++ function: <span style='color: green;'>```void Qt3DExtras::QText2DEntity::setWidth(float width)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qtext2dentity.html#width-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>width</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setWidth</b></span>(float <i>width</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>widthChanged</b></span>(float <i>width</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_width(&mut self, width: ::std::os::raw::c_float) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QText2DEntity_setWidth(
self as *mut crate::QText2DEntity,
width,
)
}
/// Returns a reference to the <span style='color: green;'>```staticMetaObject```</span> field.
pub unsafe fn static_meta_object() -> ::cpp_core::Ref<::qt_core::QMetaObject> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QText2DEntity_staticMetaObject();
::cpp_core::Ref::from_raw(ffi_result).expect("attempted to construct a null Ref")
}
/// <p><b>Access functions:</b></p>
///
/// Calls C++ function: <span style='color: green;'>```QString Qt3DExtras::QText2DEntity::text() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qtext2dentity.html#text-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QString </td><td class="memItemRight bottomAlign"><span class="name"><b>text</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setText</b></span>(const QString &<i>text</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>textChanged</b></span>(const QString &<i>text</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn text(&self) -> ::cpp_core::CppBox<::qt_core::QString> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QText2DEntity_text(
self as *const crate::QText2DEntity,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// Calls C++ function: <span style='color: green;'>```static QString Qt3DExtras::QText2DEntity::tr(const char* s, const char* c, int n)```</span>.
pub unsafe fn tr(
s: impl ::cpp_core::CastInto<::cpp_core::Ptr<::std::os::raw::c_char>>,
c: impl ::cpp_core::CastInto<::cpp_core::Ptr<::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_extras_ffi_Qt3DExtras_QText2DEntity_tr(
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(s)
.as_raw_ptr(),
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(c)
.as_raw_ptr(),
n,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// Calls C++ function: <span style='color: green;'>```static QString Qt3DExtras::QText2DEntity::trUtf8(const char* s, const char* c, int n)```</span>.
pub unsafe fn tr_utf8(
s: impl ::cpp_core::CastInto<::cpp_core::Ptr<::std::os::raw::c_char>>,
c: impl ::cpp_core::CastInto<::cpp_core::Ptr<::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_extras_ffi_Qt3DExtras_QText2DEntity_trUtf8(
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(s)
.as_raw_ptr(),
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(c)
.as_raw_ptr(),
n,
);
::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 Qt3DExtras::QText2DEntity::width() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qtext2dentity.html#width-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>width</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setWidth</b></span>(float <i>width</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>widthChanged</b></span>(float <i>width</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn width(&self) -> ::std::os::raw::c_float {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QText2DEntity_width(
self as *const crate::QText2DEntity,
)
}
}
/// <p>The <a href="http://doc.qt.io/qt-5/qt3dextras-qtexturedmetalroughmaterial.html">QTexturedMetalRoughMaterial</a> provides a default implementation of PBR lighting, environment maps and bump effect where the components are read from texture maps (including normal maps).</p>
///
/// C++ class: <span style='color: green;'>```Qt3DExtras::QTexturedMetalRoughMaterial```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qtexturedmetalroughmaterial.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>The <a href="http://doc.qt.io/qt-5/qt3dextras-qtexturedmetalroughmaterial.html">QTexturedMetalRoughMaterial</a> provides a default implementation of PBR lighting, environment maps and bump effect where the components are read from texture maps (including normal maps).</p>
/// <p>This material uses an effect with a single render pass approach and performs per fragment lighting. Techniques are provided for OpenGL 3 only.</p></div>
#[repr(C)]
pub struct QTexturedMetalRoughMaterial {
_unused: u8,
}
impl QTexturedMetalRoughMaterial {
/// <p>Holds the current base color map texture.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QTexturedMetalRoughMaterial::setBaseColor` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qtexturedmetalroughmaterial.html#baseColor-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current base color map texture.</p>
/// <p>By default, the base color texture has the following properties:</p>
/// <ul>
/// <li>Linear minification and magnification filters</li>
/// <li>Linear mipmap with mipmapping enabled</li>
/// <li>Repeat wrap mode</li>
/// <li>Maximum anisotropy of 16.0</li>
/// </ul>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DRender::QAbstractTexture *</td><td class="memItemRight bottomAlign"><span class="name"><b>baseColor</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setBaseColor</b></span>(Qt3DRender::QAbstractTexture *<i>baseColor</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>baseColorChanged</b></span>(Qt3DRender::QAbstractTexture *<i>baseColor</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slot_set_base_color(
&self,
) -> ::qt_core::Receiver<(*mut ::qt_3d_render::QAbstractTexture,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"1setBaseColor(Qt3DRender::QAbstractTexture*)\0",
),
)
}
}
/// <p>Holds the current metalness map texture.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QTexturedMetalRoughMaterial::setMetalness` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qtexturedmetalroughmaterial.html#metalness-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current metalness map texture.</p>
/// <p>By default, the metalness texture has the following properties:</p>
/// <ul>
/// <li>Linear minification and magnification filters</li>
/// <li>Linear mipmap with mipmapping enabled</li>
/// <li>Repeat wrap mode</li>
/// <li>Maximum anisotropy of 16.0</li>
/// </ul>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DRender::QAbstractTexture *</td><td class="memItemRight bottomAlign"><span class="name"><b>metalness</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setMetalness</b></span>(Qt3DRender::QAbstractTexture *<i>metalness</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>metalnessChanged</b></span>(Qt3DRender::QAbstractTexture *<i>metalness</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slot_set_metalness(
&self,
) -> ::qt_core::Receiver<(*mut ::qt_3d_render::QAbstractTexture,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"1setMetalness(Qt3DRender::QAbstractTexture*)\0",
),
)
}
}
/// <p>Holds the current roughness map texture.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QTexturedMetalRoughMaterial::setRoughness` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qtexturedmetalroughmaterial.html#roughness-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current roughness map texture.</p>
/// <p>By default, the roughness texture has the following properties:</p>
/// <ul>
/// <li>Linear minification and magnification filters</li>
/// <li>Linear mipmap with mipmapping enabled</li>
/// <li>Repeat wrap mode</li>
/// <li>Maximum anisotropy of 16.0</li>
/// </ul>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DRender::QAbstractTexture *</td><td class="memItemRight bottomAlign"><span class="name"><b>roughness</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setRoughness</b></span>(Qt3DRender::QAbstractTexture *<i>roughness</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>roughnessChanged</b></span>(Qt3DRender::QAbstractTexture *<i>roughness</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slot_set_roughness(
&self,
) -> ::qt_core::Receiver<(*mut ::qt_3d_render::QAbstractTexture,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"1setRoughness(Qt3DRender::QAbstractTexture*)\0",
),
)
}
}
/// <p>Holds the current ambient occlusion map texture.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QTexturedMetalRoughMaterial::setAmbientOcclusion` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qtexturedmetalroughmaterial.html#ambientOcclusion-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current ambient occlusion map texture.</p>
/// <p>By default, the ambient occlusion texture has the following properties:</p>
/// <ul>
/// <li>Linear minification and magnification filters</li>
/// <li>Linear mipmap with mipmapping enabled</li>
/// <li>Repeat wrap mode</li>
/// <li>Maximum anisotropy of 16.0</li>
/// </ul>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DRender::QAbstractTexture *</td><td class="memItemRight bottomAlign"><span class="name"><b>ambientOcclusion</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setAmbientOcclusion</b></span>(Qt3DRender::QAbstractTexture *<i>ambientOcclusion</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>ambientOcclusionChanged</b></span>(Qt3DRender::QAbstractTexture *<i>ambientOcclusion</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slot_set_ambient_occlusion(
&self,
) -> ::qt_core::Receiver<(*mut ::qt_3d_render::QAbstractTexture,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"1setAmbientOcclusion(Qt3DRender::QAbstractTexture*)\0",
),
)
}
}
/// <p>Holds the current normal map texture.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QTexturedMetalRoughMaterial::setNormal` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qtexturedmetalroughmaterial.html#normal-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current normal map texture.</p>
/// <p>By default, the normal texture has the following properties:</p>
/// <ul>
/// <li>Linear minification and magnification filters</li>
/// <li>Repeat wrap mode</li>
/// <li>Maximum anisotropy of 16.0</li>
/// </ul>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DRender::QAbstractTexture *</td><td class="memItemRight bottomAlign"><span class="name"><b>normal</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setNormal</b></span>(Qt3DRender::QAbstractTexture *<i>normal</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>normalChanged</b></span>(Qt3DRender::QAbstractTexture *<i>normal</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slot_set_normal(&self) -> ::qt_core::Receiver<(*mut ::qt_3d_render::QAbstractTexture,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"1setNormal(Qt3DRender::QAbstractTexture*)\0",
),
)
}
}
/// <p>Holds the current base color map texture.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QTexturedMetalRoughMaterial::baseColorChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qtexturedmetalroughmaterial.html#baseColor-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current base color map texture.</p>
/// <p>By default, the base color texture has the following properties:</p>
/// <ul>
/// <li>Linear minification and magnification filters</li>
/// <li>Linear mipmap with mipmapping enabled</li>
/// <li>Repeat wrap mode</li>
/// <li>Maximum anisotropy of 16.0</li>
/// </ul>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DRender::QAbstractTexture *</td><td class="memItemRight bottomAlign"><span class="name"><b>baseColor</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setBaseColor</b></span>(Qt3DRender::QAbstractTexture *<i>baseColor</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>baseColorChanged</b></span>(Qt3DRender::QAbstractTexture *<i>baseColor</i>)</td></tr>
/// </tbody></table></div></div>
pub fn base_color_changed(
&self,
) -> ::qt_core::Signal<(*mut ::qt_3d_render::QAbstractTexture,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"2baseColorChanged(Qt3DRender::QAbstractTexture*)\0",
),
)
}
}
/// <p>Holds the current metalness map texture.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QTexturedMetalRoughMaterial::metalnessChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qtexturedmetalroughmaterial.html#metalness-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current metalness map texture.</p>
/// <p>By default, the metalness texture has the following properties:</p>
/// <ul>
/// <li>Linear minification and magnification filters</li>
/// <li>Linear mipmap with mipmapping enabled</li>
/// <li>Repeat wrap mode</li>
/// <li>Maximum anisotropy of 16.0</li>
/// </ul>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DRender::QAbstractTexture *</td><td class="memItemRight bottomAlign"><span class="name"><b>metalness</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setMetalness</b></span>(Qt3DRender::QAbstractTexture *<i>metalness</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>metalnessChanged</b></span>(Qt3DRender::QAbstractTexture *<i>metalness</i>)</td></tr>
/// </tbody></table></div></div>
pub fn metalness_changed(&self) -> ::qt_core::Signal<(*mut ::qt_3d_render::QAbstractTexture,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"2metalnessChanged(Qt3DRender::QAbstractTexture*)\0",
),
)
}
}
/// <p>Holds the current roughness map texture.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QTexturedMetalRoughMaterial::roughnessChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qtexturedmetalroughmaterial.html#roughness-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current roughness map texture.</p>
/// <p>By default, the roughness texture has the following properties:</p>
/// <ul>
/// <li>Linear minification and magnification filters</li>
/// <li>Linear mipmap with mipmapping enabled</li>
/// <li>Repeat wrap mode</li>
/// <li>Maximum anisotropy of 16.0</li>
/// </ul>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DRender::QAbstractTexture *</td><td class="memItemRight bottomAlign"><span class="name"><b>roughness</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setRoughness</b></span>(Qt3DRender::QAbstractTexture *<i>roughness</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>roughnessChanged</b></span>(Qt3DRender::QAbstractTexture *<i>roughness</i>)</td></tr>
/// </tbody></table></div></div>
pub fn roughness_changed(&self) -> ::qt_core::Signal<(*mut ::qt_3d_render::QAbstractTexture,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"2roughnessChanged(Qt3DRender::QAbstractTexture*)\0",
),
)
}
}
/// <p>Holds the current ambient occlusion map texture.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QTexturedMetalRoughMaterial::ambientOcclusionChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qtexturedmetalroughmaterial.html#ambientOcclusion-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current ambient occlusion map texture.</p>
/// <p>By default, the ambient occlusion texture has the following properties:</p>
/// <ul>
/// <li>Linear minification and magnification filters</li>
/// <li>Linear mipmap with mipmapping enabled</li>
/// <li>Repeat wrap mode</li>
/// <li>Maximum anisotropy of 16.0</li>
/// </ul>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DRender::QAbstractTexture *</td><td class="memItemRight bottomAlign"><span class="name"><b>ambientOcclusion</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setAmbientOcclusion</b></span>(Qt3DRender::QAbstractTexture *<i>ambientOcclusion</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>ambientOcclusionChanged</b></span>(Qt3DRender::QAbstractTexture *<i>ambientOcclusion</i>)</td></tr>
/// </tbody></table></div></div>
pub fn ambient_occlusion_changed(
&self,
) -> ::qt_core::Signal<(*mut ::qt_3d_render::QAbstractTexture,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"2ambientOcclusionChanged(Qt3DRender::QAbstractTexture*)\0",
),
)
}
}
/// <p>Holds the current normal map texture.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QTexturedMetalRoughMaterial::normalChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qtexturedmetalroughmaterial.html#normal-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current normal map texture.</p>
/// <p>By default, the normal texture has the following properties:</p>
/// <ul>
/// <li>Linear minification and magnification filters</li>
/// <li>Repeat wrap mode</li>
/// <li>Maximum anisotropy of 16.0</li>
/// </ul>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DRender::QAbstractTexture *</td><td class="memItemRight bottomAlign"><span class="name"><b>normal</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setNormal</b></span>(Qt3DRender::QAbstractTexture *<i>normal</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>normalChanged</b></span>(Qt3DRender::QAbstractTexture *<i>normal</i>)</td></tr>
/// </tbody></table></div></div>
pub fn normal_changed(&self) -> ::qt_core::Signal<(*mut ::qt_3d_render::QAbstractTexture,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"2normalChanged(Qt3DRender::QAbstractTexture*)\0",
),
)
}
}
/// <p>Holds the current ambient occlusion map texture.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QAbstractTexture* Qt3DExtras::QTexturedMetalRoughMaterial::ambientOcclusion() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qtexturedmetalroughmaterial.html#ambientOcclusion-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current ambient occlusion map texture.</p>
/// <p>By default, the ambient occlusion texture has the following properties:</p>
/// <ul>
/// <li>Linear minification and magnification filters</li>
/// <li>Linear mipmap with mipmapping enabled</li>
/// <li>Repeat wrap mode</li>
/// <li>Maximum anisotropy of 16.0</li>
/// </ul>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DRender::QAbstractTexture *</td><td class="memItemRight bottomAlign"><span class="name"><b>ambientOcclusion</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setAmbientOcclusion</b></span>(Qt3DRender::QAbstractTexture *<i>ambientOcclusion</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>ambientOcclusionChanged</b></span>(Qt3DRender::QAbstractTexture *<i>ambientOcclusion</i>)</td></tr>
/// </tbody></table></div></div>
///
/// This item is available if `cpp_lib_version="5.9.7"`.
#[cfg(any(cpp_lib_version = "5.9.7", feature = "ritual_rustdoc"))]
pub unsafe fn ambient_occlusion(&self) -> ::cpp_core::MutPtr<::qt_3d_render::QAbstractTexture> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QTexturedMetalRoughMaterial_ambientOcclusion(self as *const crate::QTexturedMetalRoughMaterial);
::cpp_core::MutPtr::from_raw(ffi_result)
}
/// <p><b>Access functions:</b></p>
///
/// Calls C++ function: <span style='color: green;'>```void Qt3DExtras::QTexturedMetalRoughMaterial::ambientOcclusionChanged(const QVariant& ambientOcclusion)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qtexturedmetalroughmaterial.html#ambientOcclusion-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"> QVariant </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="http://doc.qt.io/qt-5/qt3dextras-qmetalroughmaterial.html#ambientOcclusion-prop">ambientOcclusion</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/qt3dextras-qmetalroughmaterial.html#ambientOcclusion-prop">setAmbientOcclusion</a></b></span>(const QVariant &<i>ambientOcclusion</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>ambientOcclusionChanged</b></span>(const QVariant &<i>ambientOcclusion</i>)</td></tr>
/// </tbody></table></div></div>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn ambient_occlusion_changed2(
&mut self,
ambient_occlusion: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_core::QVariant>>,
) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QTexturedMetalRoughMaterial_ambientOcclusionChanged(self as *mut crate::QTexturedMetalRoughMaterial, ::cpp_core::CastInto::<::cpp_core::Ref<::qt_core::QVariant>>::cast_into(ambient_occlusion).as_raw_ptr())
}
/// <p>Holds the current base color map texture.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QAbstractTexture* Qt3DExtras::QTexturedMetalRoughMaterial::baseColor() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qtexturedmetalroughmaterial.html#baseColor-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current base color map texture.</p>
/// <p>By default, the base color texture has the following properties:</p>
/// <ul>
/// <li>Linear minification and magnification filters</li>
/// <li>Linear mipmap with mipmapping enabled</li>
/// <li>Repeat wrap mode</li>
/// <li>Maximum anisotropy of 16.0</li>
/// </ul>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DRender::QAbstractTexture *</td><td class="memItemRight bottomAlign"><span class="name"><b>baseColor</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setBaseColor</b></span>(Qt3DRender::QAbstractTexture *<i>baseColor</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>baseColorChanged</b></span>(Qt3DRender::QAbstractTexture *<i>baseColor</i>)</td></tr>
/// </tbody></table></div></div>
///
/// This item is available if `cpp_lib_version="5.9.7"`.
#[cfg(any(cpp_lib_version = "5.9.7", feature = "ritual_rustdoc"))]
pub unsafe fn base_color(&self) -> ::cpp_core::MutPtr<::qt_3d_render::QAbstractTexture> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QTexturedMetalRoughMaterial_baseColor(
self as *const crate::QTexturedMetalRoughMaterial,
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```virtual const QMetaObject* Qt3DExtras::QTexturedMetalRoughMaterial::metaObject() const```</span>.
pub unsafe fn meta_object(&self) -> ::cpp_core::Ptr<::qt_core::QMetaObject> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QTexturedMetalRoughMaterial_metaObject(
self as *const crate::QTexturedMetalRoughMaterial,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// <p>Holds the current metalness map texture.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QAbstractTexture* Qt3DExtras::QTexturedMetalRoughMaterial::metalness() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qtexturedmetalroughmaterial.html#metalness-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current metalness map texture.</p>
/// <p>By default, the metalness texture has the following properties:</p>
/// <ul>
/// <li>Linear minification and magnification filters</li>
/// <li>Linear mipmap with mipmapping enabled</li>
/// <li>Repeat wrap mode</li>
/// <li>Maximum anisotropy of 16.0</li>
/// </ul>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DRender::QAbstractTexture *</td><td class="memItemRight bottomAlign"><span class="name"><b>metalness</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setMetalness</b></span>(Qt3DRender::QAbstractTexture *<i>metalness</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>metalnessChanged</b></span>(Qt3DRender::QAbstractTexture *<i>metalness</i>)</td></tr>
/// </tbody></table></div></div>
///
/// This item is available if `cpp_lib_version="5.9.7"`.
#[cfg(any(cpp_lib_version = "5.9.7", feature = "ritual_rustdoc"))]
pub unsafe fn metalness(&self) -> ::cpp_core::MutPtr<::qt_3d_render::QAbstractTexture> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QTexturedMetalRoughMaterial_metalness(
self as *const crate::QTexturedMetalRoughMaterial,
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
/// <p>Default constructs an instance of QTexturedMetalRoughMaterial.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DExtras::QTexturedMetalRoughMaterial::QTexturedMetalRoughMaterial(Qt3DCore::QNode* parent = …)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qtexturedmetalroughmaterial.html#QTexturedMetalRoughMaterial">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Default constructs an instance of QTexturedMetalRoughMaterial.</p></div>
pub unsafe fn new_1a(
parent: impl ::cpp_core::CastInto<::cpp_core::MutPtr<::qt_3d_core::QNode>>,
) -> ::cpp_core::CppBox<crate::QTexturedMetalRoughMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QTexturedMetalRoughMaterial_QTexturedMetalRoughMaterial(::cpp_core::CastInto::<::cpp_core::MutPtr<::qt_3d_core::QNode>>::cast_into(parent).as_mut_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/qt3dextras-qtexturedmetalroughmaterial.html">QTexturedMetalRoughMaterial</a> provides a default implementation of PBR lighting, environment maps and bump effect where the components are read from texture maps (including normal maps).</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DExtras::QTexturedMetalRoughMaterial::QTexturedMetalRoughMaterial()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qtexturedmetalroughmaterial.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>The <a href="http://doc.qt.io/qt-5/qt3dextras-qtexturedmetalroughmaterial.html">QTexturedMetalRoughMaterial</a> provides a default implementation of PBR lighting, environment maps and bump effect where the components are read from texture maps (including normal maps).</p>
/// <p>This material uses an effect with a single render pass approach and performs per fragment lighting. Techniques are provided for OpenGL 3 only.</p></div>
pub unsafe fn new_0a() -> ::cpp_core::CppBox<crate::QTexturedMetalRoughMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QTexturedMetalRoughMaterial_QTexturedMetalRoughMaterial1();
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Holds the current normal map texture.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QAbstractTexture* Qt3DExtras::QTexturedMetalRoughMaterial::normal() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qtexturedmetalroughmaterial.html#normal-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current normal map texture.</p>
/// <p>By default, the normal texture has the following properties:</p>
/// <ul>
/// <li>Linear minification and magnification filters</li>
/// <li>Repeat wrap mode</li>
/// <li>Maximum anisotropy of 16.0</li>
/// </ul>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DRender::QAbstractTexture *</td><td class="memItemRight bottomAlign"><span class="name"><b>normal</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setNormal</b></span>(Qt3DRender::QAbstractTexture *<i>normal</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>normalChanged</b></span>(Qt3DRender::QAbstractTexture *<i>normal</i>)</td></tr>
/// </tbody></table></div></div>
///
/// This item is available if `cpp_lib_version="5.9.7"`.
#[cfg(any(cpp_lib_version = "5.9.7", feature = "ritual_rustdoc"))]
pub unsafe fn normal(&self) -> ::cpp_core::MutPtr<::qt_3d_render::QAbstractTexture> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QTexturedMetalRoughMaterial_normal(
self as *const crate::QTexturedMetalRoughMaterial,
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
/// <p><b>Access functions:</b></p>
///
/// Calls C++ function: <span style='color: green;'>```void Qt3DExtras::QTexturedMetalRoughMaterial::normalChanged(const QVariant& normal)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qtexturedmetalroughmaterial.html#normal-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"> QVariant </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="http://doc.qt.io/qt-5/qt3dextras-qmetalroughmaterial.html#normal-prop">normal</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/qt3dextras-qmetalroughmaterial.html#normal-prop">setNormal</a></b></span>(const QVariant &<i>normal</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>normalChanged</b></span>(const QVariant &<i>normal</i>)</td></tr>
/// </tbody></table></div></div>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn normal_changed2(
&mut self,
normal: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_core::QVariant>>,
) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QTexturedMetalRoughMaterial_normalChanged(
self as *mut crate::QTexturedMetalRoughMaterial,
::cpp_core::CastInto::<::cpp_core::Ref<::qt_core::QVariant>>::cast_into(normal)
.as_raw_ptr(),
)
}
/// Calls C++ function: <span style='color: green;'>```virtual int Qt3DExtras::QTexturedMetalRoughMaterial::qt_metacall(QMetaObject::Call arg1, int arg2, void** arg3)```</span>.
pub unsafe fn qt_metacall(
&mut self,
arg1: ::qt_core::q_meta_object::Call,
arg2: ::std::os::raw::c_int,
arg3: impl ::cpp_core::CastInto<::cpp_core::MutPtr<*mut ::std::ffi::c_void>>,
) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QTexturedMetalRoughMaterial_qt_metacall(
self as *mut crate::QTexturedMetalRoughMaterial,
arg1,
arg2,
::cpp_core::CastInto::<::cpp_core::MutPtr<*mut ::std::ffi::c_void>>::cast_into(arg3)
.as_mut_raw_ptr(),
)
}
/// Calls C++ function: <span style='color: green;'>```virtual void* Qt3DExtras::QTexturedMetalRoughMaterial::qt_metacast(const char* arg1)```</span>.
pub unsafe fn qt_metacast(
&mut self,
arg1: impl ::cpp_core::CastInto<::cpp_core::Ptr<::std::os::raw::c_char>>,
) -> ::cpp_core::MutPtr<::std::ffi::c_void> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QTexturedMetalRoughMaterial_qt_metacast(
self as *mut crate::QTexturedMetalRoughMaterial,
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(arg1)
.as_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
/// <p>Holds the current roughness map texture.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QAbstractTexture* Qt3DExtras::QTexturedMetalRoughMaterial::roughness() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qtexturedmetalroughmaterial.html#roughness-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current roughness map texture.</p>
/// <p>By default, the roughness texture has the following properties:</p>
/// <ul>
/// <li>Linear minification and magnification filters</li>
/// <li>Linear mipmap with mipmapping enabled</li>
/// <li>Repeat wrap mode</li>
/// <li>Maximum anisotropy of 16.0</li>
/// </ul>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DRender::QAbstractTexture *</td><td class="memItemRight bottomAlign"><span class="name"><b>roughness</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setRoughness</b></span>(Qt3DRender::QAbstractTexture *<i>roughness</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>roughnessChanged</b></span>(Qt3DRender::QAbstractTexture *<i>roughness</i>)</td></tr>
/// </tbody></table></div></div>
///
/// This item is available if `cpp_lib_version="5.9.7"`.
#[cfg(any(cpp_lib_version = "5.9.7", feature = "ritual_rustdoc"))]
pub unsafe fn roughness(&self) -> ::cpp_core::MutPtr<::qt_3d_render::QAbstractTexture> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QTexturedMetalRoughMaterial_roughness(
self as *const crate::QTexturedMetalRoughMaterial,
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
/// <p>Holds the current ambient occlusion map texture.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QTexturedMetalRoughMaterial::setAmbientOcclusion(Qt3DRender::QAbstractTexture* ambientOcclusion)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qtexturedmetalroughmaterial.html#ambientOcclusion-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current ambient occlusion map texture.</p>
/// <p>By default, the ambient occlusion texture has the following properties:</p>
/// <ul>
/// <li>Linear minification and magnification filters</li>
/// <li>Linear mipmap with mipmapping enabled</li>
/// <li>Repeat wrap mode</li>
/// <li>Maximum anisotropy of 16.0</li>
/// </ul>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DRender::QAbstractTexture *</td><td class="memItemRight bottomAlign"><span class="name"><b>ambientOcclusion</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setAmbientOcclusion</b></span>(Qt3DRender::QAbstractTexture *<i>ambientOcclusion</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>ambientOcclusionChanged</b></span>(Qt3DRender::QAbstractTexture *<i>ambientOcclusion</i>)</td></tr>
/// </tbody></table></div></div>
///
/// This item is available if `cpp_lib_version="5.9.7"`.
#[cfg(any(cpp_lib_version = "5.9.7", feature = "ritual_rustdoc"))]
pub unsafe fn set_ambient_occlusion(
&mut self,
ambient_occlusion: impl ::cpp_core::CastInto<
::cpp_core::MutPtr<::qt_3d_render::QAbstractTexture>,
>,
) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QTexturedMetalRoughMaterial_setAmbientOcclusion(self as *mut crate::QTexturedMetalRoughMaterial, ::cpp_core::CastInto::<::cpp_core::MutPtr<::qt_3d_render::QAbstractTexture>>::cast_into(ambient_occlusion).as_mut_raw_ptr())
}
/// <p>Holds the current base color map texture.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QTexturedMetalRoughMaterial::setBaseColor(Qt3DRender::QAbstractTexture* baseColor)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qtexturedmetalroughmaterial.html#baseColor-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current base color map texture.</p>
/// <p>By default, the base color texture has the following properties:</p>
/// <ul>
/// <li>Linear minification and magnification filters</li>
/// <li>Linear mipmap with mipmapping enabled</li>
/// <li>Repeat wrap mode</li>
/// <li>Maximum anisotropy of 16.0</li>
/// </ul>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DRender::QAbstractTexture *</td><td class="memItemRight bottomAlign"><span class="name"><b>baseColor</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setBaseColor</b></span>(Qt3DRender::QAbstractTexture *<i>baseColor</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>baseColorChanged</b></span>(Qt3DRender::QAbstractTexture *<i>baseColor</i>)</td></tr>
/// </tbody></table></div></div>
///
/// This item is available if `cpp_lib_version="5.9.7"`.
#[cfg(any(cpp_lib_version = "5.9.7", feature = "ritual_rustdoc"))]
pub unsafe fn set_base_color(
&mut self,
base_color: impl ::cpp_core::CastInto<::cpp_core::MutPtr<::qt_3d_render::QAbstractTexture>>,
) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QTexturedMetalRoughMaterial_setBaseColor(self as *mut crate::QTexturedMetalRoughMaterial, ::cpp_core::CastInto::<::cpp_core::MutPtr<::qt_3d_render::QAbstractTexture>>::cast_into(base_color).as_mut_raw_ptr())
}
/// <p>Holds the current metalness map texture.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QTexturedMetalRoughMaterial::setMetalness(Qt3DRender::QAbstractTexture* metalness)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qtexturedmetalroughmaterial.html#metalness-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current metalness map texture.</p>
/// <p>By default, the metalness texture has the following properties:</p>
/// <ul>
/// <li>Linear minification and magnification filters</li>
/// <li>Linear mipmap with mipmapping enabled</li>
/// <li>Repeat wrap mode</li>
/// <li>Maximum anisotropy of 16.0</li>
/// </ul>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DRender::QAbstractTexture *</td><td class="memItemRight bottomAlign"><span class="name"><b>metalness</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setMetalness</b></span>(Qt3DRender::QAbstractTexture *<i>metalness</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>metalnessChanged</b></span>(Qt3DRender::QAbstractTexture *<i>metalness</i>)</td></tr>
/// </tbody></table></div></div>
///
/// This item is available if `cpp_lib_version="5.9.7"`.
#[cfg(any(cpp_lib_version = "5.9.7", feature = "ritual_rustdoc"))]
pub unsafe fn set_metalness(
&mut self,
metalness: impl ::cpp_core::CastInto<::cpp_core::MutPtr<::qt_3d_render::QAbstractTexture>>,
) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QTexturedMetalRoughMaterial_setMetalness(self as *mut crate::QTexturedMetalRoughMaterial, ::cpp_core::CastInto::<::cpp_core::MutPtr<::qt_3d_render::QAbstractTexture>>::cast_into(metalness).as_mut_raw_ptr())
}
/// <p>Holds the current normal map texture.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QTexturedMetalRoughMaterial::setNormal(Qt3DRender::QAbstractTexture* normal)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qtexturedmetalroughmaterial.html#normal-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current normal map texture.</p>
/// <p>By default, the normal texture has the following properties:</p>
/// <ul>
/// <li>Linear minification and magnification filters</li>
/// <li>Repeat wrap mode</li>
/// <li>Maximum anisotropy of 16.0</li>
/// </ul>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DRender::QAbstractTexture *</td><td class="memItemRight bottomAlign"><span class="name"><b>normal</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setNormal</b></span>(Qt3DRender::QAbstractTexture *<i>normal</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>normalChanged</b></span>(Qt3DRender::QAbstractTexture *<i>normal</i>)</td></tr>
/// </tbody></table></div></div>
///
/// This item is available if `cpp_lib_version="5.9.7"`.
#[cfg(any(cpp_lib_version = "5.9.7", feature = "ritual_rustdoc"))]
pub unsafe fn set_normal(
&mut self,
normal: impl ::cpp_core::CastInto<::cpp_core::MutPtr<::qt_3d_render::QAbstractTexture>>,
) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QTexturedMetalRoughMaterial_setNormal(self as *mut crate::QTexturedMetalRoughMaterial, ::cpp_core::CastInto::<::cpp_core::MutPtr<::qt_3d_render::QAbstractTexture>>::cast_into(normal).as_mut_raw_ptr())
}
/// <p>Holds the current roughness map texture.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QTexturedMetalRoughMaterial::setRoughness(Qt3DRender::QAbstractTexture* roughness)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qtexturedmetalroughmaterial.html#roughness-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current roughness map texture.</p>
/// <p>By default, the roughness texture has the following properties:</p>
/// <ul>
/// <li>Linear minification and magnification filters</li>
/// <li>Linear mipmap with mipmapping enabled</li>
/// <li>Repeat wrap mode</li>
/// <li>Maximum anisotropy of 16.0</li>
/// </ul>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DRender::QAbstractTexture *</td><td class="memItemRight bottomAlign"><span class="name"><b>roughness</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setRoughness</b></span>(Qt3DRender::QAbstractTexture *<i>roughness</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>roughnessChanged</b></span>(Qt3DRender::QAbstractTexture *<i>roughness</i>)</td></tr>
/// </tbody></table></div></div>
///
/// This item is available if `cpp_lib_version="5.9.7"`.
#[cfg(any(cpp_lib_version = "5.9.7", feature = "ritual_rustdoc"))]
pub unsafe fn set_roughness(
&mut self,
roughness: impl ::cpp_core::CastInto<::cpp_core::MutPtr<::qt_3d_render::QAbstractTexture>>,
) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QTexturedMetalRoughMaterial_setRoughness(self as *mut crate::QTexturedMetalRoughMaterial, ::cpp_core::CastInto::<::cpp_core::MutPtr<::qt_3d_render::QAbstractTexture>>::cast_into(roughness).as_mut_raw_ptr())
}
/// Returns a reference to the <span style='color: green;'>```staticMetaObject```</span> field.
pub unsafe fn static_meta_object() -> ::cpp_core::Ref<::qt_core::QMetaObject> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QTexturedMetalRoughMaterial_staticMetaObject();
::cpp_core::Ref::from_raw(ffi_result).expect("attempted to construct a null Ref")
}
/// Calls C++ function: <span style='color: green;'>```static QString Qt3DExtras::QTexturedMetalRoughMaterial::tr(const char* s, const char* c, int n)```</span>.
pub unsafe fn tr(
s: impl ::cpp_core::CastInto<::cpp_core::Ptr<::std::os::raw::c_char>>,
c: impl ::cpp_core::CastInto<::cpp_core::Ptr<::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_extras_ffi_Qt3DExtras_QTexturedMetalRoughMaterial_tr(
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(s)
.as_raw_ptr(),
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(c)
.as_raw_ptr(),
n,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// Calls C++ function: <span style='color: green;'>```static QString Qt3DExtras::QTexturedMetalRoughMaterial::trUtf8(const char* s, const char* c, int n)```</span>.
pub unsafe fn tr_utf8(
s: impl ::cpp_core::CastInto<::cpp_core::Ptr<::std::os::raw::c_char>>,
c: impl ::cpp_core::CastInto<::cpp_core::Ptr<::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_extras_ffi_Qt3DExtras_QTexturedMetalRoughMaterial_trUtf8(
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(s)
.as_raw_ptr(),
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(c)
.as_raw_ptr(),
n,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
}
/// <p>The <a href="http://doc.qt.io/qt-5/qt3dextras-qtexturematerial.html">QTextureMaterial</a> provides a default implementation of a simple unlit texture material.</p>
///
/// C++ class: <span style='color: green;'>```Qt3DExtras::QTextureMaterial```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qtexturematerial.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>The <a href="http://doc.qt.io/qt-5/qt3dextras-qtexturematerial.html">QTextureMaterial</a> provides a default implementation of a simple unlit texture material.</p>
/// <p>This material uses an effect with a single render pass approach. Techniques are provided for OpenGL 2, OpenGL 3 or above as well as OpenGL ES 2.</p></div>
#[repr(C)]
pub struct QTextureMaterial {
_unused: u8,
}
impl QTextureMaterial {
/// <p>Holds the current texture used by the material.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QTextureMaterial::setTexture` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qtexturematerial.html#texture-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current texture used by the material.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DRender::QAbstractTexture *</td><td class="memItemRight bottomAlign"><span class="name"><b>texture</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setTexture</b></span>(Qt3DRender::QAbstractTexture *<i>texture</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>textureChanged</b></span>(Qt3DRender::QAbstractTexture *<i>texture</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slot_set_texture(
&self,
) -> ::qt_core::Receiver<(*mut ::qt_3d_render::QAbstractTexture,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"1setTexture(Qt3DRender::QAbstractTexture*)\0",
),
)
}
}
/// <p>Holds the current texture offset. It is applied to texture coordinates at render time. Defaults to (0.0, 0.0).</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QTextureMaterial::setTextureOffset` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qtexturematerial.html#textureOffset-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current texture offset. It is applied to texture coordinates at render time. Defaults to (0.0, 0.0).</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QVector2D </td><td class="memItemRight bottomAlign"><span class="name"><b>textureOffset</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setTextureOffset</b></span>(QVector2D <i>textureOffset</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>textureOffsetChanged</b></span>(QVector2D <i>textureOffset</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slot_set_texture_offset(&self) -> ::qt_core::Receiver<(*const ::qt_gui::QVector2D,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setTextureOffset(QVector2D)\0"),
)
}
}
/// <p>Holds the current texture used by the material.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QTextureMaterial::textureChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qtexturematerial.html#texture-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current texture used by the material.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DRender::QAbstractTexture *</td><td class="memItemRight bottomAlign"><span class="name"><b>texture</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setTexture</b></span>(Qt3DRender::QAbstractTexture *<i>texture</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>textureChanged</b></span>(Qt3DRender::QAbstractTexture *<i>texture</i>)</td></tr>
/// </tbody></table></div></div>
pub fn texture_changed(&self) -> ::qt_core::Signal<(*mut ::qt_3d_render::QAbstractTexture,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"2textureChanged(Qt3DRender::QAbstractTexture*)\0",
),
)
}
}
/// <p>Holds the current texture offset. It is applied to texture coordinates at render time. Defaults to (0.0, 0.0).</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QTextureMaterial::textureOffsetChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qtexturematerial.html#textureOffset-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current texture offset. It is applied to texture coordinates at render time. Defaults to (0.0, 0.0).</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QVector2D </td><td class="memItemRight bottomAlign"><span class="name"><b>textureOffset</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setTextureOffset</b></span>(QVector2D <i>textureOffset</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>textureOffsetChanged</b></span>(QVector2D <i>textureOffset</i>)</td></tr>
/// </tbody></table></div></div>
pub fn texture_offset_changed(&self) -> ::qt_core::Signal<(*const ::qt_gui::QVector2D,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"2textureOffsetChanged(QVector2D)\0",
),
)
}
}
/// <p>Indicates if the alpha information coming from the diffuse property will be taken into account during rendering. Defaults to false.</p>
///
/// Calls C++ function: <span style='color: green;'>```void Qt3DExtras::QTextureMaterial::alphaBlendingEnabledChanged(bool enabled)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qtexturematerial.html#alphaBlending-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Indicates if the alpha information coming from the diffuse property will be taken into account during rendering. Defaults to false.</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>isAlphaBlendingEnabled</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setAlphaBlendingEnabled</b></span>(bool <i>enabled</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>alphaBlendingEnabledChanged</b></span>(bool <i>enabled</i>)</td></tr>
/// </tbody></table></div></div>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn alpha_blending_enabled_changed(&mut self, enabled: bool) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QTextureMaterial_alphaBlendingEnabledChanged(
self as *mut crate::QTextureMaterial,
enabled,
)
}
/// <p>Indicates if the alpha information coming from the diffuse property will be taken into account during rendering. Defaults to false.</p>
///
/// Calls C++ function: <span style='color: green;'>```bool Qt3DExtras::QTextureMaterial::isAlphaBlendingEnabled() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qtexturematerial.html#alphaBlending-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Indicates if the alpha information coming from the diffuse property will be taken into account during rendering. Defaults to false.</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>isAlphaBlendingEnabled</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setAlphaBlendingEnabled</b></span>(bool <i>enabled</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>alphaBlendingEnabledChanged</b></span>(bool <i>enabled</i>)</td></tr>
/// </tbody></table></div></div>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn is_alpha_blending_enabled(&self) -> bool {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QTextureMaterial_isAlphaBlendingEnabled(
self as *const crate::QTextureMaterial,
)
}
/// Calls C++ function: <span style='color: green;'>```virtual const QMetaObject* Qt3DExtras::QTextureMaterial::metaObject() const```</span>.
pub unsafe fn meta_object(&self) -> ::cpp_core::Ptr<::qt_core::QMetaObject> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QTextureMaterial_metaObject(
self as *const crate::QTextureMaterial,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// <p>Default constructs an instance of QTextureMaterial.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DExtras::QTextureMaterial::QTextureMaterial(Qt3DCore::QNode* parent = …)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qtexturematerial.html#QTextureMaterial">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Default constructs an instance of QTextureMaterial.</p></div>
pub unsafe fn new_1a(
parent: impl ::cpp_core::CastInto<::cpp_core::MutPtr<::qt_3d_core::QNode>>,
) -> ::cpp_core::CppBox<crate::QTextureMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QTextureMaterial_QTextureMaterial(
::cpp_core::CastInto::<::cpp_core::MutPtr<::qt_3d_core::QNode>>::cast_into(parent)
.as_mut_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/qt3dextras-qtexturematerial.html">QTextureMaterial</a> provides a default implementation of a simple unlit texture material.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DExtras::QTextureMaterial::QTextureMaterial()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qtexturematerial.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>The <a href="http://doc.qt.io/qt-5/qt3dextras-qtexturematerial.html">QTextureMaterial</a> provides a default implementation of a simple unlit texture material.</p>
/// <p>This material uses an effect with a single render pass approach. Techniques are provided for OpenGL 2, OpenGL 3 or above as well as OpenGL ES 2.</p></div>
pub unsafe fn new_0a() -> ::cpp_core::CppBox<crate::QTextureMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QTextureMaterial_QTextureMaterial1();
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// Calls C++ function: <span style='color: green;'>```virtual int Qt3DExtras::QTextureMaterial::qt_metacall(QMetaObject::Call arg1, int arg2, void** arg3)```</span>.
pub unsafe fn qt_metacall(
&mut self,
arg1: ::qt_core::q_meta_object::Call,
arg2: ::std::os::raw::c_int,
arg3: impl ::cpp_core::CastInto<::cpp_core::MutPtr<*mut ::std::ffi::c_void>>,
) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QTextureMaterial_qt_metacall(
self as *mut crate::QTextureMaterial,
arg1,
arg2,
::cpp_core::CastInto::<::cpp_core::MutPtr<*mut ::std::ffi::c_void>>::cast_into(arg3)
.as_mut_raw_ptr(),
)
}
/// Calls C++ function: <span style='color: green;'>```virtual void* Qt3DExtras::QTextureMaterial::qt_metacast(const char* arg1)```</span>.
pub unsafe fn qt_metacast(
&mut self,
arg1: impl ::cpp_core::CastInto<::cpp_core::Ptr<::std::os::raw::c_char>>,
) -> ::cpp_core::MutPtr<::std::ffi::c_void> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QTextureMaterial_qt_metacast(
self as *mut crate::QTextureMaterial,
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(arg1)
.as_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
/// <p>Indicates if the alpha information coming from the diffuse property will be taken into account during rendering. Defaults to false.</p>
///
/// Calls C++ function: <span style='color: green;'>```void Qt3DExtras::QTextureMaterial::setAlphaBlendingEnabled(bool enabled)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qtexturematerial.html#alphaBlending-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Indicates if the alpha information coming from the diffuse property will be taken into account during rendering. Defaults to false.</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>isAlphaBlendingEnabled</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setAlphaBlendingEnabled</b></span>(bool <i>enabled</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>alphaBlendingEnabledChanged</b></span>(bool <i>enabled</i>)</td></tr>
/// </tbody></table></div></div>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn set_alpha_blending_enabled(&mut self, enabled: bool) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QTextureMaterial_setAlphaBlendingEnabled(
self as *mut crate::QTextureMaterial,
enabled,
)
}
/// <p>Holds the current texture used by the material.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QTextureMaterial::setTexture(Qt3DRender::QAbstractTexture* texture)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qtexturematerial.html#texture-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current texture used by the material.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DRender::QAbstractTexture *</td><td class="memItemRight bottomAlign"><span class="name"><b>texture</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setTexture</b></span>(Qt3DRender::QAbstractTexture *<i>texture</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>textureChanged</b></span>(Qt3DRender::QAbstractTexture *<i>texture</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_texture(
&mut self,
texture: impl ::cpp_core::CastInto<::cpp_core::MutPtr<::qt_3d_render::QAbstractTexture>>,
) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QTextureMaterial_setTexture(self as *mut crate::QTextureMaterial, ::cpp_core::CastInto::<::cpp_core::MutPtr<::qt_3d_render::QAbstractTexture>>::cast_into(texture).as_mut_raw_ptr())
}
/// <p>Holds the current texture offset. It is applied to texture coordinates at render time. Defaults to (0.0, 0.0).</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QTextureMaterial::setTextureOffset(QVector2D textureOffset)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qtexturematerial.html#textureOffset-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current texture offset. It is applied to texture coordinates at render time. Defaults to (0.0, 0.0).</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QVector2D </td><td class="memItemRight bottomAlign"><span class="name"><b>textureOffset</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setTextureOffset</b></span>(QVector2D <i>textureOffset</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>textureOffsetChanged</b></span>(QVector2D <i>textureOffset</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_texture_offset(
&mut self,
texture_offset: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_gui::QVector2D>>,
) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QTextureMaterial_setTextureOffset(
self as *mut crate::QTextureMaterial,
::cpp_core::CastInto::<::cpp_core::Ref<::qt_gui::QVector2D>>::cast_into(texture_offset)
.as_raw_ptr(),
)
}
/// Returns a reference to the <span style='color: green;'>```staticMetaObject```</span> field.
pub unsafe fn static_meta_object() -> ::cpp_core::Ref<::qt_core::QMetaObject> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QTextureMaterial_staticMetaObject();
::cpp_core::Ref::from_raw(ffi_result).expect("attempted to construct a null Ref")
}
/// <p>Holds the current texture used by the material.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QAbstractTexture* Qt3DExtras::QTextureMaterial::texture() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qtexturematerial.html#texture-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current texture used by the material.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DRender::QAbstractTexture *</td><td class="memItemRight bottomAlign"><span class="name"><b>texture</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setTexture</b></span>(Qt3DRender::QAbstractTexture *<i>texture</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>textureChanged</b></span>(Qt3DRender::QAbstractTexture *<i>texture</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn texture(&self) -> ::cpp_core::MutPtr<::qt_3d_render::QAbstractTexture> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QTextureMaterial_texture(
self as *const crate::QTextureMaterial,
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
/// <p>Holds the current texture offset. It is applied to texture coordinates at render time. Defaults to (0.0, 0.0).</p>
///
/// Calls C++ function: <span style='color: green;'>```QVector2D Qt3DExtras::QTextureMaterial::textureOffset() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qtexturematerial.html#textureOffset-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current texture offset. It is applied to texture coordinates at render time. Defaults to (0.0, 0.0).</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QVector2D </td><td class="memItemRight bottomAlign"><span class="name"><b>textureOffset</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setTextureOffset</b></span>(QVector2D <i>textureOffset</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>textureOffsetChanged</b></span>(QVector2D <i>textureOffset</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn texture_offset(&self) -> ::cpp_core::CppBox<::qt_gui::QVector2D> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QTextureMaterial_textureOffset(
self as *const crate::QTextureMaterial,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// Calls C++ function: <span style='color: green;'>```static QString Qt3DExtras::QTextureMaterial::tr(const char* s, const char* c, int n)```</span>.
pub unsafe fn tr(
s: impl ::cpp_core::CastInto<::cpp_core::Ptr<::std::os::raw::c_char>>,
c: impl ::cpp_core::CastInto<::cpp_core::Ptr<::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_extras_ffi_Qt3DExtras_QTextureMaterial_tr(
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(s)
.as_raw_ptr(),
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(c)
.as_raw_ptr(),
n,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// Calls C++ function: <span style='color: green;'>```static QString Qt3DExtras::QTextureMaterial::trUtf8(const char* s, const char* c, int n)```</span>.
pub unsafe fn tr_utf8(
s: impl ::cpp_core::CastInto<::cpp_core::Ptr<::std::os::raw::c_char>>,
c: impl ::cpp_core::CastInto<::cpp_core::Ptr<::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_extras_ffi_Qt3DExtras_QTextureMaterial_trUtf8(
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(s)
.as_raw_ptr(),
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(c)
.as_raw_ptr(),
n,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
}
/// <p>The <a href="http://doc.qt.io/qt-5/qt3dextras-qtorusgeometry.html">QTorusGeometry</a> class allows creation of a torus in 3D space.</p>
///
/// C++ class: <span style='color: green;'>```Qt3DExtras::QTorusGeometry```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qtorusgeometry.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>The <a href="http://doc.qt.io/qt-5/qt3dextras-qtorusgeometry.html">QTorusGeometry</a> class allows creation of a torus in 3D space.</p>
/// <p>The <a href="http://doc.qt.io/qt-5/qt3dextras-qtorusgeometry.html">QTorusGeometry</a> class is most commonly used internally by the <a href="http://doc.qt.io/qt-5/qt3dextras-qtorusmesh.html">QTorusMesh</a> but can also be used in custom <a href="http://doc.qt.io/qt-5/qt3drender-qgeometryrenderer.html">Qt3DRender::QGeometryRenderer</a> subclasses.</p></div>
#[repr(C)]
pub struct QTorusGeometry {
_unused: u8,
}
impl QTorusGeometry {
/// <p>Holds the number of rings in the torus.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QTorusGeometry::setRings` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qtorusgeometry.html#rings-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the number of rings in the torus.</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>rings</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setRings</b></span>(int <i>rings</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>ringsChanged</b></span>(int <i>rings</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slot_set_rings(&self) -> ::qt_core::Receiver<(::std::os::raw::c_int,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setRings(int)\0"),
)
}
}
/// <p>Holds the number of slices in the torus.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QTorusGeometry::setSlices` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qtorusgeometry.html#slices-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the number of slices in the torus.</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>slices</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setSlices</b></span>(int <i>slices</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>slicesChanged</b></span>(int <i>slices</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slot_set_slices(&self) -> ::qt_core::Receiver<(::std::os::raw::c_int,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setSlices(int)\0"),
)
}
}
/// <p>Holds the outer radius of the torus.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QTorusGeometry::setRadius` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qtorusgeometry.html#radius-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the outer radius of the torus.</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>radius</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setRadius</b></span>(float <i>radius</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>radiusChanged</b></span>(float <i>radius</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slot_set_radius(&self) -> ::qt_core::Receiver<(::std::os::raw::c_float,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setRadius(float)\0"),
)
}
}
/// <p>Holds the inner radius of the torus.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QTorusGeometry::setMinorRadius` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qtorusgeometry.html#minorRadius-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the inner radius of the torus.</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>minorRadius</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setMinorRadius</b></span>(float <i>minorRadius</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>minorRadiusChanged</b></span>(float <i>minorRadius</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slot_set_minor_radius(&self) -> ::qt_core::Receiver<(::std::os::raw::c_float,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setMinorRadius(float)\0"),
)
}
}
/// <p>Holds the outer radius of the torus.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QTorusGeometry::radiusChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qtorusgeometry.html#radius-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the outer radius of the torus.</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>radius</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setRadius</b></span>(float <i>radius</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>radiusChanged</b></span>(float <i>radius</i>)</td></tr>
/// </tbody></table></div></div>
pub fn radius_changed(&self) -> ::qt_core::Signal<(::std::os::raw::c_float,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2radiusChanged(float)\0"),
)
}
}
/// <p>Holds the number of rings in the torus.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QTorusGeometry::ringsChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qtorusgeometry.html#rings-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the number of rings in the torus.</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>rings</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setRings</b></span>(int <i>rings</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>ringsChanged</b></span>(int <i>rings</i>)</td></tr>
/// </tbody></table></div></div>
pub fn rings_changed(&self) -> ::qt_core::Signal<(::std::os::raw::c_int,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2ringsChanged(int)\0"),
)
}
}
/// <p>Holds the number of slices in the torus.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QTorusGeometry::slicesChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qtorusgeometry.html#slices-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the number of slices in the torus.</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>slices</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setSlices</b></span>(int <i>slices</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>slicesChanged</b></span>(int <i>slices</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slices_changed(&self) -> ::qt_core::Signal<(::std::os::raw::c_int,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2slicesChanged(int)\0"),
)
}
}
/// <p>Holds the inner radius of the torus.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QTorusGeometry::minorRadiusChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qtorusgeometry.html#minorRadius-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the inner radius of the torus.</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>minorRadius</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setMinorRadius</b></span>(float <i>minorRadius</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>minorRadiusChanged</b></span>(float <i>minorRadius</i>)</td></tr>
/// </tbody></table></div></div>
pub fn minor_radius_changed(&self) -> ::qt_core::Signal<(::std::os::raw::c_float,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2minorRadiusChanged(float)\0"),
)
}
}
/// <p>Holds the geometry index attribute.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QAttribute* Qt3DExtras::QTorusGeometry::indexAttribute() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qtorusgeometry.html#indexAttribute-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the geometry index attribute.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DRender::QAttribute *</td><td class="memItemRight bottomAlign"><span class="name"><b>indexAttribute</b></span>() const</td></tr>
/// </tbody></table></div></div>
pub unsafe fn index_attribute(&self) -> ::cpp_core::MutPtr<::qt_3d_render::QAttribute> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QTorusGeometry_indexAttribute(
self as *const crate::QTorusGeometry,
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```virtual const QMetaObject* Qt3DExtras::QTorusGeometry::metaObject() const```</span>.
pub unsafe fn meta_object(&self) -> ::cpp_core::Ptr<::qt_core::QMetaObject> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QTorusGeometry_metaObject(
self as *const crate::QTorusGeometry,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// <p>Holds the inner radius of the torus.</p>
///
/// Calls C++ function: <span style='color: green;'>```float Qt3DExtras::QTorusGeometry::minorRadius() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qtorusgeometry.html#minorRadius-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the inner radius of the torus.</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>minorRadius</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setMinorRadius</b></span>(float <i>minorRadius</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>minorRadiusChanged</b></span>(float <i>minorRadius</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn minor_radius(&self) -> ::std::os::raw::c_float {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QTorusGeometry_minorRadius(
self as *const crate::QTorusGeometry,
)
}
/// <p>Constructs a new <a href="http://doc.qt.io/qt-5/qt3dextras-qtorusgeometry.html">QTorusGeometry</a> with <i>parent</i>.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DExtras::QTorusGeometry::QTorusGeometry(Qt3DCore::QNode* parent = …)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qtorusgeometry.html#QTorusGeometry">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/qt3dextras-qtorusgeometry.html">QTorusGeometry</a> with <i>parent</i>.</p></div>
pub unsafe fn new_1a(
parent: impl ::cpp_core::CastInto<::cpp_core::MutPtr<::qt_3d_core::QNode>>,
) -> ::cpp_core::CppBox<crate::QTorusGeometry> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QTorusGeometry_QTorusGeometry(
::cpp_core::CastInto::<::cpp_core::MutPtr<::qt_3d_core::QNode>>::cast_into(parent)
.as_mut_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/qt3dextras-qtorusgeometry.html">QTorusGeometry</a> class allows creation of a torus in 3D space.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DExtras::QTorusGeometry::QTorusGeometry()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qtorusgeometry.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>The <a href="http://doc.qt.io/qt-5/qt3dextras-qtorusgeometry.html">QTorusGeometry</a> class allows creation of a torus in 3D space.</p>
/// <p>The <a href="http://doc.qt.io/qt-5/qt3dextras-qtorusgeometry.html">QTorusGeometry</a> class is most commonly used internally by the <a href="http://doc.qt.io/qt-5/qt3dextras-qtorusmesh.html">QTorusMesh</a> but can also be used in custom <a href="http://doc.qt.io/qt-5/qt3drender-qgeometryrenderer.html">Qt3DRender::QGeometryRenderer</a> subclasses.</p></div>
pub unsafe fn new_0a() -> ::cpp_core::CppBox<crate::QTorusGeometry> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QTorusGeometry_QTorusGeometry1();
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Holds the geometry normal attribute.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QAttribute* Qt3DExtras::QTorusGeometry::normalAttribute() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qtorusgeometry.html#normalAttribute-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the geometry normal attribute.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DRender::QAttribute *</td><td class="memItemRight bottomAlign"><span class="name"><b>normalAttribute</b></span>() const</td></tr>
/// </tbody></table></div></div>
pub unsafe fn normal_attribute(&self) -> ::cpp_core::MutPtr<::qt_3d_render::QAttribute> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QTorusGeometry_normalAttribute(
self as *const crate::QTorusGeometry,
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
/// <p>Holds the geometry position attribute.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QAttribute* Qt3DExtras::QTorusGeometry::positionAttribute() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qtorusgeometry.html#positionAttribute-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the geometry position attribute.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DRender::QAttribute *</td><td class="memItemRight bottomAlign"><span class="name"><b>positionAttribute</b></span>() const</td></tr>
/// </tbody></table></div></div>
pub unsafe fn position_attribute(&self) -> ::cpp_core::MutPtr<::qt_3d_render::QAttribute> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QTorusGeometry_positionAttribute(
self as *const crate::QTorusGeometry,
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```virtual int Qt3DExtras::QTorusGeometry::qt_metacall(QMetaObject::Call arg1, int arg2, void** arg3)```</span>.
pub unsafe fn qt_metacall(
&mut self,
arg1: ::qt_core::q_meta_object::Call,
arg2: ::std::os::raw::c_int,
arg3: impl ::cpp_core::CastInto<::cpp_core::MutPtr<*mut ::std::ffi::c_void>>,
) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QTorusGeometry_qt_metacall(
self as *mut crate::QTorusGeometry,
arg1,
arg2,
::cpp_core::CastInto::<::cpp_core::MutPtr<*mut ::std::ffi::c_void>>::cast_into(arg3)
.as_mut_raw_ptr(),
)
}
/// Calls C++ function: <span style='color: green;'>```virtual void* Qt3DExtras::QTorusGeometry::qt_metacast(const char* arg1)```</span>.
pub unsafe fn qt_metacast(
&mut self,
arg1: impl ::cpp_core::CastInto<::cpp_core::Ptr<::std::os::raw::c_char>>,
) -> ::cpp_core::MutPtr<::std::ffi::c_void> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QTorusGeometry_qt_metacast(
self as *mut crate::QTorusGeometry,
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(arg1)
.as_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
/// <p>Holds the outer radius of the torus.</p>
///
/// Calls C++ function: <span style='color: green;'>```float Qt3DExtras::QTorusGeometry::radius() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qtorusgeometry.html#radius-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the outer radius of the torus.</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>radius</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setRadius</b></span>(float <i>radius</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>radiusChanged</b></span>(float <i>radius</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn radius(&self) -> ::std::os::raw::c_float {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QTorusGeometry_radius(
self as *const crate::QTorusGeometry,
)
}
/// <p>Holds the number of rings in the torus.</p>
///
/// Calls C++ function: <span style='color: green;'>```int Qt3DExtras::QTorusGeometry::rings() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qtorusgeometry.html#rings-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the number of rings in the torus.</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>rings</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setRings</b></span>(int <i>rings</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>ringsChanged</b></span>(int <i>rings</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn rings(&self) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QTorusGeometry_rings(
self as *const crate::QTorusGeometry,
)
}
/// <p>Holds the inner radius of the torus.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QTorusGeometry::setMinorRadius(float minorRadius)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qtorusgeometry.html#minorRadius-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the inner radius of the torus.</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>minorRadius</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setMinorRadius</b></span>(float <i>minorRadius</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>minorRadiusChanged</b></span>(float <i>minorRadius</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_minor_radius(&mut self, minor_radius: ::std::os::raw::c_float) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QTorusGeometry_setMinorRadius(
self as *mut crate::QTorusGeometry,
minor_radius,
)
}
/// <p>Holds the outer radius of the torus.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QTorusGeometry::setRadius(float radius)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qtorusgeometry.html#radius-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the outer radius of the torus.</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>radius</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setRadius</b></span>(float <i>radius</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>radiusChanged</b></span>(float <i>radius</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_radius(&mut self, radius: ::std::os::raw::c_float) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QTorusGeometry_setRadius(
self as *mut crate::QTorusGeometry,
radius,
)
}
/// <p>Holds the number of rings in the torus.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QTorusGeometry::setRings(int rings)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qtorusgeometry.html#rings-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the number of rings in the torus.</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>rings</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setRings</b></span>(int <i>rings</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>ringsChanged</b></span>(int <i>rings</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_rings(&mut self, rings: ::std::os::raw::c_int) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QTorusGeometry_setRings(
self as *mut crate::QTorusGeometry,
rings,
)
}
/// <p>Holds the number of slices in the torus.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QTorusGeometry::setSlices(int slices)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qtorusgeometry.html#slices-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the number of slices in the torus.</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>slices</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setSlices</b></span>(int <i>slices</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>slicesChanged</b></span>(int <i>slices</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_slices(&mut self, slices: ::std::os::raw::c_int) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QTorusGeometry_setSlices(
self as *mut crate::QTorusGeometry,
slices,
)
}
/// <p>Holds the number of slices in the torus.</p>
///
/// Calls C++ function: <span style='color: green;'>```int Qt3DExtras::QTorusGeometry::slices() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qtorusgeometry.html#slices-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the number of slices in the torus.</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>slices</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setSlices</b></span>(int <i>slices</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>slicesChanged</b></span>(int <i>slices</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn slices(&self) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QTorusGeometry_slices(
self as *const crate::QTorusGeometry,
)
}
/// Returns a reference to the <span style='color: green;'>```staticMetaObject```</span> field.
pub unsafe fn static_meta_object() -> ::cpp_core::Ref<::qt_core::QMetaObject> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QTorusGeometry_staticMetaObject();
::cpp_core::Ref::from_raw(ffi_result).expect("attempted to construct a null Ref")
}
/// <p>Holds the geometry texture coordinate attribute.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QAttribute* Qt3DExtras::QTorusGeometry::texCoordAttribute() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qtorusgeometry.html#texCoordAttribute-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the geometry texture coordinate attribute.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DRender::QAttribute *</td><td class="memItemRight bottomAlign"><span class="name"><b>texCoordAttribute</b></span>() const</td></tr>
/// </tbody></table></div></div>
pub unsafe fn tex_coord_attribute(&self) -> ::cpp_core::MutPtr<::qt_3d_render::QAttribute> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QTorusGeometry_texCoordAttribute(
self as *const crate::QTorusGeometry,
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```static QString Qt3DExtras::QTorusGeometry::tr(const char* s, const char* c, int n)```</span>.
pub unsafe fn tr(
s: impl ::cpp_core::CastInto<::cpp_core::Ptr<::std::os::raw::c_char>>,
c: impl ::cpp_core::CastInto<::cpp_core::Ptr<::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_extras_ffi_Qt3DExtras_QTorusGeometry_tr(
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(s)
.as_raw_ptr(),
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(c)
.as_raw_ptr(),
n,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// Calls C++ function: <span style='color: green;'>```static QString Qt3DExtras::QTorusGeometry::trUtf8(const char* s, const char* c, int n)```</span>.
pub unsafe fn tr_utf8(
s: impl ::cpp_core::CastInto<::cpp_core::Ptr<::std::os::raw::c_char>>,
c: impl ::cpp_core::CastInto<::cpp_core::Ptr<::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_extras_ffi_Qt3DExtras_QTorusGeometry_trUtf8(
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(s)
.as_raw_ptr(),
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(c)
.as_raw_ptr(),
n,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Updates indices based on rings and slices properties.</p>
///
/// Calls C++ function: <span style='color: green;'>```void Qt3DExtras::QTorusGeometry::updateIndices()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qtorusgeometry.html#updateIndices">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Updates indices based on rings and slices properties.</p></div>
pub unsafe fn update_indices(&mut self) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QTorusGeometry_updateIndices(
self as *mut crate::QTorusGeometry,
)
}
/// <p>Updates vertices based on rings, slices, and radius properties.</p>
///
/// Calls C++ function: <span style='color: green;'>```void Qt3DExtras::QTorusGeometry::updateVertices()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qtorusgeometry.html#updateVertices">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Updates vertices based on rings, slices, and radius properties.</p></div>
pub unsafe fn update_vertices(&mut self) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QTorusGeometry_updateVertices(
self as *mut crate::QTorusGeometry,
)
}
}
/// <p>A toroidal mesh.</p>
///
/// C++ class: <span style='color: green;'>```Qt3DExtras::QTorusMesh```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qtorusmesh.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>A toroidal mesh.</p></div>
#[repr(C)]
pub struct QTorusMesh {
_unused: u8,
}
impl QTorusMesh {
/// <p>Holds the number of rings in the mesh.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QTorusMesh::setRings` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qtorusmesh.html#rings-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the number of rings in the mesh.</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>rings</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setRings</b></span>(int <i>rings</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>ringsChanged</b></span>(int <i>rings</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slot_set_rings(&self) -> ::qt_core::Receiver<(::std::os::raw::c_int,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setRings(int)\0"),
)
}
}
/// <p>Holds the number of slices in the mesh.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QTorusMesh::setSlices` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qtorusmesh.html#slices-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the number of slices in the mesh.</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>slices</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setSlices</b></span>(int <i>slices</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>slicesChanged</b></span>(int <i>slices</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slot_set_slices(&self) -> ::qt_core::Receiver<(::std::os::raw::c_int,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setSlices(int)\0"),
)
}
}
/// <p>Holds the outer radius of the torus.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QTorusMesh::setRadius` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qtorusmesh.html#radius-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the outer radius of the torus.</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>radius</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setRadius</b></span>(float <i>radius</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>radiusChanged</b></span>(float <i>radius</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slot_set_radius(&self) -> ::qt_core::Receiver<(::std::os::raw::c_float,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setRadius(float)\0"),
)
}
}
/// <p>Holds the inner radius of the torus.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QTorusMesh::setMinorRadius` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qtorusmesh.html#minorRadius-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the inner radius of the torus.</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>minorRadius</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setMinorRadius</b></span>(float <i>minorRadius</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>minorRadiusChanged</b></span>(float <i>minorRadius</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slot_set_minor_radius(&self) -> ::qt_core::Receiver<(::std::os::raw::c_float,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setMinorRadius(float)\0"),
)
}
}
/// <p>Holds the outer radius of the torus.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QTorusMesh::radiusChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qtorusmesh.html#radius-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the outer radius of the torus.</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>radius</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setRadius</b></span>(float <i>radius</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>radiusChanged</b></span>(float <i>radius</i>)</td></tr>
/// </tbody></table></div></div>
pub fn radius_changed(&self) -> ::qt_core::Signal<(::std::os::raw::c_float,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2radiusChanged(float)\0"),
)
}
}
/// <p>Holds the number of rings in the mesh.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QTorusMesh::ringsChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qtorusmesh.html#rings-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the number of rings in the mesh.</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>rings</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setRings</b></span>(int <i>rings</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>ringsChanged</b></span>(int <i>rings</i>)</td></tr>
/// </tbody></table></div></div>
pub fn rings_changed(&self) -> ::qt_core::Signal<(::std::os::raw::c_int,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2ringsChanged(int)\0"),
)
}
}
/// <p>Holds the number of slices in the mesh.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QTorusMesh::slicesChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qtorusmesh.html#slices-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the number of slices in the mesh.</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>slices</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setSlices</b></span>(int <i>slices</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>slicesChanged</b></span>(int <i>slices</i>)</td></tr>
/// </tbody></table></div></div>
pub fn slices_changed(&self) -> ::qt_core::Signal<(::std::os::raw::c_int,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2slicesChanged(int)\0"),
)
}
}
/// <p>Holds the inner radius of the torus.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QTorusMesh::minorRadiusChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qtorusmesh.html#minorRadius-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the inner radius of the torus.</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>minorRadius</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setMinorRadius</b></span>(float <i>minorRadius</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>minorRadiusChanged</b></span>(float <i>minorRadius</i>)</td></tr>
/// </tbody></table></div></div>
pub fn minor_radius_changed(&self) -> ::qt_core::Signal<(::std::os::raw::c_float,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2minorRadiusChanged(float)\0"),
)
}
}
/// Calls C++ function: <span style='color: green;'>```virtual const QMetaObject* Qt3DExtras::QTorusMesh::metaObject() const```</span>.
pub unsafe fn meta_object(&self) -> ::cpp_core::Ptr<::qt_core::QMetaObject> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QTorusMesh_metaObject(
self as *const crate::QTorusMesh,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// <p>Holds the inner radius of the torus.</p>
///
/// Calls C++ function: <span style='color: green;'>```float Qt3DExtras::QTorusMesh::minorRadius() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qtorusmesh.html#minorRadius-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the inner radius of the torus.</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>minorRadius</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setMinorRadius</b></span>(float <i>minorRadius</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>minorRadiusChanged</b></span>(float <i>minorRadius</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn minor_radius(&self) -> ::std::os::raw::c_float {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QTorusMesh_minorRadius(
self as *const crate::QTorusMesh,
)
}
/// <p>Default constructs an instance of QTorusMesh.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DExtras::QTorusMesh::QTorusMesh(Qt3DCore::QNode* parent = …)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qtorusmesh.html#QTorusMesh">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Default constructs an instance of QTorusMesh.</p></div>
pub unsafe fn new_1a(
parent: impl ::cpp_core::CastInto<::cpp_core::MutPtr<::qt_3d_core::QNode>>,
) -> ::cpp_core::CppBox<crate::QTorusMesh> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QTorusMesh_QTorusMesh(
::cpp_core::CastInto::<::cpp_core::MutPtr<::qt_3d_core::QNode>>::cast_into(parent)
.as_mut_raw_ptr(),
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>A toroidal mesh.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DExtras::QTorusMesh::QTorusMesh()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qtorusmesh.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>A toroidal mesh.</p></div>
pub unsafe fn new_0a() -> ::cpp_core::CppBox<crate::QTorusMesh> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QTorusMesh_QTorusMesh1();
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// Calls C++ function: <span style='color: green;'>```virtual int Qt3DExtras::QTorusMesh::qt_metacall(QMetaObject::Call arg1, int arg2, void** arg3)```</span>.
pub unsafe fn qt_metacall(
&mut self,
arg1: ::qt_core::q_meta_object::Call,
arg2: ::std::os::raw::c_int,
arg3: impl ::cpp_core::CastInto<::cpp_core::MutPtr<*mut ::std::ffi::c_void>>,
) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QTorusMesh_qt_metacall(
self as *mut crate::QTorusMesh,
arg1,
arg2,
::cpp_core::CastInto::<::cpp_core::MutPtr<*mut ::std::ffi::c_void>>::cast_into(arg3)
.as_mut_raw_ptr(),
)
}
/// Calls C++ function: <span style='color: green;'>```virtual void* Qt3DExtras::QTorusMesh::qt_metacast(const char* arg1)```</span>.
pub unsafe fn qt_metacast(
&mut self,
arg1: impl ::cpp_core::CastInto<::cpp_core::Ptr<::std::os::raw::c_char>>,
) -> ::cpp_core::MutPtr<::std::ffi::c_void> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QTorusMesh_qt_metacast(
self as *mut crate::QTorusMesh,
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(arg1)
.as_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
/// <p>Holds the outer radius of the torus.</p>
///
/// Calls C++ function: <span style='color: green;'>```float Qt3DExtras::QTorusMesh::radius() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qtorusmesh.html#radius-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the outer radius of the torus.</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>radius</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setRadius</b></span>(float <i>radius</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>radiusChanged</b></span>(float <i>radius</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn radius(&self) -> ::std::os::raw::c_float {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QTorusMesh_radius(
self as *const crate::QTorusMesh,
)
}
/// <p>Holds the number of rings in the mesh.</p>
///
/// Calls C++ function: <span style='color: green;'>```int Qt3DExtras::QTorusMesh::rings() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qtorusmesh.html#rings-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the number of rings in the mesh.</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>rings</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setRings</b></span>(int <i>rings</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>ringsChanged</b></span>(int <i>rings</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn rings(&self) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QTorusMesh_rings(
self as *const crate::QTorusMesh,
)
}
/// <p>Holds the inner radius of the torus.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QTorusMesh::setMinorRadius(float minorRadius)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qtorusmesh.html#minorRadius-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the inner radius of the torus.</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>minorRadius</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setMinorRadius</b></span>(float <i>minorRadius</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>minorRadiusChanged</b></span>(float <i>minorRadius</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_minor_radius(&mut self, minor_radius: ::std::os::raw::c_float) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QTorusMesh_setMinorRadius(
self as *mut crate::QTorusMesh,
minor_radius,
)
}
/// <p>Holds the outer radius of the torus.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QTorusMesh::setRadius(float radius)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qtorusmesh.html#radius-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the outer radius of the torus.</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>radius</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setRadius</b></span>(float <i>radius</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>radiusChanged</b></span>(float <i>radius</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_radius(&mut self, radius: ::std::os::raw::c_float) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QTorusMesh_setRadius(
self as *mut crate::QTorusMesh,
radius,
)
}
/// <p>Holds the number of rings in the mesh.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QTorusMesh::setRings(int rings)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qtorusmesh.html#rings-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the number of rings in the mesh.</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>rings</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setRings</b></span>(int <i>rings</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>ringsChanged</b></span>(int <i>rings</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_rings(&mut self, rings: ::std::os::raw::c_int) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QTorusMesh_setRings(
self as *mut crate::QTorusMesh,
rings,
)
}
/// <p>Holds the number of slices in the mesh.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QTorusMesh::setSlices(int slices)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qtorusmesh.html#slices-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the number of slices in the mesh.</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>slices</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setSlices</b></span>(int <i>slices</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>slicesChanged</b></span>(int <i>slices</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn set_slices(&mut self, slices: ::std::os::raw::c_int) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QTorusMesh_setSlices(
self as *mut crate::QTorusMesh,
slices,
)
}
/// <p>Holds the number of slices in the mesh.</p>
///
/// Calls C++ function: <span style='color: green;'>```int Qt3DExtras::QTorusMesh::slices() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qtorusmesh.html#slices-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the number of slices in the mesh.</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>slices</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setSlices</b></span>(int <i>slices</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>slicesChanged</b></span>(int <i>slices</i>)</td></tr>
/// </tbody></table></div></div>
pub unsafe fn slices(&self) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QTorusMesh_slices(
self as *const crate::QTorusMesh,
)
}
/// Returns a reference to the <span style='color: green;'>```staticMetaObject```</span> field.
pub unsafe fn static_meta_object() -> ::cpp_core::Ref<::qt_core::QMetaObject> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QTorusMesh_staticMetaObject();
::cpp_core::Ref::from_raw(ffi_result).expect("attempted to construct a null Ref")
}
/// Calls C++ function: <span style='color: green;'>```static QString Qt3DExtras::QTorusMesh::tr(const char* s, const char* c, int n)```</span>.
pub unsafe fn tr(
s: impl ::cpp_core::CastInto<::cpp_core::Ptr<::std::os::raw::c_char>>,
c: impl ::cpp_core::CastInto<::cpp_core::Ptr<::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_extras_ffi_Qt3DExtras_QTorusMesh_tr(
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(s)
.as_raw_ptr(),
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(c)
.as_raw_ptr(),
n,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// Calls C++ function: <span style='color: green;'>```static QString Qt3DExtras::QTorusMesh::trUtf8(const char* s, const char* c, int n)```</span>.
pub unsafe fn tr_utf8(
s: impl ::cpp_core::CastInto<::cpp_core::Ptr<::std::os::raw::c_char>>,
c: impl ::cpp_core::CastInto<::cpp_core::Ptr<::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_extras_ffi_Qt3DExtras_QTorusMesh_trUtf8(
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(s)
.as_raw_ptr(),
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(c)
.as_raw_ptr(),
n,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
}
impl ::qt_core::AsReceiver for crate::RawSlotOfQFont {
type Arguments = (*const ::qt_gui::QFont,);
fn as_receiver(&self) -> ::qt_core::Receiver<Self::Arguments> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1custom_slot(const QFont&)\0"),
)
}
}
}
/// Binds a Qt signal with arguments `::cpp_core::Ref<::qt_gui::QFont>` to a Rust closure.
///
/// Corresponding C++ argument types: (<span style='color: green;'>```const QFont&```</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.
pub struct SlotOfQFont<'a> {
raw_slot: ::cpp_core::CppBox<crate::RawSlotOfQFont>,
func: ::std::option::Option<Box<Box<dyn FnMut(::cpp_core::Ref<::qt_gui::QFont>) + 'a>>>,
}
impl<'a> SlotOfQFont<'a> {
/// Constructs a new object.
pub fn new<F: FnMut(::cpp_core::Ref<::qt_gui::QFont>) + 'a>(f: F) -> SlotOfQFont<'a> {
let mut obj = SlotOfQFont::default();
obj.set(f);
obj
}
/// Sets `f` as the callback closure. If `set()` is called again, previous closure is dropped.
pub fn set<F: FnMut(::cpp_core::Ref<::qt_gui::QFont>) + 'a>(&mut self, f: F) {
extern "C" fn callback(data: *mut ::std::ffi::c_void, arg0: *const ::qt_gui::QFont) {
let func =
unsafe { &mut *(data as *mut Box<dyn FnMut(::cpp_core::Ref<::qt_gui::QFont>)>) };
func(unsafe {
::cpp_core::Ref::from_raw(arg0).expect("attempted to construct a null Ref")
});
}
self.clear();
// TODO: avoid second Box
let mut func_box: Box<Box<dyn FnMut(::cpp_core::Ref<::qt_gui::QFont>) + 'a>> =
Box::new(Box::new(f));
unsafe {
self.raw_slot.set(
Some(callback),
::cpp_core::MutPtr::from_raw(
&mut *func_box as *mut Box<_> as *mut ::std::ffi::c_void,
),
);
}
self.func = Some(func_box);
}
/// Drops the previously set closure, if any. After this, slot invocation will have no effect
/// until a new closure is set.
pub fn clear(&mut self) {
if self.func.is_some() {
unsafe {
self.raw_slot.set(None, ::cpp_core::NullPtr);
}
self.func = None;
}
}
pub unsafe fn as_raw(&mut self) -> ::cpp_core::MutRef<crate::RawSlotOfQFont> {
self.raw_slot.as_mut_ref()
}
}
impl<'a> Default for SlotOfQFont<'a> {
fn default() -> Self {
SlotOfQFont {
raw_slot: unsafe { crate::RawSlotOfQFont::new() },
func: None,
}
}
}
impl<'a, 'b: 'a> ::qt_core::AsReceiver for &'b SlotOfQFont<'a> {
type Arguments = <crate::RawSlotOfQFont as ::qt_core::AsReceiver>::Arguments;
fn as_receiver(&self) -> ::qt_core::Receiver<Self::Arguments> {
self.raw_slot.as_receiver()
}
}
/// Binds a Qt signal with arguments `*const ::qt_gui::QFont` to a Rust extern function.
///
/// It's recommended to use `SlotOfQFont` instead because it provides a more high-level API.
///
/// Corresponding C++ argument types: (<span style='color: green;'>```const QFont&```</span>).
///
/// Create an object using `new()` and bind your function and payload using `set()`. The function will receive the payload as its first arguments, and the rest of arguments will be values passed through the Qt connection system. Use `connect()` method of a `qt_core::Signal` object to connect the signal to this slot. The callback function will be executed each time the slot is invoked until source signals are disconnected or the slot object is destroyed.
///
/// If `set()` was not called, slot invocation has no effect.
#[repr(C)]
pub struct RawSlotOfQFont {
_unused: u8,
}
impl RawSlotOfQFont {
/// Calls the slot directly, invoking the assigned handler (if any).
pub unsafe fn custom_slot(
&mut self,
arg0: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_gui::QFont>>,
) {
crate::__ffi::ctr_qt_3d_extras_ffi_ctr_qt_3d_extras_ffi_slot_wrapper_QFont_const_ref_custom_slot(self as *mut crate::RawSlotOfQFont, ::cpp_core::CastInto::<::cpp_core::Ref<::qt_gui::QFont>>::cast_into(arg0).as_raw_ptr())
}
pub unsafe fn meta_object(&self) -> ::cpp_core::Ptr<::qt_core::QMetaObject> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_ctr_qt_3d_extras_ffi_slot_wrapper_QFont_const_ref_metaObject(self as *const crate::RawSlotOfQFont);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Creates a new object.
pub unsafe fn new() -> ::cpp_core::CppBox<crate::RawSlotOfQFont> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_ctr_qt_3d_extras_ffi_slot_wrapper_QFont_const_ref_ctr_qt_3d_extras_ffi_slot_wrapper_QFont_const_ref();
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
pub unsafe fn qt_metacall(
&mut self,
arg1: ::qt_core::q_meta_object::Call,
arg2: ::std::os::raw::c_int,
arg3: impl ::cpp_core::CastInto<::cpp_core::MutPtr<*mut ::std::ffi::c_void>>,
) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_extras_ffi_ctr_qt_3d_extras_ffi_slot_wrapper_QFont_const_ref_qt_metacall(self as *mut crate::RawSlotOfQFont, arg1, arg2, ::cpp_core::CastInto::<::cpp_core::MutPtr<*mut ::std::ffi::c_void>>::cast_into(arg3).as_mut_raw_ptr())
}
pub unsafe fn qt_metacast(
&mut self,
arg1: impl ::cpp_core::CastInto<::cpp_core::Ptr<::std::os::raw::c_char>>,
) -> ::cpp_core::MutPtr<::std::ffi::c_void> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_ctr_qt_3d_extras_ffi_slot_wrapper_QFont_const_ref_qt_metacast(self as *mut crate::RawSlotOfQFont, ::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(arg1).as_raw_ptr());
::cpp_core::MutPtr::from_raw(ffi_result)
}
/// Assigns `func` 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.
pub unsafe fn set(
&mut self,
func: ::std::option::Option<extern "C" fn(*mut ::std::ffi::c_void, *const ::qt_gui::QFont)>,
data: impl ::cpp_core::CastInto<::cpp_core::MutPtr<::std::ffi::c_void>>,
) {
crate::__ffi::ctr_qt_3d_extras_ffi_ctr_qt_3d_extras_ffi_slot_wrapper_QFont_const_ref_set(
self as *mut crate::RawSlotOfQFont,
func,
::cpp_core::CastInto::<::cpp_core::MutPtr<::std::ffi::c_void>>::cast_into(data)
.as_mut_raw_ptr(),
)
}
pub unsafe fn static_meta_object() -> ::cpp_core::Ref<::qt_core::QMetaObject> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_ctr_qt_3d_extras_ffi_slot_wrapper_QFont_const_ref_staticMetaObject();
::cpp_core::Ref::from_raw(ffi_result).expect("attempted to construct a null Ref")
}
pub unsafe fn tr(
s: impl ::cpp_core::CastInto<::cpp_core::Ptr<::std::os::raw::c_char>>,
c: impl ::cpp_core::CastInto<::cpp_core::Ptr<::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_extras_ffi_ctr_qt_3d_extras_ffi_slot_wrapper_QFont_const_ref_tr(
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(s)
.as_raw_ptr(),
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(c)
.as_raw_ptr(),
n,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
pub unsafe fn tr_utf8(
s: impl ::cpp_core::CastInto<::cpp_core::Ptr<::std::os::raw::c_char>>,
c: impl ::cpp_core::CastInto<::cpp_core::Ptr<::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_extras_ffi_ctr_qt_3d_extras_ffi_slot_wrapper_QFont_const_ref_trUtf8(::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(s).as_raw_ptr(), ::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(c).as_raw_ptr(), n);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
}
pub mod q_abstract_camera_controller {
//! C++ type: <span style='color: green;'>```Qt3DExtras::QAbstractCameraController```</span>
/// C++ class: <span style='color: green;'>```Qt3DExtras::QAbstractCameraController::InputState```</span>.
#[repr(C)]
pub struct InputState {
_unused: u8,
}
impl InputState {
/// Returns the value of the <span style='color: green;'>```altKeyActive```</span> field.
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn alt_key_active(&self) -> bool {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QAbstractCameraController_InputState_altKeyActive(self as *const crate::q_abstract_camera_controller::InputState)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QAbstractCameraController::InputState& Qt3DExtras::QAbstractCameraController::InputState::operator=(const Qt3DExtras::QAbstractCameraController::InputState& other)```</span>.
///
///
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn copy_from(
&mut self,
other: impl ::cpp_core::CastInto<
::cpp_core::Ref<crate::q_abstract_camera_controller::InputState>,
>,
) -> ::cpp_core::MutRef<crate::q_abstract_camera_controller::InputState> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QAbstractCameraController_InputState_operator_(self as *mut crate::q_abstract_camera_controller::InputState, ::cpp_core::CastInto::<::cpp_core::Ref<crate::q_abstract_camera_controller::InputState>>::cast_into(other).as_raw_ptr());
::cpp_core::MutRef::from_raw(ffi_result).expect("attempted to construct a null Ref")
}
/// Returns the value of the <span style='color: green;'>```leftMouseButtonActive```</span> field.
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn left_mouse_button_active(&self) -> bool {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QAbstractCameraController_InputState_leftMouseButtonActive(self as *const crate::q_abstract_camera_controller::InputState)
}
/// Returns the value of the <span style='color: green;'>```middleMouseButtonActive```</span> field.
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn middle_mouse_button_active(&self) -> bool {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QAbstractCameraController_InputState_middleMouseButtonActive(self as *const crate::q_abstract_camera_controller::InputState)
}
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DExtras::QAbstractCameraController::InputState::InputState()```</span>.
///
///
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn new() -> ::cpp_core::CppBox<crate::q_abstract_camera_controller::InputState> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QAbstractCameraController_InputState_InputState();
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DExtras::QAbstractCameraController::InputState::InputState(const Qt3DExtras::QAbstractCameraController::InputState& other)```</span>.
///
///
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn new_copy(
other: impl ::cpp_core::CastInto<
::cpp_core::Ref<crate::q_abstract_camera_controller::InputState>,
>,
) -> ::cpp_core::CppBox<crate::q_abstract_camera_controller::InputState> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QAbstractCameraController_InputState_InputState1(::cpp_core::CastInto::<::cpp_core::Ref<crate::q_abstract_camera_controller::InputState>>::cast_into(other).as_raw_ptr());
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// Returns the value of the <span style='color: green;'>```rightMouseButtonActive```</span> field.
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn right_mouse_button_active(&self) -> bool {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QAbstractCameraController_InputState_rightMouseButtonActive(self as *const crate::q_abstract_camera_controller::InputState)
}
/// Returns the value of the <span style='color: green;'>```rxAxisValue```</span> field.
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn rx_axis_value(&self) -> ::std::os::raw::c_float {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QAbstractCameraController_InputState_rxAxisValue(self as *const crate::q_abstract_camera_controller::InputState)
}
/// Returns the value of the <span style='color: green;'>```ryAxisValue```</span> field.
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn ry_axis_value(&self) -> ::std::os::raw::c_float {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QAbstractCameraController_InputState_ryAxisValue(self as *const crate::q_abstract_camera_controller::InputState)
}
/// Sets the value of the <span style='color: green;'>```altKeyActive```</span> field.
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn set_alt_key_active(&mut self, value: bool) {
crate::__ffi::ctr_qt_3d_extras_ffi_set_Qt3DExtras_QAbstractCameraController_InputState_altKeyActive(self as *mut crate::q_abstract_camera_controller::InputState, value)
}
/// Sets the value of the <span style='color: green;'>```leftMouseButtonActive```</span> field.
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn set_left_mouse_button_active(&mut self, value: bool) {
crate::__ffi::ctr_qt_3d_extras_ffi_set_Qt3DExtras_QAbstractCameraController_InputState_leftMouseButtonActive(self as *mut crate::q_abstract_camera_controller::InputState, value)
}
/// Sets the value of the <span style='color: green;'>```middleMouseButtonActive```</span> field.
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn set_middle_mouse_button_active(&mut self, value: bool) {
crate::__ffi::ctr_qt_3d_extras_ffi_set_Qt3DExtras_QAbstractCameraController_InputState_middleMouseButtonActive(self as *mut crate::q_abstract_camera_controller::InputState, value)
}
/// Sets the value of the <span style='color: green;'>```rightMouseButtonActive```</span> field.
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn set_right_mouse_button_active(&mut self, value: bool) {
crate::__ffi::ctr_qt_3d_extras_ffi_set_Qt3DExtras_QAbstractCameraController_InputState_rightMouseButtonActive(self as *mut crate::q_abstract_camera_controller::InputState, value)
}
/// Sets the value of the <span style='color: green;'>```rxAxisValue```</span> field.
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn set_rx_axis_value(&mut self, value: ::std::os::raw::c_float) {
crate::__ffi::ctr_qt_3d_extras_ffi_set_Qt3DExtras_QAbstractCameraController_InputState_rxAxisValue(self as *mut crate::q_abstract_camera_controller::InputState, value)
}
/// Sets the value of the <span style='color: green;'>```ryAxisValue```</span> field.
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn set_ry_axis_value(&mut self, value: ::std::os::raw::c_float) {
crate::__ffi::ctr_qt_3d_extras_ffi_set_Qt3DExtras_QAbstractCameraController_InputState_ryAxisValue(self as *mut crate::q_abstract_camera_controller::InputState, value)
}
/// Sets the value of the <span style='color: green;'>```shiftKeyActive```</span> field.
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn set_shift_key_active(&mut self, value: bool) {
crate::__ffi::ctr_qt_3d_extras_ffi_set_Qt3DExtras_QAbstractCameraController_InputState_shiftKeyActive(self as *mut crate::q_abstract_camera_controller::InputState, value)
}
/// Sets the value of the <span style='color: green;'>```txAxisValue```</span> field.
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn set_tx_axis_value(&mut self, value: ::std::os::raw::c_float) {
crate::__ffi::ctr_qt_3d_extras_ffi_set_Qt3DExtras_QAbstractCameraController_InputState_txAxisValue(self as *mut crate::q_abstract_camera_controller::InputState, value)
}
/// Sets the value of the <span style='color: green;'>```tyAxisValue```</span> field.
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn set_ty_axis_value(&mut self, value: ::std::os::raw::c_float) {
crate::__ffi::ctr_qt_3d_extras_ffi_set_Qt3DExtras_QAbstractCameraController_InputState_tyAxisValue(self as *mut crate::q_abstract_camera_controller::InputState, value)
}
/// Sets the value of the <span style='color: green;'>```tzAxisValue```</span> field.
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn set_tz_axis_value(&mut self, value: ::std::os::raw::c_float) {
crate::__ffi::ctr_qt_3d_extras_ffi_set_Qt3DExtras_QAbstractCameraController_InputState_tzAxisValue(self as *mut crate::q_abstract_camera_controller::InputState, value)
}
/// Returns the value of the <span style='color: green;'>```shiftKeyActive```</span> field.
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn shift_key_active(&self) -> bool {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QAbstractCameraController_InputState_shiftKeyActive(self as *const crate::q_abstract_camera_controller::InputState)
}
/// Returns the value of the <span style='color: green;'>```txAxisValue```</span> field.
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn tx_axis_value(&self) -> ::std::os::raw::c_float {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QAbstractCameraController_InputState_txAxisValue(self as *const crate::q_abstract_camera_controller::InputState)
}
/// Returns the value of the <span style='color: green;'>```tyAxisValue```</span> field.
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn ty_axis_value(&self) -> ::std::os::raw::c_float {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QAbstractCameraController_InputState_tyAxisValue(self as *const crate::q_abstract_camera_controller::InputState)
}
/// Returns the value of the <span style='color: green;'>```tzAxisValue```</span> field.
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn tz_axis_value(&self) -> ::std::os::raw::c_float {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QAbstractCameraController_InputState_tzAxisValue(self as *const crate::q_abstract_camera_controller::InputState)
}
}
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::CppDeletable for crate::q_abstract_camera_controller::InputState {
/// Calls C++ function: <span style='color: green;'>```[destructor] void Qt3DExtras::QAbstractCameraController::InputState::~InputState()```</span>.
unsafe fn delete(&mut self) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QAbstractCameraController_InputState_dInputState(self as *mut crate::q_abstract_camera_controller::InputState)
}
}
}
/// <p>The <a href="http://doc.qt.io/qt-5/qt3dextras-qabstractcameracontroller.html">QAbstractCameraController</a> class provides basic functionality for camera controllers.</p>
///
/// C++ class: <span style='color: green;'>```Qt3DExtras::QAbstractCameraController```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qabstractcameracontroller.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>The <a href="http://doc.qt.io/qt-5/qt3dextras-qabstractcameracontroller.html">QAbstractCameraController</a> class provides basic functionality for camera controllers.</p>
/// <p><a href="http://doc.qt.io/qt-5/qt3dextras-qabstractcameracontroller.html">QAbstractCameraController</a> sets up and handles input from keyboard, mouse, and other devices. <a href="http://doc.qt.io/qt-5/qt3dextras-qabstractcameracontroller.html">QAbstractCameraController</a> is an abstract class and cannot itself be instantiated. It provides a standard interface for camera controllers.</p>
/// <p>Derived classes need only implement the frameActionTriggered() method to move the camera.</p></div>
#[repr(C)]
pub struct QAbstractCameraController {
_unused: u8,
}
impl QAbstractCameraController {
/// <p>Holds the currently controlled camera.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QAbstractCameraController::cameraChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qabstractcameracontroller.html#camera-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the currently controlled camera.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DRender::QCamera *</td><td class="memItemRight bottomAlign"><span class="name"><b>camera</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setCamera</b></span>(Qt3DRender::QCamera *<i>camera</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>cameraChanged</b></span>()</td></tr>
/// </tbody></table></div></div>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub fn camera_changed(&self) -> ::qt_core::Signal<()> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2cameraChanged()\0"),
)
}
}
/// <p>Holds the current linear speed of the camera controller. Linear speed determines the movement speed of the camera.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QAbstractCameraController::linearSpeedChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qabstractcameracontroller.html#linearSpeed-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current linear speed of the camera controller. Linear speed determines the movement speed of the camera.</p>
/// <p>The default is <code>10.0</code>.</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>linearSpeed</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setLinearSpeed</b></span>(float <i>linearSpeed</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>linearSpeedChanged</b></span>()</td></tr>
/// </tbody></table></div></div>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub fn linear_speed_changed(&self) -> ::qt_core::Signal<()> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2linearSpeedChanged()\0"),
)
}
}
/// <p>Holds the current look speed of the camera controller. The look speed determines the turn rate of the camera pan and tilt.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QAbstractCameraController::lookSpeedChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qabstractcameracontroller.html#lookSpeed-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current look speed of the camera controller. The look speed determines the turn rate of the camera pan and tilt.</p>
/// <p>The default is <code>180.0</code>.</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>lookSpeed</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setLookSpeed</b></span>(float <i>lookSpeed</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>lookSpeedChanged</b></span>()</td></tr>
/// </tbody></table></div></div>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub fn look_speed_changed(&self) -> ::qt_core::Signal<()> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2lookSpeedChanged()\0"),
)
}
}
/// <p>Holds the current acceleration of the camera controller.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QAbstractCameraController::accelerationChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qabstractcameracontroller.html#acceleration-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current acceleration of the camera controller.</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>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub fn acceleration_changed(&self) -> ::qt_core::Signal<(::std::os::raw::c_float,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2accelerationChanged(float)\0"),
)
}
}
/// <p>Holds the current deceleration of the camera controller.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QAbstractCameraController::decelerationChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qabstractcameracontroller.html#deceleration-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current deceleration of the camera controller.</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>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub fn deceleration_changed(&self) -> ::qt_core::Signal<(::std::os::raw::c_float,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2decelerationChanged(float)\0"),
)
}
}
/// <p>Holds the current acceleration of the camera controller.</p>
///
/// Calls C++ function: <span style='color: green;'>```float Qt3DExtras::QAbstractCameraController::acceleration() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qabstractcameracontroller.html#acceleration-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current acceleration of the camera controller.</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>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn acceleration(&self) -> ::std::os::raw::c_float {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QAbstractCameraController_acceleration(
self as *const crate::QAbstractCameraController,
)
}
/// <p>Holds the currently controlled camera.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QCamera* Qt3DExtras::QAbstractCameraController::camera() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qabstractcameracontroller.html#camera-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the currently controlled camera.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DRender::QCamera *</td><td class="memItemRight bottomAlign"><span class="name"><b>camera</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setCamera</b></span>(Qt3DRender::QCamera *<i>camera</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>cameraChanged</b></span>()</td></tr>
/// </tbody></table></div></div>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn camera(&self) -> ::cpp_core::MutPtr<::qt_3d_render::QCamera> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QAbstractCameraController_camera(
self as *const crate::QAbstractCameraController,
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
/// <p>Holds the current deceleration of the camera controller.</p>
///
/// Calls C++ function: <span style='color: green;'>```float Qt3DExtras::QAbstractCameraController::deceleration() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qabstractcameracontroller.html#deceleration-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current deceleration of the camera controller.</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>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn deceleration(&self) -> ::std::os::raw::c_float {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QAbstractCameraController_deceleration(
self as *const crate::QAbstractCameraController,
)
}
/// <p>Holds the current linear speed of the camera controller. Linear speed determines the movement speed of the camera.</p>
///
/// Calls C++ function: <span style='color: green;'>```float Qt3DExtras::QAbstractCameraController::linearSpeed() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qabstractcameracontroller.html#linearSpeed-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current linear speed of the camera controller. Linear speed determines the movement speed of the camera.</p>
/// <p>The default is <code>10.0</code>.</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>linearSpeed</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setLinearSpeed</b></span>(float <i>linearSpeed</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>linearSpeedChanged</b></span>()</td></tr>
/// </tbody></table></div></div>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn linear_speed(&self) -> ::std::os::raw::c_float {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QAbstractCameraController_linearSpeed(
self as *const crate::QAbstractCameraController,
)
}
/// <p>Holds the current look speed of the camera controller. The look speed determines the turn rate of the camera pan and tilt.</p>
///
/// Calls C++ function: <span style='color: green;'>```float Qt3DExtras::QAbstractCameraController::lookSpeed() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qabstractcameracontroller.html#lookSpeed-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current look speed of the camera controller. The look speed determines the turn rate of the camera pan and tilt.</p>
/// <p>The default is <code>180.0</code>.</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>lookSpeed</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setLookSpeed</b></span>(float <i>lookSpeed</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>lookSpeedChanged</b></span>()</td></tr>
/// </tbody></table></div></div>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn look_speed(&self) -> ::std::os::raw::c_float {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QAbstractCameraController_lookSpeed(
self as *const crate::QAbstractCameraController,
)
}
/// Calls C++ function: <span style='color: green;'>```virtual const QMetaObject* Qt3DExtras::QAbstractCameraController::metaObject() const```</span>.
///
///
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn meta_object(&self) -> ::cpp_core::Ptr<::qt_core::QMetaObject> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QAbstractCameraController_metaObject(
self as *const crate::QAbstractCameraController,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```virtual int Qt3DExtras::QAbstractCameraController::qt_metacall(QMetaObject::Call arg1, int arg2, void** arg3)```</span>.
///
///
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn qt_metacall(
&mut self,
arg1: ::qt_core::q_meta_object::Call,
arg2: ::std::os::raw::c_int,
arg3: impl ::cpp_core::CastInto<::cpp_core::MutPtr<*mut ::std::ffi::c_void>>,
) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QAbstractCameraController_qt_metacall(
self as *mut crate::QAbstractCameraController,
arg1,
arg2,
::cpp_core::CastInto::<::cpp_core::MutPtr<*mut ::std::ffi::c_void>>::cast_into(arg3)
.as_mut_raw_ptr(),
)
}
/// Calls C++ function: <span style='color: green;'>```virtual void* Qt3DExtras::QAbstractCameraController::qt_metacast(const char* arg1)```</span>.
///
///
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn qt_metacast(
&mut self,
arg1: impl ::cpp_core::CastInto<::cpp_core::Ptr<::std::os::raw::c_char>>,
) -> ::cpp_core::MutPtr<::std::ffi::c_void> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QAbstractCameraController_qt_metacast(
self as *mut crate::QAbstractCameraController,
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(arg1)
.as_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
/// <p>Holds the current acceleration of the camera controller.</p>
///
/// Calls C++ function: <span style='color: green;'>```void Qt3DExtras::QAbstractCameraController::setAcceleration(float acceleration)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qabstractcameracontroller.html#acceleration-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current acceleration of the camera controller.</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>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn set_acceleration(&mut self, acceleration: ::std::os::raw::c_float) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QAbstractCameraController_setAcceleration(
self as *mut crate::QAbstractCameraController,
acceleration,
)
}
/// <p>Holds the currently controlled camera.</p>
///
/// Calls C++ function: <span style='color: green;'>```void Qt3DExtras::QAbstractCameraController::setCamera(Qt3DRender::QCamera* camera)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qabstractcameracontroller.html#camera-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the currently controlled camera.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DRender::QCamera *</td><td class="memItemRight bottomAlign"><span class="name"><b>camera</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setCamera</b></span>(Qt3DRender::QCamera *<i>camera</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>cameraChanged</b></span>()</td></tr>
/// </tbody></table></div></div>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn set_camera(
&mut self,
camera: impl ::cpp_core::CastInto<::cpp_core::MutPtr<::qt_3d_render::QCamera>>,
) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QAbstractCameraController_setCamera(
self as *mut crate::QAbstractCameraController,
::cpp_core::CastInto::<::cpp_core::MutPtr<::qt_3d_render::QCamera>>::cast_into(camera)
.as_mut_raw_ptr(),
)
}
/// <p>Holds the current deceleration of the camera controller.</p>
///
/// Calls C++ function: <span style='color: green;'>```void Qt3DExtras::QAbstractCameraController::setDeceleration(float deceleration)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qabstractcameracontroller.html#deceleration-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current deceleration of the camera controller.</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>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn set_deceleration(&mut self, deceleration: ::std::os::raw::c_float) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QAbstractCameraController_setDeceleration(
self as *mut crate::QAbstractCameraController,
deceleration,
)
}
/// <p>Holds the current linear speed of the camera controller. Linear speed determines the movement speed of the camera.</p>
///
/// Calls C++ function: <span style='color: green;'>```void Qt3DExtras::QAbstractCameraController::setLinearSpeed(float linearSpeed)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qabstractcameracontroller.html#linearSpeed-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current linear speed of the camera controller. Linear speed determines the movement speed of the camera.</p>
/// <p>The default is <code>10.0</code>.</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>linearSpeed</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setLinearSpeed</b></span>(float <i>linearSpeed</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>linearSpeedChanged</b></span>()</td></tr>
/// </tbody></table></div></div>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn set_linear_speed(&mut self, linear_speed: ::std::os::raw::c_float) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QAbstractCameraController_setLinearSpeed(
self as *mut crate::QAbstractCameraController,
linear_speed,
)
}
/// <p>Holds the current look speed of the camera controller. The look speed determines the turn rate of the camera pan and tilt.</p>
///
/// Calls C++ function: <span style='color: green;'>```void Qt3DExtras::QAbstractCameraController::setLookSpeed(float lookSpeed)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qabstractcameracontroller.html#lookSpeed-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current look speed of the camera controller. The look speed determines the turn rate of the camera pan and tilt.</p>
/// <p>The default is <code>180.0</code>.</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>lookSpeed</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setLookSpeed</b></span>(float <i>lookSpeed</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>lookSpeedChanged</b></span>()</td></tr>
/// </tbody></table></div></div>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn set_look_speed(&mut self, look_speed: ::std::os::raw::c_float) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QAbstractCameraController_setLookSpeed(
self as *mut crate::QAbstractCameraController,
look_speed,
)
}
/// Returns a reference to the <span style='color: green;'>```staticMetaObject```</span> field.
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn static_meta_object() -> ::cpp_core::Ref<::qt_core::QMetaObject> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QAbstractCameraController_staticMetaObject();
::cpp_core::Ref::from_raw(ffi_result).expect("attempted to construct a null Ref")
}
/// Calls C++ function: <span style='color: green;'>```static QString Qt3DExtras::QAbstractCameraController::tr(const char* s, const char* c, int n)```</span>.
///
///
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn tr(
s: impl ::cpp_core::CastInto<::cpp_core::Ptr<::std::os::raw::c_char>>,
c: impl ::cpp_core::CastInto<::cpp_core::Ptr<::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_extras_ffi_Qt3DExtras_QAbstractCameraController_tr(
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(s)
.as_raw_ptr(),
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(c)
.as_raw_ptr(),
n,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// Calls C++ function: <span style='color: green;'>```static QString Qt3DExtras::QAbstractCameraController::trUtf8(const char* s, const char* c, int n)```</span>.
///
///
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn tr_utf8(
s: impl ::cpp_core::CastInto<::cpp_core::Ptr<::std::os::raw::c_char>>,
c: impl ::cpp_core::CastInto<::cpp_core::Ptr<::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_extras_ffi_Qt3DExtras_QAbstractCameraController_trUtf8(
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(s)
.as_raw_ptr(),
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(c)
.as_raw_ptr(),
n,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
}
/// C++ class: <span style='color: green;'>```Qt3DExtras::QAbstractSpriteSheet```</span>.
#[repr(C)]
pub struct QAbstractSpriteSheet {
_unused: u8,
}
impl QAbstractSpriteSheet {
/// <p>Holds the current texture used by the material.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QAbstractSpriteSheet::setTexture` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qabstractspritesheet.html#texture-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current texture used by the material.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DRender::QAbstractTexture *</td><td class="memItemRight bottomAlign"><span class="name"><b>texture</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setTexture</b></span>(Qt3DRender::QAbstractTexture *<i>texture</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>textureChanged</b></span>(Qt3DRender::QAbstractTexture *<i>texture</i>)</td></tr>
/// </tbody></table></div></div>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub fn slot_set_texture(
&self,
) -> ::qt_core::Receiver<(*mut ::qt_3d_render::QAbstractTexture,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"1setTexture(Qt3DRender::QAbstractTexture*)\0",
),
)
}
}
/// <p><b>Access functions:</b></p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QAbstractSpriteSheet::setCurrentIndex` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qabstractspritesheet.html#currentIndex-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"> int </td><td class="memItemRight bottomAlign"><span class="name"><b>currentIndex</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setCurrentIndex</b></span>(int <i>currentIndex</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>currentIndexChanged</b></span>(int <i>currentIndex</i>)</td></tr>
/// </tbody></table></div></div>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub fn slot_set_current_index(&self) -> ::qt_core::Receiver<(::std::os::raw::c_int,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setCurrentIndex(int)\0"),
)
}
}
/// <p>Holds the current texture used by the material.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QAbstractSpriteSheet::textureChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qabstractspritesheet.html#texture-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current texture used by the material.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DRender::QAbstractTexture *</td><td class="memItemRight bottomAlign"><span class="name"><b>texture</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setTexture</b></span>(Qt3DRender::QAbstractTexture *<i>texture</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>textureChanged</b></span>(Qt3DRender::QAbstractTexture *<i>texture</i>)</td></tr>
/// </tbody></table></div></div>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub fn texture_changed(&self) -> ::qt_core::Signal<(*mut ::qt_3d_render::QAbstractTexture,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"2textureChanged(Qt3DRender::QAbstractTexture*)\0",
),
)
}
}
/// <p><b>Access functions:</b></p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QAbstractSpriteSheet::currentIndexChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qabstractspritesheet.html#currentIndex-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"> int </td><td class="memItemRight bottomAlign"><span class="name"><b>currentIndex</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setCurrentIndex</b></span>(int <i>currentIndex</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>currentIndexChanged</b></span>(int <i>currentIndex</i>)</td></tr>
/// </tbody></table></div></div>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub fn current_index_changed(&self) -> ::qt_core::Signal<(::std::os::raw::c_int,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2currentIndexChanged(int)\0"),
)
}
}
/// <p><b>Access functions:</b></p>
///
/// Calls C++ function: <span style='color: green;'>```int Qt3DExtras::QAbstractSpriteSheet::currentIndex() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qabstractspritesheet.html#currentIndex-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"> int </td><td class="memItemRight bottomAlign"><span class="name"><b>currentIndex</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setCurrentIndex</b></span>(int <i>currentIndex</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>currentIndexChanged</b></span>(int <i>currentIndex</i>)</td></tr>
/// </tbody></table></div></div>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn current_index(&self) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QAbstractSpriteSheet_currentIndex(
self as *const crate::QAbstractSpriteSheet,
)
}
/// Calls C++ function: <span style='color: green;'>```virtual const QMetaObject* Qt3DExtras::QAbstractSpriteSheet::metaObject() const```</span>.
///
///
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn meta_object(&self) -> ::cpp_core::Ptr<::qt_core::QMetaObject> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QAbstractSpriteSheet_metaObject(
self as *const crate::QAbstractSpriteSheet,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```virtual int Qt3DExtras::QAbstractSpriteSheet::qt_metacall(QMetaObject::Call arg1, int arg2, void** arg3)```</span>.
///
///
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn qt_metacall(
&mut self,
arg1: ::qt_core::q_meta_object::Call,
arg2: ::std::os::raw::c_int,
arg3: impl ::cpp_core::CastInto<::cpp_core::MutPtr<*mut ::std::ffi::c_void>>,
) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QAbstractSpriteSheet_qt_metacall(
self as *mut crate::QAbstractSpriteSheet,
arg1,
arg2,
::cpp_core::CastInto::<::cpp_core::MutPtr<*mut ::std::ffi::c_void>>::cast_into(arg3)
.as_mut_raw_ptr(),
)
}
/// Calls C++ function: <span style='color: green;'>```virtual void* Qt3DExtras::QAbstractSpriteSheet::qt_metacast(const char* arg1)```</span>.
///
///
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn qt_metacast(
&mut self,
arg1: impl ::cpp_core::CastInto<::cpp_core::Ptr<::std::os::raw::c_char>>,
) -> ::cpp_core::MutPtr<::std::ffi::c_void> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QAbstractSpriteSheet_qt_metacast(
self as *mut crate::QAbstractSpriteSheet,
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(arg1)
.as_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
/// <p><b>Access functions:</b></p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QAbstractSpriteSheet::setCurrentIndex(int currentIndex)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qabstractspritesheet.html#currentIndex-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"> int </td><td class="memItemRight bottomAlign"><span class="name"><b>currentIndex</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setCurrentIndex</b></span>(int <i>currentIndex</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>currentIndexChanged</b></span>(int <i>currentIndex</i>)</td></tr>
/// </tbody></table></div></div>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn set_current_index(&mut self, current_index: ::std::os::raw::c_int) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QAbstractSpriteSheet_setCurrentIndex(
self as *mut crate::QAbstractSpriteSheet,
current_index,
)
}
/// <p>Holds the current texture used by the material.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QAbstractSpriteSheet::setTexture(Qt3DRender::QAbstractTexture* texture)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qabstractspritesheet.html#texture-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current texture used by the material.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DRender::QAbstractTexture *</td><td class="memItemRight bottomAlign"><span class="name"><b>texture</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setTexture</b></span>(Qt3DRender::QAbstractTexture *<i>texture</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>textureChanged</b></span>(Qt3DRender::QAbstractTexture *<i>texture</i>)</td></tr>
/// </tbody></table></div></div>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn set_texture(
&mut self,
texture: impl ::cpp_core::CastInto<::cpp_core::MutPtr<::qt_3d_render::QAbstractTexture>>,
) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QAbstractSpriteSheet_setTexture(self as *mut crate::QAbstractSpriteSheet, ::cpp_core::CastInto::<::cpp_core::MutPtr<::qt_3d_render::QAbstractTexture>>::cast_into(texture).as_mut_raw_ptr())
}
/// Returns a reference to the <span style='color: green;'>```staticMetaObject```</span> field.
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn static_meta_object() -> ::cpp_core::Ref<::qt_core::QMetaObject> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QAbstractSpriteSheet_staticMetaObject();
::cpp_core::Ref::from_raw(ffi_result).expect("attempted to construct a null Ref")
}
/// <p>Holds the current texture used by the material.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QAbstractTexture* Qt3DExtras::QAbstractSpriteSheet::texture() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qabstractspritesheet.html#texture-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current texture used by the material.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt3DRender::QAbstractTexture *</td><td class="memItemRight bottomAlign"><span class="name"><b>texture</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setTexture</b></span>(Qt3DRender::QAbstractTexture *<i>texture</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>textureChanged</b></span>(Qt3DRender::QAbstractTexture *<i>texture</i>)</td></tr>
/// </tbody></table></div></div>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn texture(&self) -> ::cpp_core::MutPtr<::qt_3d_render::QAbstractTexture> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QAbstractSpriteSheet_texture(
self as *const crate::QAbstractSpriteSheet,
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```static QString Qt3DExtras::QAbstractSpriteSheet::tr(const char* s, const char* c, int n)```</span>.
///
///
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn tr(
s: impl ::cpp_core::CastInto<::cpp_core::Ptr<::std::os::raw::c_char>>,
c: impl ::cpp_core::CastInto<::cpp_core::Ptr<::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_extras_ffi_Qt3DExtras_QAbstractSpriteSheet_tr(
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(s)
.as_raw_ptr(),
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(c)
.as_raw_ptr(),
n,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// Calls C++ function: <span style='color: green;'>```static QString Qt3DExtras::QAbstractSpriteSheet::trUtf8(const char* s, const char* c, int n)```</span>.
///
///
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn tr_utf8(
s: impl ::cpp_core::CastInto<::cpp_core::Ptr<::std::os::raw::c_char>>,
c: impl ::cpp_core::CastInto<::cpp_core::Ptr<::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_extras_ffi_Qt3DExtras_QAbstractSpriteSheet_trUtf8(
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(s)
.as_raw_ptr(),
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(c)
.as_raw_ptr(),
n,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
}
/// <p>The <a href="http://doc.qt.io/qt-5/qt3dextras-qdiffusespecularmaterial.html">QDiffuseSpecularMaterial</a> class provides a default implementation of the phong lighting effect.</p>
///
/// C++ class: <span style='color: green;'>```Qt3DExtras::QDiffuseSpecularMaterial```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qdiffusespecularmaterial.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>The <a href="http://doc.qt.io/qt-5/qt3dextras-qdiffusespecularmaterial.html">QDiffuseSpecularMaterial</a> class provides a default implementation of the phong lighting effect.</p>
/// <p>The phong lighting effect is based on the combination of 3 lighting components ambient, diffuse and specular. The relative strengths of these components are controlled by means of their reflectivity coefficients which are modelled as RGB triplets:</p>
/// <ul>
/// <li>Ambient is the color that is emitted by an object without any other light source.</li>
/// <li>Diffuse is the color that is emitted for rought surface reflections with the lights.</li>
/// <li>Specular is the color emitted for shiny surface reflections with the lights.</li>
/// <li>The shininess of a surface is controlled by a float property.</li>
/// </ul>
/// <p>This material uses an effect with a single render pass approach and performs per fragment lighting. Techniques are provided for OpenGL 2, OpenGL 3 or above as well as OpenGL ES 2.</p></div>
#[repr(C)]
pub struct QDiffuseSpecularMaterial {
_unused: u8,
}
impl QDiffuseSpecularMaterial {
/// <p>Holds the ambient color.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QDiffuseSpecularMaterial::setAmbient` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qdiffusespecularmaterial.html#ambient-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the ambient color.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QColor </td><td class="memItemRight bottomAlign"><span class="name"><b>ambient</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setAmbient</b></span>(const QColor &<i>ambient</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>ambientChanged</b></span>(const QColor &<i>ambient</i>)</td></tr>
/// </tbody></table></div></div>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub fn slot_set_ambient(&self) -> ::qt_core::Receiver<(*const ::qt_gui::QColor,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setAmbient(const QColor&)\0"),
)
}
}
/// <p>Holds the diffuse color of the material. This can be either a plain color value or a texture.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QDiffuseSpecularMaterial::setDiffuse` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qdiffusespecularmaterial.html#diffuse-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the diffuse color of the material. This can be either a plain color value or a texture.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QVariant </td><td class="memItemRight bottomAlign"><span class="name"><b>diffuse</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setDiffuse</b></span>(const QVariant &<i>diffuse</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>diffuseChanged</b></span>(const QVariant &<i>diffuse</i>)</td></tr>
/// </tbody></table></div></div>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub fn slot_set_diffuse(&self) -> ::qt_core::Receiver<(*const ::qt_core::QVariant,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setDiffuse(const QVariant&)\0"),
)
}
}
/// <p>Holds the specular color of the material. This can be either a plain color value or a texture.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QDiffuseSpecularMaterial::setSpecular` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qdiffusespecularmaterial.html#specular-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the specular color of the material. This can be either a plain color value or a texture.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QVariant </td><td class="memItemRight bottomAlign"><span class="name"><b>specular</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setSpecular</b></span>(const QVariant &<i>specular</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>specularChanged</b></span>(const QVariant &<i>specular</i>)</td></tr>
/// </tbody></table></div></div>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub fn slot_set_specular(&self) -> ::qt_core::Receiver<(*const ::qt_core::QVariant,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setSpecular(const QVariant&)\0"),
)
}
}
/// <p>Holds the shininess exponent.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QDiffuseSpecularMaterial::setShininess` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qdiffusespecularmaterial.html#shininess-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the shininess exponent.</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>shininess</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setShininess</b></span>(float <i>shininess</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>shininessChanged</b></span>(float <i>shininess</i>)</td></tr>
/// </tbody></table></div></div>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub fn slot_set_shininess(&self) -> ::qt_core::Receiver<(::std::os::raw::c_float,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setShininess(float)\0"),
)
}
}
/// <p>Holds the current normal map texture of the material. This can only be a texture, otherwise it is ignored. By default this map is not set.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QDiffuseSpecularMaterial::setNormal` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qdiffusespecularmaterial.html#normal-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current normal map texture of the material. This can only be a texture, otherwise it is ignored. By default this map is not set.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QVariant </td><td class="memItemRight bottomAlign"><span class="name"><b>normal</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setNormal</b></span>(const QVariant &<i>normal</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>normalChanged</b></span>(const QVariant &<i>normal</i>)</td></tr>
/// </tbody></table></div></div>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub fn slot_set_normal(&self) -> ::qt_core::Receiver<(*const ::qt_core::QVariant,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setNormal(const QVariant&)\0"),
)
}
}
/// <p>Holds the current texture scale. It is applied as a multiplier to texture coordinates at render time. Defaults to 1.0.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QDiffuseSpecularMaterial::setTextureScale` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qdiffusespecularmaterial.html#textureScale-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current texture scale. It is applied as a multiplier to texture coordinates at render time. Defaults to 1.0.</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>textureScale</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setTextureScale</b></span>(float <i>textureScale</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>textureScaleChanged</b></span>(float <i>textureScale</i>)</td></tr>
/// </tbody></table></div></div>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub fn slot_set_texture_scale(&self) -> ::qt_core::Receiver<(::std::os::raw::c_float,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setTextureScale(float)\0"),
)
}
}
/// <p>Indicates if the alpha information coming from the diffuse property will be taken into account during rendering. Defaults to false.</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QDiffuseSpecularMaterial::setAlphaBlendingEnabled` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qdiffusespecularmaterial.html#alphaBlending-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Indicates if the alpha information coming from the diffuse property will be taken into account during rendering. Defaults to false.</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>isAlphaBlendingEnabled</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setAlphaBlendingEnabled</b></span>(bool <i>enabled</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>alphaBlendingEnabledChanged</b></span>(bool <i>enabled</i>)</td></tr>
/// </tbody></table></div></div>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub fn slot_set_alpha_blending_enabled(&self) -> ::qt_core::Receiver<(bool,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"1setAlphaBlendingEnabled(bool)\0",
),
)
}
}
/// <p>Holds the ambient color.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QDiffuseSpecularMaterial::ambientChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qdiffusespecularmaterial.html#ambient-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the ambient color.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QColor </td><td class="memItemRight bottomAlign"><span class="name"><b>ambient</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setAmbient</b></span>(const QColor &<i>ambient</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>ambientChanged</b></span>(const QColor &<i>ambient</i>)</td></tr>
/// </tbody></table></div></div>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub fn ambient_changed(&self) -> ::qt_core::Signal<(*const ::qt_gui::QColor,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"2ambientChanged(const QColor&)\0",
),
)
}
}
/// <p>Holds the diffuse color of the material. This can be either a plain color value or a texture.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QDiffuseSpecularMaterial::diffuseChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qdiffusespecularmaterial.html#diffuse-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the diffuse color of the material. This can be either a plain color value or a texture.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QVariant </td><td class="memItemRight bottomAlign"><span class="name"><b>diffuse</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setDiffuse</b></span>(const QVariant &<i>diffuse</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>diffuseChanged</b></span>(const QVariant &<i>diffuse</i>)</td></tr>
/// </tbody></table></div></div>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub fn diffuse_changed(&self) -> ::qt_core::Signal<(*const ::qt_core::QVariant,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"2diffuseChanged(const QVariant&)\0",
),
)
}
}
/// <p>Holds the specular color of the material. This can be either a plain color value or a texture.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QDiffuseSpecularMaterial::specularChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qdiffusespecularmaterial.html#specular-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the specular color of the material. This can be either a plain color value or a texture.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QVariant </td><td class="memItemRight bottomAlign"><span class="name"><b>specular</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setSpecular</b></span>(const QVariant &<i>specular</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>specularChanged</b></span>(const QVariant &<i>specular</i>)</td></tr>
/// </tbody></table></div></div>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub fn specular_changed(&self) -> ::qt_core::Signal<(*const ::qt_core::QVariant,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"2specularChanged(const QVariant&)\0",
),
)
}
}
/// <p>Holds the shininess exponent.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QDiffuseSpecularMaterial::shininessChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qdiffusespecularmaterial.html#shininess-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the shininess exponent.</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>shininess</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setShininess</b></span>(float <i>shininess</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>shininessChanged</b></span>(float <i>shininess</i>)</td></tr>
/// </tbody></table></div></div>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub fn shininess_changed(&self) -> ::qt_core::Signal<(::std::os::raw::c_float,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2shininessChanged(float)\0"),
)
}
}
/// <p>Holds the current normal map texture of the material. This can only be a texture, otherwise it is ignored. By default this map is not set.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QDiffuseSpecularMaterial::normalChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qdiffusespecularmaterial.html#normal-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current normal map texture of the material. This can only be a texture, otherwise it is ignored. By default this map is not set.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QVariant </td><td class="memItemRight bottomAlign"><span class="name"><b>normal</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setNormal</b></span>(const QVariant &<i>normal</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>normalChanged</b></span>(const QVariant &<i>normal</i>)</td></tr>
/// </tbody></table></div></div>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub fn normal_changed(&self) -> ::qt_core::Signal<(*const ::qt_core::QVariant,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"2normalChanged(const QVariant&)\0",
),
)
}
}
/// <p>Holds the current texture scale. It is applied as a multiplier to texture coordinates at render time. Defaults to 1.0.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QDiffuseSpecularMaterial::textureScaleChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qdiffusespecularmaterial.html#textureScale-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current texture scale. It is applied as a multiplier to texture coordinates at render time. Defaults to 1.0.</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>textureScale</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setTextureScale</b></span>(float <i>textureScale</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>textureScaleChanged</b></span>(float <i>textureScale</i>)</td></tr>
/// </tbody></table></div></div>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub fn texture_scale_changed(&self) -> ::qt_core::Signal<(::std::os::raw::c_float,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2textureScaleChanged(float)\0"),
)
}
}
/// <p>Indicates if the alpha information coming from the diffuse property will be taken into account during rendering. Defaults to false.</p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QDiffuseSpecularMaterial::alphaBlendingEnabledChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qdiffusespecularmaterial.html#alphaBlending-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Indicates if the alpha information coming from the diffuse property will be taken into account during rendering. Defaults to false.</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>isAlphaBlendingEnabled</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setAlphaBlendingEnabled</b></span>(bool <i>enabled</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>alphaBlendingEnabledChanged</b></span>(bool <i>enabled</i>)</td></tr>
/// </tbody></table></div></div>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub fn alpha_blending_enabled_changed(&self) -> ::qt_core::Signal<(bool,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"2alphaBlendingEnabledChanged(bool)\0",
),
)
}
}
/// <p>Holds the ambient color.</p>
///
/// Calls C++ function: <span style='color: green;'>```QColor Qt3DExtras::QDiffuseSpecularMaterial::ambient() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qdiffusespecularmaterial.html#ambient-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the ambient color.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QColor </td><td class="memItemRight bottomAlign"><span class="name"><b>ambient</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setAmbient</b></span>(const QColor &<i>ambient</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>ambientChanged</b></span>(const QColor &<i>ambient</i>)</td></tr>
/// </tbody></table></div></div>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn ambient(&self) -> ::cpp_core::CppBox<::qt_gui::QColor> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QDiffuseSpecularMaterial_ambient(
self as *const crate::QDiffuseSpecularMaterial,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Holds the diffuse color of the material. This can be either a plain color value or a texture.</p>
///
/// Calls C++ function: <span style='color: green;'>```QVariant Qt3DExtras::QDiffuseSpecularMaterial::diffuse() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qdiffusespecularmaterial.html#diffuse-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the diffuse color of the material. This can be either a plain color value or a texture.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QVariant </td><td class="memItemRight bottomAlign"><span class="name"><b>diffuse</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setDiffuse</b></span>(const QVariant &<i>diffuse</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>diffuseChanged</b></span>(const QVariant &<i>diffuse</i>)</td></tr>
/// </tbody></table></div></div>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn diffuse(&self) -> ::cpp_core::CppBox<::qt_core::QVariant> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QDiffuseSpecularMaterial_diffuse(
self as *const crate::QDiffuseSpecularMaterial,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Indicates if the alpha information coming from the diffuse property will be taken into account during rendering. Defaults to false.</p>
///
/// Calls C++ function: <span style='color: green;'>```bool Qt3DExtras::QDiffuseSpecularMaterial::isAlphaBlendingEnabled() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qdiffusespecularmaterial.html#alphaBlending-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Indicates if the alpha information coming from the diffuse property will be taken into account during rendering. Defaults to false.</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>isAlphaBlendingEnabled</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setAlphaBlendingEnabled</b></span>(bool <i>enabled</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>alphaBlendingEnabledChanged</b></span>(bool <i>enabled</i>)</td></tr>
/// </tbody></table></div></div>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn is_alpha_blending_enabled(&self) -> bool {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QDiffuseSpecularMaterial_isAlphaBlendingEnabled(self as *const crate::QDiffuseSpecularMaterial)
}
/// Calls C++ function: <span style='color: green;'>```virtual const QMetaObject* Qt3DExtras::QDiffuseSpecularMaterial::metaObject() const```</span>.
///
///
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn meta_object(&self) -> ::cpp_core::Ptr<::qt_core::QMetaObject> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QDiffuseSpecularMaterial_metaObject(
self as *const crate::QDiffuseSpecularMaterial,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// <p>Constructs a new <a href="http://doc.qt.io/qt-5/qt3dextras-qdiffusespecularmaterial.html">QDiffuseSpecularMaterial</a> instance with parent object <i>parent</i>.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DExtras::QDiffuseSpecularMaterial::QDiffuseSpecularMaterial(Qt3DCore::QNode* parent = …)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qdiffusespecularmaterial.html#QDiffuseSpecularMaterial">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/qt3dextras-qdiffusespecularmaterial.html">QDiffuseSpecularMaterial</a> instance with parent object <i>parent</i>.</p></div>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn new_1a(
parent: impl ::cpp_core::CastInto<::cpp_core::MutPtr<::qt_3d_core::QNode>>,
) -> ::cpp_core::CppBox<crate::QDiffuseSpecularMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QDiffuseSpecularMaterial_QDiffuseSpecularMaterial(::cpp_core::CastInto::<::cpp_core::MutPtr<::qt_3d_core::QNode>>::cast_into(parent).as_mut_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/qt3dextras-qdiffusespecularmaterial.html">QDiffuseSpecularMaterial</a> class provides a default implementation of the phong lighting effect.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DExtras::QDiffuseSpecularMaterial::QDiffuseSpecularMaterial()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qdiffusespecularmaterial.html">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>The <a href="http://doc.qt.io/qt-5/qt3dextras-qdiffusespecularmaterial.html">QDiffuseSpecularMaterial</a> class provides a default implementation of the phong lighting effect.</p>
/// <p>The phong lighting effect is based on the combination of 3 lighting components ambient, diffuse and specular. The relative strengths of these components are controlled by means of their reflectivity coefficients which are modelled as RGB triplets:</p>
/// <ul>
/// <li>Ambient is the color that is emitted by an object without any other light source.</li>
/// <li>Diffuse is the color that is emitted for rought surface reflections with the lights.</li>
/// <li>Specular is the color emitted for shiny surface reflections with the lights.</li>
/// <li>The shininess of a surface is controlled by a float property.</li>
/// </ul>
/// <p>This material uses an effect with a single render pass approach and performs per fragment lighting. Techniques are provided for OpenGL 2, OpenGL 3 or above as well as OpenGL ES 2.</p></div>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn new_0a() -> ::cpp_core::CppBox<crate::QDiffuseSpecularMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QDiffuseSpecularMaterial_QDiffuseSpecularMaterial1();
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// <p>Holds the current normal map texture of the material. This can only be a texture, otherwise it is ignored. By default this map is not set.</p>
///
/// Calls C++ function: <span style='color: green;'>```QVariant Qt3DExtras::QDiffuseSpecularMaterial::normal() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qdiffusespecularmaterial.html#normal-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current normal map texture of the material. This can only be a texture, otherwise it is ignored. By default this map is not set.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QVariant </td><td class="memItemRight bottomAlign"><span class="name"><b>normal</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setNormal</b></span>(const QVariant &<i>normal</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>normalChanged</b></span>(const QVariant &<i>normal</i>)</td></tr>
/// </tbody></table></div></div>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn normal(&self) -> ::cpp_core::CppBox<::qt_core::QVariant> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QDiffuseSpecularMaterial_normal(
self as *const crate::QDiffuseSpecularMaterial,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// Calls C++ function: <span style='color: green;'>```virtual int Qt3DExtras::QDiffuseSpecularMaterial::qt_metacall(QMetaObject::Call arg1, int arg2, void** arg3)```</span>.
///
///
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn qt_metacall(
&mut self,
arg1: ::qt_core::q_meta_object::Call,
arg2: ::std::os::raw::c_int,
arg3: impl ::cpp_core::CastInto<::cpp_core::MutPtr<*mut ::std::ffi::c_void>>,
) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QDiffuseSpecularMaterial_qt_metacall(
self as *mut crate::QDiffuseSpecularMaterial,
arg1,
arg2,
::cpp_core::CastInto::<::cpp_core::MutPtr<*mut ::std::ffi::c_void>>::cast_into(arg3)
.as_mut_raw_ptr(),
)
}
/// Calls C++ function: <span style='color: green;'>```virtual void* Qt3DExtras::QDiffuseSpecularMaterial::qt_metacast(const char* arg1)```</span>.
///
///
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn qt_metacast(
&mut self,
arg1: impl ::cpp_core::CastInto<::cpp_core::Ptr<::std::os::raw::c_char>>,
) -> ::cpp_core::MutPtr<::std::ffi::c_void> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QDiffuseSpecularMaterial_qt_metacast(
self as *mut crate::QDiffuseSpecularMaterial,
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(arg1)
.as_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
/// <p>Indicates if the alpha information coming from the diffuse property will be taken into account during rendering. Defaults to false.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QDiffuseSpecularMaterial::setAlphaBlendingEnabled(bool enabled)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qdiffusespecularmaterial.html#alphaBlending-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Indicates if the alpha information coming from the diffuse property will be taken into account during rendering. Defaults to false.</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>isAlphaBlendingEnabled</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setAlphaBlendingEnabled</b></span>(bool <i>enabled</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>alphaBlendingEnabledChanged</b></span>(bool <i>enabled</i>)</td></tr>
/// </tbody></table></div></div>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn set_alpha_blending_enabled(&mut self, enabled: bool) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QDiffuseSpecularMaterial_setAlphaBlendingEnabled(self as *mut crate::QDiffuseSpecularMaterial, enabled)
}
/// <p>Holds the ambient color.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QDiffuseSpecularMaterial::setAmbient(const QColor& ambient)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qdiffusespecularmaterial.html#ambient-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the ambient color.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QColor </td><td class="memItemRight bottomAlign"><span class="name"><b>ambient</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setAmbient</b></span>(const QColor &<i>ambient</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>ambientChanged</b></span>(const QColor &<i>ambient</i>)</td></tr>
/// </tbody></table></div></div>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn set_ambient(
&mut self,
ambient: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_gui::QColor>>,
) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QDiffuseSpecularMaterial_setAmbient(
self as *mut crate::QDiffuseSpecularMaterial,
::cpp_core::CastInto::<::cpp_core::Ref<::qt_gui::QColor>>::cast_into(ambient)
.as_raw_ptr(),
)
}
/// <p>Holds the diffuse color of the material. This can be either a plain color value or a texture.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QDiffuseSpecularMaterial::setDiffuse(const QVariant& diffuse)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qdiffusespecularmaterial.html#diffuse-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the diffuse color of the material. This can be either a plain color value or a texture.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QVariant </td><td class="memItemRight bottomAlign"><span class="name"><b>diffuse</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setDiffuse</b></span>(const QVariant &<i>diffuse</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>diffuseChanged</b></span>(const QVariant &<i>diffuse</i>)</td></tr>
/// </tbody></table></div></div>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn set_diffuse(
&mut self,
diffuse: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_core::QVariant>>,
) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QDiffuseSpecularMaterial_setDiffuse(
self as *mut crate::QDiffuseSpecularMaterial,
::cpp_core::CastInto::<::cpp_core::Ref<::qt_core::QVariant>>::cast_into(diffuse)
.as_raw_ptr(),
)
}
/// <p>Holds the current normal map texture of the material. This can only be a texture, otherwise it is ignored. By default this map is not set.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QDiffuseSpecularMaterial::setNormal(const QVariant& normal)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qdiffusespecularmaterial.html#normal-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current normal map texture of the material. This can only be a texture, otherwise it is ignored. By default this map is not set.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QVariant </td><td class="memItemRight bottomAlign"><span class="name"><b>normal</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setNormal</b></span>(const QVariant &<i>normal</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>normalChanged</b></span>(const QVariant &<i>normal</i>)</td></tr>
/// </tbody></table></div></div>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn set_normal(
&mut self,
normal: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_core::QVariant>>,
) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QDiffuseSpecularMaterial_setNormal(
self as *mut crate::QDiffuseSpecularMaterial,
::cpp_core::CastInto::<::cpp_core::Ref<::qt_core::QVariant>>::cast_into(normal)
.as_raw_ptr(),
)
}
/// <p>Holds the shininess exponent.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QDiffuseSpecularMaterial::setShininess(float shininess)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qdiffusespecularmaterial.html#shininess-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the shininess exponent.</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>shininess</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setShininess</b></span>(float <i>shininess</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>shininessChanged</b></span>(float <i>shininess</i>)</td></tr>
/// </tbody></table></div></div>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn set_shininess(&mut self, shininess: ::std::os::raw::c_float) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QDiffuseSpecularMaterial_setShininess(
self as *mut crate::QDiffuseSpecularMaterial,
shininess,
)
}
/// <p>Holds the specular color of the material. This can be either a plain color value or a texture.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QDiffuseSpecularMaterial::setSpecular(const QVariant& specular)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qdiffusespecularmaterial.html#specular-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the specular color of the material. This can be either a plain color value or a texture.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QVariant </td><td class="memItemRight bottomAlign"><span class="name"><b>specular</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setSpecular</b></span>(const QVariant &<i>specular</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>specularChanged</b></span>(const QVariant &<i>specular</i>)</td></tr>
/// </tbody></table></div></div>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn set_specular(
&mut self,
specular: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_core::QVariant>>,
) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QDiffuseSpecularMaterial_setSpecular(
self as *mut crate::QDiffuseSpecularMaterial,
::cpp_core::CastInto::<::cpp_core::Ref<::qt_core::QVariant>>::cast_into(specular)
.as_raw_ptr(),
)
}
/// <p>Holds the current texture scale. It is applied as a multiplier to texture coordinates at render time. Defaults to 1.0.</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QDiffuseSpecularMaterial::setTextureScale(float textureScale)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qdiffusespecularmaterial.html#textureScale-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current texture scale. It is applied as a multiplier to texture coordinates at render time. Defaults to 1.0.</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>textureScale</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setTextureScale</b></span>(float <i>textureScale</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>textureScaleChanged</b></span>(float <i>textureScale</i>)</td></tr>
/// </tbody></table></div></div>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn set_texture_scale(&mut self, texture_scale: ::std::os::raw::c_float) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QDiffuseSpecularMaterial_setTextureScale(
self as *mut crate::QDiffuseSpecularMaterial,
texture_scale,
)
}
/// <p>Holds the shininess exponent.</p>
///
/// Calls C++ function: <span style='color: green;'>```float Qt3DExtras::QDiffuseSpecularMaterial::shininess() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qdiffusespecularmaterial.html#shininess-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the shininess exponent.</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>shininess</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setShininess</b></span>(float <i>shininess</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>shininessChanged</b></span>(float <i>shininess</i>)</td></tr>
/// </tbody></table></div></div>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn shininess(&self) -> ::std::os::raw::c_float {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QDiffuseSpecularMaterial_shininess(
self as *const crate::QDiffuseSpecularMaterial,
)
}
/// <p>Holds the specular color of the material. This can be either a plain color value or a texture.</p>
///
/// Calls C++ function: <span style='color: green;'>```QVariant Qt3DExtras::QDiffuseSpecularMaterial::specular() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qdiffusespecularmaterial.html#specular-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the specular color of the material. This can be either a plain color value or a texture.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QVariant </td><td class="memItemRight bottomAlign"><span class="name"><b>specular</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setSpecular</b></span>(const QVariant &<i>specular</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>specularChanged</b></span>(const QVariant &<i>specular</i>)</td></tr>
/// </tbody></table></div></div>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn specular(&self) -> ::cpp_core::CppBox<::qt_core::QVariant> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QDiffuseSpecularMaterial_specular(
self as *const crate::QDiffuseSpecularMaterial,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// Returns a reference to the <span style='color: green;'>```staticMetaObject```</span> field.
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn static_meta_object() -> ::cpp_core::Ref<::qt_core::QMetaObject> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QDiffuseSpecularMaterial_staticMetaObject(
);
::cpp_core::Ref::from_raw(ffi_result).expect("attempted to construct a null Ref")
}
/// <p>Holds the current texture scale. It is applied as a multiplier to texture coordinates at render time. Defaults to 1.0.</p>
///
/// Calls C++ function: <span style='color: green;'>```float Qt3DExtras::QDiffuseSpecularMaterial::textureScale() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qdiffusespecularmaterial.html#textureScale-prop">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the current texture scale. It is applied as a multiplier to texture coordinates at render time. Defaults to 1.0.</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>textureScale</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setTextureScale</b></span>(float <i>textureScale</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>textureScaleChanged</b></span>(float <i>textureScale</i>)</td></tr>
/// </tbody></table></div></div>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn texture_scale(&self) -> ::std::os::raw::c_float {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QDiffuseSpecularMaterial_textureScale(
self as *const crate::QDiffuseSpecularMaterial,
)
}
/// Calls C++ function: <span style='color: green;'>```static QString Qt3DExtras::QDiffuseSpecularMaterial::tr(const char* s, const char* c, int n)```</span>.
///
///
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn tr(
s: impl ::cpp_core::CastInto<::cpp_core::Ptr<::std::os::raw::c_char>>,
c: impl ::cpp_core::CastInto<::cpp_core::Ptr<::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_extras_ffi_Qt3DExtras_QDiffuseSpecularMaterial_tr(
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(s)
.as_raw_ptr(),
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(c)
.as_raw_ptr(),
n,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// Calls C++ function: <span style='color: green;'>```static QString Qt3DExtras::QDiffuseSpecularMaterial::trUtf8(const char* s, const char* c, int n)```</span>.
///
///
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn tr_utf8(
s: impl ::cpp_core::CastInto<::cpp_core::Ptr<::std::os::raw::c_char>>,
c: impl ::cpp_core::CastInto<::cpp_core::Ptr<::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_extras_ffi_Qt3DExtras_QDiffuseSpecularMaterial_trUtf8(
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(s)
.as_raw_ptr(),
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(c)
.as_raw_ptr(),
n,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
}
/// C++ class: <span style='color: green;'>```Qt3DExtras::QSpriteGrid```</span>.
#[repr(C)]
pub struct QSpriteGrid {
_unused: u8,
}
impl QSpriteGrid {
/// <p><b>Access functions:</b></p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QSpriteGrid::setRows` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qspritegrid.html#rows-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"> int </td><td class="memItemRight bottomAlign"><span class="name"><b>rows</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setRows</b></span>(int <i>rows</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>rowsChanged</b></span>(int <i>rows</i>)</td></tr>
/// </tbody></table></div></div>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub fn slot_set_rows(&self) -> ::qt_core::Receiver<(::std::os::raw::c_int,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setRows(int)\0"),
)
}
}
/// <p><b>Access functions:</b></p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QSpriteGrid::setColumns` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qspritegrid.html#columns-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"> int </td><td class="memItemRight bottomAlign"><span class="name"><b>columns</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setColumns</b></span>(int <i>columns</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>columnsChanged</b></span>(int <i>columns</i>)</td></tr>
/// </tbody></table></div></div>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub fn slot_set_columns(&self) -> ::qt_core::Receiver<(::std::os::raw::c_int,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setColumns(int)\0"),
)
}
}
/// <p><b>Access functions:</b></p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QSpriteGrid::rowsChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qspritegrid.html#rows-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"> int </td><td class="memItemRight bottomAlign"><span class="name"><b>rows</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setRows</b></span>(int <i>rows</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>rowsChanged</b></span>(int <i>rows</i>)</td></tr>
/// </tbody></table></div></div>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub fn rows_changed(&self) -> ::qt_core::Signal<(::std::os::raw::c_int,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2rowsChanged(int)\0"),
)
}
}
/// <p><b>Access functions:</b></p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QSpriteGrid::columnsChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qspritegrid.html#columns-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"> int </td><td class="memItemRight bottomAlign"><span class="name"><b>columns</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setColumns</b></span>(int <i>columns</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>columnsChanged</b></span>(int <i>columns</i>)</td></tr>
/// </tbody></table></div></div>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub fn columns_changed(&self) -> ::qt_core::Signal<(::std::os::raw::c_int,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2columnsChanged(int)\0"),
)
}
}
/// <p><b>Access functions:</b></p>
///
/// Calls C++ function: <span style='color: green;'>```int Qt3DExtras::QSpriteGrid::columns() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qspritegrid.html#columns-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"> int </td><td class="memItemRight bottomAlign"><span class="name"><b>columns</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setColumns</b></span>(int <i>columns</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>columnsChanged</b></span>(int <i>columns</i>)</td></tr>
/// </tbody></table></div></div>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn columns(&self) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QSpriteGrid_columns(
self as *const crate::QSpriteGrid,
)
}
/// Calls C++ function: <span style='color: green;'>```virtual const QMetaObject* Qt3DExtras::QSpriteGrid::metaObject() const```</span>.
///
///
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn meta_object(&self) -> ::cpp_core::Ptr<::qt_core::QMetaObject> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QSpriteGrid_metaObject(
self as *const crate::QSpriteGrid,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// <p>Constructs a new <a href="http://doc.qt.io/qt-5/qt3dextras-qspritegrid.html">QSpriteGrid</a> instance with parent object <i>parent</i>.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DExtras::QSpriteGrid::QSpriteGrid(Qt3DCore::QNode* parent = …)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qspritegrid.html#QSpriteGrid">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/qt3dextras-qspritegrid.html">QSpriteGrid</a> instance with parent object <i>parent</i>.</p></div>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn new_1a(
parent: impl ::cpp_core::CastInto<::cpp_core::MutPtr<::qt_3d_core::QNode>>,
) -> ::cpp_core::CppBox<crate::QSpriteGrid> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QSpriteGrid_QSpriteGrid(
::cpp_core::CastInto::<::cpp_core::MutPtr<::qt_3d_core::QNode>>::cast_into(parent)
.as_mut_raw_ptr(),
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DExtras::QSpriteGrid::QSpriteGrid()```</span>.
///
///
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn new_0a() -> ::cpp_core::CppBox<crate::QSpriteGrid> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QSpriteGrid_QSpriteGrid1();
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// Calls C++ function: <span style='color: green;'>```virtual int Qt3DExtras::QSpriteGrid::qt_metacall(QMetaObject::Call arg1, int arg2, void** arg3)```</span>.
///
///
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn qt_metacall(
&mut self,
arg1: ::qt_core::q_meta_object::Call,
arg2: ::std::os::raw::c_int,
arg3: impl ::cpp_core::CastInto<::cpp_core::MutPtr<*mut ::std::ffi::c_void>>,
) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QSpriteGrid_qt_metacall(
self as *mut crate::QSpriteGrid,
arg1,
arg2,
::cpp_core::CastInto::<::cpp_core::MutPtr<*mut ::std::ffi::c_void>>::cast_into(arg3)
.as_mut_raw_ptr(),
)
}
/// Calls C++ function: <span style='color: green;'>```virtual void* Qt3DExtras::QSpriteGrid::qt_metacast(const char* arg1)```</span>.
///
///
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn qt_metacast(
&mut self,
arg1: impl ::cpp_core::CastInto<::cpp_core::Ptr<::std::os::raw::c_char>>,
) -> ::cpp_core::MutPtr<::std::ffi::c_void> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QSpriteGrid_qt_metacast(
self as *mut crate::QSpriteGrid,
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(arg1)
.as_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
/// <p><b>Access functions:</b></p>
///
/// Calls C++ function: <span style='color: green;'>```int Qt3DExtras::QSpriteGrid::rows() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qspritegrid.html#rows-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"> int </td><td class="memItemRight bottomAlign"><span class="name"><b>rows</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setRows</b></span>(int <i>rows</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>rowsChanged</b></span>(int <i>rows</i>)</td></tr>
/// </tbody></table></div></div>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn rows(&self) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QSpriteGrid_rows(
self as *const crate::QSpriteGrid,
)
}
/// <p><b>Access functions:</b></p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QSpriteGrid::setColumns(int columns)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qspritegrid.html#columns-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"> int </td><td class="memItemRight bottomAlign"><span class="name"><b>columns</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setColumns</b></span>(int <i>columns</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>columnsChanged</b></span>(int <i>columns</i>)</td></tr>
/// </tbody></table></div></div>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn set_columns(&mut self, columns: ::std::os::raw::c_int) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QSpriteGrid_setColumns(
self as *mut crate::QSpriteGrid,
columns,
)
}
/// <p><b>Access functions:</b></p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QSpriteGrid::setRows(int rows)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qspritegrid.html#rows-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"> int </td><td class="memItemRight bottomAlign"><span class="name"><b>rows</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setRows</b></span>(int <i>rows</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>rowsChanged</b></span>(int <i>rows</i>)</td></tr>
/// </tbody></table></div></div>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn set_rows(&mut self, rows: ::std::os::raw::c_int) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QSpriteGrid_setRows(
self as *mut crate::QSpriteGrid,
rows,
)
}
/// Returns a reference to the <span style='color: green;'>```staticMetaObject```</span> field.
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn static_meta_object() -> ::cpp_core::Ref<::qt_core::QMetaObject> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QSpriteGrid_staticMetaObject();
::cpp_core::Ref::from_raw(ffi_result).expect("attempted to construct a null Ref")
}
/// Calls C++ function: <span style='color: green;'>```static QString Qt3DExtras::QSpriteGrid::tr(const char* s, const char* c, int n)```</span>.
///
///
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn tr(
s: impl ::cpp_core::CastInto<::cpp_core::Ptr<::std::os::raw::c_char>>,
c: impl ::cpp_core::CastInto<::cpp_core::Ptr<::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_extras_ffi_Qt3DExtras_QSpriteGrid_tr(
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(s)
.as_raw_ptr(),
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(c)
.as_raw_ptr(),
n,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// Calls C++ function: <span style='color: green;'>```static QString Qt3DExtras::QSpriteGrid::trUtf8(const char* s, const char* c, int n)```</span>.
///
///
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn tr_utf8(
s: impl ::cpp_core::CastInto<::cpp_core::Ptr<::std::os::raw::c_char>>,
c: impl ::cpp_core::CastInto<::cpp_core::Ptr<::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_extras_ffi_Qt3DExtras_QSpriteGrid_trUtf8(
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(s)
.as_raw_ptr(),
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(c)
.as_raw_ptr(),
n,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
}
/// C++ class: <span style='color: green;'>```Qt3DExtras::QSpriteSheet```</span>.
#[repr(C)]
pub struct QSpriteSheet {
_unused: u8,
}
impl QSpriteSheet {
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qt3dextras-qspritesheet.html#sprites">sprites</a>().</p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QSpriteSheet::setSprites` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qspritesheet.html#setSprites">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p><b>See also </b><a href="http://doc.qt.io/qt-5/qt3dextras-qspritesheet.html#sprites">sprites</a>().</p></div>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub fn slot_set_sprites(
&self,
) -> ::qt_core::Receiver<(*const crate::QVectorOfQSpriteSheetItem,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"1setSprites(QVector< Qt3DExtras::QSpriteSheetItem* >)\0",
),
)
}
}
/// Returns a built-in Qt signal `Qt3DExtras::QSpriteSheet::spritesChanged` that can be passed to `qt_core::Signal::connect`.
///
///
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub fn sprites_changed(&self) -> ::qt_core::Signal<(*const crate::QVectorOfQSpriteSheetItem,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"2spritesChanged(QVector< Qt3DExtras::QSpriteSheetItem* >)\0",
),
)
}
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QSpriteSheetItem* Qt3DExtras::QSpriteSheet::addSprite(int x, int y, int width, int height)```</span>.
///
///
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn add_sprite_4a(
&mut self,
x: ::std::os::raw::c_int,
y: ::std::os::raw::c_int,
width: ::std::os::raw::c_int,
height: ::std::os::raw::c_int,
) -> ::cpp_core::MutPtr<crate::QSpriteSheetItem> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QSpriteSheet_addSprite(
self as *mut crate::QSpriteSheet,
x,
y,
width,
height,
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```void Qt3DExtras::QSpriteSheet::addSprite(Qt3DExtras::QSpriteSheetItem* sprite)```</span>.
///
///
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn add_sprite_1a(
&mut self,
sprite: impl ::cpp_core::CastInto<::cpp_core::MutPtr<crate::QSpriteSheetItem>>,
) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QSpriteSheet_addSprite1(
self as *mut crate::QSpriteSheet,
::cpp_core::CastInto::<::cpp_core::MutPtr<crate::QSpriteSheetItem>>::cast_into(sprite)
.as_mut_raw_ptr(),
)
}
/// Calls C++ function: <span style='color: green;'>```virtual const QMetaObject* Qt3DExtras::QSpriteSheet::metaObject() const```</span>.
///
///
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn meta_object(&self) -> ::cpp_core::Ptr<::qt_core::QMetaObject> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QSpriteSheet_metaObject(
self as *const crate::QSpriteSheet,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// <p>Constructs a new <a href="http://doc.qt.io/qt-5/qt3dextras-qspritesheet.html">QSpriteSheet</a> instance with parent object <i>parent</i>.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DExtras::QSpriteSheet::QSpriteSheet(Qt3DCore::QNode* parent = …)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qspritesheet.html#QSpriteSheet">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/qt3dextras-qspritesheet.html">QSpriteSheet</a> instance with parent object <i>parent</i>.</p></div>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn new_1a(
parent: impl ::cpp_core::CastInto<::cpp_core::MutPtr<::qt_3d_core::QNode>>,
) -> ::cpp_core::CppBox<crate::QSpriteSheet> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QSpriteSheet_QSpriteSheet(
::cpp_core::CastInto::<::cpp_core::MutPtr<::qt_3d_core::QNode>>::cast_into(parent)
.as_mut_raw_ptr(),
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DExtras::QSpriteSheet::QSpriteSheet()```</span>.
///
///
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn new_0a() -> ::cpp_core::CppBox<crate::QSpriteSheet> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QSpriteSheet_QSpriteSheet1();
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// Calls C++ function: <span style='color: green;'>```virtual int Qt3DExtras::QSpriteSheet::qt_metacall(QMetaObject::Call arg1, int arg2, void** arg3)```</span>.
///
///
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn qt_metacall(
&mut self,
arg1: ::qt_core::q_meta_object::Call,
arg2: ::std::os::raw::c_int,
arg3: impl ::cpp_core::CastInto<::cpp_core::MutPtr<*mut ::std::ffi::c_void>>,
) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QSpriteSheet_qt_metacall(
self as *mut crate::QSpriteSheet,
arg1,
arg2,
::cpp_core::CastInto::<::cpp_core::MutPtr<*mut ::std::ffi::c_void>>::cast_into(arg3)
.as_mut_raw_ptr(),
)
}
/// Calls C++ function: <span style='color: green;'>```virtual void* Qt3DExtras::QSpriteSheet::qt_metacast(const char* arg1)```</span>.
///
///
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn qt_metacast(
&mut self,
arg1: impl ::cpp_core::CastInto<::cpp_core::Ptr<::std::os::raw::c_char>>,
) -> ::cpp_core::MutPtr<::std::ffi::c_void> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QSpriteSheet_qt_metacast(
self as *mut crate::QSpriteSheet,
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(arg1)
.as_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```void Qt3DExtras::QSpriteSheet::removeSprite(Qt3DExtras::QSpriteSheetItem* sprite)```</span>.
///
///
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn remove_sprite(
&mut self,
sprite: impl ::cpp_core::CastInto<::cpp_core::MutPtr<crate::QSpriteSheetItem>>,
) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QSpriteSheet_removeSprite(
self as *mut crate::QSpriteSheet,
::cpp_core::CastInto::<::cpp_core::MutPtr<crate::QSpriteSheetItem>>::cast_into(sprite)
.as_mut_raw_ptr(),
)
}
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qt3dextras-qspritesheet.html#sprites">sprites</a>().</p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QSpriteSheet::setSprites(QVector<Qt3DExtras::QSpriteSheetItem*> sprites)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qspritesheet.html#setSprites">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p><b>See also </b><a href="http://doc.qt.io/qt-5/qt3dextras-qspritesheet.html#sprites">sprites</a>().</p></div>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn set_sprites(
&mut self,
sprites: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QVectorOfQSpriteSheetItem>>,
) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QSpriteSheet_setSprites(
self as *mut crate::QSpriteSheet,
::cpp_core::CastInto::<::cpp_core::Ref<crate::QVectorOfQSpriteSheetItem>>::cast_into(
sprites,
)
.as_raw_ptr(),
)
}
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qt3dextras-qspritesheet.html#setSprites">setSprites</a>().</p>
///
/// Calls C++ function: <span style='color: green;'>```QVector<Qt3DExtras::QSpriteSheetItem*> Qt3DExtras::QSpriteSheet::sprites() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qspritesheet.html#sprites">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p><b>See also </b><a href="http://doc.qt.io/qt-5/qt3dextras-qspritesheet.html#setSprites">setSprites</a>().</p></div>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn sprites(&self) -> ::cpp_core::CppBox<crate::QVectorOfQSpriteSheetItem> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QSpriteSheet_sprites(
self as *const crate::QSpriteSheet,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// Returns a reference to the <span style='color: green;'>```staticMetaObject```</span> field.
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn static_meta_object() -> ::cpp_core::Ref<::qt_core::QMetaObject> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QSpriteSheet_staticMetaObject();
::cpp_core::Ref::from_raw(ffi_result).expect("attempted to construct a null Ref")
}
/// Calls C++ function: <span style='color: green;'>```static QString Qt3DExtras::QSpriteSheet::tr(const char* s, const char* c, int n)```</span>.
///
///
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn tr(
s: impl ::cpp_core::CastInto<::cpp_core::Ptr<::std::os::raw::c_char>>,
c: impl ::cpp_core::CastInto<::cpp_core::Ptr<::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_extras_ffi_Qt3DExtras_QSpriteSheet_tr(
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(s)
.as_raw_ptr(),
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(c)
.as_raw_ptr(),
n,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// Calls C++ function: <span style='color: green;'>```static QString Qt3DExtras::QSpriteSheet::trUtf8(const char* s, const char* c, int n)```</span>.
///
///
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn tr_utf8(
s: impl ::cpp_core::CastInto<::cpp_core::Ptr<::std::os::raw::c_char>>,
c: impl ::cpp_core::CastInto<::cpp_core::Ptr<::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_extras_ffi_Qt3DExtras_QSpriteSheet_trUtf8(
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(s)
.as_raw_ptr(),
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(c)
.as_raw_ptr(),
n,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
}
/// C++ class: <span style='color: green;'>```Qt3DExtras::QSpriteSheetItem```</span>.
#[repr(C)]
pub struct QSpriteSheetItem {
_unused: u8,
}
impl QSpriteSheetItem {
/// <p><b>Access functions:</b></p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QSpriteSheetItem::setX` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qspritesheetitem.html#x-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"> int </td><td class="memItemRight bottomAlign"><span class="name"><b>x</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setX</b></span>(int <i>x</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>xChanged</b></span>(int <i>x</i>)</td></tr>
/// </tbody></table></div></div>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub fn slot_set_x(&self) -> ::qt_core::Receiver<(::std::os::raw::c_int,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setX(int)\0"),
)
}
}
/// <p><b>Access functions:</b></p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QSpriteSheetItem::setY` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qspritesheetitem.html#y-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"> int </td><td class="memItemRight bottomAlign"><span class="name"><b>y</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setY</b></span>(int <i>y</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>yChanged</b></span>(int <i>y</i>)</td></tr>
/// </tbody></table></div></div>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub fn slot_set_y(&self) -> ::qt_core::Receiver<(::std::os::raw::c_int,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setY(int)\0"),
)
}
}
/// <p><b>Access functions:</b></p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QSpriteSheetItem::setWidth` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qspritesheetitem.html#width-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"> int </td><td class="memItemRight bottomAlign"><span class="name"><b>width</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setWidth</b></span>(int <i>width</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>widthChanged</b></span>(int <i>width</i>)</td></tr>
/// </tbody></table></div></div>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub fn slot_set_width(&self) -> ::qt_core::Receiver<(::std::os::raw::c_int,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setWidth(int)\0"),
)
}
}
/// <p><b>Access functions:</b></p>
///
/// Returns a built-in Qt slot `Qt3DExtras::QSpriteSheetItem::setHeight` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qspritesheetitem.html#height-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"> int </td><td class="memItemRight bottomAlign"><span class="name"><b>height</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setHeight</b></span>(int <i>height</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>heightChanged</b></span>(int <i>height</i>)</td></tr>
/// </tbody></table></div></div>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub fn slot_set_height(&self) -> ::qt_core::Receiver<(::std::os::raw::c_int,)> {
unsafe {
::qt_core::Receiver::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"1setHeight(int)\0"),
)
}
}
/// <p><b>Access functions:</b></p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QSpriteSheetItem::xChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qspritesheetitem.html#x-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"> int </td><td class="memItemRight bottomAlign"><span class="name"><b>x</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setX</b></span>(int <i>x</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>xChanged</b></span>(int <i>x</i>)</td></tr>
/// </tbody></table></div></div>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub fn x_changed(&self) -> ::qt_core::Signal<(::std::os::raw::c_int,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2xChanged(int)\0"),
)
}
}
/// <p><b>Access functions:</b></p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QSpriteSheetItem::yChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qspritesheetitem.html#y-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"> int </td><td class="memItemRight bottomAlign"><span class="name"><b>y</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setY</b></span>(int <i>y</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>yChanged</b></span>(int <i>y</i>)</td></tr>
/// </tbody></table></div></div>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub fn y_changed(&self) -> ::qt_core::Signal<(::std::os::raw::c_int,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2yChanged(int)\0"),
)
}
}
/// <p><b>Access functions:</b></p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QSpriteSheetItem::widthChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qspritesheetitem.html#width-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"> int </td><td class="memItemRight bottomAlign"><span class="name"><b>width</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setWidth</b></span>(int <i>width</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>widthChanged</b></span>(int <i>width</i>)</td></tr>
/// </tbody></table></div></div>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub fn width_changed(&self) -> ::qt_core::Signal<(::std::os::raw::c_int,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2widthChanged(int)\0"),
)
}
}
/// <p><b>Access functions:</b></p>
///
/// Returns a built-in Qt signal `Qt3DExtras::QSpriteSheetItem::heightChanged` that can be passed to `qt_core::Signal::connect`.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qspritesheetitem.html#height-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"> int </td><td class="memItemRight bottomAlign"><span class="name"><b>height</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setHeight</b></span>(int <i>height</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>heightChanged</b></span>(int <i>height</i>)</td></tr>
/// </tbody></table></div></div>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub fn height_changed(&self) -> ::qt_core::Signal<(::std::os::raw::c_int,)> {
unsafe {
::qt_core::Signal::new(
::cpp_core::Ref::from_raw_ref(self),
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"2heightChanged(int)\0"),
)
}
}
/// <p><b>Access functions:</b></p>
///
/// Calls C++ function: <span style='color: green;'>```int Qt3DExtras::QSpriteSheetItem::height() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qspritesheetitem.html#height-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"> int </td><td class="memItemRight bottomAlign"><span class="name"><b>height</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setHeight</b></span>(int <i>height</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>heightChanged</b></span>(int <i>height</i>)</td></tr>
/// </tbody></table></div></div>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn height(&self) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QSpriteSheetItem_height(
self as *const crate::QSpriteSheetItem,
)
}
/// Calls C++ function: <span style='color: green;'>```virtual const QMetaObject* Qt3DExtras::QSpriteSheetItem::metaObject() const```</span>.
///
///
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn meta_object(&self) -> ::cpp_core::Ptr<::qt_core::QMetaObject> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QSpriteSheetItem_metaObject(
self as *const crate::QSpriteSheetItem,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// <p>Default constructs an instance of QSpriteSheetItem.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DExtras::QSpriteSheetItem::QSpriteSheetItem(Qt3DCore::QNode* parent = …)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qspritesheetitem.html#QSpriteSheetItem">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Default constructs an instance of QSpriteSheetItem.</p></div>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn new_1a(
parent: impl ::cpp_core::CastInto<::cpp_core::MutPtr<::qt_3d_core::QNode>>,
) -> ::cpp_core::CppBox<crate::QSpriteSheetItem> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QSpriteSheetItem_QSpriteSheetItem(
::cpp_core::CastInto::<::cpp_core::MutPtr<::qt_3d_core::QNode>>::cast_into(parent)
.as_mut_raw_ptr(),
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// Calls C++ function: <span style='color: green;'>```[constructor] void Qt3DExtras::QSpriteSheetItem::QSpriteSheetItem()```</span>.
///
///
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn new_0a() -> ::cpp_core::CppBox<crate::QSpriteSheetItem> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QSpriteSheetItem_QSpriteSheetItem1();
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// Calls C++ function: <span style='color: green;'>```virtual int Qt3DExtras::QSpriteSheetItem::qt_metacall(QMetaObject::Call arg1, int arg2, void** arg3)```</span>.
///
///
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn qt_metacall(
&mut self,
arg1: ::qt_core::q_meta_object::Call,
arg2: ::std::os::raw::c_int,
arg3: impl ::cpp_core::CastInto<::cpp_core::MutPtr<*mut ::std::ffi::c_void>>,
) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QSpriteSheetItem_qt_metacall(
self as *mut crate::QSpriteSheetItem,
arg1,
arg2,
::cpp_core::CastInto::<::cpp_core::MutPtr<*mut ::std::ffi::c_void>>::cast_into(arg3)
.as_mut_raw_ptr(),
)
}
/// Calls C++ function: <span style='color: green;'>```virtual void* Qt3DExtras::QSpriteSheetItem::qt_metacast(const char* arg1)```</span>.
///
///
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn qt_metacast(
&mut self,
arg1: impl ::cpp_core::CastInto<::cpp_core::Ptr<::std::os::raw::c_char>>,
) -> ::cpp_core::MutPtr<::std::ffi::c_void> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QSpriteSheetItem_qt_metacast(
self as *mut crate::QSpriteSheetItem,
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(arg1)
.as_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
/// <p><b>Access functions:</b></p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QSpriteSheetItem::setHeight(int height)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qspritesheetitem.html#height-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"> int </td><td class="memItemRight bottomAlign"><span class="name"><b>height</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setHeight</b></span>(int <i>height</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>heightChanged</b></span>(int <i>height</i>)</td></tr>
/// </tbody></table></div></div>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn set_height(&mut self, height: ::std::os::raw::c_int) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QSpriteSheetItem_setHeight(
self as *mut crate::QSpriteSheetItem,
height,
)
}
/// <p><b>Access functions:</b></p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QSpriteSheetItem::setWidth(int width)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qspritesheetitem.html#width-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"> int </td><td class="memItemRight bottomAlign"><span class="name"><b>width</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setWidth</b></span>(int <i>width</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>widthChanged</b></span>(int <i>width</i>)</td></tr>
/// </tbody></table></div></div>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn set_width(&mut self, width: ::std::os::raw::c_int) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QSpriteSheetItem_setWidth(
self as *mut crate::QSpriteSheetItem,
width,
)
}
/// <p><b>Access functions:</b></p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QSpriteSheetItem::setX(int x)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qspritesheetitem.html#x-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"> int </td><td class="memItemRight bottomAlign"><span class="name"><b>x</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setX</b></span>(int <i>x</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>xChanged</b></span>(int <i>x</i>)</td></tr>
/// </tbody></table></div></div>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn set_x(&mut self, x: ::std::os::raw::c_int) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QSpriteSheetItem_setX(
self as *mut crate::QSpriteSheetItem,
x,
)
}
/// <p><b>Access functions:</b></p>
///
/// Calls C++ function: <span style='color: green;'>```[slot] void Qt3DExtras::QSpriteSheetItem::setY(int y)```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qspritesheetitem.html#y-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"> int </td><td class="memItemRight bottomAlign"><span class="name"><b>y</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setY</b></span>(int <i>y</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>yChanged</b></span>(int <i>y</i>)</td></tr>
/// </tbody></table></div></div>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn set_y(&mut self, y: ::std::os::raw::c_int) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QSpriteSheetItem_setY(
self as *mut crate::QSpriteSheetItem,
y,
)
}
/// Returns a reference to the <span style='color: green;'>```staticMetaObject```</span> field.
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn static_meta_object() -> ::cpp_core::Ref<::qt_core::QMetaObject> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QSpriteSheetItem_staticMetaObject();
::cpp_core::Ref::from_raw(ffi_result).expect("attempted to construct a null Ref")
}
/// Calls C++ function: <span style='color: green;'>```static QString Qt3DExtras::QSpriteSheetItem::tr(const char* s, const char* c, int n)```</span>.
///
///
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn tr(
s: impl ::cpp_core::CastInto<::cpp_core::Ptr<::std::os::raw::c_char>>,
c: impl ::cpp_core::CastInto<::cpp_core::Ptr<::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_extras_ffi_Qt3DExtras_QSpriteSheetItem_tr(
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(s)
.as_raw_ptr(),
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(c)
.as_raw_ptr(),
n,
);
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
/// Calls C++ function: <span style='color: green;'>```static QString Qt3DExtras::QSpriteSheetItem::trUtf8(const char* s, const char* c, int n)```</span>.
///
///
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn tr_utf8(
s: impl ::cpp_core::CastInto<::cpp_core::Ptr<::std::os::raw::c_char>>,
c: impl ::cpp_core::CastInto<::cpp_core::Ptr<::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_extras_ffi_Qt3DExtras_QSpriteSheetItem_trUtf8(
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(s)
.as_raw_ptr(),
::cpp_core::CastInto::<::cpp_core::Ptr<::std::os::raw::c_char>>::cast_into(c)
.as_raw_ptr(),
n,
);
::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;'>```int Qt3DExtras::QSpriteSheetItem::width() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qspritesheetitem.html#width-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"> int </td><td class="memItemRight bottomAlign"><span class="name"><b>width</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setWidth</b></span>(int <i>width</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>widthChanged</b></span>(int <i>width</i>)</td></tr>
/// </tbody></table></div></div>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn width(&self) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QSpriteSheetItem_width(
self as *const crate::QSpriteSheetItem,
)
}
/// <p><b>Access functions:</b></p>
///
/// Calls C++ function: <span style='color: green;'>```int Qt3DExtras::QSpriteSheetItem::x() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qspritesheetitem.html#x-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"> int </td><td class="memItemRight bottomAlign"><span class="name"><b>x</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setX</b></span>(int <i>x</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>xChanged</b></span>(int <i>x</i>)</td></tr>
/// </tbody></table></div></div>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn x(&self) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QSpriteSheetItem_x(
self as *const crate::QSpriteSheetItem,
)
}
/// <p><b>Access functions:</b></p>
///
/// Calls C++ function: <span style='color: green;'>```int Qt3DExtras::QSpriteSheetItem::y() const```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qspritesheetitem.html#y-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"> int </td><td class="memItemRight bottomAlign"><span class="name"><b>y</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setY</b></span>(int <i>y</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>yChanged</b></span>(int <i>y</i>)</td></tr>
/// </tbody></table></div></div>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn y(&self) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QSpriteSheetItem_y(
self as *const crate::QSpriteSheetItem,
)
}
}
/// <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<Qt3DExtras::QSpriteSheetItem*>```</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 QVectorOfQSpriteSheetItem {
_unused: u8,
}
impl QVectorOfQSpriteSheetItem {
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DExtras::QSpriteSheetItem*>::append(const QVector<Qt3DExtras::QSpriteSheetItem*>& 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>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn append(
&mut self,
l: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QVectorOfQSpriteSheetItem>>,
) {
crate::__ffi::ctr_qt_3d_extras_ffi_QVector_Qt3DExtras_QSpriteSheetItem_ptr_append2(
self as *mut crate::QVectorOfQSpriteSheetItem,
::cpp_core::CastInto::<::cpp_core::Ref<crate::QVectorOfQSpriteSheetItem>>::cast_into(l)
.as_raw_ptr(),
)
}
/// <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;'>```Qt3DExtras::QSpriteSheetItem*& QVector<Qt3DExtras::QSpriteSheetItem*>::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>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn back(&mut self) -> ::cpp_core::MutRef<*mut crate::QSpriteSheetItem> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_QVector_Qt3DExtras_QSpriteSheetItem_ptr_back(
self as *mut crate::QVectorOfQSpriteSheetItem,
);
::cpp_core::MutRef::from_raw(ffi_result).expect("attempted to construct a null Ref")
}
/// <p>Returns the maximum number of items that can be stored in the vector without forcing a reallocation.</p>
///
/// Calls C++ function: <span style='color: green;'>```int QVector<Qt3DExtras::QSpriteSheetItem*>::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>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn capacity(&self) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_extras_ffi_QVector_Qt3DExtras_QSpriteSheetItem_ptr_capacity(
self as *const crate::QVectorOfQSpriteSheetItem,
)
}
/// <p>Removes all the elements from the vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DExtras::QSpriteSheetItem*>::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>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn clear(&mut self) {
crate::__ffi::ctr_qt_3d_extras_ffi_QVector_Qt3DExtras_QSpriteSheetItem_ptr_clear(
self as *mut crate::QVectorOfQSpriteSheetItem,
)
}
/// <p>Assigns <i>other</i> to this vector and returns a reference to this vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```QVector<Qt3DExtras::QSpriteSheetItem*>& QVector<Qt3DExtras::QSpriteSheetItem*>::operator=(const QVector<Qt3DExtras::QSpriteSheetItem*>& 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>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn copy_from(
&mut self,
v: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QVectorOfQSpriteSheetItem>>,
) -> ::cpp_core::MutRef<crate::QVectorOfQSpriteSheetItem> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_QVector_Qt3DExtras_QSpriteSheetItem_ptr_operator_(self as *mut crate::QVectorOfQSpriteSheetItem, ::cpp_core::CastInto::<::cpp_core::Ref<crate::QVectorOfQSpriteSheetItem>>::cast_into(v).as_raw_ptr());
::cpp_core::MutRef::from_raw(ffi_result).expect("attempted to construct a null Ref")
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```int QVector<Qt3DExtras::QSpriteSheetItem*>::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>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn count(&self) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_extras_ffi_QVector_Qt3DExtras_QSpriteSheetItem_ptr_count1(
self as *const crate::QVectorOfQSpriteSheetItem,
)
}
/// <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;'>```Qt3DExtras::QSpriteSheetItem** QVector<Qt3DExtras::QSpriteSheetItem*>::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>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn data(&mut self) -> ::cpp_core::MutPtr<*mut crate::QSpriteSheetItem> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_QVector_Qt3DExtras_QSpriteSheetItem_ptr_data(
self as *mut crate::QVectorOfQSpriteSheetItem,
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DExtras::QSpriteSheetItem*>::detach()```</span>.
///
///
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn detach(&mut self) {
crate::__ffi::ctr_qt_3d_extras_ffi_QVector_Qt3DExtras_QSpriteSheetItem_ptr_detach(
self as *mut crate::QVectorOfQSpriteSheetItem,
)
}
/// <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<Qt3DExtras::QSpriteSheetItem*>::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>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn empty(&self) -> bool {
crate::__ffi::ctr_qt_3d_extras_ffi_QVector_Qt3DExtras_QSpriteSheetItem_ptr_empty(
self as *const crate::QVectorOfQSpriteSheetItem,
)
}
/// <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;'>```Qt3DExtras::QSpriteSheetItem*& QVector<Qt3DExtras::QSpriteSheetItem*>::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>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn first(&mut self) -> ::cpp_core::MutRef<*mut crate::QSpriteSheetItem> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_QVector_Qt3DExtras_QSpriteSheetItem_ptr_first(
self as *mut crate::QVectorOfQSpriteSheetItem,
);
::cpp_core::MutRef::from_raw(ffi_result).expect("attempted to construct a null Ref")
}
/// <p>This function is provided for STL compatibility. It is equivalent to <a href="http://doc.qt.io/qt-5/qvector.html#first">first</a>().</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QSpriteSheetItem*& QVector<Qt3DExtras::QSpriteSheetItem*>::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>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn front(&mut self) -> ::cpp_core::MutRef<*mut crate::QSpriteSheetItem> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_QVector_Qt3DExtras_QSpriteSheetItem_ptr_front(
self as *mut crate::QVectorOfQSpriteSheetItem,
);
::cpp_core::MutRef::from_raw(ffi_result).expect("attempted to construct a null Ref")
}
/// <p>Returns the item at index position <i>i</i> as a modifiable reference.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QSpriteSheetItem*& QVector<Qt3DExtras::QSpriteSheetItem*>::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>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn index(
&mut self,
i: ::std::os::raw::c_int,
) -> ::cpp_core::MutRef<*mut crate::QSpriteSheetItem> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_QVector_Qt3DExtras_QSpriteSheetItem_ptr_operator__2(
self as *mut crate::QVectorOfQSpriteSheetItem,
i,
);
::cpp_core::MutRef::from_raw(ffi_result).expect("attempted to construct a null Ref")
}
/// Calls C++ function: <span style='color: green;'>```bool QVector<Qt3DExtras::QSpriteSheetItem*>::isDetached() const```</span>.
///
///
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn is_detached(&self) -> bool {
crate::__ffi::ctr_qt_3d_extras_ffi_QVector_Qt3DExtras_QSpriteSheetItem_ptr_isDetached(
self as *const crate::QVectorOfQSpriteSheetItem,
)
}
/// <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<Qt3DExtras::QSpriteSheetItem*>::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>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn is_empty(&self) -> bool {
crate::__ffi::ctr_qt_3d_extras_ffi_QVector_Qt3DExtras_QSpriteSheetItem_ptr_isEmpty(
self as *const crate::QVectorOfQSpriteSheetItem,
)
}
/// Calls C++ function: <span style='color: green;'>```bool QVector<Qt3DExtras::QSpriteSheetItem*>::isSharedWith(const QVector<Qt3DExtras::QSpriteSheetItem*>& other) const```</span>.
///
///
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn is_shared_with(
&self,
other: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QVectorOfQSpriteSheetItem>>,
) -> bool {
crate::__ffi::ctr_qt_3d_extras_ffi_QVector_Qt3DExtras_QSpriteSheetItem_ptr_isSharedWith(
self as *const crate::QVectorOfQSpriteSheetItem,
::cpp_core::CastInto::<::cpp_core::Ref<crate::QVectorOfQSpriteSheetItem>>::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;'>```Qt3DExtras::QSpriteSheetItem*& QVector<Qt3DExtras::QSpriteSheetItem*>::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>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn last(&mut self) -> ::cpp_core::MutRef<*mut crate::QSpriteSheetItem> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_QVector_Qt3DExtras_QSpriteSheetItem_ptr_last(
self as *mut crate::QVectorOfQSpriteSheetItem,
);
::cpp_core::MutRef::from_raw(ffi_result).expect("attempted to construct a null Ref")
}
/// <p>Same as <a href="http://doc.qt.io/qt-5/qvector.html#size">size</a>() and <a href="http://doc.qt.io/qt-5/qvector.html#count-1">count</a>().</p>
///
/// Calls C++ function: <span style='color: green;'>```int QVector<Qt3DExtras::QSpriteSheetItem*>::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>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn length(&self) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_extras_ffi_QVector_Qt3DExtras_QSpriteSheetItem_ptr_length(
self as *const crate::QVectorOfQSpriteSheetItem,
)
}
/// <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<Qt3DExtras::QSpriteSheetItem*> QVector<Qt3DExtras::QSpriteSheetItem*>::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>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn mid_2a(
&self,
pos: ::std::os::raw::c_int,
len: ::std::os::raw::c_int,
) -> ::cpp_core::CppBox<crate::QVectorOfQSpriteSheetItem> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_QVector_Qt3DExtras_QSpriteSheetItem_ptr_mid(
self as *const crate::QVectorOfQSpriteSheetItem,
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<Qt3DExtras::QSpriteSheetItem*> QVector<Qt3DExtras::QSpriteSheetItem*>::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>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn mid_1a(
&self,
pos: ::std::os::raw::c_int,
) -> ::cpp_core::CppBox<crate::QVectorOfQSpriteSheetItem> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_QVector_Qt3DExtras_QSpriteSheetItem_ptr_mid1(
self as *const crate::QVectorOfQSpriteSheetItem,
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<Qt3DExtras::QSpriteSheetItem*>::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>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn move_(&mut self, from: ::std::os::raw::c_int, to: ::std::os::raw::c_int) {
crate::__ffi::ctr_qt_3d_extras_ffi_QVector_Qt3DExtras_QSpriteSheetItem_ptr_move(
self as *mut crate::QVectorOfQSpriteSheetItem,
from,
to,
)
}
/// <p>Constructs an empty vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```[constructor] void QVector<Qt3DExtras::QSpriteSheetItem*>::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>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn new_0a() -> ::cpp_core::CppBox<crate::QVectorOfQSpriteSheetItem> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_QVector_Qt3DExtras_QSpriteSheetItem_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<Qt3DExtras::QSpriteSheetItem*>::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>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn new_1a(
size: ::std::os::raw::c_int,
) -> ::cpp_core::CppBox<crate::QVectorOfQSpriteSheetItem> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_QVector_Qt3DExtras_QSpriteSheetItem_ptr_QVector1(
size,
);
::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<Qt3DExtras::QSpriteSheetItem*>::QVector(const QVector<Qt3DExtras::QSpriteSheetItem*>& 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>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn new_copy(
v: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QVectorOfQSpriteSheetItem>>,
) -> ::cpp_core::CppBox<crate::QVectorOfQSpriteSheetItem> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_QVector_Qt3DExtras_QSpriteSheetItem_ptr_QVector3(::cpp_core::CastInto::<::cpp_core::Ref<crate::QVectorOfQSpriteSheetItem>>::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<Qt3DExtras::QSpriteSheetItem*>::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>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn pop_back(&mut self) {
crate::__ffi::ctr_qt_3d_extras_ffi_QVector_Qt3DExtras_QSpriteSheetItem_ptr_pop_back(
self as *mut crate::QVectorOfQSpriteSheetItem,
)
}
/// <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<Qt3DExtras::QSpriteSheetItem*>::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>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn pop_front(&mut self) {
crate::__ffi::ctr_qt_3d_extras_ffi_QVector_Qt3DExtras_QSpriteSheetItem_ptr_pop_front(
self as *mut crate::QVectorOfQSpriteSheetItem,
)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DExtras::QSpriteSheetItem*>::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>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn remove_1a(&mut self, i: ::std::os::raw::c_int) {
crate::__ffi::ctr_qt_3d_extras_ffi_QVector_Qt3DExtras_QSpriteSheetItem_ptr_remove(
self as *mut crate::QVectorOfQSpriteSheetItem,
i,
)
}
/// <p>This is an overloaded function.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DExtras::QSpriteSheetItem*>::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>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn remove_2a(&mut self, i: ::std::os::raw::c_int, n: ::std::os::raw::c_int) {
crate::__ffi::ctr_qt_3d_extras_ffi_QVector_Qt3DExtras_QSpriteSheetItem_ptr_remove1(
self as *mut crate::QVectorOfQSpriteSheetItem,
i,
n,
)
}
/// <p>Removes the element at index position <i>i</i>. Equivalent to</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DExtras::QSpriteSheetItem*>::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>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn remove_at(&mut self, i: ::std::os::raw::c_int) {
crate::__ffi::ctr_qt_3d_extras_ffi_QVector_Qt3DExtras_QSpriteSheetItem_ptr_removeAt(
self as *mut crate::QVectorOfQSpriteSheetItem,
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<Qt3DExtras::QSpriteSheetItem*>::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>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn remove_first(&mut self) {
crate::__ffi::ctr_qt_3d_extras_ffi_QVector_Qt3DExtras_QSpriteSheetItem_ptr_removeFirst(
self as *mut crate::QVectorOfQSpriteSheetItem,
)
}
/// <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<Qt3DExtras::QSpriteSheetItem*>::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>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn remove_last(&mut self) {
crate::__ffi::ctr_qt_3d_extras_ffi_QVector_Qt3DExtras_QSpriteSheetItem_ptr_removeLast(
self as *mut crate::QVectorOfQSpriteSheetItem,
)
}
/// <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<Qt3DExtras::QSpriteSheetItem*>::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>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn reserve(&mut self, size: ::std::os::raw::c_int) {
crate::__ffi::ctr_qt_3d_extras_ffi_QVector_Qt3DExtras_QSpriteSheetItem_ptr_reserve(
self as *mut crate::QVectorOfQSpriteSheetItem,
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<Qt3DExtras::QSpriteSheetItem*>::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>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn resize(&mut self, size: ::std::os::raw::c_int) {
crate::__ffi::ctr_qt_3d_extras_ffi_QVector_Qt3DExtras_QSpriteSheetItem_ptr_resize(
self as *mut crate::QVectorOfQSpriteSheetItem,
size,
)
}
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DExtras::QSpriteSheetItem*>::setSharable(bool sharable)```</span>.
///
///
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn set_sharable(&mut self, sharable: bool) {
crate::__ffi::ctr_qt_3d_extras_ffi_QVector_Qt3DExtras_QSpriteSheetItem_ptr_setSharable(
self as *mut crate::QVectorOfQSpriteSheetItem,
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<Qt3DExtras::QSpriteSheetItem*>::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>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn shrink_to_fit(&mut self) {
crate::__ffi::ctr_qt_3d_extras_ffi_QVector_Qt3DExtras_QSpriteSheetItem_ptr_shrink_to_fit(
self as *mut crate::QVectorOfQSpriteSheetItem,
)
}
/// <p>Returns the number of items in the vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```int QVector<Qt3DExtras::QSpriteSheetItem*>::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>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn size(&self) -> ::std::os::raw::c_int {
crate::__ffi::ctr_qt_3d_extras_ffi_QVector_Qt3DExtras_QSpriteSheetItem_ptr_size(
self as *const crate::QVectorOfQSpriteSheetItem,
)
}
/// <p>Releases any memory not required to store the items.</p>
///
/// Calls C++ function: <span style='color: green;'>```void QVector<Qt3DExtras::QSpriteSheetItem*>::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>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn squeeze(&mut self) {
crate::__ffi::ctr_qt_3d_extras_ffi_QVector_Qt3DExtras_QSpriteSheetItem_ptr_squeeze(
self as *mut crate::QVectorOfQSpriteSheetItem,
)
}
/// <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<Qt3DExtras::QSpriteSheetItem*>::swap(QVector<Qt3DExtras::QSpriteSheetItem*>& 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>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn swap(
&mut self,
other: impl ::cpp_core::CastInto<::cpp_core::MutRef<crate::QVectorOfQSpriteSheetItem>>,
) {
crate::__ffi::ctr_qt_3d_extras_ffi_QVector_Qt3DExtras_QSpriteSheetItem_ptr_swap(self as *mut crate::QVectorOfQSpriteSheetItem, ::cpp_core::CastInto::<::cpp_core::MutRef<crate::QVectorOfQSpriteSheetItem>>::cast_into(other).as_mut_raw_ptr())
}
/// <p>Removes the element at index position <i>i</i> and returns it.</p>
///
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QSpriteSheetItem* QVector<Qt3DExtras::QSpriteSheetItem*>::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>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn take_at(
&mut self,
i: ::std::os::raw::c_int,
) -> ::cpp_core::MutPtr<crate::QSpriteSheetItem> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_QVector_Qt3DExtras_QSpriteSheetItem_ptr_takeAt(
self as *mut crate::QVectorOfQSpriteSheetItem,
i,
);
::cpp_core::MutPtr::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;'>```Qt3DExtras::QSpriteSheetItem* QVector<Qt3DExtras::QSpriteSheetItem*>::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>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn take_first(&mut self) -> ::cpp_core::MutPtr<crate::QSpriteSheetItem> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_QVector_Qt3DExtras_QSpriteSheetItem_ptr_takeFirst(
self as *mut crate::QVectorOfQSpriteSheetItem,
);
::cpp_core::MutPtr::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;'>```Qt3DExtras::QSpriteSheetItem* QVector<Qt3DExtras::QSpriteSheetItem*>::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>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn take_last(&mut self) -> ::cpp_core::MutPtr<crate::QSpriteSheetItem> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_QVector_Qt3DExtras_QSpriteSheetItem_ptr_takeLast(
self as *mut crate::QVectorOfQSpriteSheetItem,
);
::cpp_core::MutPtr::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;'>```Qt3DExtras::QSpriteSheetItem* QVector<Qt3DExtras::QSpriteSheetItem*>::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>
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn value(
&self,
i: ::std::os::raw::c_int,
) -> ::cpp_core::MutPtr<crate::QSpriteSheetItem> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_QVector_Qt3DExtras_QSpriteSheetItem_ptr_value(
self as *const crate::QVectorOfQSpriteSheetItem,
i,
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::CppDeletable for crate::QConeGeometry {
/// Calls C++ function: <span style='color: green;'>```virtual [destructor] void Qt3DExtras::QConeGeometry::~QConeGeometry()```</span>.
unsafe fn delete(&mut self) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QConeGeometry_dQConeGeometry(
self as *mut crate::QConeGeometry,
)
}
}
impl ::cpp_core::CppDeletable for crate::QConeMesh {
/// Calls C++ function: <span style='color: green;'>```virtual [destructor] void Qt3DExtras::QConeMesh::~QConeMesh()```</span>.
unsafe fn delete(&mut self) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QConeMesh_dQConeMesh(
self as *mut crate::QConeMesh,
)
}
}
impl ::cpp_core::CppDeletable for crate::QCuboidGeometry {
/// Calls C++ function: <span style='color: green;'>```virtual [destructor] void Qt3DExtras::QCuboidGeometry::~QCuboidGeometry()```</span>.
unsafe fn delete(&mut self) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QCuboidGeometry_dQCuboidGeometry(
self as *mut crate::QCuboidGeometry,
)
}
}
impl ::cpp_core::CppDeletable for crate::QCuboidMesh {
/// Calls C++ function: <span style='color: green;'>```virtual [destructor] void Qt3DExtras::QCuboidMesh::~QCuboidMesh()```</span>.
unsafe fn delete(&mut self) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QCuboidMesh_dQCuboidMesh(
self as *mut crate::QCuboidMesh,
)
}
}
impl ::cpp_core::CppDeletable for crate::QCylinderGeometry {
/// Calls C++ function: <span style='color: green;'>```virtual [destructor] void Qt3DExtras::QCylinderGeometry::~QCylinderGeometry()```</span>.
unsafe fn delete(&mut self) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QCylinderGeometry_dQCylinderGeometry(
self as *mut crate::QCylinderGeometry,
)
}
}
impl ::cpp_core::CppDeletable for crate::QCylinderMesh {
/// Calls C++ function: <span style='color: green;'>```virtual [destructor] void Qt3DExtras::QCylinderMesh::~QCylinderMesh()```</span>.
unsafe fn delete(&mut self) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QCylinderMesh_dQCylinderMesh(
self as *mut crate::QCylinderMesh,
)
}
}
impl ::cpp_core::CppDeletable for crate::QDiffuseMapMaterial {
/// <p>Destroys the <a href="http://doc.qt.io/qt-5/qt3dextras-qdiffusemapmaterial.html">QDiffuseMapMaterial</a> instance.</p>
///
/// Calls C++ function: <span style='color: green;'>```virtual [destructor] void Qt3DExtras::QDiffuseMapMaterial::~QDiffuseMapMaterial()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qdiffusemapmaterial.html#dtor.QDiffuseMapMaterial">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Destroys the <a href="http://doc.qt.io/qt-5/qt3dextras-qdiffusemapmaterial.html">QDiffuseMapMaterial</a> instance.</p></div>
unsafe fn delete(&mut self) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QDiffuseMapMaterial_dQDiffuseMapMaterial(
self as *mut crate::QDiffuseMapMaterial,
)
}
}
impl ::cpp_core::CppDeletable for crate::QDiffuseSpecularMapMaterial {
/// <p>Destroys the <a href="http://doc.qt.io/qt-5/qt3dextras-qdiffusespecularmapmaterial.html">QDiffuseSpecularMapMaterial</a> instance.</p>
///
/// Calls C++ function: <span style='color: green;'>```virtual [destructor] void Qt3DExtras::QDiffuseSpecularMapMaterial::~QDiffuseSpecularMapMaterial()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qdiffusespecularmapmaterial.html#dtor.QDiffuseSpecularMapMaterial">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Destroys the <a href="http://doc.qt.io/qt-5/qt3dextras-qdiffusespecularmapmaterial.html">QDiffuseSpecularMapMaterial</a> instance.</p></div>
unsafe fn delete(&mut self) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QDiffuseSpecularMapMaterial_dQDiffuseSpecularMapMaterial(self as *mut crate::QDiffuseSpecularMapMaterial)
}
}
impl ::cpp_core::CppDeletable for crate::QExtrudedTextGeometry {
/// Calls C++ function: <span style='color: green;'>```virtual [destructor] void Qt3DExtras::QExtrudedTextGeometry::~QExtrudedTextGeometry()```</span>.
unsafe fn delete(&mut self) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QExtrudedTextGeometry_dQExtrudedTextGeometry(
self as *mut crate::QExtrudedTextGeometry,
)
}
}
impl ::cpp_core::CppDeletable for crate::QExtrudedTextMesh {
/// Calls C++ function: <span style='color: green;'>```virtual [destructor] void Qt3DExtras::QExtrudedTextMesh::~QExtrudedTextMesh()```</span>.
unsafe fn delete(&mut self) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QExtrudedTextMesh_dQExtrudedTextMesh(
self as *mut crate::QExtrudedTextMesh,
)
}
}
impl ::cpp_core::CppDeletable for crate::QFirstPersonCameraController {
/// <p>Destroys the instance of QFirstPersonCameraController.</p>
///
/// Calls C++ function: <span style='color: green;'>```virtual [destructor] void Qt3DExtras::QFirstPersonCameraController::~QFirstPersonCameraController()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qfirstpersoncameracontroller.html#dtor.QFirstPersonCameraController">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Destroys the instance of QFirstPersonCameraController.</p></div>
unsafe fn delete(&mut self) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QFirstPersonCameraController_dQFirstPersonCameraController(self as *mut crate::QFirstPersonCameraController)
}
}
impl ::cpp_core::CppDeletable for crate::QForwardRenderer {
/// <p>Destroys the instance of QForwardRenderer.</p>
///
/// Calls C++ function: <span style='color: green;'>```virtual [destructor] void Qt3DExtras::QForwardRenderer::~QForwardRenderer()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qforwardrenderer.html#dtor.QForwardRenderer">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Destroys the instance of QForwardRenderer.</p></div>
unsafe fn delete(&mut self) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QForwardRenderer_dQForwardRenderer(
self as *mut crate::QForwardRenderer,
)
}
}
impl ::cpp_core::CppDeletable for crate::QGoochMaterial {
/// Calls C++ function: <span style='color: green;'>```virtual [destructor] void Qt3DExtras::QGoochMaterial::~QGoochMaterial()```</span>.
unsafe fn delete(&mut self) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QGoochMaterial_dQGoochMaterial(
self as *mut crate::QGoochMaterial,
)
}
}
impl ::cpp_core::CppDeletable for crate::QMetalRoughMaterial {
/// <p>Destroys the <a href="http://doc.qt.io/qt-5/qt3dextras-qmetalroughmaterial.html">QMetalRoughMaterial</a> instance.</p>
///
/// Calls C++ function: <span style='color: green;'>```virtual [destructor] void Qt3DExtras::QMetalRoughMaterial::~QMetalRoughMaterial()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qmetalroughmaterial.html#dtor.QMetalRoughMaterial">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Destroys the <a href="http://doc.qt.io/qt-5/qt3dextras-qmetalroughmaterial.html">QMetalRoughMaterial</a> instance.</p></div>
unsafe fn delete(&mut self) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QMetalRoughMaterial_dQMetalRoughMaterial(
self as *mut crate::QMetalRoughMaterial,
)
}
}
impl ::cpp_core::CppDeletable for crate::QMorphPhongMaterial {
/// <p>Destroys the <a href="http://doc.qt.io/qt-5/qt3dextras-qmorphphongmaterial.html">QMorphPhongMaterial</a>.</p>
///
/// Calls C++ function: <span style='color: green;'>```virtual [destructor] void Qt3DExtras::QMorphPhongMaterial::~QMorphPhongMaterial()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qmorphphongmaterial.html#dtor.QMorphPhongMaterial">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Destroys the <a href="http://doc.qt.io/qt-5/qt3dextras-qmorphphongmaterial.html">QMorphPhongMaterial</a>.</p></div>
unsafe fn delete(&mut self) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QMorphPhongMaterial_dQMorphPhongMaterial(
self as *mut crate::QMorphPhongMaterial,
)
}
}
impl ::cpp_core::CppDeletable for crate::QNormalDiffuseMapMaterial {
/// <p>Destroys the <a href="http://doc.qt.io/qt-5/qt3dextras-qnormaldiffusemapmaterial.html">QNormalDiffuseMapMaterial</a> instance.</p>
///
/// Calls C++ function: <span style='color: green;'>```virtual [destructor] void Qt3DExtras::QNormalDiffuseMapMaterial::~QNormalDiffuseMapMaterial()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qnormaldiffusemapmaterial.html#dtor.QNormalDiffuseMapMaterial">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Destroys the <a href="http://doc.qt.io/qt-5/qt3dextras-qnormaldiffusemapmaterial.html">QNormalDiffuseMapMaterial</a> instance.</p></div>
unsafe fn delete(&mut self) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QNormalDiffuseMapMaterial_dQNormalDiffuseMapMaterial(self as *mut crate::QNormalDiffuseMapMaterial)
}
}
impl ::cpp_core::CppDeletable for crate::QNormalDiffuseMapAlphaMaterial {
/// <p>Destroys the <a href="http://doc.qt.io/qt-5/qt3dextras-qnormaldiffusemapalphamaterial.html">QNormalDiffuseMapAlphaMaterial</a> instance.</p>
///
/// Calls C++ function: <span style='color: green;'>```virtual [destructor] void Qt3DExtras::QNormalDiffuseMapAlphaMaterial::~QNormalDiffuseMapAlphaMaterial()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qnormaldiffusemapalphamaterial.html#dtor.QNormalDiffuseMapAlphaMaterial">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Destroys the <a href="http://doc.qt.io/qt-5/qt3dextras-qnormaldiffusemapalphamaterial.html">QNormalDiffuseMapAlphaMaterial</a> instance.</p></div>
unsafe fn delete(&mut self) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QNormalDiffuseMapAlphaMaterial_dQNormalDiffuseMapAlphaMaterial(self as *mut crate::QNormalDiffuseMapAlphaMaterial)
}
}
impl ::cpp_core::CppDeletable for crate::QNormalDiffuseSpecularMapMaterial {
/// <p>Destroys the <a href="http://doc.qt.io/qt-5/qt3dextras-qnormaldiffusespecularmapmaterial.html">QNormalDiffuseSpecularMapMaterial</a> instance.</p>
///
/// Calls C++ function: <span style='color: green;'>```virtual [destructor] void Qt3DExtras::QNormalDiffuseSpecularMapMaterial::~QNormalDiffuseSpecularMapMaterial()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qnormaldiffusespecularmapmaterial.html#dtor.QNormalDiffuseSpecularMapMaterial">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Destroys the <a href="http://doc.qt.io/qt-5/qt3dextras-qnormaldiffusespecularmapmaterial.html">QNormalDiffuseSpecularMapMaterial</a> instance.</p></div>
unsafe fn delete(&mut self) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QNormalDiffuseSpecularMapMaterial_dQNormalDiffuseSpecularMapMaterial(self as *mut crate::QNormalDiffuseSpecularMapMaterial)
}
}
impl ::cpp_core::CppDeletable for crate::QOrbitCameraController {
/// <p>Destroys the instance of QOrbitCameraController.</p>
///
/// Calls C++ function: <span style='color: green;'>```virtual [destructor] void Qt3DExtras::QOrbitCameraController::~QOrbitCameraController()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qorbitcameracontroller.html#dtor.QOrbitCameraController">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Destroys the instance of QOrbitCameraController.</p></div>
unsafe fn delete(&mut self) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QOrbitCameraController_dQOrbitCameraController(
self as *mut crate::QOrbitCameraController,
)
}
}
impl ::cpp_core::CppDeletable for crate::QPerVertexColorMaterial {
/// <p>Destroys the <a href="http://doc.qt.io/qt-5/qt3dextras-qpervertexcolormaterial.html">QPerVertexColorMaterial</a></p>
///
/// Calls C++ function: <span style='color: green;'>```virtual [destructor] void Qt3DExtras::QPerVertexColorMaterial::~QPerVertexColorMaterial()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qpervertexcolormaterial.html#dtor.QPerVertexColorMaterial">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Destroys the <a href="http://doc.qt.io/qt-5/qt3dextras-qpervertexcolormaterial.html">QPerVertexColorMaterial</a></p></div>
unsafe fn delete(&mut self) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QPerVertexColorMaterial_dQPerVertexColorMaterial(self as *mut crate::QPerVertexColorMaterial)
}
}
impl ::cpp_core::CppDeletable for crate::QPhongAlphaMaterial {
/// <p>Destroys the <a href="http://doc.qt.io/qt-5/qt3dextras-qphongalphamaterial.html">QPhongAlphaMaterial</a>.</p>
///
/// Calls C++ function: <span style='color: green;'>```virtual [destructor] void Qt3DExtras::QPhongAlphaMaterial::~QPhongAlphaMaterial()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qphongalphamaterial.html#dtor.QPhongAlphaMaterial">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Destroys the <a href="http://doc.qt.io/qt-5/qt3dextras-qphongalphamaterial.html">QPhongAlphaMaterial</a>.</p></div>
unsafe fn delete(&mut self) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QPhongAlphaMaterial_dQPhongAlphaMaterial(
self as *mut crate::QPhongAlphaMaterial,
)
}
}
impl ::cpp_core::CppDeletable for crate::QPhongMaterial {
/// <p>Destroys the <a href="http://doc.qt.io/qt-5/qt3dextras-qphongmaterial.html">QPhongMaterial</a>.</p>
///
/// Calls C++ function: <span style='color: green;'>```virtual [destructor] void Qt3DExtras::QPhongMaterial::~QPhongMaterial()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qphongmaterial.html#dtor.QPhongMaterial">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Destroys the <a href="http://doc.qt.io/qt-5/qt3dextras-qphongmaterial.html">QPhongMaterial</a>.</p></div>
unsafe fn delete(&mut self) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QPhongMaterial_dQPhongMaterial(
self as *mut crate::QPhongMaterial,
)
}
}
impl ::cpp_core::CppDeletable for crate::QPlaneGeometry {
/// Calls C++ function: <span style='color: green;'>```virtual [destructor] void Qt3DExtras::QPlaneGeometry::~QPlaneGeometry()```</span>.
unsafe fn delete(&mut self) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QPlaneGeometry_dQPlaneGeometry(
self as *mut crate::QPlaneGeometry,
)
}
}
impl ::cpp_core::CppDeletable for crate::QPlaneMesh {
/// Calls C++ function: <span style='color: green;'>```virtual [destructor] void Qt3DExtras::QPlaneMesh::~QPlaneMesh()```</span>.
unsafe fn delete(&mut self) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QPlaneMesh_dQPlaneMesh(
self as *mut crate::QPlaneMesh,
)
}
}
impl ::cpp_core::CppDeletable for crate::QSkyboxEntity {
/// Calls C++ function: <span style='color: green;'>```virtual [destructor] void Qt3DExtras::QSkyboxEntity::~QSkyboxEntity()```</span>.
unsafe fn delete(&mut self) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QSkyboxEntity_dQSkyboxEntity(
self as *mut crate::QSkyboxEntity,
)
}
}
impl ::cpp_core::CppDeletable for crate::QSphereGeometry {
/// Calls C++ function: <span style='color: green;'>```virtual [destructor] void Qt3DExtras::QSphereGeometry::~QSphereGeometry()```</span>.
unsafe fn delete(&mut self) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QSphereGeometry_dQSphereGeometry(
self as *mut crate::QSphereGeometry,
)
}
}
impl ::cpp_core::CppDeletable for crate::QSphereMesh {
/// Calls C++ function: <span style='color: green;'>```virtual [destructor] void Qt3DExtras::QSphereMesh::~QSphereMesh()```</span>.
unsafe fn delete(&mut self) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QSphereMesh_dQSphereMesh(
self as *mut crate::QSphereMesh,
)
}
}
impl ::cpp_core::CppDeletable for crate::Qt3DWindow {
/// <p>Destroys the instance of Qt3DWindow.</p>
///
/// Calls C++ function: <span style='color: green;'>```virtual [destructor] void Qt3DExtras::Qt3DWindow::~Qt3DWindow()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qt3dwindow.html#dtor.Qt3DWindow">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Destroys the instance of Qt3DWindow.</p></div>
unsafe fn delete(&mut self) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_Qt3DWindow_dQt3DWindow(
self as *mut crate::Qt3DWindow,
)
}
}
impl ::cpp_core::CppDeletable for crate::QText2DEntity {
/// <p>Destroys the instance of QText2DEntity.</p>
///
/// Calls C++ function: <span style='color: green;'>```virtual [destructor] void Qt3DExtras::QText2DEntity::~QText2DEntity()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qtext2dentity.html#dtor.QText2DEntity">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Destroys the instance of QText2DEntity.</p></div>
unsafe fn delete(&mut self) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QText2DEntity_dQText2DEntity(
self as *mut crate::QText2DEntity,
)
}
}
impl ::cpp_core::CppDeletable for crate::QTexturedMetalRoughMaterial {
/// <p>Destroys the <a href="http://doc.qt.io/qt-5/qt3dextras-qtexturedmetalroughmaterial.html">QTexturedMetalRoughMaterial</a> instance.</p>
///
/// Calls C++ function: <span style='color: green;'>```virtual [destructor] void Qt3DExtras::QTexturedMetalRoughMaterial::~QTexturedMetalRoughMaterial()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qtexturedmetalroughmaterial.html#dtor.QTexturedMetalRoughMaterial">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Destroys the <a href="http://doc.qt.io/qt-5/qt3dextras-qtexturedmetalroughmaterial.html">QTexturedMetalRoughMaterial</a> instance.</p></div>
unsafe fn delete(&mut self) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QTexturedMetalRoughMaterial_dQTexturedMetalRoughMaterial(self as *mut crate::QTexturedMetalRoughMaterial)
}
}
impl ::cpp_core::CppDeletable for crate::QTextureMaterial {
/// <p>Destroys the <a href="http://doc.qt.io/qt-5/qt3dextras-qtexturematerial.html">QTextureMaterial</a> instance.</p>
///
/// Calls C++ function: <span style='color: green;'>```virtual [destructor] void Qt3DExtras::QTextureMaterial::~QTextureMaterial()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qtexturematerial.html#dtor.QTextureMaterial">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Destroys the <a href="http://doc.qt.io/qt-5/qt3dextras-qtexturematerial.html">QTextureMaterial</a> instance.</p></div>
unsafe fn delete(&mut self) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QTextureMaterial_dQTextureMaterial(
self as *mut crate::QTextureMaterial,
)
}
}
impl ::cpp_core::CppDeletable for crate::QTorusGeometry {
/// Calls C++ function: <span style='color: green;'>```virtual [destructor] void Qt3DExtras::QTorusGeometry::~QTorusGeometry()```</span>.
unsafe fn delete(&mut self) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QTorusGeometry_dQTorusGeometry(
self as *mut crate::QTorusGeometry,
)
}
}
impl ::cpp_core::CppDeletable for crate::QTorusMesh {
/// Calls C++ function: <span style='color: green;'>```virtual [destructor] void Qt3DExtras::QTorusMesh::~QTorusMesh()```</span>.
unsafe fn delete(&mut self) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QTorusMesh_dQTorusMesh(
self as *mut crate::QTorusMesh,
)
}
}
impl ::cpp_core::StaticDowncast<crate::QConeGeometry> for ::qt_3d_render::QGeometry {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QConeGeometry* static_cast<Qt3DExtras::QConeGeometry*>(Qt3DRender::QGeometry* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_3d_render::QGeometry>,
) -> ::cpp_core::Ptr<crate::QConeGeometry> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QConeGeometry_ptr(
ptr.as_raw_ptr() as *mut ::qt_3d_render::QGeometry,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QConeGeometry* static_cast<Qt3DExtras::QConeGeometry*>(Qt3DRender::QGeometry* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_render::QGeometry>,
) -> ::cpp_core::MutPtr<crate::QConeGeometry> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QConeGeometry_ptr(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_3d_render::QGeometry> for crate::QConeGeometry {
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QGeometry* static_cast<Qt3DRender::QGeometry*>(Qt3DExtras::QConeGeometry* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QConeGeometry>,
) -> ::cpp_core::Ptr<::qt_3d_render::QGeometry> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DRender_QGeometry_ptr(
ptr.as_raw_ptr() as *mut crate::QConeGeometry,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QGeometry* static_cast<Qt3DRender::QGeometry*>(Qt3DExtras::QConeGeometry* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QConeGeometry>,
) -> ::cpp_core::MutPtr<::qt_3d_render::QGeometry> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DRender_QGeometry_ptr(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::std::ops::Deref for crate::QConeGeometry {
type Target = ::qt_3d_render::QGeometry;
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QGeometry* static_cast<Qt3DRender::QGeometry*>(Qt3DExtras::QConeGeometry* ptr)```</span>.
fn deref(&self) -> &::qt_3d_render::QGeometry {
let ffi_result = unsafe {
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DRender_QGeometry_ptr(
self as *const crate::QConeGeometry as *mut crate::QConeGeometry,
)
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::std::ops::DerefMut for crate::QConeGeometry {
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QGeometry* static_cast<Qt3DRender::QGeometry*>(Qt3DExtras::QConeGeometry* ptr)```</span>.
fn deref_mut(&mut self) -> &mut ::qt_3d_render::QGeometry {
let ffi_result = unsafe {
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DRender_QGeometry_ptr(
self as *mut crate::QConeGeometry,
)
};
unsafe { ffi_result.as_mut() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_core::DynamicCast<crate::QConeGeometry> for ::qt_3d_render::QGeometry {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QConeGeometry* dynamic_cast<Qt3DExtras::QConeGeometry*>(Qt3DRender::QGeometry* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_3d_render::QGeometry>,
) -> ::cpp_core::Ptr<crate::QConeGeometry> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QConeGeometry_ptr(
ptr.as_raw_ptr() as *mut ::qt_3d_render::QGeometry,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QConeGeometry* dynamic_cast<Qt3DExtras::QConeGeometry*>(Qt3DRender::QGeometry* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_render::QGeometry>,
) -> ::cpp_core::MutPtr<crate::QConeGeometry> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QConeGeometry_ptr(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QConeGeometry> for ::qt_3d_core::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QConeGeometry* static_cast<Qt3DExtras::QConeGeometry*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QNode>,
) -> ::cpp_core::Ptr<crate::QConeGeometry> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QConeGeometry_ptr1(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QNode,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QConeGeometry* static_cast<Qt3DExtras::QConeGeometry*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QNode>,
) -> ::cpp_core::MutPtr<crate::QConeGeometry> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QConeGeometry_ptr1(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_3d_core::QNode> for crate::QConeGeometry {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DExtras::QConeGeometry* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QConeGeometry>,
) -> ::cpp_core::Ptr<::qt_3d_core::QNode> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QNode_ptr(
ptr.as_raw_ptr() as *mut crate::QConeGeometry,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DExtras::QConeGeometry* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QConeGeometry>,
) -> ::cpp_core::MutPtr<::qt_3d_core::QNode> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QNode_ptr(ptr.as_mut_raw_ptr());
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QConeGeometry> for ::qt_3d_core::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QConeGeometry* dynamic_cast<Qt3DExtras::QConeGeometry*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QNode>,
) -> ::cpp_core::Ptr<crate::QConeGeometry> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QConeGeometry_ptr1(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QNode,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QConeGeometry* dynamic_cast<Qt3DExtras::QConeGeometry*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QNode>,
) -> ::cpp_core::MutPtr<crate::QConeGeometry> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QConeGeometry_ptr1(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QConeGeometry> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QConeGeometry* static_cast<Qt3DExtras::QConeGeometry*>(QObject* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QConeGeometry> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QConeGeometry_ptr2(
ptr.as_raw_ptr() as *mut ::qt_core::QObject,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QConeGeometry* static_cast<Qt3DExtras::QConeGeometry*>(QObject* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_core::QObject>,
) -> ::cpp_core::MutPtr<crate::QConeGeometry> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QConeGeometry_ptr2(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_core::QObject> for crate::QConeGeometry {
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(Qt3DExtras::QConeGeometry* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QConeGeometry>,
) -> ::cpp_core::Ptr<::qt_core::QObject> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_QObject_ptr(
ptr.as_raw_ptr() as *mut crate::QConeGeometry,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(Qt3DExtras::QConeGeometry* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QConeGeometry>,
) -> ::cpp_core::MutPtr<::qt_core::QObject> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_QObject_ptr(ptr.as_mut_raw_ptr());
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QConeGeometry> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QConeGeometry* dynamic_cast<Qt3DExtras::QConeGeometry*>(QObject* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QConeGeometry> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QConeGeometry_ptr2(
ptr.as_raw_ptr() as *mut ::qt_core::QObject,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QConeGeometry* dynamic_cast<Qt3DExtras::QConeGeometry*>(QObject* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_core::QObject>,
) -> ::cpp_core::MutPtr<crate::QConeGeometry> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QConeGeometry_ptr2(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QConeMesh> for ::qt_3d_render::QGeometryRenderer {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QConeMesh* static_cast<Qt3DExtras::QConeMesh*>(Qt3DRender::QGeometryRenderer* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_3d_render::QGeometryRenderer>,
) -> ::cpp_core::Ptr<crate::QConeMesh> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QConeMesh_ptr(
ptr.as_raw_ptr() as *mut ::qt_3d_render::QGeometryRenderer,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QConeMesh* static_cast<Qt3DExtras::QConeMesh*>(Qt3DRender::QGeometryRenderer* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_render::QGeometryRenderer>,
) -> ::cpp_core::MutPtr<crate::QConeMesh> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QConeMesh_ptr(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_3d_render::QGeometryRenderer> for crate::QConeMesh {
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QGeometryRenderer* static_cast<Qt3DRender::QGeometryRenderer*>(Qt3DExtras::QConeMesh* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QConeMesh>,
) -> ::cpp_core::Ptr<::qt_3d_render::QGeometryRenderer> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DRender_QGeometryRenderer_ptr(
ptr.as_raw_ptr() as *mut crate::QConeMesh,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QGeometryRenderer* static_cast<Qt3DRender::QGeometryRenderer*>(Qt3DExtras::QConeMesh* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QConeMesh>,
) -> ::cpp_core::MutPtr<::qt_3d_render::QGeometryRenderer> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DRender_QGeometryRenderer_ptr(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::std::ops::Deref for crate::QConeMesh {
type Target = ::qt_3d_render::QGeometryRenderer;
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QGeometryRenderer* static_cast<Qt3DRender::QGeometryRenderer*>(Qt3DExtras::QConeMesh* ptr)```</span>.
fn deref(&self) -> &::qt_3d_render::QGeometryRenderer {
let ffi_result = unsafe {
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DRender_QGeometryRenderer_ptr(
self as *const crate::QConeMesh as *mut crate::QConeMesh,
)
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::std::ops::DerefMut for crate::QConeMesh {
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QGeometryRenderer* static_cast<Qt3DRender::QGeometryRenderer*>(Qt3DExtras::QConeMesh* ptr)```</span>.
fn deref_mut(&mut self) -> &mut ::qt_3d_render::QGeometryRenderer {
let ffi_result = unsafe {
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DRender_QGeometryRenderer_ptr(
self as *mut crate::QConeMesh,
)
};
unsafe { ffi_result.as_mut() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_core::DynamicCast<crate::QConeMesh> for ::qt_3d_render::QGeometryRenderer {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QConeMesh* dynamic_cast<Qt3DExtras::QConeMesh*>(Qt3DRender::QGeometryRenderer* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_3d_render::QGeometryRenderer>,
) -> ::cpp_core::Ptr<crate::QConeMesh> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QConeMesh_ptr(
ptr.as_raw_ptr() as *mut ::qt_3d_render::QGeometryRenderer,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QConeMesh* dynamic_cast<Qt3DExtras::QConeMesh*>(Qt3DRender::QGeometryRenderer* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_render::QGeometryRenderer>,
) -> ::cpp_core::MutPtr<crate::QConeMesh> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QConeMesh_ptr(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QConeMesh> for ::qt_3d_core::QComponent {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QConeMesh* static_cast<Qt3DExtras::QConeMesh*>(Qt3DCore::QComponent* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QComponent>,
) -> ::cpp_core::Ptr<crate::QConeMesh> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QConeMesh_ptr1(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QComponent,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QConeMesh* static_cast<Qt3DExtras::QConeMesh*>(Qt3DCore::QComponent* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QComponent>,
) -> ::cpp_core::MutPtr<crate::QConeMesh> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QConeMesh_ptr1(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_3d_core::QComponent> for crate::QConeMesh {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QComponent* static_cast<Qt3DCore::QComponent*>(Qt3DExtras::QConeMesh* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QConeMesh>,
) -> ::cpp_core::Ptr<::qt_3d_core::QComponent> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QComponent_ptr(
ptr.as_raw_ptr() as *mut crate::QConeMesh,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QComponent* static_cast<Qt3DCore::QComponent*>(Qt3DExtras::QConeMesh* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QConeMesh>,
) -> ::cpp_core::MutPtr<::qt_3d_core::QComponent> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QComponent_ptr(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QConeMesh> for ::qt_3d_core::QComponent {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QConeMesh* dynamic_cast<Qt3DExtras::QConeMesh*>(Qt3DCore::QComponent* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QComponent>,
) -> ::cpp_core::Ptr<crate::QConeMesh> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QConeMesh_ptr1(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QComponent,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QConeMesh* dynamic_cast<Qt3DExtras::QConeMesh*>(Qt3DCore::QComponent* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QComponent>,
) -> ::cpp_core::MutPtr<crate::QConeMesh> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QConeMesh_ptr1(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QConeMesh> for ::qt_3d_core::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QConeMesh* static_cast<Qt3DExtras::QConeMesh*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QNode>,
) -> ::cpp_core::Ptr<crate::QConeMesh> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QConeMesh_ptr2(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QNode,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QConeMesh* static_cast<Qt3DExtras::QConeMesh*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QNode>,
) -> ::cpp_core::MutPtr<crate::QConeMesh> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QConeMesh_ptr2(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_3d_core::QNode> for crate::QConeMesh {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DExtras::QConeMesh* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QConeMesh>,
) -> ::cpp_core::Ptr<::qt_3d_core::QNode> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QNode_ptr1(
ptr.as_raw_ptr() as *mut crate::QConeMesh,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DExtras::QConeMesh* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QConeMesh>,
) -> ::cpp_core::MutPtr<::qt_3d_core::QNode> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QNode_ptr1(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QConeMesh> for ::qt_3d_core::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QConeMesh* dynamic_cast<Qt3DExtras::QConeMesh*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QNode>,
) -> ::cpp_core::Ptr<crate::QConeMesh> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QConeMesh_ptr2(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QNode,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QConeMesh* dynamic_cast<Qt3DExtras::QConeMesh*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QNode>,
) -> ::cpp_core::MutPtr<crate::QConeMesh> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QConeMesh_ptr2(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QConeMesh> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QConeMesh* static_cast<Qt3DExtras::QConeMesh*>(QObject* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QConeMesh> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QConeMesh_ptr3(
ptr.as_raw_ptr() as *mut ::qt_core::QObject,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QConeMesh* static_cast<Qt3DExtras::QConeMesh*>(QObject* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_core::QObject>,
) -> ::cpp_core::MutPtr<crate::QConeMesh> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QConeMesh_ptr3(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_core::QObject> for crate::QConeMesh {
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(Qt3DExtras::QConeMesh* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QConeMesh>,
) -> ::cpp_core::Ptr<::qt_core::QObject> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_QObject_ptr1(
ptr.as_raw_ptr() as *mut crate::QConeMesh,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(Qt3DExtras::QConeMesh* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QConeMesh>,
) -> ::cpp_core::MutPtr<::qt_core::QObject> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_QObject_ptr1(ptr.as_mut_raw_ptr());
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QConeMesh> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QConeMesh* dynamic_cast<Qt3DExtras::QConeMesh*>(QObject* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QConeMesh> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QConeMesh_ptr3(
ptr.as_raw_ptr() as *mut ::qt_core::QObject,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QConeMesh* dynamic_cast<Qt3DExtras::QConeMesh*>(QObject* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_core::QObject>,
) -> ::cpp_core::MutPtr<crate::QConeMesh> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QConeMesh_ptr3(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QCuboidGeometry> for ::qt_3d_render::QGeometry {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QCuboidGeometry* static_cast<Qt3DExtras::QCuboidGeometry*>(Qt3DRender::QGeometry* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_3d_render::QGeometry>,
) -> ::cpp_core::Ptr<crate::QCuboidGeometry> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QCuboidGeometry_ptr(
ptr.as_raw_ptr() as *mut ::qt_3d_render::QGeometry,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QCuboidGeometry* static_cast<Qt3DExtras::QCuboidGeometry*>(Qt3DRender::QGeometry* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_render::QGeometry>,
) -> ::cpp_core::MutPtr<crate::QCuboidGeometry> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QCuboidGeometry_ptr(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_3d_render::QGeometry> for crate::QCuboidGeometry {
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QGeometry* static_cast<Qt3DRender::QGeometry*>(Qt3DExtras::QCuboidGeometry* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QCuboidGeometry>,
) -> ::cpp_core::Ptr<::qt_3d_render::QGeometry> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DRender_QGeometry_ptr1(
ptr.as_raw_ptr() as *mut crate::QCuboidGeometry,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QGeometry* static_cast<Qt3DRender::QGeometry*>(Qt3DExtras::QCuboidGeometry* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QCuboidGeometry>,
) -> ::cpp_core::MutPtr<::qt_3d_render::QGeometry> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DRender_QGeometry_ptr1(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::std::ops::Deref for crate::QCuboidGeometry {
type Target = ::qt_3d_render::QGeometry;
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QGeometry* static_cast<Qt3DRender::QGeometry*>(Qt3DExtras::QCuboidGeometry* ptr)```</span>.
fn deref(&self) -> &::qt_3d_render::QGeometry {
let ffi_result = unsafe {
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DRender_QGeometry_ptr1(
self as *const crate::QCuboidGeometry as *mut crate::QCuboidGeometry,
)
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::std::ops::DerefMut for crate::QCuboidGeometry {
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QGeometry* static_cast<Qt3DRender::QGeometry*>(Qt3DExtras::QCuboidGeometry* ptr)```</span>.
fn deref_mut(&mut self) -> &mut ::qt_3d_render::QGeometry {
let ffi_result = unsafe {
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DRender_QGeometry_ptr1(
self as *mut crate::QCuboidGeometry,
)
};
unsafe { ffi_result.as_mut() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_core::DynamicCast<crate::QCuboidGeometry> for ::qt_3d_render::QGeometry {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QCuboidGeometry* dynamic_cast<Qt3DExtras::QCuboidGeometry*>(Qt3DRender::QGeometry* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_3d_render::QGeometry>,
) -> ::cpp_core::Ptr<crate::QCuboidGeometry> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QCuboidGeometry_ptr(
ptr.as_raw_ptr() as *mut ::qt_3d_render::QGeometry,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QCuboidGeometry* dynamic_cast<Qt3DExtras::QCuboidGeometry*>(Qt3DRender::QGeometry* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_render::QGeometry>,
) -> ::cpp_core::MutPtr<crate::QCuboidGeometry> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QCuboidGeometry_ptr(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QCuboidGeometry> for ::qt_3d_core::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QCuboidGeometry* static_cast<Qt3DExtras::QCuboidGeometry*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QNode>,
) -> ::cpp_core::Ptr<crate::QCuboidGeometry> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QCuboidGeometry_ptr1(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QNode,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QCuboidGeometry* static_cast<Qt3DExtras::QCuboidGeometry*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QNode>,
) -> ::cpp_core::MutPtr<crate::QCuboidGeometry> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QCuboidGeometry_ptr1(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_3d_core::QNode> for crate::QCuboidGeometry {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DExtras::QCuboidGeometry* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QCuboidGeometry>,
) -> ::cpp_core::Ptr<::qt_3d_core::QNode> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QNode_ptr2(
ptr.as_raw_ptr() as *mut crate::QCuboidGeometry,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DExtras::QCuboidGeometry* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QCuboidGeometry>,
) -> ::cpp_core::MutPtr<::qt_3d_core::QNode> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QNode_ptr2(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QCuboidGeometry> for ::qt_3d_core::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QCuboidGeometry* dynamic_cast<Qt3DExtras::QCuboidGeometry*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QNode>,
) -> ::cpp_core::Ptr<crate::QCuboidGeometry> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QCuboidGeometry_ptr1(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QNode,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QCuboidGeometry* dynamic_cast<Qt3DExtras::QCuboidGeometry*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QNode>,
) -> ::cpp_core::MutPtr<crate::QCuboidGeometry> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QCuboidGeometry_ptr1(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QCuboidGeometry> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QCuboidGeometry* static_cast<Qt3DExtras::QCuboidGeometry*>(QObject* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QCuboidGeometry> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QCuboidGeometry_ptr2(
ptr.as_raw_ptr() as *mut ::qt_core::QObject,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QCuboidGeometry* static_cast<Qt3DExtras::QCuboidGeometry*>(QObject* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_core::QObject>,
) -> ::cpp_core::MutPtr<crate::QCuboidGeometry> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QCuboidGeometry_ptr2(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_core::QObject> for crate::QCuboidGeometry {
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(Qt3DExtras::QCuboidGeometry* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QCuboidGeometry>,
) -> ::cpp_core::Ptr<::qt_core::QObject> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_QObject_ptr2(
ptr.as_raw_ptr() as *mut crate::QCuboidGeometry,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(Qt3DExtras::QCuboidGeometry* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QCuboidGeometry>,
) -> ::cpp_core::MutPtr<::qt_core::QObject> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_QObject_ptr2(ptr.as_mut_raw_ptr());
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QCuboidGeometry> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QCuboidGeometry* dynamic_cast<Qt3DExtras::QCuboidGeometry*>(QObject* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QCuboidGeometry> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QCuboidGeometry_ptr2(
ptr.as_raw_ptr() as *mut ::qt_core::QObject,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QCuboidGeometry* dynamic_cast<Qt3DExtras::QCuboidGeometry*>(QObject* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_core::QObject>,
) -> ::cpp_core::MutPtr<crate::QCuboidGeometry> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QCuboidGeometry_ptr2(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QCuboidMesh> for ::qt_3d_render::QGeometryRenderer {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QCuboidMesh* static_cast<Qt3DExtras::QCuboidMesh*>(Qt3DRender::QGeometryRenderer* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_3d_render::QGeometryRenderer>,
) -> ::cpp_core::Ptr<crate::QCuboidMesh> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QCuboidMesh_ptr(
ptr.as_raw_ptr() as *mut ::qt_3d_render::QGeometryRenderer,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QCuboidMesh* static_cast<Qt3DExtras::QCuboidMesh*>(Qt3DRender::QGeometryRenderer* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_render::QGeometryRenderer>,
) -> ::cpp_core::MutPtr<crate::QCuboidMesh> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QCuboidMesh_ptr(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_3d_render::QGeometryRenderer> for crate::QCuboidMesh {
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QGeometryRenderer* static_cast<Qt3DRender::QGeometryRenderer*>(Qt3DExtras::QCuboidMesh* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QCuboidMesh>,
) -> ::cpp_core::Ptr<::qt_3d_render::QGeometryRenderer> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DRender_QGeometryRenderer_ptr1(
ptr.as_raw_ptr() as *mut crate::QCuboidMesh,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QGeometryRenderer* static_cast<Qt3DRender::QGeometryRenderer*>(Qt3DExtras::QCuboidMesh* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QCuboidMesh>,
) -> ::cpp_core::MutPtr<::qt_3d_render::QGeometryRenderer> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DRender_QGeometryRenderer_ptr1(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::std::ops::Deref for crate::QCuboidMesh {
type Target = ::qt_3d_render::QGeometryRenderer;
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QGeometryRenderer* static_cast<Qt3DRender::QGeometryRenderer*>(Qt3DExtras::QCuboidMesh* ptr)```</span>.
fn deref(&self) -> &::qt_3d_render::QGeometryRenderer {
let ffi_result = unsafe {
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DRender_QGeometryRenderer_ptr1(
self as *const crate::QCuboidMesh as *mut crate::QCuboidMesh,
)
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::std::ops::DerefMut for crate::QCuboidMesh {
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QGeometryRenderer* static_cast<Qt3DRender::QGeometryRenderer*>(Qt3DExtras::QCuboidMesh* ptr)```</span>.
fn deref_mut(&mut self) -> &mut ::qt_3d_render::QGeometryRenderer {
let ffi_result = unsafe {
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DRender_QGeometryRenderer_ptr1(
self as *mut crate::QCuboidMesh,
)
};
unsafe { ffi_result.as_mut() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_core::DynamicCast<crate::QCuboidMesh> for ::qt_3d_render::QGeometryRenderer {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QCuboidMesh* dynamic_cast<Qt3DExtras::QCuboidMesh*>(Qt3DRender::QGeometryRenderer* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_3d_render::QGeometryRenderer>,
) -> ::cpp_core::Ptr<crate::QCuboidMesh> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QCuboidMesh_ptr(
ptr.as_raw_ptr() as *mut ::qt_3d_render::QGeometryRenderer,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QCuboidMesh* dynamic_cast<Qt3DExtras::QCuboidMesh*>(Qt3DRender::QGeometryRenderer* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_render::QGeometryRenderer>,
) -> ::cpp_core::MutPtr<crate::QCuboidMesh> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QCuboidMesh_ptr(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QCuboidMesh> for ::qt_3d_core::QComponent {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QCuboidMesh* static_cast<Qt3DExtras::QCuboidMesh*>(Qt3DCore::QComponent* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QComponent>,
) -> ::cpp_core::Ptr<crate::QCuboidMesh> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QCuboidMesh_ptr1(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QComponent,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QCuboidMesh* static_cast<Qt3DExtras::QCuboidMesh*>(Qt3DCore::QComponent* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QComponent>,
) -> ::cpp_core::MutPtr<crate::QCuboidMesh> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QCuboidMesh_ptr1(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_3d_core::QComponent> for crate::QCuboidMesh {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QComponent* static_cast<Qt3DCore::QComponent*>(Qt3DExtras::QCuboidMesh* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QCuboidMesh>,
) -> ::cpp_core::Ptr<::qt_3d_core::QComponent> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QComponent_ptr1(
ptr.as_raw_ptr() as *mut crate::QCuboidMesh,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QComponent* static_cast<Qt3DCore::QComponent*>(Qt3DExtras::QCuboidMesh* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QCuboidMesh>,
) -> ::cpp_core::MutPtr<::qt_3d_core::QComponent> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QComponent_ptr1(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QCuboidMesh> for ::qt_3d_core::QComponent {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QCuboidMesh* dynamic_cast<Qt3DExtras::QCuboidMesh*>(Qt3DCore::QComponent* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QComponent>,
) -> ::cpp_core::Ptr<crate::QCuboidMesh> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QCuboidMesh_ptr1(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QComponent,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QCuboidMesh* dynamic_cast<Qt3DExtras::QCuboidMesh*>(Qt3DCore::QComponent* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QComponent>,
) -> ::cpp_core::MutPtr<crate::QCuboidMesh> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QCuboidMesh_ptr1(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QCuboidMesh> for ::qt_3d_core::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QCuboidMesh* static_cast<Qt3DExtras::QCuboidMesh*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QNode>,
) -> ::cpp_core::Ptr<crate::QCuboidMesh> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QCuboidMesh_ptr2(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QNode,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QCuboidMesh* static_cast<Qt3DExtras::QCuboidMesh*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QNode>,
) -> ::cpp_core::MutPtr<crate::QCuboidMesh> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QCuboidMesh_ptr2(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_3d_core::QNode> for crate::QCuboidMesh {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DExtras::QCuboidMesh* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QCuboidMesh>,
) -> ::cpp_core::Ptr<::qt_3d_core::QNode> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QNode_ptr3(
ptr.as_raw_ptr() as *mut crate::QCuboidMesh,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DExtras::QCuboidMesh* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QCuboidMesh>,
) -> ::cpp_core::MutPtr<::qt_3d_core::QNode> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QNode_ptr3(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QCuboidMesh> for ::qt_3d_core::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QCuboidMesh* dynamic_cast<Qt3DExtras::QCuboidMesh*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QNode>,
) -> ::cpp_core::Ptr<crate::QCuboidMesh> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QCuboidMesh_ptr2(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QNode,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QCuboidMesh* dynamic_cast<Qt3DExtras::QCuboidMesh*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QNode>,
) -> ::cpp_core::MutPtr<crate::QCuboidMesh> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QCuboidMesh_ptr2(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QCuboidMesh> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QCuboidMesh* static_cast<Qt3DExtras::QCuboidMesh*>(QObject* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QCuboidMesh> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QCuboidMesh_ptr3(
ptr.as_raw_ptr() as *mut ::qt_core::QObject,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QCuboidMesh* static_cast<Qt3DExtras::QCuboidMesh*>(QObject* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_core::QObject>,
) -> ::cpp_core::MutPtr<crate::QCuboidMesh> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QCuboidMesh_ptr3(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_core::QObject> for crate::QCuboidMesh {
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(Qt3DExtras::QCuboidMesh* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QCuboidMesh>,
) -> ::cpp_core::Ptr<::qt_core::QObject> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_QObject_ptr3(
ptr.as_raw_ptr() as *mut crate::QCuboidMesh,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(Qt3DExtras::QCuboidMesh* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QCuboidMesh>,
) -> ::cpp_core::MutPtr<::qt_core::QObject> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_QObject_ptr3(ptr.as_mut_raw_ptr());
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QCuboidMesh> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QCuboidMesh* dynamic_cast<Qt3DExtras::QCuboidMesh*>(QObject* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QCuboidMesh> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QCuboidMesh_ptr3(
ptr.as_raw_ptr() as *mut ::qt_core::QObject,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QCuboidMesh* dynamic_cast<Qt3DExtras::QCuboidMesh*>(QObject* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_core::QObject>,
) -> ::cpp_core::MutPtr<crate::QCuboidMesh> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QCuboidMesh_ptr3(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QCylinderGeometry> for ::qt_3d_render::QGeometry {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QCylinderGeometry* static_cast<Qt3DExtras::QCylinderGeometry*>(Qt3DRender::QGeometry* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_3d_render::QGeometry>,
) -> ::cpp_core::Ptr<crate::QCylinderGeometry> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QCylinderGeometry_ptr(
ptr.as_raw_ptr() as *mut ::qt_3d_render::QGeometry,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QCylinderGeometry* static_cast<Qt3DExtras::QCylinderGeometry*>(Qt3DRender::QGeometry* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_render::QGeometry>,
) -> ::cpp_core::MutPtr<crate::QCylinderGeometry> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QCylinderGeometry_ptr(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_3d_render::QGeometry> for crate::QCylinderGeometry {
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QGeometry* static_cast<Qt3DRender::QGeometry*>(Qt3DExtras::QCylinderGeometry* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QCylinderGeometry>,
) -> ::cpp_core::Ptr<::qt_3d_render::QGeometry> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DRender_QGeometry_ptr2(
ptr.as_raw_ptr() as *mut crate::QCylinderGeometry,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QGeometry* static_cast<Qt3DRender::QGeometry*>(Qt3DExtras::QCylinderGeometry* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QCylinderGeometry>,
) -> ::cpp_core::MutPtr<::qt_3d_render::QGeometry> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DRender_QGeometry_ptr2(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::std::ops::Deref for crate::QCylinderGeometry {
type Target = ::qt_3d_render::QGeometry;
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QGeometry* static_cast<Qt3DRender::QGeometry*>(Qt3DExtras::QCylinderGeometry* ptr)```</span>.
fn deref(&self) -> &::qt_3d_render::QGeometry {
let ffi_result = unsafe {
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DRender_QGeometry_ptr2(
self as *const crate::QCylinderGeometry as *mut crate::QCylinderGeometry,
)
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::std::ops::DerefMut for crate::QCylinderGeometry {
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QGeometry* static_cast<Qt3DRender::QGeometry*>(Qt3DExtras::QCylinderGeometry* ptr)```</span>.
fn deref_mut(&mut self) -> &mut ::qt_3d_render::QGeometry {
let ffi_result = unsafe {
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DRender_QGeometry_ptr2(
self as *mut crate::QCylinderGeometry,
)
};
unsafe { ffi_result.as_mut() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_core::DynamicCast<crate::QCylinderGeometry> for ::qt_3d_render::QGeometry {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QCylinderGeometry* dynamic_cast<Qt3DExtras::QCylinderGeometry*>(Qt3DRender::QGeometry* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_3d_render::QGeometry>,
) -> ::cpp_core::Ptr<crate::QCylinderGeometry> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QCylinderGeometry_ptr(
ptr.as_raw_ptr() as *mut ::qt_3d_render::QGeometry,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QCylinderGeometry* dynamic_cast<Qt3DExtras::QCylinderGeometry*>(Qt3DRender::QGeometry* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_render::QGeometry>,
) -> ::cpp_core::MutPtr<crate::QCylinderGeometry> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QCylinderGeometry_ptr(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QCylinderGeometry> for ::qt_3d_core::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QCylinderGeometry* static_cast<Qt3DExtras::QCylinderGeometry*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QNode>,
) -> ::cpp_core::Ptr<crate::QCylinderGeometry> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QCylinderGeometry_ptr1(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QNode,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QCylinderGeometry* static_cast<Qt3DExtras::QCylinderGeometry*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QNode>,
) -> ::cpp_core::MutPtr<crate::QCylinderGeometry> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QCylinderGeometry_ptr1(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_3d_core::QNode> for crate::QCylinderGeometry {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DExtras::QCylinderGeometry* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QCylinderGeometry>,
) -> ::cpp_core::Ptr<::qt_3d_core::QNode> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QNode_ptr4(
ptr.as_raw_ptr() as *mut crate::QCylinderGeometry,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DExtras::QCylinderGeometry* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QCylinderGeometry>,
) -> ::cpp_core::MutPtr<::qt_3d_core::QNode> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QNode_ptr4(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QCylinderGeometry> for ::qt_3d_core::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QCylinderGeometry* dynamic_cast<Qt3DExtras::QCylinderGeometry*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QNode>,
) -> ::cpp_core::Ptr<crate::QCylinderGeometry> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QCylinderGeometry_ptr1(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QNode,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QCylinderGeometry* dynamic_cast<Qt3DExtras::QCylinderGeometry*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QNode>,
) -> ::cpp_core::MutPtr<crate::QCylinderGeometry> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QCylinderGeometry_ptr1(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QCylinderGeometry> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QCylinderGeometry* static_cast<Qt3DExtras::QCylinderGeometry*>(QObject* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QCylinderGeometry> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QCylinderGeometry_ptr2(
ptr.as_raw_ptr() as *mut ::qt_core::QObject,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QCylinderGeometry* static_cast<Qt3DExtras::QCylinderGeometry*>(QObject* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_core::QObject>,
) -> ::cpp_core::MutPtr<crate::QCylinderGeometry> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QCylinderGeometry_ptr2(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_core::QObject> for crate::QCylinderGeometry {
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(Qt3DExtras::QCylinderGeometry* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QCylinderGeometry>,
) -> ::cpp_core::Ptr<::qt_core::QObject> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_QObject_ptr4(
ptr.as_raw_ptr() as *mut crate::QCylinderGeometry,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(Qt3DExtras::QCylinderGeometry* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QCylinderGeometry>,
) -> ::cpp_core::MutPtr<::qt_core::QObject> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_QObject_ptr4(ptr.as_mut_raw_ptr());
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QCylinderGeometry> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QCylinderGeometry* dynamic_cast<Qt3DExtras::QCylinderGeometry*>(QObject* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QCylinderGeometry> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QCylinderGeometry_ptr2(
ptr.as_raw_ptr() as *mut ::qt_core::QObject,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QCylinderGeometry* dynamic_cast<Qt3DExtras::QCylinderGeometry*>(QObject* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_core::QObject>,
) -> ::cpp_core::MutPtr<crate::QCylinderGeometry> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QCylinderGeometry_ptr2(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QCylinderMesh> for ::qt_3d_render::QGeometryRenderer {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QCylinderMesh* static_cast<Qt3DExtras::QCylinderMesh*>(Qt3DRender::QGeometryRenderer* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_3d_render::QGeometryRenderer>,
) -> ::cpp_core::Ptr<crate::QCylinderMesh> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QCylinderMesh_ptr(
ptr.as_raw_ptr() as *mut ::qt_3d_render::QGeometryRenderer,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QCylinderMesh* static_cast<Qt3DExtras::QCylinderMesh*>(Qt3DRender::QGeometryRenderer* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_render::QGeometryRenderer>,
) -> ::cpp_core::MutPtr<crate::QCylinderMesh> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QCylinderMesh_ptr(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_3d_render::QGeometryRenderer> for crate::QCylinderMesh {
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QGeometryRenderer* static_cast<Qt3DRender::QGeometryRenderer*>(Qt3DExtras::QCylinderMesh* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QCylinderMesh>,
) -> ::cpp_core::Ptr<::qt_3d_render::QGeometryRenderer> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DRender_QGeometryRenderer_ptr2(
ptr.as_raw_ptr() as *mut crate::QCylinderMesh,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QGeometryRenderer* static_cast<Qt3DRender::QGeometryRenderer*>(Qt3DExtras::QCylinderMesh* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QCylinderMesh>,
) -> ::cpp_core::MutPtr<::qt_3d_render::QGeometryRenderer> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DRender_QGeometryRenderer_ptr2(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::std::ops::Deref for crate::QCylinderMesh {
type Target = ::qt_3d_render::QGeometryRenderer;
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QGeometryRenderer* static_cast<Qt3DRender::QGeometryRenderer*>(Qt3DExtras::QCylinderMesh* ptr)```</span>.
fn deref(&self) -> &::qt_3d_render::QGeometryRenderer {
let ffi_result = unsafe {
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DRender_QGeometryRenderer_ptr2(
self as *const crate::QCylinderMesh as *mut crate::QCylinderMesh,
)
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::std::ops::DerefMut for crate::QCylinderMesh {
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QGeometryRenderer* static_cast<Qt3DRender::QGeometryRenderer*>(Qt3DExtras::QCylinderMesh* ptr)```</span>.
fn deref_mut(&mut self) -> &mut ::qt_3d_render::QGeometryRenderer {
let ffi_result = unsafe {
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DRender_QGeometryRenderer_ptr2(
self as *mut crate::QCylinderMesh,
)
};
unsafe { ffi_result.as_mut() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_core::DynamicCast<crate::QCylinderMesh> for ::qt_3d_render::QGeometryRenderer {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QCylinderMesh* dynamic_cast<Qt3DExtras::QCylinderMesh*>(Qt3DRender::QGeometryRenderer* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_3d_render::QGeometryRenderer>,
) -> ::cpp_core::Ptr<crate::QCylinderMesh> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QCylinderMesh_ptr(
ptr.as_raw_ptr() as *mut ::qt_3d_render::QGeometryRenderer,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QCylinderMesh* dynamic_cast<Qt3DExtras::QCylinderMesh*>(Qt3DRender::QGeometryRenderer* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_render::QGeometryRenderer>,
) -> ::cpp_core::MutPtr<crate::QCylinderMesh> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QCylinderMesh_ptr(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QCylinderMesh> for ::qt_3d_core::QComponent {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QCylinderMesh* static_cast<Qt3DExtras::QCylinderMesh*>(Qt3DCore::QComponent* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QComponent>,
) -> ::cpp_core::Ptr<crate::QCylinderMesh> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QCylinderMesh_ptr1(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QComponent,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QCylinderMesh* static_cast<Qt3DExtras::QCylinderMesh*>(Qt3DCore::QComponent* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QComponent>,
) -> ::cpp_core::MutPtr<crate::QCylinderMesh> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QCylinderMesh_ptr1(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_3d_core::QComponent> for crate::QCylinderMesh {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QComponent* static_cast<Qt3DCore::QComponent*>(Qt3DExtras::QCylinderMesh* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QCylinderMesh>,
) -> ::cpp_core::Ptr<::qt_3d_core::QComponent> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QComponent_ptr2(
ptr.as_raw_ptr() as *mut crate::QCylinderMesh,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QComponent* static_cast<Qt3DCore::QComponent*>(Qt3DExtras::QCylinderMesh* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QCylinderMesh>,
) -> ::cpp_core::MutPtr<::qt_3d_core::QComponent> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QComponent_ptr2(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QCylinderMesh> for ::qt_3d_core::QComponent {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QCylinderMesh* dynamic_cast<Qt3DExtras::QCylinderMesh*>(Qt3DCore::QComponent* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QComponent>,
) -> ::cpp_core::Ptr<crate::QCylinderMesh> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QCylinderMesh_ptr1(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QComponent,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QCylinderMesh* dynamic_cast<Qt3DExtras::QCylinderMesh*>(Qt3DCore::QComponent* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QComponent>,
) -> ::cpp_core::MutPtr<crate::QCylinderMesh> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QCylinderMesh_ptr1(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QCylinderMesh> for ::qt_3d_core::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QCylinderMesh* static_cast<Qt3DExtras::QCylinderMesh*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QNode>,
) -> ::cpp_core::Ptr<crate::QCylinderMesh> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QCylinderMesh_ptr2(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QNode,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QCylinderMesh* static_cast<Qt3DExtras::QCylinderMesh*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QNode>,
) -> ::cpp_core::MutPtr<crate::QCylinderMesh> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QCylinderMesh_ptr2(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_3d_core::QNode> for crate::QCylinderMesh {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DExtras::QCylinderMesh* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QCylinderMesh>,
) -> ::cpp_core::Ptr<::qt_3d_core::QNode> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QNode_ptr5(
ptr.as_raw_ptr() as *mut crate::QCylinderMesh,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DExtras::QCylinderMesh* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QCylinderMesh>,
) -> ::cpp_core::MutPtr<::qt_3d_core::QNode> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QNode_ptr5(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QCylinderMesh> for ::qt_3d_core::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QCylinderMesh* dynamic_cast<Qt3DExtras::QCylinderMesh*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QNode>,
) -> ::cpp_core::Ptr<crate::QCylinderMesh> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QCylinderMesh_ptr2(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QNode,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QCylinderMesh* dynamic_cast<Qt3DExtras::QCylinderMesh*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QNode>,
) -> ::cpp_core::MutPtr<crate::QCylinderMesh> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QCylinderMesh_ptr2(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QCylinderMesh> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QCylinderMesh* static_cast<Qt3DExtras::QCylinderMesh*>(QObject* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QCylinderMesh> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QCylinderMesh_ptr3(
ptr.as_raw_ptr() as *mut ::qt_core::QObject,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QCylinderMesh* static_cast<Qt3DExtras::QCylinderMesh*>(QObject* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_core::QObject>,
) -> ::cpp_core::MutPtr<crate::QCylinderMesh> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QCylinderMesh_ptr3(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_core::QObject> for crate::QCylinderMesh {
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(Qt3DExtras::QCylinderMesh* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QCylinderMesh>,
) -> ::cpp_core::Ptr<::qt_core::QObject> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_QObject_ptr5(
ptr.as_raw_ptr() as *mut crate::QCylinderMesh,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(Qt3DExtras::QCylinderMesh* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QCylinderMesh>,
) -> ::cpp_core::MutPtr<::qt_core::QObject> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_QObject_ptr5(ptr.as_mut_raw_ptr());
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QCylinderMesh> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QCylinderMesh* dynamic_cast<Qt3DExtras::QCylinderMesh*>(QObject* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QCylinderMesh> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QCylinderMesh_ptr3(
ptr.as_raw_ptr() as *mut ::qt_core::QObject,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QCylinderMesh* dynamic_cast<Qt3DExtras::QCylinderMesh*>(QObject* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_core::QObject>,
) -> ::cpp_core::MutPtr<crate::QCylinderMesh> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QCylinderMesh_ptr3(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QDiffuseMapMaterial> for ::qt_3d_render::QMaterial {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QDiffuseMapMaterial* static_cast<Qt3DExtras::QDiffuseMapMaterial*>(Qt3DRender::QMaterial* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_3d_render::QMaterial>,
) -> ::cpp_core::Ptr<crate::QDiffuseMapMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QDiffuseMapMaterial_ptr(
ptr.as_raw_ptr() as *mut ::qt_3d_render::QMaterial,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QDiffuseMapMaterial* static_cast<Qt3DExtras::QDiffuseMapMaterial*>(Qt3DRender::QMaterial* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_render::QMaterial>,
) -> ::cpp_core::MutPtr<crate::QDiffuseMapMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QDiffuseMapMaterial_ptr(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_3d_render::QMaterial> for crate::QDiffuseMapMaterial {
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QMaterial* static_cast<Qt3DRender::QMaterial*>(Qt3DExtras::QDiffuseMapMaterial* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QDiffuseMapMaterial>,
) -> ::cpp_core::Ptr<::qt_3d_render::QMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DRender_QMaterial_ptr(
ptr.as_raw_ptr() as *mut crate::QDiffuseMapMaterial,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QMaterial* static_cast<Qt3DRender::QMaterial*>(Qt3DExtras::QDiffuseMapMaterial* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QDiffuseMapMaterial>,
) -> ::cpp_core::MutPtr<::qt_3d_render::QMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DRender_QMaterial_ptr(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::std::ops::Deref for crate::QDiffuseMapMaterial {
type Target = ::qt_3d_render::QMaterial;
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QMaterial* static_cast<Qt3DRender::QMaterial*>(Qt3DExtras::QDiffuseMapMaterial* ptr)```</span>.
fn deref(&self) -> &::qt_3d_render::QMaterial {
let ffi_result = unsafe {
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DRender_QMaterial_ptr(
self as *const crate::QDiffuseMapMaterial as *mut crate::QDiffuseMapMaterial,
)
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::std::ops::DerefMut for crate::QDiffuseMapMaterial {
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QMaterial* static_cast<Qt3DRender::QMaterial*>(Qt3DExtras::QDiffuseMapMaterial* ptr)```</span>.
fn deref_mut(&mut self) -> &mut ::qt_3d_render::QMaterial {
let ffi_result = unsafe {
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DRender_QMaterial_ptr(
self as *mut crate::QDiffuseMapMaterial,
)
};
unsafe { ffi_result.as_mut() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_core::DynamicCast<crate::QDiffuseMapMaterial> for ::qt_3d_render::QMaterial {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QDiffuseMapMaterial* dynamic_cast<Qt3DExtras::QDiffuseMapMaterial*>(Qt3DRender::QMaterial* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_3d_render::QMaterial>,
) -> ::cpp_core::Ptr<crate::QDiffuseMapMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QDiffuseMapMaterial_ptr(
ptr.as_raw_ptr() as *mut ::qt_3d_render::QMaterial,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QDiffuseMapMaterial* dynamic_cast<Qt3DExtras::QDiffuseMapMaterial*>(Qt3DRender::QMaterial* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_render::QMaterial>,
) -> ::cpp_core::MutPtr<crate::QDiffuseMapMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QDiffuseMapMaterial_ptr(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QDiffuseMapMaterial> for ::qt_3d_core::QComponent {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QDiffuseMapMaterial* static_cast<Qt3DExtras::QDiffuseMapMaterial*>(Qt3DCore::QComponent* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QComponent>,
) -> ::cpp_core::Ptr<crate::QDiffuseMapMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QDiffuseMapMaterial_ptr1(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QComponent,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QDiffuseMapMaterial* static_cast<Qt3DExtras::QDiffuseMapMaterial*>(Qt3DCore::QComponent* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QComponent>,
) -> ::cpp_core::MutPtr<crate::QDiffuseMapMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QDiffuseMapMaterial_ptr1(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_3d_core::QComponent> for crate::QDiffuseMapMaterial {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QComponent* static_cast<Qt3DCore::QComponent*>(Qt3DExtras::QDiffuseMapMaterial* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QDiffuseMapMaterial>,
) -> ::cpp_core::Ptr<::qt_3d_core::QComponent> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QComponent_ptr3(
ptr.as_raw_ptr() as *mut crate::QDiffuseMapMaterial,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QComponent* static_cast<Qt3DCore::QComponent*>(Qt3DExtras::QDiffuseMapMaterial* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QDiffuseMapMaterial>,
) -> ::cpp_core::MutPtr<::qt_3d_core::QComponent> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QComponent_ptr3(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QDiffuseMapMaterial> for ::qt_3d_core::QComponent {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QDiffuseMapMaterial* dynamic_cast<Qt3DExtras::QDiffuseMapMaterial*>(Qt3DCore::QComponent* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QComponent>,
) -> ::cpp_core::Ptr<crate::QDiffuseMapMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QDiffuseMapMaterial_ptr1(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QComponent,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QDiffuseMapMaterial* dynamic_cast<Qt3DExtras::QDiffuseMapMaterial*>(Qt3DCore::QComponent* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QComponent>,
) -> ::cpp_core::MutPtr<crate::QDiffuseMapMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QDiffuseMapMaterial_ptr1(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QDiffuseMapMaterial> for ::qt_3d_core::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QDiffuseMapMaterial* static_cast<Qt3DExtras::QDiffuseMapMaterial*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QNode>,
) -> ::cpp_core::Ptr<crate::QDiffuseMapMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QDiffuseMapMaterial_ptr2(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QNode,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QDiffuseMapMaterial* static_cast<Qt3DExtras::QDiffuseMapMaterial*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QNode>,
) -> ::cpp_core::MutPtr<crate::QDiffuseMapMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QDiffuseMapMaterial_ptr2(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_3d_core::QNode> for crate::QDiffuseMapMaterial {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DExtras::QDiffuseMapMaterial* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QDiffuseMapMaterial>,
) -> ::cpp_core::Ptr<::qt_3d_core::QNode> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QNode_ptr6(
ptr.as_raw_ptr() as *mut crate::QDiffuseMapMaterial,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DExtras::QDiffuseMapMaterial* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QDiffuseMapMaterial>,
) -> ::cpp_core::MutPtr<::qt_3d_core::QNode> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QNode_ptr6(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QDiffuseMapMaterial> for ::qt_3d_core::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QDiffuseMapMaterial* dynamic_cast<Qt3DExtras::QDiffuseMapMaterial*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QNode>,
) -> ::cpp_core::Ptr<crate::QDiffuseMapMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QDiffuseMapMaterial_ptr2(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QNode,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QDiffuseMapMaterial* dynamic_cast<Qt3DExtras::QDiffuseMapMaterial*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QNode>,
) -> ::cpp_core::MutPtr<crate::QDiffuseMapMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QDiffuseMapMaterial_ptr2(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QDiffuseMapMaterial> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QDiffuseMapMaterial* static_cast<Qt3DExtras::QDiffuseMapMaterial*>(QObject* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QDiffuseMapMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QDiffuseMapMaterial_ptr3(
ptr.as_raw_ptr() as *mut ::qt_core::QObject,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QDiffuseMapMaterial* static_cast<Qt3DExtras::QDiffuseMapMaterial*>(QObject* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_core::QObject>,
) -> ::cpp_core::MutPtr<crate::QDiffuseMapMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QDiffuseMapMaterial_ptr3(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_core::QObject> for crate::QDiffuseMapMaterial {
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(Qt3DExtras::QDiffuseMapMaterial* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QDiffuseMapMaterial>,
) -> ::cpp_core::Ptr<::qt_core::QObject> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_QObject_ptr6(
ptr.as_raw_ptr() as *mut crate::QDiffuseMapMaterial,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(Qt3DExtras::QDiffuseMapMaterial* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QDiffuseMapMaterial>,
) -> ::cpp_core::MutPtr<::qt_core::QObject> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_QObject_ptr6(ptr.as_mut_raw_ptr());
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QDiffuseMapMaterial> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QDiffuseMapMaterial* dynamic_cast<Qt3DExtras::QDiffuseMapMaterial*>(QObject* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QDiffuseMapMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QDiffuseMapMaterial_ptr3(
ptr.as_raw_ptr() as *mut ::qt_core::QObject,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QDiffuseMapMaterial* dynamic_cast<Qt3DExtras::QDiffuseMapMaterial*>(QObject* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_core::QObject>,
) -> ::cpp_core::MutPtr<crate::QDiffuseMapMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QDiffuseMapMaterial_ptr3(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QDiffuseSpecularMapMaterial> for ::qt_3d_render::QMaterial {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QDiffuseSpecularMapMaterial* static_cast<Qt3DExtras::QDiffuseSpecularMapMaterial*>(Qt3DRender::QMaterial* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_3d_render::QMaterial>,
) -> ::cpp_core::Ptr<crate::QDiffuseSpecularMapMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QDiffuseSpecularMapMaterial_ptr(ptr.as_raw_ptr() as *mut ::qt_3d_render::QMaterial);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QDiffuseSpecularMapMaterial* static_cast<Qt3DExtras::QDiffuseSpecularMapMaterial*>(Qt3DRender::QMaterial* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_render::QMaterial>,
) -> ::cpp_core::MutPtr<crate::QDiffuseSpecularMapMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QDiffuseSpecularMapMaterial_ptr(ptr.as_mut_raw_ptr());
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_3d_render::QMaterial> for crate::QDiffuseSpecularMapMaterial {
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QMaterial* static_cast<Qt3DRender::QMaterial*>(Qt3DExtras::QDiffuseSpecularMapMaterial* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QDiffuseSpecularMapMaterial>,
) -> ::cpp_core::Ptr<::qt_3d_render::QMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DRender_QMaterial_ptr1(
ptr.as_raw_ptr() as *mut crate::QDiffuseSpecularMapMaterial,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QMaterial* static_cast<Qt3DRender::QMaterial*>(Qt3DExtras::QDiffuseSpecularMapMaterial* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QDiffuseSpecularMapMaterial>,
) -> ::cpp_core::MutPtr<::qt_3d_render::QMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DRender_QMaterial_ptr1(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::std::ops::Deref for crate::QDiffuseSpecularMapMaterial {
type Target = ::qt_3d_render::QMaterial;
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QMaterial* static_cast<Qt3DRender::QMaterial*>(Qt3DExtras::QDiffuseSpecularMapMaterial* ptr)```</span>.
fn deref(&self) -> &::qt_3d_render::QMaterial {
let ffi_result = unsafe {
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DRender_QMaterial_ptr1(
self as *const crate::QDiffuseSpecularMapMaterial
as *mut crate::QDiffuseSpecularMapMaterial,
)
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::std::ops::DerefMut for crate::QDiffuseSpecularMapMaterial {
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QMaterial* static_cast<Qt3DRender::QMaterial*>(Qt3DExtras::QDiffuseSpecularMapMaterial* ptr)```</span>.
fn deref_mut(&mut self) -> &mut ::qt_3d_render::QMaterial {
let ffi_result = unsafe {
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DRender_QMaterial_ptr1(
self as *mut crate::QDiffuseSpecularMapMaterial,
)
};
unsafe { ffi_result.as_mut() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_core::DynamicCast<crate::QDiffuseSpecularMapMaterial> for ::qt_3d_render::QMaterial {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QDiffuseSpecularMapMaterial* dynamic_cast<Qt3DExtras::QDiffuseSpecularMapMaterial*>(Qt3DRender::QMaterial* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_3d_render::QMaterial>,
) -> ::cpp_core::Ptr<crate::QDiffuseSpecularMapMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QDiffuseSpecularMapMaterial_ptr(ptr.as_raw_ptr() as *mut ::qt_3d_render::QMaterial);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QDiffuseSpecularMapMaterial* dynamic_cast<Qt3DExtras::QDiffuseSpecularMapMaterial*>(Qt3DRender::QMaterial* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_render::QMaterial>,
) -> ::cpp_core::MutPtr<crate::QDiffuseSpecularMapMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QDiffuseSpecularMapMaterial_ptr(ptr.as_mut_raw_ptr());
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QDiffuseSpecularMapMaterial> for ::qt_3d_core::QComponent {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QDiffuseSpecularMapMaterial* static_cast<Qt3DExtras::QDiffuseSpecularMapMaterial*>(Qt3DCore::QComponent* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QComponent>,
) -> ::cpp_core::Ptr<crate::QDiffuseSpecularMapMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QDiffuseSpecularMapMaterial_ptr1(ptr.as_raw_ptr() as *mut ::qt_3d_core::QComponent);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QDiffuseSpecularMapMaterial* static_cast<Qt3DExtras::QDiffuseSpecularMapMaterial*>(Qt3DCore::QComponent* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QComponent>,
) -> ::cpp_core::MutPtr<crate::QDiffuseSpecularMapMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QDiffuseSpecularMapMaterial_ptr1(ptr.as_mut_raw_ptr());
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_3d_core::QComponent> for crate::QDiffuseSpecularMapMaterial {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QComponent* static_cast<Qt3DCore::QComponent*>(Qt3DExtras::QDiffuseSpecularMapMaterial* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QDiffuseSpecularMapMaterial>,
) -> ::cpp_core::Ptr<::qt_3d_core::QComponent> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QComponent_ptr4(
ptr.as_raw_ptr() as *mut crate::QDiffuseSpecularMapMaterial,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QComponent* static_cast<Qt3DCore::QComponent*>(Qt3DExtras::QDiffuseSpecularMapMaterial* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QDiffuseSpecularMapMaterial>,
) -> ::cpp_core::MutPtr<::qt_3d_core::QComponent> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QComponent_ptr4(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QDiffuseSpecularMapMaterial> for ::qt_3d_core::QComponent {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QDiffuseSpecularMapMaterial* dynamic_cast<Qt3DExtras::QDiffuseSpecularMapMaterial*>(Qt3DCore::QComponent* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QComponent>,
) -> ::cpp_core::Ptr<crate::QDiffuseSpecularMapMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QDiffuseSpecularMapMaterial_ptr1(ptr.as_raw_ptr() as *mut ::qt_3d_core::QComponent);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QDiffuseSpecularMapMaterial* dynamic_cast<Qt3DExtras::QDiffuseSpecularMapMaterial*>(Qt3DCore::QComponent* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QComponent>,
) -> ::cpp_core::MutPtr<crate::QDiffuseSpecularMapMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QDiffuseSpecularMapMaterial_ptr1(ptr.as_mut_raw_ptr());
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QDiffuseSpecularMapMaterial> for ::qt_3d_core::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QDiffuseSpecularMapMaterial* static_cast<Qt3DExtras::QDiffuseSpecularMapMaterial*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QNode>,
) -> ::cpp_core::Ptr<crate::QDiffuseSpecularMapMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QDiffuseSpecularMapMaterial_ptr2(ptr.as_raw_ptr() as *mut ::qt_3d_core::QNode);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QDiffuseSpecularMapMaterial* static_cast<Qt3DExtras::QDiffuseSpecularMapMaterial*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QNode>,
) -> ::cpp_core::MutPtr<crate::QDiffuseSpecularMapMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QDiffuseSpecularMapMaterial_ptr2(ptr.as_mut_raw_ptr());
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_3d_core::QNode> for crate::QDiffuseSpecularMapMaterial {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DExtras::QDiffuseSpecularMapMaterial* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QDiffuseSpecularMapMaterial>,
) -> ::cpp_core::Ptr<::qt_3d_core::QNode> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QNode_ptr7(
ptr.as_raw_ptr() as *mut crate::QDiffuseSpecularMapMaterial,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DExtras::QDiffuseSpecularMapMaterial* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QDiffuseSpecularMapMaterial>,
) -> ::cpp_core::MutPtr<::qt_3d_core::QNode> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QNode_ptr7(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QDiffuseSpecularMapMaterial> for ::qt_3d_core::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QDiffuseSpecularMapMaterial* dynamic_cast<Qt3DExtras::QDiffuseSpecularMapMaterial*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QNode>,
) -> ::cpp_core::Ptr<crate::QDiffuseSpecularMapMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QDiffuseSpecularMapMaterial_ptr2(ptr.as_raw_ptr() as *mut ::qt_3d_core::QNode);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QDiffuseSpecularMapMaterial* dynamic_cast<Qt3DExtras::QDiffuseSpecularMapMaterial*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QNode>,
) -> ::cpp_core::MutPtr<crate::QDiffuseSpecularMapMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QDiffuseSpecularMapMaterial_ptr2(ptr.as_mut_raw_ptr());
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QDiffuseSpecularMapMaterial> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QDiffuseSpecularMapMaterial* static_cast<Qt3DExtras::QDiffuseSpecularMapMaterial*>(QObject* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QDiffuseSpecularMapMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QDiffuseSpecularMapMaterial_ptr3(ptr.as_raw_ptr() as *mut ::qt_core::QObject);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QDiffuseSpecularMapMaterial* static_cast<Qt3DExtras::QDiffuseSpecularMapMaterial*>(QObject* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_core::QObject>,
) -> ::cpp_core::MutPtr<crate::QDiffuseSpecularMapMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QDiffuseSpecularMapMaterial_ptr3(ptr.as_mut_raw_ptr());
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_core::QObject> for crate::QDiffuseSpecularMapMaterial {
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(Qt3DExtras::QDiffuseSpecularMapMaterial* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QDiffuseSpecularMapMaterial>,
) -> ::cpp_core::Ptr<::qt_core::QObject> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_QObject_ptr7(
ptr.as_raw_ptr() as *mut crate::QDiffuseSpecularMapMaterial,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(Qt3DExtras::QDiffuseSpecularMapMaterial* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QDiffuseSpecularMapMaterial>,
) -> ::cpp_core::MutPtr<::qt_core::QObject> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_QObject_ptr7(ptr.as_mut_raw_ptr());
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QDiffuseSpecularMapMaterial> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QDiffuseSpecularMapMaterial* dynamic_cast<Qt3DExtras::QDiffuseSpecularMapMaterial*>(QObject* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QDiffuseSpecularMapMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QDiffuseSpecularMapMaterial_ptr3(ptr.as_raw_ptr() as *mut ::qt_core::QObject);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QDiffuseSpecularMapMaterial* dynamic_cast<Qt3DExtras::QDiffuseSpecularMapMaterial*>(QObject* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_core::QObject>,
) -> ::cpp_core::MutPtr<crate::QDiffuseSpecularMapMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QDiffuseSpecularMapMaterial_ptr3(ptr.as_mut_raw_ptr());
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QExtrudedTextGeometry> for ::qt_3d_render::QGeometry {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QExtrudedTextGeometry* static_cast<Qt3DExtras::QExtrudedTextGeometry*>(Qt3DRender::QGeometry* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_3d_render::QGeometry>,
) -> ::cpp_core::Ptr<crate::QExtrudedTextGeometry> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QExtrudedTextGeometry_ptr(
ptr.as_raw_ptr() as *mut ::qt_3d_render::QGeometry,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QExtrudedTextGeometry* static_cast<Qt3DExtras::QExtrudedTextGeometry*>(Qt3DRender::QGeometry* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_render::QGeometry>,
) -> ::cpp_core::MutPtr<crate::QExtrudedTextGeometry> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QExtrudedTextGeometry_ptr(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_3d_render::QGeometry> for crate::QExtrudedTextGeometry {
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QGeometry* static_cast<Qt3DRender::QGeometry*>(Qt3DExtras::QExtrudedTextGeometry* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QExtrudedTextGeometry>,
) -> ::cpp_core::Ptr<::qt_3d_render::QGeometry> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DRender_QGeometry_ptr3(
ptr.as_raw_ptr() as *mut crate::QExtrudedTextGeometry,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QGeometry* static_cast<Qt3DRender::QGeometry*>(Qt3DExtras::QExtrudedTextGeometry* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QExtrudedTextGeometry>,
) -> ::cpp_core::MutPtr<::qt_3d_render::QGeometry> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DRender_QGeometry_ptr3(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::std::ops::Deref for crate::QExtrudedTextGeometry {
type Target = ::qt_3d_render::QGeometry;
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QGeometry* static_cast<Qt3DRender::QGeometry*>(Qt3DExtras::QExtrudedTextGeometry* ptr)```</span>.
fn deref(&self) -> &::qt_3d_render::QGeometry {
let ffi_result = unsafe {
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DRender_QGeometry_ptr3(
self as *const crate::QExtrudedTextGeometry as *mut crate::QExtrudedTextGeometry,
)
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::std::ops::DerefMut for crate::QExtrudedTextGeometry {
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QGeometry* static_cast<Qt3DRender::QGeometry*>(Qt3DExtras::QExtrudedTextGeometry* ptr)```</span>.
fn deref_mut(&mut self) -> &mut ::qt_3d_render::QGeometry {
let ffi_result = unsafe {
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DRender_QGeometry_ptr3(
self as *mut crate::QExtrudedTextGeometry,
)
};
unsafe { ffi_result.as_mut() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_core::DynamicCast<crate::QExtrudedTextGeometry> for ::qt_3d_render::QGeometry {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QExtrudedTextGeometry* dynamic_cast<Qt3DExtras::QExtrudedTextGeometry*>(Qt3DRender::QGeometry* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_3d_render::QGeometry>,
) -> ::cpp_core::Ptr<crate::QExtrudedTextGeometry> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QExtrudedTextGeometry_ptr(
ptr.as_raw_ptr() as *mut ::qt_3d_render::QGeometry,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QExtrudedTextGeometry* dynamic_cast<Qt3DExtras::QExtrudedTextGeometry*>(Qt3DRender::QGeometry* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_render::QGeometry>,
) -> ::cpp_core::MutPtr<crate::QExtrudedTextGeometry> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QExtrudedTextGeometry_ptr(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QExtrudedTextGeometry> for ::qt_3d_core::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QExtrudedTextGeometry* static_cast<Qt3DExtras::QExtrudedTextGeometry*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QNode>,
) -> ::cpp_core::Ptr<crate::QExtrudedTextGeometry> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QExtrudedTextGeometry_ptr1(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QNode,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QExtrudedTextGeometry* static_cast<Qt3DExtras::QExtrudedTextGeometry*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QNode>,
) -> ::cpp_core::MutPtr<crate::QExtrudedTextGeometry> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QExtrudedTextGeometry_ptr1(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_3d_core::QNode> for crate::QExtrudedTextGeometry {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DExtras::QExtrudedTextGeometry* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QExtrudedTextGeometry>,
) -> ::cpp_core::Ptr<::qt_3d_core::QNode> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QNode_ptr8(
ptr.as_raw_ptr() as *mut crate::QExtrudedTextGeometry,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DExtras::QExtrudedTextGeometry* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QExtrudedTextGeometry>,
) -> ::cpp_core::MutPtr<::qt_3d_core::QNode> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QNode_ptr8(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QExtrudedTextGeometry> for ::qt_3d_core::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QExtrudedTextGeometry* dynamic_cast<Qt3DExtras::QExtrudedTextGeometry*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QNode>,
) -> ::cpp_core::Ptr<crate::QExtrudedTextGeometry> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QExtrudedTextGeometry_ptr1(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QNode,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QExtrudedTextGeometry* dynamic_cast<Qt3DExtras::QExtrudedTextGeometry*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QNode>,
) -> ::cpp_core::MutPtr<crate::QExtrudedTextGeometry> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QExtrudedTextGeometry_ptr1(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QExtrudedTextGeometry> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QExtrudedTextGeometry* static_cast<Qt3DExtras::QExtrudedTextGeometry*>(QObject* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QExtrudedTextGeometry> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QExtrudedTextGeometry_ptr2(
ptr.as_raw_ptr() as *mut ::qt_core::QObject,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QExtrudedTextGeometry* static_cast<Qt3DExtras::QExtrudedTextGeometry*>(QObject* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_core::QObject>,
) -> ::cpp_core::MutPtr<crate::QExtrudedTextGeometry> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QExtrudedTextGeometry_ptr2(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_core::QObject> for crate::QExtrudedTextGeometry {
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(Qt3DExtras::QExtrudedTextGeometry* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QExtrudedTextGeometry>,
) -> ::cpp_core::Ptr<::qt_core::QObject> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_QObject_ptr8(
ptr.as_raw_ptr() as *mut crate::QExtrudedTextGeometry,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(Qt3DExtras::QExtrudedTextGeometry* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QExtrudedTextGeometry>,
) -> ::cpp_core::MutPtr<::qt_core::QObject> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_QObject_ptr8(ptr.as_mut_raw_ptr());
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QExtrudedTextGeometry> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QExtrudedTextGeometry* dynamic_cast<Qt3DExtras::QExtrudedTextGeometry*>(QObject* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QExtrudedTextGeometry> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QExtrudedTextGeometry_ptr2(
ptr.as_raw_ptr() as *mut ::qt_core::QObject,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QExtrudedTextGeometry* dynamic_cast<Qt3DExtras::QExtrudedTextGeometry*>(QObject* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_core::QObject>,
) -> ::cpp_core::MutPtr<crate::QExtrudedTextGeometry> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QExtrudedTextGeometry_ptr2(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QExtrudedTextMesh> for ::qt_3d_render::QGeometryRenderer {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QExtrudedTextMesh* static_cast<Qt3DExtras::QExtrudedTextMesh*>(Qt3DRender::QGeometryRenderer* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_3d_render::QGeometryRenderer>,
) -> ::cpp_core::Ptr<crate::QExtrudedTextMesh> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QExtrudedTextMesh_ptr(
ptr.as_raw_ptr() as *mut ::qt_3d_render::QGeometryRenderer,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QExtrudedTextMesh* static_cast<Qt3DExtras::QExtrudedTextMesh*>(Qt3DRender::QGeometryRenderer* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_render::QGeometryRenderer>,
) -> ::cpp_core::MutPtr<crate::QExtrudedTextMesh> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QExtrudedTextMesh_ptr(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_3d_render::QGeometryRenderer> for crate::QExtrudedTextMesh {
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QGeometryRenderer* static_cast<Qt3DRender::QGeometryRenderer*>(Qt3DExtras::QExtrudedTextMesh* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QExtrudedTextMesh>,
) -> ::cpp_core::Ptr<::qt_3d_render::QGeometryRenderer> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DRender_QGeometryRenderer_ptr3(
ptr.as_raw_ptr() as *mut crate::QExtrudedTextMesh,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QGeometryRenderer* static_cast<Qt3DRender::QGeometryRenderer*>(Qt3DExtras::QExtrudedTextMesh* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QExtrudedTextMesh>,
) -> ::cpp_core::MutPtr<::qt_3d_render::QGeometryRenderer> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DRender_QGeometryRenderer_ptr3(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::std::ops::Deref for crate::QExtrudedTextMesh {
type Target = ::qt_3d_render::QGeometryRenderer;
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QGeometryRenderer* static_cast<Qt3DRender::QGeometryRenderer*>(Qt3DExtras::QExtrudedTextMesh* ptr)```</span>.
fn deref(&self) -> &::qt_3d_render::QGeometryRenderer {
let ffi_result = unsafe {
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DRender_QGeometryRenderer_ptr3(
self as *const crate::QExtrudedTextMesh as *mut crate::QExtrudedTextMesh,
)
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::std::ops::DerefMut for crate::QExtrudedTextMesh {
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QGeometryRenderer* static_cast<Qt3DRender::QGeometryRenderer*>(Qt3DExtras::QExtrudedTextMesh* ptr)```</span>.
fn deref_mut(&mut self) -> &mut ::qt_3d_render::QGeometryRenderer {
let ffi_result = unsafe {
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DRender_QGeometryRenderer_ptr3(
self as *mut crate::QExtrudedTextMesh,
)
};
unsafe { ffi_result.as_mut() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_core::DynamicCast<crate::QExtrudedTextMesh> for ::qt_3d_render::QGeometryRenderer {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QExtrudedTextMesh* dynamic_cast<Qt3DExtras::QExtrudedTextMesh*>(Qt3DRender::QGeometryRenderer* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_3d_render::QGeometryRenderer>,
) -> ::cpp_core::Ptr<crate::QExtrudedTextMesh> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QExtrudedTextMesh_ptr(
ptr.as_raw_ptr() as *mut ::qt_3d_render::QGeometryRenderer,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QExtrudedTextMesh* dynamic_cast<Qt3DExtras::QExtrudedTextMesh*>(Qt3DRender::QGeometryRenderer* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_render::QGeometryRenderer>,
) -> ::cpp_core::MutPtr<crate::QExtrudedTextMesh> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QExtrudedTextMesh_ptr(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QExtrudedTextMesh> for ::qt_3d_core::QComponent {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QExtrudedTextMesh* static_cast<Qt3DExtras::QExtrudedTextMesh*>(Qt3DCore::QComponent* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QComponent>,
) -> ::cpp_core::Ptr<crate::QExtrudedTextMesh> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QExtrudedTextMesh_ptr1(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QComponent,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QExtrudedTextMesh* static_cast<Qt3DExtras::QExtrudedTextMesh*>(Qt3DCore::QComponent* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QComponent>,
) -> ::cpp_core::MutPtr<crate::QExtrudedTextMesh> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QExtrudedTextMesh_ptr1(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_3d_core::QComponent> for crate::QExtrudedTextMesh {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QComponent* static_cast<Qt3DCore::QComponent*>(Qt3DExtras::QExtrudedTextMesh* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QExtrudedTextMesh>,
) -> ::cpp_core::Ptr<::qt_3d_core::QComponent> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QComponent_ptr5(
ptr.as_raw_ptr() as *mut crate::QExtrudedTextMesh,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QComponent* static_cast<Qt3DCore::QComponent*>(Qt3DExtras::QExtrudedTextMesh* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QExtrudedTextMesh>,
) -> ::cpp_core::MutPtr<::qt_3d_core::QComponent> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QComponent_ptr5(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QExtrudedTextMesh> for ::qt_3d_core::QComponent {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QExtrudedTextMesh* dynamic_cast<Qt3DExtras::QExtrudedTextMesh*>(Qt3DCore::QComponent* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QComponent>,
) -> ::cpp_core::Ptr<crate::QExtrudedTextMesh> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QExtrudedTextMesh_ptr1(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QComponent,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QExtrudedTextMesh* dynamic_cast<Qt3DExtras::QExtrudedTextMesh*>(Qt3DCore::QComponent* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QComponent>,
) -> ::cpp_core::MutPtr<crate::QExtrudedTextMesh> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QExtrudedTextMesh_ptr1(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QExtrudedTextMesh> for ::qt_3d_core::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QExtrudedTextMesh* static_cast<Qt3DExtras::QExtrudedTextMesh*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QNode>,
) -> ::cpp_core::Ptr<crate::QExtrudedTextMesh> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QExtrudedTextMesh_ptr2(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QNode,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QExtrudedTextMesh* static_cast<Qt3DExtras::QExtrudedTextMesh*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QNode>,
) -> ::cpp_core::MutPtr<crate::QExtrudedTextMesh> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QExtrudedTextMesh_ptr2(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_3d_core::QNode> for crate::QExtrudedTextMesh {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DExtras::QExtrudedTextMesh* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QExtrudedTextMesh>,
) -> ::cpp_core::Ptr<::qt_3d_core::QNode> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QNode_ptr9(
ptr.as_raw_ptr() as *mut crate::QExtrudedTextMesh,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DExtras::QExtrudedTextMesh* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QExtrudedTextMesh>,
) -> ::cpp_core::MutPtr<::qt_3d_core::QNode> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QNode_ptr9(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QExtrudedTextMesh> for ::qt_3d_core::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QExtrudedTextMesh* dynamic_cast<Qt3DExtras::QExtrudedTextMesh*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QNode>,
) -> ::cpp_core::Ptr<crate::QExtrudedTextMesh> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QExtrudedTextMesh_ptr2(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QNode,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QExtrudedTextMesh* dynamic_cast<Qt3DExtras::QExtrudedTextMesh*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QNode>,
) -> ::cpp_core::MutPtr<crate::QExtrudedTextMesh> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QExtrudedTextMesh_ptr2(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QExtrudedTextMesh> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QExtrudedTextMesh* static_cast<Qt3DExtras::QExtrudedTextMesh*>(QObject* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QExtrudedTextMesh> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QExtrudedTextMesh_ptr3(
ptr.as_raw_ptr() as *mut ::qt_core::QObject,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QExtrudedTextMesh* static_cast<Qt3DExtras::QExtrudedTextMesh*>(QObject* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_core::QObject>,
) -> ::cpp_core::MutPtr<crate::QExtrudedTextMesh> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QExtrudedTextMesh_ptr3(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_core::QObject> for crate::QExtrudedTextMesh {
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(Qt3DExtras::QExtrudedTextMesh* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QExtrudedTextMesh>,
) -> ::cpp_core::Ptr<::qt_core::QObject> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_QObject_ptr9(
ptr.as_raw_ptr() as *mut crate::QExtrudedTextMesh,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(Qt3DExtras::QExtrudedTextMesh* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QExtrudedTextMesh>,
) -> ::cpp_core::MutPtr<::qt_core::QObject> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_QObject_ptr9(ptr.as_mut_raw_ptr());
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QExtrudedTextMesh> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QExtrudedTextMesh* dynamic_cast<Qt3DExtras::QExtrudedTextMesh*>(QObject* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QExtrudedTextMesh> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QExtrudedTextMesh_ptr3(
ptr.as_raw_ptr() as *mut ::qt_core::QObject,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QExtrudedTextMesh* dynamic_cast<Qt3DExtras::QExtrudedTextMesh*>(QObject* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_core::QObject>,
) -> ::cpp_core::MutPtr<crate::QExtrudedTextMesh> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QExtrudedTextMesh_ptr3(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QFirstPersonCameraController> for ::qt_3d_core::QEntity {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QFirstPersonCameraController* static_cast<Qt3DExtras::QFirstPersonCameraController*>(Qt3DCore::QEntity* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QEntity>,
) -> ::cpp_core::Ptr<crate::QFirstPersonCameraController> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QFirstPersonCameraController_ptr(ptr.as_raw_ptr() as *mut ::qt_3d_core::QEntity);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QFirstPersonCameraController* static_cast<Qt3DExtras::QFirstPersonCameraController*>(Qt3DCore::QEntity* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QEntity>,
) -> ::cpp_core::MutPtr<crate::QFirstPersonCameraController> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QFirstPersonCameraController_ptr(ptr.as_mut_raw_ptr());
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_3d_core::QEntity> for crate::QFirstPersonCameraController {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QEntity* static_cast<Qt3DCore::QEntity*>(Qt3DExtras::QFirstPersonCameraController* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QFirstPersonCameraController>,
) -> ::cpp_core::Ptr<::qt_3d_core::QEntity> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QEntity_ptr(
ptr.as_raw_ptr() as *mut crate::QFirstPersonCameraController,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QEntity* static_cast<Qt3DCore::QEntity*>(Qt3DExtras::QFirstPersonCameraController* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QFirstPersonCameraController>,
) -> ::cpp_core::MutPtr<::qt_3d_core::QEntity> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QEntity_ptr(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::std::ops::Deref for crate::QFirstPersonCameraController {
type Target = ::qt_3d_core::QEntity;
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QEntity* static_cast<Qt3DCore::QEntity*>(Qt3DExtras::QFirstPersonCameraController* ptr)```</span>.
fn deref(&self) -> &::qt_3d_core::QEntity {
let ffi_result = unsafe {
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QEntity_ptr(
self as *const crate::QFirstPersonCameraController
as *mut crate::QFirstPersonCameraController,
)
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::std::ops::DerefMut for crate::QFirstPersonCameraController {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QEntity* static_cast<Qt3DCore::QEntity*>(Qt3DExtras::QFirstPersonCameraController* ptr)```</span>.
fn deref_mut(&mut self) -> &mut ::qt_3d_core::QEntity {
let ffi_result = unsafe {
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QEntity_ptr(
self as *mut crate::QFirstPersonCameraController,
)
};
unsafe { ffi_result.as_mut() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_core::DynamicCast<crate::QFirstPersonCameraController> for ::qt_3d_core::QEntity {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QFirstPersonCameraController* dynamic_cast<Qt3DExtras::QFirstPersonCameraController*>(Qt3DCore::QEntity* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QEntity>,
) -> ::cpp_core::Ptr<crate::QFirstPersonCameraController> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QFirstPersonCameraController_ptr(ptr.as_raw_ptr() as *mut ::qt_3d_core::QEntity);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QFirstPersonCameraController* dynamic_cast<Qt3DExtras::QFirstPersonCameraController*>(Qt3DCore::QEntity* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QEntity>,
) -> ::cpp_core::MutPtr<crate::QFirstPersonCameraController> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QFirstPersonCameraController_ptr(ptr.as_mut_raw_ptr());
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QFirstPersonCameraController> for ::qt_3d_core::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QFirstPersonCameraController* static_cast<Qt3DExtras::QFirstPersonCameraController*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QNode>,
) -> ::cpp_core::Ptr<crate::QFirstPersonCameraController> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QFirstPersonCameraController_ptr1(ptr.as_raw_ptr() as *mut ::qt_3d_core::QNode);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QFirstPersonCameraController* static_cast<Qt3DExtras::QFirstPersonCameraController*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QNode>,
) -> ::cpp_core::MutPtr<crate::QFirstPersonCameraController> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QFirstPersonCameraController_ptr1(ptr.as_mut_raw_ptr());
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_3d_core::QNode> for crate::QFirstPersonCameraController {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DExtras::QFirstPersonCameraController* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QFirstPersonCameraController>,
) -> ::cpp_core::Ptr<::qt_3d_core::QNode> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QNode_ptr10(
ptr.as_raw_ptr() as *mut crate::QFirstPersonCameraController,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DExtras::QFirstPersonCameraController* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QFirstPersonCameraController>,
) -> ::cpp_core::MutPtr<::qt_3d_core::QNode> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QNode_ptr10(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QFirstPersonCameraController> for ::qt_3d_core::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QFirstPersonCameraController* dynamic_cast<Qt3DExtras::QFirstPersonCameraController*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QNode>,
) -> ::cpp_core::Ptr<crate::QFirstPersonCameraController> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QFirstPersonCameraController_ptr1(ptr.as_raw_ptr() as *mut ::qt_3d_core::QNode);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QFirstPersonCameraController* dynamic_cast<Qt3DExtras::QFirstPersonCameraController*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QNode>,
) -> ::cpp_core::MutPtr<crate::QFirstPersonCameraController> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QFirstPersonCameraController_ptr1(ptr.as_mut_raw_ptr());
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QFirstPersonCameraController> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QFirstPersonCameraController* static_cast<Qt3DExtras::QFirstPersonCameraController*>(QObject* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QFirstPersonCameraController> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QFirstPersonCameraController_ptr2(ptr.as_raw_ptr() as *mut ::qt_core::QObject);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QFirstPersonCameraController* static_cast<Qt3DExtras::QFirstPersonCameraController*>(QObject* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_core::QObject>,
) -> ::cpp_core::MutPtr<crate::QFirstPersonCameraController> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QFirstPersonCameraController_ptr2(ptr.as_mut_raw_ptr());
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_core::QObject> for crate::QFirstPersonCameraController {
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(Qt3DExtras::QFirstPersonCameraController* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QFirstPersonCameraController>,
) -> ::cpp_core::Ptr<::qt_core::QObject> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_QObject_ptr10(
ptr.as_raw_ptr() as *mut crate::QFirstPersonCameraController,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(Qt3DExtras::QFirstPersonCameraController* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QFirstPersonCameraController>,
) -> ::cpp_core::MutPtr<::qt_core::QObject> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_QObject_ptr10(ptr.as_mut_raw_ptr());
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QFirstPersonCameraController> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QFirstPersonCameraController* dynamic_cast<Qt3DExtras::QFirstPersonCameraController*>(QObject* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QFirstPersonCameraController> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QFirstPersonCameraController_ptr2(ptr.as_raw_ptr() as *mut ::qt_core::QObject);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QFirstPersonCameraController* dynamic_cast<Qt3DExtras::QFirstPersonCameraController*>(QObject* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_core::QObject>,
) -> ::cpp_core::MutPtr<crate::QFirstPersonCameraController> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QFirstPersonCameraController_ptr2(ptr.as_mut_raw_ptr());
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QForwardRenderer> for ::qt_3d_render::QTechniqueFilter {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QForwardRenderer* static_cast<Qt3DExtras::QForwardRenderer*>(Qt3DRender::QTechniqueFilter* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_3d_render::QTechniqueFilter>,
) -> ::cpp_core::Ptr<crate::QForwardRenderer> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QForwardRenderer_ptr(
ptr.as_raw_ptr() as *mut ::qt_3d_render::QTechniqueFilter,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QForwardRenderer* static_cast<Qt3DExtras::QForwardRenderer*>(Qt3DRender::QTechniqueFilter* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_render::QTechniqueFilter>,
) -> ::cpp_core::MutPtr<crate::QForwardRenderer> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QForwardRenderer_ptr(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_3d_render::QTechniqueFilter> for crate::QForwardRenderer {
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QTechniqueFilter* static_cast<Qt3DRender::QTechniqueFilter*>(Qt3DExtras::QForwardRenderer* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QForwardRenderer>,
) -> ::cpp_core::Ptr<::qt_3d_render::QTechniqueFilter> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DRender_QTechniqueFilter_ptr(
ptr.as_raw_ptr() as *mut crate::QForwardRenderer,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QTechniqueFilter* static_cast<Qt3DRender::QTechniqueFilter*>(Qt3DExtras::QForwardRenderer* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QForwardRenderer>,
) -> ::cpp_core::MutPtr<::qt_3d_render::QTechniqueFilter> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DRender_QTechniqueFilter_ptr(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::std::ops::Deref for crate::QForwardRenderer {
type Target = ::qt_3d_render::QTechniqueFilter;
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QTechniqueFilter* static_cast<Qt3DRender::QTechniqueFilter*>(Qt3DExtras::QForwardRenderer* ptr)```</span>.
fn deref(&self) -> &::qt_3d_render::QTechniqueFilter {
let ffi_result = unsafe {
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DRender_QTechniqueFilter_ptr(
self as *const crate::QForwardRenderer as *mut crate::QForwardRenderer,
)
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::std::ops::DerefMut for crate::QForwardRenderer {
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QTechniqueFilter* static_cast<Qt3DRender::QTechniqueFilter*>(Qt3DExtras::QForwardRenderer* ptr)```</span>.
fn deref_mut(&mut self) -> &mut ::qt_3d_render::QTechniqueFilter {
let ffi_result = unsafe {
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DRender_QTechniqueFilter_ptr(
self as *mut crate::QForwardRenderer,
)
};
unsafe { ffi_result.as_mut() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_core::DynamicCast<crate::QForwardRenderer> for ::qt_3d_render::QTechniqueFilter {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QForwardRenderer* dynamic_cast<Qt3DExtras::QForwardRenderer*>(Qt3DRender::QTechniqueFilter* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_3d_render::QTechniqueFilter>,
) -> ::cpp_core::Ptr<crate::QForwardRenderer> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QForwardRenderer_ptr(
ptr.as_raw_ptr() as *mut ::qt_3d_render::QTechniqueFilter,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QForwardRenderer* dynamic_cast<Qt3DExtras::QForwardRenderer*>(Qt3DRender::QTechniqueFilter* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_render::QTechniqueFilter>,
) -> ::cpp_core::MutPtr<crate::QForwardRenderer> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QForwardRenderer_ptr(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QForwardRenderer> for ::qt_3d_render::QFrameGraphNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QForwardRenderer* static_cast<Qt3DExtras::QForwardRenderer*>(Qt3DRender::QFrameGraphNode* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_3d_render::QFrameGraphNode>,
) -> ::cpp_core::Ptr<crate::QForwardRenderer> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QForwardRenderer_ptr1(
ptr.as_raw_ptr() as *mut ::qt_3d_render::QFrameGraphNode,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QForwardRenderer* static_cast<Qt3DExtras::QForwardRenderer*>(Qt3DRender::QFrameGraphNode* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_render::QFrameGraphNode>,
) -> ::cpp_core::MutPtr<crate::QForwardRenderer> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QForwardRenderer_ptr1(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_3d_render::QFrameGraphNode> for crate::QForwardRenderer {
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QFrameGraphNode* static_cast<Qt3DRender::QFrameGraphNode*>(Qt3DExtras::QForwardRenderer* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QForwardRenderer>,
) -> ::cpp_core::Ptr<::qt_3d_render::QFrameGraphNode> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DRender_QFrameGraphNode_ptr(
ptr.as_raw_ptr() as *mut crate::QForwardRenderer,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QFrameGraphNode* static_cast<Qt3DRender::QFrameGraphNode*>(Qt3DExtras::QForwardRenderer* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QForwardRenderer>,
) -> ::cpp_core::MutPtr<::qt_3d_render::QFrameGraphNode> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DRender_QFrameGraphNode_ptr(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QForwardRenderer> for ::qt_3d_render::QFrameGraphNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QForwardRenderer* dynamic_cast<Qt3DExtras::QForwardRenderer*>(Qt3DRender::QFrameGraphNode* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_3d_render::QFrameGraphNode>,
) -> ::cpp_core::Ptr<crate::QForwardRenderer> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QForwardRenderer_ptr1(
ptr.as_raw_ptr() as *mut ::qt_3d_render::QFrameGraphNode,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QForwardRenderer* dynamic_cast<Qt3DExtras::QForwardRenderer*>(Qt3DRender::QFrameGraphNode* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_render::QFrameGraphNode>,
) -> ::cpp_core::MutPtr<crate::QForwardRenderer> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QForwardRenderer_ptr1(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QForwardRenderer> for ::qt_3d_core::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QForwardRenderer* static_cast<Qt3DExtras::QForwardRenderer*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QNode>,
) -> ::cpp_core::Ptr<crate::QForwardRenderer> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QForwardRenderer_ptr2(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QNode,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QForwardRenderer* static_cast<Qt3DExtras::QForwardRenderer*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QNode>,
) -> ::cpp_core::MutPtr<crate::QForwardRenderer> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QForwardRenderer_ptr2(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_3d_core::QNode> for crate::QForwardRenderer {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DExtras::QForwardRenderer* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QForwardRenderer>,
) -> ::cpp_core::Ptr<::qt_3d_core::QNode> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QNode_ptr11(
ptr.as_raw_ptr() as *mut crate::QForwardRenderer,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DExtras::QForwardRenderer* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QForwardRenderer>,
) -> ::cpp_core::MutPtr<::qt_3d_core::QNode> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QNode_ptr11(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QForwardRenderer> for ::qt_3d_core::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QForwardRenderer* dynamic_cast<Qt3DExtras::QForwardRenderer*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QNode>,
) -> ::cpp_core::Ptr<crate::QForwardRenderer> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QForwardRenderer_ptr2(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QNode,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QForwardRenderer* dynamic_cast<Qt3DExtras::QForwardRenderer*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QNode>,
) -> ::cpp_core::MutPtr<crate::QForwardRenderer> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QForwardRenderer_ptr2(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QForwardRenderer> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QForwardRenderer* static_cast<Qt3DExtras::QForwardRenderer*>(QObject* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QForwardRenderer> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QForwardRenderer_ptr3(
ptr.as_raw_ptr() as *mut ::qt_core::QObject,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QForwardRenderer* static_cast<Qt3DExtras::QForwardRenderer*>(QObject* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_core::QObject>,
) -> ::cpp_core::MutPtr<crate::QForwardRenderer> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QForwardRenderer_ptr3(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_core::QObject> for crate::QForwardRenderer {
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(Qt3DExtras::QForwardRenderer* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QForwardRenderer>,
) -> ::cpp_core::Ptr<::qt_core::QObject> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_QObject_ptr11(
ptr.as_raw_ptr() as *mut crate::QForwardRenderer,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(Qt3DExtras::QForwardRenderer* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QForwardRenderer>,
) -> ::cpp_core::MutPtr<::qt_core::QObject> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_QObject_ptr11(ptr.as_mut_raw_ptr());
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QForwardRenderer> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QForwardRenderer* dynamic_cast<Qt3DExtras::QForwardRenderer*>(QObject* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QForwardRenderer> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QForwardRenderer_ptr3(
ptr.as_raw_ptr() as *mut ::qt_core::QObject,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QForwardRenderer* dynamic_cast<Qt3DExtras::QForwardRenderer*>(QObject* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_core::QObject>,
) -> ::cpp_core::MutPtr<crate::QForwardRenderer> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QForwardRenderer_ptr3(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QGoochMaterial> for ::qt_3d_render::QMaterial {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QGoochMaterial* static_cast<Qt3DExtras::QGoochMaterial*>(Qt3DRender::QMaterial* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_3d_render::QMaterial>,
) -> ::cpp_core::Ptr<crate::QGoochMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QGoochMaterial_ptr(
ptr.as_raw_ptr() as *mut ::qt_3d_render::QMaterial,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QGoochMaterial* static_cast<Qt3DExtras::QGoochMaterial*>(Qt3DRender::QMaterial* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_render::QMaterial>,
) -> ::cpp_core::MutPtr<crate::QGoochMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QGoochMaterial_ptr(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_3d_render::QMaterial> for crate::QGoochMaterial {
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QMaterial* static_cast<Qt3DRender::QMaterial*>(Qt3DExtras::QGoochMaterial* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QGoochMaterial>,
) -> ::cpp_core::Ptr<::qt_3d_render::QMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DRender_QMaterial_ptr2(
ptr.as_raw_ptr() as *mut crate::QGoochMaterial,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QMaterial* static_cast<Qt3DRender::QMaterial*>(Qt3DExtras::QGoochMaterial* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QGoochMaterial>,
) -> ::cpp_core::MutPtr<::qt_3d_render::QMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DRender_QMaterial_ptr2(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::std::ops::Deref for crate::QGoochMaterial {
type Target = ::qt_3d_render::QMaterial;
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QMaterial* static_cast<Qt3DRender::QMaterial*>(Qt3DExtras::QGoochMaterial* ptr)```</span>.
fn deref(&self) -> &::qt_3d_render::QMaterial {
let ffi_result = unsafe {
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DRender_QMaterial_ptr2(
self as *const crate::QGoochMaterial as *mut crate::QGoochMaterial,
)
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::std::ops::DerefMut for crate::QGoochMaterial {
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QMaterial* static_cast<Qt3DRender::QMaterial*>(Qt3DExtras::QGoochMaterial* ptr)```</span>.
fn deref_mut(&mut self) -> &mut ::qt_3d_render::QMaterial {
let ffi_result = unsafe {
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DRender_QMaterial_ptr2(
self as *mut crate::QGoochMaterial,
)
};
unsafe { ffi_result.as_mut() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_core::DynamicCast<crate::QGoochMaterial> for ::qt_3d_render::QMaterial {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QGoochMaterial* dynamic_cast<Qt3DExtras::QGoochMaterial*>(Qt3DRender::QMaterial* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_3d_render::QMaterial>,
) -> ::cpp_core::Ptr<crate::QGoochMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QGoochMaterial_ptr(
ptr.as_raw_ptr() as *mut ::qt_3d_render::QMaterial,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QGoochMaterial* dynamic_cast<Qt3DExtras::QGoochMaterial*>(Qt3DRender::QMaterial* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_render::QMaterial>,
) -> ::cpp_core::MutPtr<crate::QGoochMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QGoochMaterial_ptr(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QGoochMaterial> for ::qt_3d_core::QComponent {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QGoochMaterial* static_cast<Qt3DExtras::QGoochMaterial*>(Qt3DCore::QComponent* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QComponent>,
) -> ::cpp_core::Ptr<crate::QGoochMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QGoochMaterial_ptr1(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QComponent,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QGoochMaterial* static_cast<Qt3DExtras::QGoochMaterial*>(Qt3DCore::QComponent* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QComponent>,
) -> ::cpp_core::MutPtr<crate::QGoochMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QGoochMaterial_ptr1(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_3d_core::QComponent> for crate::QGoochMaterial {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QComponent* static_cast<Qt3DCore::QComponent*>(Qt3DExtras::QGoochMaterial* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QGoochMaterial>,
) -> ::cpp_core::Ptr<::qt_3d_core::QComponent> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QComponent_ptr6(
ptr.as_raw_ptr() as *mut crate::QGoochMaterial,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QComponent* static_cast<Qt3DCore::QComponent*>(Qt3DExtras::QGoochMaterial* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QGoochMaterial>,
) -> ::cpp_core::MutPtr<::qt_3d_core::QComponent> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QComponent_ptr6(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QGoochMaterial> for ::qt_3d_core::QComponent {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QGoochMaterial* dynamic_cast<Qt3DExtras::QGoochMaterial*>(Qt3DCore::QComponent* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QComponent>,
) -> ::cpp_core::Ptr<crate::QGoochMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QGoochMaterial_ptr1(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QComponent,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QGoochMaterial* dynamic_cast<Qt3DExtras::QGoochMaterial*>(Qt3DCore::QComponent* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QComponent>,
) -> ::cpp_core::MutPtr<crate::QGoochMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QGoochMaterial_ptr1(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QGoochMaterial> for ::qt_3d_core::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QGoochMaterial* static_cast<Qt3DExtras::QGoochMaterial*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QNode>,
) -> ::cpp_core::Ptr<crate::QGoochMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QGoochMaterial_ptr2(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QNode,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QGoochMaterial* static_cast<Qt3DExtras::QGoochMaterial*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QNode>,
) -> ::cpp_core::MutPtr<crate::QGoochMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QGoochMaterial_ptr2(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_3d_core::QNode> for crate::QGoochMaterial {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DExtras::QGoochMaterial* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QGoochMaterial>,
) -> ::cpp_core::Ptr<::qt_3d_core::QNode> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QNode_ptr12(
ptr.as_raw_ptr() as *mut crate::QGoochMaterial,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DExtras::QGoochMaterial* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QGoochMaterial>,
) -> ::cpp_core::MutPtr<::qt_3d_core::QNode> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QNode_ptr12(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QGoochMaterial> for ::qt_3d_core::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QGoochMaterial* dynamic_cast<Qt3DExtras::QGoochMaterial*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QNode>,
) -> ::cpp_core::Ptr<crate::QGoochMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QGoochMaterial_ptr2(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QNode,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QGoochMaterial* dynamic_cast<Qt3DExtras::QGoochMaterial*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QNode>,
) -> ::cpp_core::MutPtr<crate::QGoochMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QGoochMaterial_ptr2(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QGoochMaterial> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QGoochMaterial* static_cast<Qt3DExtras::QGoochMaterial*>(QObject* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QGoochMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QGoochMaterial_ptr3(
ptr.as_raw_ptr() as *mut ::qt_core::QObject,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QGoochMaterial* static_cast<Qt3DExtras::QGoochMaterial*>(QObject* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_core::QObject>,
) -> ::cpp_core::MutPtr<crate::QGoochMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QGoochMaterial_ptr3(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_core::QObject> for crate::QGoochMaterial {
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(Qt3DExtras::QGoochMaterial* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QGoochMaterial>,
) -> ::cpp_core::Ptr<::qt_core::QObject> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_QObject_ptr12(
ptr.as_raw_ptr() as *mut crate::QGoochMaterial,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(Qt3DExtras::QGoochMaterial* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QGoochMaterial>,
) -> ::cpp_core::MutPtr<::qt_core::QObject> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_QObject_ptr12(ptr.as_mut_raw_ptr());
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QGoochMaterial> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QGoochMaterial* dynamic_cast<Qt3DExtras::QGoochMaterial*>(QObject* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QGoochMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QGoochMaterial_ptr3(
ptr.as_raw_ptr() as *mut ::qt_core::QObject,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QGoochMaterial* dynamic_cast<Qt3DExtras::QGoochMaterial*>(QObject* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_core::QObject>,
) -> ::cpp_core::MutPtr<crate::QGoochMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QGoochMaterial_ptr3(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QMetalRoughMaterial> for ::qt_3d_render::QMaterial {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QMetalRoughMaterial* static_cast<Qt3DExtras::QMetalRoughMaterial*>(Qt3DRender::QMaterial* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_3d_render::QMaterial>,
) -> ::cpp_core::Ptr<crate::QMetalRoughMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QMetalRoughMaterial_ptr(
ptr.as_raw_ptr() as *mut ::qt_3d_render::QMaterial,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QMetalRoughMaterial* static_cast<Qt3DExtras::QMetalRoughMaterial*>(Qt3DRender::QMaterial* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_render::QMaterial>,
) -> ::cpp_core::MutPtr<crate::QMetalRoughMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QMetalRoughMaterial_ptr(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_3d_render::QMaterial> for crate::QMetalRoughMaterial {
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QMaterial* static_cast<Qt3DRender::QMaterial*>(Qt3DExtras::QMetalRoughMaterial* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QMetalRoughMaterial>,
) -> ::cpp_core::Ptr<::qt_3d_render::QMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DRender_QMaterial_ptr3(
ptr.as_raw_ptr() as *mut crate::QMetalRoughMaterial,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QMaterial* static_cast<Qt3DRender::QMaterial*>(Qt3DExtras::QMetalRoughMaterial* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QMetalRoughMaterial>,
) -> ::cpp_core::MutPtr<::qt_3d_render::QMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DRender_QMaterial_ptr3(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::std::ops::Deref for crate::QMetalRoughMaterial {
type Target = ::qt_3d_render::QMaterial;
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QMaterial* static_cast<Qt3DRender::QMaterial*>(Qt3DExtras::QMetalRoughMaterial* ptr)```</span>.
fn deref(&self) -> &::qt_3d_render::QMaterial {
let ffi_result = unsafe {
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DRender_QMaterial_ptr3(
self as *const crate::QMetalRoughMaterial as *mut crate::QMetalRoughMaterial,
)
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::std::ops::DerefMut for crate::QMetalRoughMaterial {
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QMaterial* static_cast<Qt3DRender::QMaterial*>(Qt3DExtras::QMetalRoughMaterial* ptr)```</span>.
fn deref_mut(&mut self) -> &mut ::qt_3d_render::QMaterial {
let ffi_result = unsafe {
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DRender_QMaterial_ptr3(
self as *mut crate::QMetalRoughMaterial,
)
};
unsafe { ffi_result.as_mut() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_core::DynamicCast<crate::QMetalRoughMaterial> for ::qt_3d_render::QMaterial {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QMetalRoughMaterial* dynamic_cast<Qt3DExtras::QMetalRoughMaterial*>(Qt3DRender::QMaterial* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_3d_render::QMaterial>,
) -> ::cpp_core::Ptr<crate::QMetalRoughMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QMetalRoughMaterial_ptr(
ptr.as_raw_ptr() as *mut ::qt_3d_render::QMaterial,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QMetalRoughMaterial* dynamic_cast<Qt3DExtras::QMetalRoughMaterial*>(Qt3DRender::QMaterial* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_render::QMaterial>,
) -> ::cpp_core::MutPtr<crate::QMetalRoughMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QMetalRoughMaterial_ptr(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QMetalRoughMaterial> for ::qt_3d_core::QComponent {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QMetalRoughMaterial* static_cast<Qt3DExtras::QMetalRoughMaterial*>(Qt3DCore::QComponent* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QComponent>,
) -> ::cpp_core::Ptr<crate::QMetalRoughMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QMetalRoughMaterial_ptr1(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QComponent,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QMetalRoughMaterial* static_cast<Qt3DExtras::QMetalRoughMaterial*>(Qt3DCore::QComponent* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QComponent>,
) -> ::cpp_core::MutPtr<crate::QMetalRoughMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QMetalRoughMaterial_ptr1(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_3d_core::QComponent> for crate::QMetalRoughMaterial {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QComponent* static_cast<Qt3DCore::QComponent*>(Qt3DExtras::QMetalRoughMaterial* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QMetalRoughMaterial>,
) -> ::cpp_core::Ptr<::qt_3d_core::QComponent> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QComponent_ptr7(
ptr.as_raw_ptr() as *mut crate::QMetalRoughMaterial,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QComponent* static_cast<Qt3DCore::QComponent*>(Qt3DExtras::QMetalRoughMaterial* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QMetalRoughMaterial>,
) -> ::cpp_core::MutPtr<::qt_3d_core::QComponent> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QComponent_ptr7(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QMetalRoughMaterial> for ::qt_3d_core::QComponent {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QMetalRoughMaterial* dynamic_cast<Qt3DExtras::QMetalRoughMaterial*>(Qt3DCore::QComponent* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QComponent>,
) -> ::cpp_core::Ptr<crate::QMetalRoughMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QMetalRoughMaterial_ptr1(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QComponent,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QMetalRoughMaterial* dynamic_cast<Qt3DExtras::QMetalRoughMaterial*>(Qt3DCore::QComponent* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QComponent>,
) -> ::cpp_core::MutPtr<crate::QMetalRoughMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QMetalRoughMaterial_ptr1(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QMetalRoughMaterial> for ::qt_3d_core::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QMetalRoughMaterial* static_cast<Qt3DExtras::QMetalRoughMaterial*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QNode>,
) -> ::cpp_core::Ptr<crate::QMetalRoughMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QMetalRoughMaterial_ptr2(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QNode,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QMetalRoughMaterial* static_cast<Qt3DExtras::QMetalRoughMaterial*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QNode>,
) -> ::cpp_core::MutPtr<crate::QMetalRoughMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QMetalRoughMaterial_ptr2(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_3d_core::QNode> for crate::QMetalRoughMaterial {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DExtras::QMetalRoughMaterial* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QMetalRoughMaterial>,
) -> ::cpp_core::Ptr<::qt_3d_core::QNode> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QNode_ptr13(
ptr.as_raw_ptr() as *mut crate::QMetalRoughMaterial,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DExtras::QMetalRoughMaterial* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QMetalRoughMaterial>,
) -> ::cpp_core::MutPtr<::qt_3d_core::QNode> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QNode_ptr13(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QMetalRoughMaterial> for ::qt_3d_core::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QMetalRoughMaterial* dynamic_cast<Qt3DExtras::QMetalRoughMaterial*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QNode>,
) -> ::cpp_core::Ptr<crate::QMetalRoughMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QMetalRoughMaterial_ptr2(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QNode,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QMetalRoughMaterial* dynamic_cast<Qt3DExtras::QMetalRoughMaterial*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QNode>,
) -> ::cpp_core::MutPtr<crate::QMetalRoughMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QMetalRoughMaterial_ptr2(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QMetalRoughMaterial> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QMetalRoughMaterial* static_cast<Qt3DExtras::QMetalRoughMaterial*>(QObject* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QMetalRoughMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QMetalRoughMaterial_ptr3(
ptr.as_raw_ptr() as *mut ::qt_core::QObject,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QMetalRoughMaterial* static_cast<Qt3DExtras::QMetalRoughMaterial*>(QObject* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_core::QObject>,
) -> ::cpp_core::MutPtr<crate::QMetalRoughMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QMetalRoughMaterial_ptr3(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_core::QObject> for crate::QMetalRoughMaterial {
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(Qt3DExtras::QMetalRoughMaterial* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QMetalRoughMaterial>,
) -> ::cpp_core::Ptr<::qt_core::QObject> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_QObject_ptr13(
ptr.as_raw_ptr() as *mut crate::QMetalRoughMaterial,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(Qt3DExtras::QMetalRoughMaterial* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QMetalRoughMaterial>,
) -> ::cpp_core::MutPtr<::qt_core::QObject> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_QObject_ptr13(ptr.as_mut_raw_ptr());
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QMetalRoughMaterial> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QMetalRoughMaterial* dynamic_cast<Qt3DExtras::QMetalRoughMaterial*>(QObject* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QMetalRoughMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QMetalRoughMaterial_ptr3(
ptr.as_raw_ptr() as *mut ::qt_core::QObject,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QMetalRoughMaterial* dynamic_cast<Qt3DExtras::QMetalRoughMaterial*>(QObject* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_core::QObject>,
) -> ::cpp_core::MutPtr<crate::QMetalRoughMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QMetalRoughMaterial_ptr3(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QMorphPhongMaterial> for ::qt_3d_render::QMaterial {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QMorphPhongMaterial* static_cast<Qt3DExtras::QMorphPhongMaterial*>(Qt3DRender::QMaterial* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_3d_render::QMaterial>,
) -> ::cpp_core::Ptr<crate::QMorphPhongMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QMorphPhongMaterial_ptr(
ptr.as_raw_ptr() as *mut ::qt_3d_render::QMaterial,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QMorphPhongMaterial* static_cast<Qt3DExtras::QMorphPhongMaterial*>(Qt3DRender::QMaterial* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_render::QMaterial>,
) -> ::cpp_core::MutPtr<crate::QMorphPhongMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QMorphPhongMaterial_ptr(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_3d_render::QMaterial> for crate::QMorphPhongMaterial {
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QMaterial* static_cast<Qt3DRender::QMaterial*>(Qt3DExtras::QMorphPhongMaterial* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QMorphPhongMaterial>,
) -> ::cpp_core::Ptr<::qt_3d_render::QMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DRender_QMaterial_ptr4(
ptr.as_raw_ptr() as *mut crate::QMorphPhongMaterial,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QMaterial* static_cast<Qt3DRender::QMaterial*>(Qt3DExtras::QMorphPhongMaterial* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QMorphPhongMaterial>,
) -> ::cpp_core::MutPtr<::qt_3d_render::QMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DRender_QMaterial_ptr4(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::std::ops::Deref for crate::QMorphPhongMaterial {
type Target = ::qt_3d_render::QMaterial;
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QMaterial* static_cast<Qt3DRender::QMaterial*>(Qt3DExtras::QMorphPhongMaterial* ptr)```</span>.
fn deref(&self) -> &::qt_3d_render::QMaterial {
let ffi_result = unsafe {
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DRender_QMaterial_ptr4(
self as *const crate::QMorphPhongMaterial as *mut crate::QMorphPhongMaterial,
)
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::std::ops::DerefMut for crate::QMorphPhongMaterial {
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QMaterial* static_cast<Qt3DRender::QMaterial*>(Qt3DExtras::QMorphPhongMaterial* ptr)```</span>.
fn deref_mut(&mut self) -> &mut ::qt_3d_render::QMaterial {
let ffi_result = unsafe {
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DRender_QMaterial_ptr4(
self as *mut crate::QMorphPhongMaterial,
)
};
unsafe { ffi_result.as_mut() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_core::DynamicCast<crate::QMorphPhongMaterial> for ::qt_3d_render::QMaterial {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QMorphPhongMaterial* dynamic_cast<Qt3DExtras::QMorphPhongMaterial*>(Qt3DRender::QMaterial* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_3d_render::QMaterial>,
) -> ::cpp_core::Ptr<crate::QMorphPhongMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QMorphPhongMaterial_ptr(
ptr.as_raw_ptr() as *mut ::qt_3d_render::QMaterial,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QMorphPhongMaterial* dynamic_cast<Qt3DExtras::QMorphPhongMaterial*>(Qt3DRender::QMaterial* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_render::QMaterial>,
) -> ::cpp_core::MutPtr<crate::QMorphPhongMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QMorphPhongMaterial_ptr(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QMorphPhongMaterial> for ::qt_3d_core::QComponent {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QMorphPhongMaterial* static_cast<Qt3DExtras::QMorphPhongMaterial*>(Qt3DCore::QComponent* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QComponent>,
) -> ::cpp_core::Ptr<crate::QMorphPhongMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QMorphPhongMaterial_ptr1(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QComponent,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QMorphPhongMaterial* static_cast<Qt3DExtras::QMorphPhongMaterial*>(Qt3DCore::QComponent* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QComponent>,
) -> ::cpp_core::MutPtr<crate::QMorphPhongMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QMorphPhongMaterial_ptr1(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_3d_core::QComponent> for crate::QMorphPhongMaterial {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QComponent* static_cast<Qt3DCore::QComponent*>(Qt3DExtras::QMorphPhongMaterial* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QMorphPhongMaterial>,
) -> ::cpp_core::Ptr<::qt_3d_core::QComponent> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QComponent_ptr8(
ptr.as_raw_ptr() as *mut crate::QMorphPhongMaterial,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QComponent* static_cast<Qt3DCore::QComponent*>(Qt3DExtras::QMorphPhongMaterial* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QMorphPhongMaterial>,
) -> ::cpp_core::MutPtr<::qt_3d_core::QComponent> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QComponent_ptr8(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QMorphPhongMaterial> for ::qt_3d_core::QComponent {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QMorphPhongMaterial* dynamic_cast<Qt3DExtras::QMorphPhongMaterial*>(Qt3DCore::QComponent* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QComponent>,
) -> ::cpp_core::Ptr<crate::QMorphPhongMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QMorphPhongMaterial_ptr1(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QComponent,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QMorphPhongMaterial* dynamic_cast<Qt3DExtras::QMorphPhongMaterial*>(Qt3DCore::QComponent* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QComponent>,
) -> ::cpp_core::MutPtr<crate::QMorphPhongMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QMorphPhongMaterial_ptr1(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QMorphPhongMaterial> for ::qt_3d_core::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QMorphPhongMaterial* static_cast<Qt3DExtras::QMorphPhongMaterial*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QNode>,
) -> ::cpp_core::Ptr<crate::QMorphPhongMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QMorphPhongMaterial_ptr2(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QNode,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QMorphPhongMaterial* static_cast<Qt3DExtras::QMorphPhongMaterial*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QNode>,
) -> ::cpp_core::MutPtr<crate::QMorphPhongMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QMorphPhongMaterial_ptr2(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_3d_core::QNode> for crate::QMorphPhongMaterial {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DExtras::QMorphPhongMaterial* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QMorphPhongMaterial>,
) -> ::cpp_core::Ptr<::qt_3d_core::QNode> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QNode_ptr14(
ptr.as_raw_ptr() as *mut crate::QMorphPhongMaterial,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DExtras::QMorphPhongMaterial* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QMorphPhongMaterial>,
) -> ::cpp_core::MutPtr<::qt_3d_core::QNode> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QNode_ptr14(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QMorphPhongMaterial> for ::qt_3d_core::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QMorphPhongMaterial* dynamic_cast<Qt3DExtras::QMorphPhongMaterial*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QNode>,
) -> ::cpp_core::Ptr<crate::QMorphPhongMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QMorphPhongMaterial_ptr2(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QNode,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QMorphPhongMaterial* dynamic_cast<Qt3DExtras::QMorphPhongMaterial*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QNode>,
) -> ::cpp_core::MutPtr<crate::QMorphPhongMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QMorphPhongMaterial_ptr2(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QMorphPhongMaterial> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QMorphPhongMaterial* static_cast<Qt3DExtras::QMorphPhongMaterial*>(QObject* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QMorphPhongMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QMorphPhongMaterial_ptr3(
ptr.as_raw_ptr() as *mut ::qt_core::QObject,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QMorphPhongMaterial* static_cast<Qt3DExtras::QMorphPhongMaterial*>(QObject* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_core::QObject>,
) -> ::cpp_core::MutPtr<crate::QMorphPhongMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QMorphPhongMaterial_ptr3(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_core::QObject> for crate::QMorphPhongMaterial {
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(Qt3DExtras::QMorphPhongMaterial* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QMorphPhongMaterial>,
) -> ::cpp_core::Ptr<::qt_core::QObject> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_QObject_ptr14(
ptr.as_raw_ptr() as *mut crate::QMorphPhongMaterial,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(Qt3DExtras::QMorphPhongMaterial* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QMorphPhongMaterial>,
) -> ::cpp_core::MutPtr<::qt_core::QObject> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_QObject_ptr14(ptr.as_mut_raw_ptr());
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QMorphPhongMaterial> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QMorphPhongMaterial* dynamic_cast<Qt3DExtras::QMorphPhongMaterial*>(QObject* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QMorphPhongMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QMorphPhongMaterial_ptr3(
ptr.as_raw_ptr() as *mut ::qt_core::QObject,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QMorphPhongMaterial* dynamic_cast<Qt3DExtras::QMorphPhongMaterial*>(QObject* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_core::QObject>,
) -> ::cpp_core::MutPtr<crate::QMorphPhongMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QMorphPhongMaterial_ptr3(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QNormalDiffuseMapMaterial> for ::qt_3d_render::QMaterial {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QNormalDiffuseMapMaterial* static_cast<Qt3DExtras::QNormalDiffuseMapMaterial*>(Qt3DRender::QMaterial* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_3d_render::QMaterial>,
) -> ::cpp_core::Ptr<crate::QNormalDiffuseMapMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QNormalDiffuseMapMaterial_ptr(
ptr.as_raw_ptr() as *mut ::qt_3d_render::QMaterial,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QNormalDiffuseMapMaterial* static_cast<Qt3DExtras::QNormalDiffuseMapMaterial*>(Qt3DRender::QMaterial* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_render::QMaterial>,
) -> ::cpp_core::MutPtr<crate::QNormalDiffuseMapMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QNormalDiffuseMapMaterial_ptr(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_3d_render::QMaterial> for crate::QNormalDiffuseMapMaterial {
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QMaterial* static_cast<Qt3DRender::QMaterial*>(Qt3DExtras::QNormalDiffuseMapMaterial* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QNormalDiffuseMapMaterial>,
) -> ::cpp_core::Ptr<::qt_3d_render::QMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DRender_QMaterial_ptr5(
ptr.as_raw_ptr() as *mut crate::QNormalDiffuseMapMaterial,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QMaterial* static_cast<Qt3DRender::QMaterial*>(Qt3DExtras::QNormalDiffuseMapMaterial* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QNormalDiffuseMapMaterial>,
) -> ::cpp_core::MutPtr<::qt_3d_render::QMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DRender_QMaterial_ptr5(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::std::ops::Deref for crate::QNormalDiffuseMapMaterial {
type Target = ::qt_3d_render::QMaterial;
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QMaterial* static_cast<Qt3DRender::QMaterial*>(Qt3DExtras::QNormalDiffuseMapMaterial* ptr)```</span>.
fn deref(&self) -> &::qt_3d_render::QMaterial {
let ffi_result = unsafe {
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DRender_QMaterial_ptr5(
self as *const crate::QNormalDiffuseMapMaterial
as *mut crate::QNormalDiffuseMapMaterial,
)
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::std::ops::DerefMut for crate::QNormalDiffuseMapMaterial {
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QMaterial* static_cast<Qt3DRender::QMaterial*>(Qt3DExtras::QNormalDiffuseMapMaterial* ptr)```</span>.
fn deref_mut(&mut self) -> &mut ::qt_3d_render::QMaterial {
let ffi_result = unsafe {
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DRender_QMaterial_ptr5(
self as *mut crate::QNormalDiffuseMapMaterial,
)
};
unsafe { ffi_result.as_mut() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_core::DynamicCast<crate::QNormalDiffuseMapMaterial> for ::qt_3d_render::QMaterial {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QNormalDiffuseMapMaterial* dynamic_cast<Qt3DExtras::QNormalDiffuseMapMaterial*>(Qt3DRender::QMaterial* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_3d_render::QMaterial>,
) -> ::cpp_core::Ptr<crate::QNormalDiffuseMapMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QNormalDiffuseMapMaterial_ptr(ptr.as_raw_ptr() as *mut ::qt_3d_render::QMaterial);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QNormalDiffuseMapMaterial* dynamic_cast<Qt3DExtras::QNormalDiffuseMapMaterial*>(Qt3DRender::QMaterial* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_render::QMaterial>,
) -> ::cpp_core::MutPtr<crate::QNormalDiffuseMapMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QNormalDiffuseMapMaterial_ptr(ptr.as_mut_raw_ptr());
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QNormalDiffuseMapMaterial> for ::qt_3d_core::QComponent {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QNormalDiffuseMapMaterial* static_cast<Qt3DExtras::QNormalDiffuseMapMaterial*>(Qt3DCore::QComponent* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QComponent>,
) -> ::cpp_core::Ptr<crate::QNormalDiffuseMapMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QNormalDiffuseMapMaterial_ptr1(ptr.as_raw_ptr() as *mut ::qt_3d_core::QComponent);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QNormalDiffuseMapMaterial* static_cast<Qt3DExtras::QNormalDiffuseMapMaterial*>(Qt3DCore::QComponent* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QComponent>,
) -> ::cpp_core::MutPtr<crate::QNormalDiffuseMapMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QNormalDiffuseMapMaterial_ptr1(ptr.as_mut_raw_ptr());
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_3d_core::QComponent> for crate::QNormalDiffuseMapMaterial {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QComponent* static_cast<Qt3DCore::QComponent*>(Qt3DExtras::QNormalDiffuseMapMaterial* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QNormalDiffuseMapMaterial>,
) -> ::cpp_core::Ptr<::qt_3d_core::QComponent> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QComponent_ptr9(
ptr.as_raw_ptr() as *mut crate::QNormalDiffuseMapMaterial,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QComponent* static_cast<Qt3DCore::QComponent*>(Qt3DExtras::QNormalDiffuseMapMaterial* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QNormalDiffuseMapMaterial>,
) -> ::cpp_core::MutPtr<::qt_3d_core::QComponent> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QComponent_ptr9(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QNormalDiffuseMapMaterial> for ::qt_3d_core::QComponent {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QNormalDiffuseMapMaterial* dynamic_cast<Qt3DExtras::QNormalDiffuseMapMaterial*>(Qt3DCore::QComponent* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QComponent>,
) -> ::cpp_core::Ptr<crate::QNormalDiffuseMapMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QNormalDiffuseMapMaterial_ptr1(ptr.as_raw_ptr() as *mut ::qt_3d_core::QComponent);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QNormalDiffuseMapMaterial* dynamic_cast<Qt3DExtras::QNormalDiffuseMapMaterial*>(Qt3DCore::QComponent* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QComponent>,
) -> ::cpp_core::MutPtr<crate::QNormalDiffuseMapMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QNormalDiffuseMapMaterial_ptr1(ptr.as_mut_raw_ptr());
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QNormalDiffuseMapMaterial> for ::qt_3d_core::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QNormalDiffuseMapMaterial* static_cast<Qt3DExtras::QNormalDiffuseMapMaterial*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QNode>,
) -> ::cpp_core::Ptr<crate::QNormalDiffuseMapMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QNormalDiffuseMapMaterial_ptr2(ptr.as_raw_ptr() as *mut ::qt_3d_core::QNode);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QNormalDiffuseMapMaterial* static_cast<Qt3DExtras::QNormalDiffuseMapMaterial*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QNode>,
) -> ::cpp_core::MutPtr<crate::QNormalDiffuseMapMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QNormalDiffuseMapMaterial_ptr2(ptr.as_mut_raw_ptr());
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_3d_core::QNode> for crate::QNormalDiffuseMapMaterial {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DExtras::QNormalDiffuseMapMaterial* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QNormalDiffuseMapMaterial>,
) -> ::cpp_core::Ptr<::qt_3d_core::QNode> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QNode_ptr15(
ptr.as_raw_ptr() as *mut crate::QNormalDiffuseMapMaterial,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DExtras::QNormalDiffuseMapMaterial* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QNormalDiffuseMapMaterial>,
) -> ::cpp_core::MutPtr<::qt_3d_core::QNode> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QNode_ptr15(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QNormalDiffuseMapMaterial> for ::qt_3d_core::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QNormalDiffuseMapMaterial* dynamic_cast<Qt3DExtras::QNormalDiffuseMapMaterial*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QNode>,
) -> ::cpp_core::Ptr<crate::QNormalDiffuseMapMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QNormalDiffuseMapMaterial_ptr2(ptr.as_raw_ptr() as *mut ::qt_3d_core::QNode);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QNormalDiffuseMapMaterial* dynamic_cast<Qt3DExtras::QNormalDiffuseMapMaterial*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QNode>,
) -> ::cpp_core::MutPtr<crate::QNormalDiffuseMapMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QNormalDiffuseMapMaterial_ptr2(ptr.as_mut_raw_ptr());
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QNormalDiffuseMapMaterial> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QNormalDiffuseMapMaterial* static_cast<Qt3DExtras::QNormalDiffuseMapMaterial*>(QObject* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QNormalDiffuseMapMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QNormalDiffuseMapMaterial_ptr3(ptr.as_raw_ptr() as *mut ::qt_core::QObject);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QNormalDiffuseMapMaterial* static_cast<Qt3DExtras::QNormalDiffuseMapMaterial*>(QObject* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_core::QObject>,
) -> ::cpp_core::MutPtr<crate::QNormalDiffuseMapMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QNormalDiffuseMapMaterial_ptr3(ptr.as_mut_raw_ptr());
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_core::QObject> for crate::QNormalDiffuseMapMaterial {
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(Qt3DExtras::QNormalDiffuseMapMaterial* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QNormalDiffuseMapMaterial>,
) -> ::cpp_core::Ptr<::qt_core::QObject> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_QObject_ptr15(
ptr.as_raw_ptr() as *mut crate::QNormalDiffuseMapMaterial,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(Qt3DExtras::QNormalDiffuseMapMaterial* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QNormalDiffuseMapMaterial>,
) -> ::cpp_core::MutPtr<::qt_core::QObject> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_QObject_ptr15(ptr.as_mut_raw_ptr());
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QNormalDiffuseMapMaterial> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QNormalDiffuseMapMaterial* dynamic_cast<Qt3DExtras::QNormalDiffuseMapMaterial*>(QObject* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QNormalDiffuseMapMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QNormalDiffuseMapMaterial_ptr3(ptr.as_raw_ptr() as *mut ::qt_core::QObject);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QNormalDiffuseMapMaterial* dynamic_cast<Qt3DExtras::QNormalDiffuseMapMaterial*>(QObject* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_core::QObject>,
) -> ::cpp_core::MutPtr<crate::QNormalDiffuseMapMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QNormalDiffuseMapMaterial_ptr3(ptr.as_mut_raw_ptr());
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QNormalDiffuseMapAlphaMaterial>
for crate::QNormalDiffuseMapMaterial
{
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QNormalDiffuseMapAlphaMaterial* static_cast<Qt3DExtras::QNormalDiffuseMapAlphaMaterial*>(Qt3DExtras::QNormalDiffuseMapMaterial* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<crate::QNormalDiffuseMapMaterial>,
) -> ::cpp_core::Ptr<crate::QNormalDiffuseMapAlphaMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QNormalDiffuseMapAlphaMaterial_ptr(ptr.as_raw_ptr() as *mut crate::QNormalDiffuseMapMaterial);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QNormalDiffuseMapAlphaMaterial* static_cast<Qt3DExtras::QNormalDiffuseMapAlphaMaterial*>(Qt3DExtras::QNormalDiffuseMapMaterial* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<crate::QNormalDiffuseMapMaterial>,
) -> ::cpp_core::MutPtr<crate::QNormalDiffuseMapAlphaMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QNormalDiffuseMapAlphaMaterial_ptr(ptr.as_mut_raw_ptr());
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<crate::QNormalDiffuseMapMaterial>
for crate::QNormalDiffuseMapAlphaMaterial
{
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QNormalDiffuseMapMaterial* static_cast<Qt3DExtras::QNormalDiffuseMapMaterial*>(Qt3DExtras::QNormalDiffuseMapAlphaMaterial* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QNormalDiffuseMapAlphaMaterial>,
) -> ::cpp_core::Ptr<crate::QNormalDiffuseMapMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QNormalDiffuseMapMaterial_ptr4(ptr.as_raw_ptr() as *mut crate::QNormalDiffuseMapAlphaMaterial);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QNormalDiffuseMapMaterial* static_cast<Qt3DExtras::QNormalDiffuseMapMaterial*>(Qt3DExtras::QNormalDiffuseMapAlphaMaterial* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QNormalDiffuseMapAlphaMaterial>,
) -> ::cpp_core::MutPtr<crate::QNormalDiffuseMapMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QNormalDiffuseMapMaterial_ptr4(ptr.as_mut_raw_ptr());
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::std::ops::Deref for crate::QNormalDiffuseMapAlphaMaterial {
type Target = crate::QNormalDiffuseMapMaterial;
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QNormalDiffuseMapMaterial* static_cast<Qt3DExtras::QNormalDiffuseMapMaterial*>(Qt3DExtras::QNormalDiffuseMapAlphaMaterial* ptr)```</span>.
fn deref(&self) -> &crate::QNormalDiffuseMapMaterial {
let ffi_result = unsafe {
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QNormalDiffuseMapMaterial_ptr4(
self as *const crate::QNormalDiffuseMapAlphaMaterial
as *mut crate::QNormalDiffuseMapAlphaMaterial,
)
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::std::ops::DerefMut for crate::QNormalDiffuseMapAlphaMaterial {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QNormalDiffuseMapMaterial* static_cast<Qt3DExtras::QNormalDiffuseMapMaterial*>(Qt3DExtras::QNormalDiffuseMapAlphaMaterial* ptr)```</span>.
fn deref_mut(&mut self) -> &mut crate::QNormalDiffuseMapMaterial {
let ffi_result = unsafe {
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QNormalDiffuseMapMaterial_ptr4(
self as *mut crate::QNormalDiffuseMapAlphaMaterial,
)
};
unsafe { ffi_result.as_mut() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_core::DynamicCast<crate::QNormalDiffuseMapAlphaMaterial>
for crate::QNormalDiffuseMapMaterial
{
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QNormalDiffuseMapAlphaMaterial* dynamic_cast<Qt3DExtras::QNormalDiffuseMapAlphaMaterial*>(Qt3DExtras::QNormalDiffuseMapMaterial* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<crate::QNormalDiffuseMapMaterial>,
) -> ::cpp_core::Ptr<crate::QNormalDiffuseMapAlphaMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QNormalDiffuseMapAlphaMaterial_ptr(ptr.as_raw_ptr() as *mut crate::QNormalDiffuseMapMaterial);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QNormalDiffuseMapAlphaMaterial* dynamic_cast<Qt3DExtras::QNormalDiffuseMapAlphaMaterial*>(Qt3DExtras::QNormalDiffuseMapMaterial* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<crate::QNormalDiffuseMapMaterial>,
) -> ::cpp_core::MutPtr<crate::QNormalDiffuseMapAlphaMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QNormalDiffuseMapAlphaMaterial_ptr(ptr.as_mut_raw_ptr());
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QNormalDiffuseMapAlphaMaterial>
for ::qt_3d_render::QMaterial
{
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QNormalDiffuseMapAlphaMaterial* static_cast<Qt3DExtras::QNormalDiffuseMapAlphaMaterial*>(Qt3DRender::QMaterial* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_3d_render::QMaterial>,
) -> ::cpp_core::Ptr<crate::QNormalDiffuseMapAlphaMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QNormalDiffuseMapAlphaMaterial_ptr1(ptr.as_raw_ptr() as *mut ::qt_3d_render::QMaterial);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QNormalDiffuseMapAlphaMaterial* static_cast<Qt3DExtras::QNormalDiffuseMapAlphaMaterial*>(Qt3DRender::QMaterial* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_render::QMaterial>,
) -> ::cpp_core::MutPtr<crate::QNormalDiffuseMapAlphaMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QNormalDiffuseMapAlphaMaterial_ptr1(ptr.as_mut_raw_ptr());
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_3d_render::QMaterial> for crate::QNormalDiffuseMapAlphaMaterial {
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QMaterial* static_cast<Qt3DRender::QMaterial*>(Qt3DExtras::QNormalDiffuseMapAlphaMaterial* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QNormalDiffuseMapAlphaMaterial>,
) -> ::cpp_core::Ptr<::qt_3d_render::QMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DRender_QMaterial_ptr6(
ptr.as_raw_ptr() as *mut crate::QNormalDiffuseMapAlphaMaterial,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QMaterial* static_cast<Qt3DRender::QMaterial*>(Qt3DExtras::QNormalDiffuseMapAlphaMaterial* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QNormalDiffuseMapAlphaMaterial>,
) -> ::cpp_core::MutPtr<::qt_3d_render::QMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DRender_QMaterial_ptr6(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QNormalDiffuseMapAlphaMaterial> for ::qt_3d_render::QMaterial {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QNormalDiffuseMapAlphaMaterial* dynamic_cast<Qt3DExtras::QNormalDiffuseMapAlphaMaterial*>(Qt3DRender::QMaterial* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_3d_render::QMaterial>,
) -> ::cpp_core::Ptr<crate::QNormalDiffuseMapAlphaMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QNormalDiffuseMapAlphaMaterial_ptr1(ptr.as_raw_ptr() as *mut ::qt_3d_render::QMaterial);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QNormalDiffuseMapAlphaMaterial* dynamic_cast<Qt3DExtras::QNormalDiffuseMapAlphaMaterial*>(Qt3DRender::QMaterial* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_render::QMaterial>,
) -> ::cpp_core::MutPtr<crate::QNormalDiffuseMapAlphaMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QNormalDiffuseMapAlphaMaterial_ptr1(ptr.as_mut_raw_ptr());
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QNormalDiffuseMapAlphaMaterial>
for ::qt_3d_core::QComponent
{
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QNormalDiffuseMapAlphaMaterial* static_cast<Qt3DExtras::QNormalDiffuseMapAlphaMaterial*>(Qt3DCore::QComponent* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QComponent>,
) -> ::cpp_core::Ptr<crate::QNormalDiffuseMapAlphaMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QNormalDiffuseMapAlphaMaterial_ptr2(ptr.as_raw_ptr() as *mut ::qt_3d_core::QComponent);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QNormalDiffuseMapAlphaMaterial* static_cast<Qt3DExtras::QNormalDiffuseMapAlphaMaterial*>(Qt3DCore::QComponent* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QComponent>,
) -> ::cpp_core::MutPtr<crate::QNormalDiffuseMapAlphaMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QNormalDiffuseMapAlphaMaterial_ptr2(ptr.as_mut_raw_ptr());
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_3d_core::QComponent> for crate::QNormalDiffuseMapAlphaMaterial {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QComponent* static_cast<Qt3DCore::QComponent*>(Qt3DExtras::QNormalDiffuseMapAlphaMaterial* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QNormalDiffuseMapAlphaMaterial>,
) -> ::cpp_core::Ptr<::qt_3d_core::QComponent> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QComponent_ptr10(
ptr.as_raw_ptr() as *mut crate::QNormalDiffuseMapAlphaMaterial,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QComponent* static_cast<Qt3DCore::QComponent*>(Qt3DExtras::QNormalDiffuseMapAlphaMaterial* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QNormalDiffuseMapAlphaMaterial>,
) -> ::cpp_core::MutPtr<::qt_3d_core::QComponent> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QComponent_ptr10(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QNormalDiffuseMapAlphaMaterial> for ::qt_3d_core::QComponent {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QNormalDiffuseMapAlphaMaterial* dynamic_cast<Qt3DExtras::QNormalDiffuseMapAlphaMaterial*>(Qt3DCore::QComponent* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QComponent>,
) -> ::cpp_core::Ptr<crate::QNormalDiffuseMapAlphaMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QNormalDiffuseMapAlphaMaterial_ptr2(ptr.as_raw_ptr() as *mut ::qt_3d_core::QComponent);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QNormalDiffuseMapAlphaMaterial* dynamic_cast<Qt3DExtras::QNormalDiffuseMapAlphaMaterial*>(Qt3DCore::QComponent* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QComponent>,
) -> ::cpp_core::MutPtr<crate::QNormalDiffuseMapAlphaMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QNormalDiffuseMapAlphaMaterial_ptr2(ptr.as_mut_raw_ptr());
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QNormalDiffuseMapAlphaMaterial> for ::qt_3d_core::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QNormalDiffuseMapAlphaMaterial* static_cast<Qt3DExtras::QNormalDiffuseMapAlphaMaterial*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QNode>,
) -> ::cpp_core::Ptr<crate::QNormalDiffuseMapAlphaMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QNormalDiffuseMapAlphaMaterial_ptr3(ptr.as_raw_ptr() as *mut ::qt_3d_core::QNode);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QNormalDiffuseMapAlphaMaterial* static_cast<Qt3DExtras::QNormalDiffuseMapAlphaMaterial*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QNode>,
) -> ::cpp_core::MutPtr<crate::QNormalDiffuseMapAlphaMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QNormalDiffuseMapAlphaMaterial_ptr3(ptr.as_mut_raw_ptr());
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_3d_core::QNode> for crate::QNormalDiffuseMapAlphaMaterial {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DExtras::QNormalDiffuseMapAlphaMaterial* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QNormalDiffuseMapAlphaMaterial>,
) -> ::cpp_core::Ptr<::qt_3d_core::QNode> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QNode_ptr16(
ptr.as_raw_ptr() as *mut crate::QNormalDiffuseMapAlphaMaterial,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DExtras::QNormalDiffuseMapAlphaMaterial* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QNormalDiffuseMapAlphaMaterial>,
) -> ::cpp_core::MutPtr<::qt_3d_core::QNode> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QNode_ptr16(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QNormalDiffuseMapAlphaMaterial> for ::qt_3d_core::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QNormalDiffuseMapAlphaMaterial* dynamic_cast<Qt3DExtras::QNormalDiffuseMapAlphaMaterial*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QNode>,
) -> ::cpp_core::Ptr<crate::QNormalDiffuseMapAlphaMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QNormalDiffuseMapAlphaMaterial_ptr3(ptr.as_raw_ptr() as *mut ::qt_3d_core::QNode);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QNormalDiffuseMapAlphaMaterial* dynamic_cast<Qt3DExtras::QNormalDiffuseMapAlphaMaterial*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QNode>,
) -> ::cpp_core::MutPtr<crate::QNormalDiffuseMapAlphaMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QNormalDiffuseMapAlphaMaterial_ptr3(ptr.as_mut_raw_ptr());
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QNormalDiffuseMapAlphaMaterial> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QNormalDiffuseMapAlphaMaterial* static_cast<Qt3DExtras::QNormalDiffuseMapAlphaMaterial*>(QObject* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QNormalDiffuseMapAlphaMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QNormalDiffuseMapAlphaMaterial_ptr4(ptr.as_raw_ptr() as *mut ::qt_core::QObject);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QNormalDiffuseMapAlphaMaterial* static_cast<Qt3DExtras::QNormalDiffuseMapAlphaMaterial*>(QObject* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_core::QObject>,
) -> ::cpp_core::MutPtr<crate::QNormalDiffuseMapAlphaMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QNormalDiffuseMapAlphaMaterial_ptr4(ptr.as_mut_raw_ptr());
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_core::QObject> for crate::QNormalDiffuseMapAlphaMaterial {
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(Qt3DExtras::QNormalDiffuseMapAlphaMaterial* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QNormalDiffuseMapAlphaMaterial>,
) -> ::cpp_core::Ptr<::qt_core::QObject> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_QObject_ptr16(
ptr.as_raw_ptr() as *mut crate::QNormalDiffuseMapAlphaMaterial,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(Qt3DExtras::QNormalDiffuseMapAlphaMaterial* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QNormalDiffuseMapAlphaMaterial>,
) -> ::cpp_core::MutPtr<::qt_core::QObject> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_QObject_ptr16(ptr.as_mut_raw_ptr());
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QNormalDiffuseMapAlphaMaterial> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QNormalDiffuseMapAlphaMaterial* dynamic_cast<Qt3DExtras::QNormalDiffuseMapAlphaMaterial*>(QObject* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QNormalDiffuseMapAlphaMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QNormalDiffuseMapAlphaMaterial_ptr4(ptr.as_raw_ptr() as *mut ::qt_core::QObject);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QNormalDiffuseMapAlphaMaterial* dynamic_cast<Qt3DExtras::QNormalDiffuseMapAlphaMaterial*>(QObject* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_core::QObject>,
) -> ::cpp_core::MutPtr<crate::QNormalDiffuseMapAlphaMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QNormalDiffuseMapAlphaMaterial_ptr4(ptr.as_mut_raw_ptr());
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QNormalDiffuseSpecularMapMaterial>
for ::qt_3d_render::QMaterial
{
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QNormalDiffuseSpecularMapMaterial* static_cast<Qt3DExtras::QNormalDiffuseSpecularMapMaterial*>(Qt3DRender::QMaterial* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_3d_render::QMaterial>,
) -> ::cpp_core::Ptr<crate::QNormalDiffuseSpecularMapMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QNormalDiffuseSpecularMapMaterial_ptr(ptr.as_raw_ptr() as *mut ::qt_3d_render::QMaterial);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QNormalDiffuseSpecularMapMaterial* static_cast<Qt3DExtras::QNormalDiffuseSpecularMapMaterial*>(Qt3DRender::QMaterial* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_render::QMaterial>,
) -> ::cpp_core::MutPtr<crate::QNormalDiffuseSpecularMapMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QNormalDiffuseSpecularMapMaterial_ptr(ptr.as_mut_raw_ptr());
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_3d_render::QMaterial>
for crate::QNormalDiffuseSpecularMapMaterial
{
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QMaterial* static_cast<Qt3DRender::QMaterial*>(Qt3DExtras::QNormalDiffuseSpecularMapMaterial* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QNormalDiffuseSpecularMapMaterial>,
) -> ::cpp_core::Ptr<::qt_3d_render::QMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DRender_QMaterial_ptr7(
ptr.as_raw_ptr() as *mut crate::QNormalDiffuseSpecularMapMaterial,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QMaterial* static_cast<Qt3DRender::QMaterial*>(Qt3DExtras::QNormalDiffuseSpecularMapMaterial* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QNormalDiffuseSpecularMapMaterial>,
) -> ::cpp_core::MutPtr<::qt_3d_render::QMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DRender_QMaterial_ptr7(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::std::ops::Deref for crate::QNormalDiffuseSpecularMapMaterial {
type Target = ::qt_3d_render::QMaterial;
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QMaterial* static_cast<Qt3DRender::QMaterial*>(Qt3DExtras::QNormalDiffuseSpecularMapMaterial* ptr)```</span>.
fn deref(&self) -> &::qt_3d_render::QMaterial {
let ffi_result = unsafe {
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DRender_QMaterial_ptr7(
self as *const crate::QNormalDiffuseSpecularMapMaterial
as *mut crate::QNormalDiffuseSpecularMapMaterial,
)
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::std::ops::DerefMut for crate::QNormalDiffuseSpecularMapMaterial {
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QMaterial* static_cast<Qt3DRender::QMaterial*>(Qt3DExtras::QNormalDiffuseSpecularMapMaterial* ptr)```</span>.
fn deref_mut(&mut self) -> &mut ::qt_3d_render::QMaterial {
let ffi_result = unsafe {
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DRender_QMaterial_ptr7(
self as *mut crate::QNormalDiffuseSpecularMapMaterial,
)
};
unsafe { ffi_result.as_mut() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_core::DynamicCast<crate::QNormalDiffuseSpecularMapMaterial>
for ::qt_3d_render::QMaterial
{
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QNormalDiffuseSpecularMapMaterial* dynamic_cast<Qt3DExtras::QNormalDiffuseSpecularMapMaterial*>(Qt3DRender::QMaterial* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_3d_render::QMaterial>,
) -> ::cpp_core::Ptr<crate::QNormalDiffuseSpecularMapMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QNormalDiffuseSpecularMapMaterial_ptr(ptr.as_raw_ptr() as *mut ::qt_3d_render::QMaterial);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QNormalDiffuseSpecularMapMaterial* dynamic_cast<Qt3DExtras::QNormalDiffuseSpecularMapMaterial*>(Qt3DRender::QMaterial* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_render::QMaterial>,
) -> ::cpp_core::MutPtr<crate::QNormalDiffuseSpecularMapMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QNormalDiffuseSpecularMapMaterial_ptr(ptr.as_mut_raw_ptr());
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QNormalDiffuseSpecularMapMaterial>
for ::qt_3d_core::QComponent
{
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QNormalDiffuseSpecularMapMaterial* static_cast<Qt3DExtras::QNormalDiffuseSpecularMapMaterial*>(Qt3DCore::QComponent* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QComponent>,
) -> ::cpp_core::Ptr<crate::QNormalDiffuseSpecularMapMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QNormalDiffuseSpecularMapMaterial_ptr1(ptr.as_raw_ptr() as *mut ::qt_3d_core::QComponent);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QNormalDiffuseSpecularMapMaterial* static_cast<Qt3DExtras::QNormalDiffuseSpecularMapMaterial*>(Qt3DCore::QComponent* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QComponent>,
) -> ::cpp_core::MutPtr<crate::QNormalDiffuseSpecularMapMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QNormalDiffuseSpecularMapMaterial_ptr1(ptr.as_mut_raw_ptr());
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_3d_core::QComponent>
for crate::QNormalDiffuseSpecularMapMaterial
{
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QComponent* static_cast<Qt3DCore::QComponent*>(Qt3DExtras::QNormalDiffuseSpecularMapMaterial* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QNormalDiffuseSpecularMapMaterial>,
) -> ::cpp_core::Ptr<::qt_3d_core::QComponent> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QComponent_ptr11(
ptr.as_raw_ptr() as *mut crate::QNormalDiffuseSpecularMapMaterial,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QComponent* static_cast<Qt3DCore::QComponent*>(Qt3DExtras::QNormalDiffuseSpecularMapMaterial* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QNormalDiffuseSpecularMapMaterial>,
) -> ::cpp_core::MutPtr<::qt_3d_core::QComponent> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QComponent_ptr11(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QNormalDiffuseSpecularMapMaterial>
for ::qt_3d_core::QComponent
{
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QNormalDiffuseSpecularMapMaterial* dynamic_cast<Qt3DExtras::QNormalDiffuseSpecularMapMaterial*>(Qt3DCore::QComponent* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QComponent>,
) -> ::cpp_core::Ptr<crate::QNormalDiffuseSpecularMapMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QNormalDiffuseSpecularMapMaterial_ptr1(ptr.as_raw_ptr() as *mut ::qt_3d_core::QComponent);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QNormalDiffuseSpecularMapMaterial* dynamic_cast<Qt3DExtras::QNormalDiffuseSpecularMapMaterial*>(Qt3DCore::QComponent* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QComponent>,
) -> ::cpp_core::MutPtr<crate::QNormalDiffuseSpecularMapMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QNormalDiffuseSpecularMapMaterial_ptr1(ptr.as_mut_raw_ptr());
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QNormalDiffuseSpecularMapMaterial> for ::qt_3d_core::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QNormalDiffuseSpecularMapMaterial* static_cast<Qt3DExtras::QNormalDiffuseSpecularMapMaterial*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QNode>,
) -> ::cpp_core::Ptr<crate::QNormalDiffuseSpecularMapMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QNormalDiffuseSpecularMapMaterial_ptr2(ptr.as_raw_ptr() as *mut ::qt_3d_core::QNode);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QNormalDiffuseSpecularMapMaterial* static_cast<Qt3DExtras::QNormalDiffuseSpecularMapMaterial*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QNode>,
) -> ::cpp_core::MutPtr<crate::QNormalDiffuseSpecularMapMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QNormalDiffuseSpecularMapMaterial_ptr2(ptr.as_mut_raw_ptr());
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_3d_core::QNode> for crate::QNormalDiffuseSpecularMapMaterial {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DExtras::QNormalDiffuseSpecularMapMaterial* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QNormalDiffuseSpecularMapMaterial>,
) -> ::cpp_core::Ptr<::qt_3d_core::QNode> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QNode_ptr17(
ptr.as_raw_ptr() as *mut crate::QNormalDiffuseSpecularMapMaterial,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DExtras::QNormalDiffuseSpecularMapMaterial* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QNormalDiffuseSpecularMapMaterial>,
) -> ::cpp_core::MutPtr<::qt_3d_core::QNode> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QNode_ptr17(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QNormalDiffuseSpecularMapMaterial> for ::qt_3d_core::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QNormalDiffuseSpecularMapMaterial* dynamic_cast<Qt3DExtras::QNormalDiffuseSpecularMapMaterial*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QNode>,
) -> ::cpp_core::Ptr<crate::QNormalDiffuseSpecularMapMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QNormalDiffuseSpecularMapMaterial_ptr2(ptr.as_raw_ptr() as *mut ::qt_3d_core::QNode);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QNormalDiffuseSpecularMapMaterial* dynamic_cast<Qt3DExtras::QNormalDiffuseSpecularMapMaterial*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QNode>,
) -> ::cpp_core::MutPtr<crate::QNormalDiffuseSpecularMapMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QNormalDiffuseSpecularMapMaterial_ptr2(ptr.as_mut_raw_ptr());
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QNormalDiffuseSpecularMapMaterial> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QNormalDiffuseSpecularMapMaterial* static_cast<Qt3DExtras::QNormalDiffuseSpecularMapMaterial*>(QObject* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QNormalDiffuseSpecularMapMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QNormalDiffuseSpecularMapMaterial_ptr3(ptr.as_raw_ptr() as *mut ::qt_core::QObject);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QNormalDiffuseSpecularMapMaterial* static_cast<Qt3DExtras::QNormalDiffuseSpecularMapMaterial*>(QObject* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_core::QObject>,
) -> ::cpp_core::MutPtr<crate::QNormalDiffuseSpecularMapMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QNormalDiffuseSpecularMapMaterial_ptr3(ptr.as_mut_raw_ptr());
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_core::QObject> for crate::QNormalDiffuseSpecularMapMaterial {
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(Qt3DExtras::QNormalDiffuseSpecularMapMaterial* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QNormalDiffuseSpecularMapMaterial>,
) -> ::cpp_core::Ptr<::qt_core::QObject> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_QObject_ptr17(
ptr.as_raw_ptr() as *mut crate::QNormalDiffuseSpecularMapMaterial,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(Qt3DExtras::QNormalDiffuseSpecularMapMaterial* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QNormalDiffuseSpecularMapMaterial>,
) -> ::cpp_core::MutPtr<::qt_core::QObject> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_QObject_ptr17(ptr.as_mut_raw_ptr());
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QNormalDiffuseSpecularMapMaterial> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QNormalDiffuseSpecularMapMaterial* dynamic_cast<Qt3DExtras::QNormalDiffuseSpecularMapMaterial*>(QObject* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QNormalDiffuseSpecularMapMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QNormalDiffuseSpecularMapMaterial_ptr3(ptr.as_raw_ptr() as *mut ::qt_core::QObject);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QNormalDiffuseSpecularMapMaterial* dynamic_cast<Qt3DExtras::QNormalDiffuseSpecularMapMaterial*>(QObject* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_core::QObject>,
) -> ::cpp_core::MutPtr<crate::QNormalDiffuseSpecularMapMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QNormalDiffuseSpecularMapMaterial_ptr3(ptr.as_mut_raw_ptr());
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QOrbitCameraController> for ::qt_3d_core::QEntity {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QOrbitCameraController* static_cast<Qt3DExtras::QOrbitCameraController*>(Qt3DCore::QEntity* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QEntity>,
) -> ::cpp_core::Ptr<crate::QOrbitCameraController> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QOrbitCameraController_ptr(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QEntity,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QOrbitCameraController* static_cast<Qt3DExtras::QOrbitCameraController*>(Qt3DCore::QEntity* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QEntity>,
) -> ::cpp_core::MutPtr<crate::QOrbitCameraController> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QOrbitCameraController_ptr(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_3d_core::QEntity> for crate::QOrbitCameraController {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QEntity* static_cast<Qt3DCore::QEntity*>(Qt3DExtras::QOrbitCameraController* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QOrbitCameraController>,
) -> ::cpp_core::Ptr<::qt_3d_core::QEntity> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QEntity_ptr1(
ptr.as_raw_ptr() as *mut crate::QOrbitCameraController,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QEntity* static_cast<Qt3DCore::QEntity*>(Qt3DExtras::QOrbitCameraController* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QOrbitCameraController>,
) -> ::cpp_core::MutPtr<::qt_3d_core::QEntity> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QEntity_ptr1(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::std::ops::Deref for crate::QOrbitCameraController {
type Target = ::qt_3d_core::QEntity;
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QEntity* static_cast<Qt3DCore::QEntity*>(Qt3DExtras::QOrbitCameraController* ptr)```</span>.
fn deref(&self) -> &::qt_3d_core::QEntity {
let ffi_result = unsafe {
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QEntity_ptr1(
self as *const crate::QOrbitCameraController as *mut crate::QOrbitCameraController,
)
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::std::ops::DerefMut for crate::QOrbitCameraController {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QEntity* static_cast<Qt3DCore::QEntity*>(Qt3DExtras::QOrbitCameraController* ptr)```</span>.
fn deref_mut(&mut self) -> &mut ::qt_3d_core::QEntity {
let ffi_result = unsafe {
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QEntity_ptr1(
self as *mut crate::QOrbitCameraController,
)
};
unsafe { ffi_result.as_mut() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_core::DynamicCast<crate::QOrbitCameraController> for ::qt_3d_core::QEntity {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QOrbitCameraController* dynamic_cast<Qt3DExtras::QOrbitCameraController*>(Qt3DCore::QEntity* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QEntity>,
) -> ::cpp_core::Ptr<crate::QOrbitCameraController> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QOrbitCameraController_ptr(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QEntity,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QOrbitCameraController* dynamic_cast<Qt3DExtras::QOrbitCameraController*>(Qt3DCore::QEntity* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QEntity>,
) -> ::cpp_core::MutPtr<crate::QOrbitCameraController> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QOrbitCameraController_ptr(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QOrbitCameraController> for ::qt_3d_core::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QOrbitCameraController* static_cast<Qt3DExtras::QOrbitCameraController*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QNode>,
) -> ::cpp_core::Ptr<crate::QOrbitCameraController> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QOrbitCameraController_ptr1(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QNode,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QOrbitCameraController* static_cast<Qt3DExtras::QOrbitCameraController*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QNode>,
) -> ::cpp_core::MutPtr<crate::QOrbitCameraController> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QOrbitCameraController_ptr1(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_3d_core::QNode> for crate::QOrbitCameraController {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DExtras::QOrbitCameraController* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QOrbitCameraController>,
) -> ::cpp_core::Ptr<::qt_3d_core::QNode> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QNode_ptr18(
ptr.as_raw_ptr() as *mut crate::QOrbitCameraController,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DExtras::QOrbitCameraController* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QOrbitCameraController>,
) -> ::cpp_core::MutPtr<::qt_3d_core::QNode> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QNode_ptr18(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QOrbitCameraController> for ::qt_3d_core::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QOrbitCameraController* dynamic_cast<Qt3DExtras::QOrbitCameraController*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QNode>,
) -> ::cpp_core::Ptr<crate::QOrbitCameraController> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QOrbitCameraController_ptr1(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QNode,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QOrbitCameraController* dynamic_cast<Qt3DExtras::QOrbitCameraController*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QNode>,
) -> ::cpp_core::MutPtr<crate::QOrbitCameraController> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QOrbitCameraController_ptr1(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QOrbitCameraController> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QOrbitCameraController* static_cast<Qt3DExtras::QOrbitCameraController*>(QObject* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QOrbitCameraController> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QOrbitCameraController_ptr2(
ptr.as_raw_ptr() as *mut ::qt_core::QObject,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QOrbitCameraController* static_cast<Qt3DExtras::QOrbitCameraController*>(QObject* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_core::QObject>,
) -> ::cpp_core::MutPtr<crate::QOrbitCameraController> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QOrbitCameraController_ptr2(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_core::QObject> for crate::QOrbitCameraController {
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(Qt3DExtras::QOrbitCameraController* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QOrbitCameraController>,
) -> ::cpp_core::Ptr<::qt_core::QObject> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_QObject_ptr18(
ptr.as_raw_ptr() as *mut crate::QOrbitCameraController,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(Qt3DExtras::QOrbitCameraController* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QOrbitCameraController>,
) -> ::cpp_core::MutPtr<::qt_core::QObject> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_QObject_ptr18(ptr.as_mut_raw_ptr());
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QOrbitCameraController> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QOrbitCameraController* dynamic_cast<Qt3DExtras::QOrbitCameraController*>(QObject* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QOrbitCameraController> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QOrbitCameraController_ptr2(
ptr.as_raw_ptr() as *mut ::qt_core::QObject,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QOrbitCameraController* dynamic_cast<Qt3DExtras::QOrbitCameraController*>(QObject* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_core::QObject>,
) -> ::cpp_core::MutPtr<crate::QOrbitCameraController> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QOrbitCameraController_ptr2(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QPerVertexColorMaterial> for ::qt_3d_render::QMaterial {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QPerVertexColorMaterial* static_cast<Qt3DExtras::QPerVertexColorMaterial*>(Qt3DRender::QMaterial* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_3d_render::QMaterial>,
) -> ::cpp_core::Ptr<crate::QPerVertexColorMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QPerVertexColorMaterial_ptr(
ptr.as_raw_ptr() as *mut ::qt_3d_render::QMaterial,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QPerVertexColorMaterial* static_cast<Qt3DExtras::QPerVertexColorMaterial*>(Qt3DRender::QMaterial* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_render::QMaterial>,
) -> ::cpp_core::MutPtr<crate::QPerVertexColorMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QPerVertexColorMaterial_ptr(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_3d_render::QMaterial> for crate::QPerVertexColorMaterial {
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QMaterial* static_cast<Qt3DRender::QMaterial*>(Qt3DExtras::QPerVertexColorMaterial* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QPerVertexColorMaterial>,
) -> ::cpp_core::Ptr<::qt_3d_render::QMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DRender_QMaterial_ptr8(
ptr.as_raw_ptr() as *mut crate::QPerVertexColorMaterial,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QMaterial* static_cast<Qt3DRender::QMaterial*>(Qt3DExtras::QPerVertexColorMaterial* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QPerVertexColorMaterial>,
) -> ::cpp_core::MutPtr<::qt_3d_render::QMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DRender_QMaterial_ptr8(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::std::ops::Deref for crate::QPerVertexColorMaterial {
type Target = ::qt_3d_render::QMaterial;
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QMaterial* static_cast<Qt3DRender::QMaterial*>(Qt3DExtras::QPerVertexColorMaterial* ptr)```</span>.
fn deref(&self) -> &::qt_3d_render::QMaterial {
let ffi_result = unsafe {
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DRender_QMaterial_ptr8(
self as *const crate::QPerVertexColorMaterial
as *mut crate::QPerVertexColorMaterial,
)
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::std::ops::DerefMut for crate::QPerVertexColorMaterial {
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QMaterial* static_cast<Qt3DRender::QMaterial*>(Qt3DExtras::QPerVertexColorMaterial* ptr)```</span>.
fn deref_mut(&mut self) -> &mut ::qt_3d_render::QMaterial {
let ffi_result = unsafe {
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DRender_QMaterial_ptr8(
self as *mut crate::QPerVertexColorMaterial,
)
};
unsafe { ffi_result.as_mut() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_core::DynamicCast<crate::QPerVertexColorMaterial> for ::qt_3d_render::QMaterial {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QPerVertexColorMaterial* dynamic_cast<Qt3DExtras::QPerVertexColorMaterial*>(Qt3DRender::QMaterial* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_3d_render::QMaterial>,
) -> ::cpp_core::Ptr<crate::QPerVertexColorMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QPerVertexColorMaterial_ptr(
ptr.as_raw_ptr() as *mut ::qt_3d_render::QMaterial,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QPerVertexColorMaterial* dynamic_cast<Qt3DExtras::QPerVertexColorMaterial*>(Qt3DRender::QMaterial* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_render::QMaterial>,
) -> ::cpp_core::MutPtr<crate::QPerVertexColorMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QPerVertexColorMaterial_ptr(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QPerVertexColorMaterial> for ::qt_3d_core::QComponent {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QPerVertexColorMaterial* static_cast<Qt3DExtras::QPerVertexColorMaterial*>(Qt3DCore::QComponent* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QComponent>,
) -> ::cpp_core::Ptr<crate::QPerVertexColorMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QPerVertexColorMaterial_ptr1(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QComponent,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QPerVertexColorMaterial* static_cast<Qt3DExtras::QPerVertexColorMaterial*>(Qt3DCore::QComponent* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QComponent>,
) -> ::cpp_core::MutPtr<crate::QPerVertexColorMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QPerVertexColorMaterial_ptr1(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_3d_core::QComponent> for crate::QPerVertexColorMaterial {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QComponent* static_cast<Qt3DCore::QComponent*>(Qt3DExtras::QPerVertexColorMaterial* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QPerVertexColorMaterial>,
) -> ::cpp_core::Ptr<::qt_3d_core::QComponent> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QComponent_ptr12(
ptr.as_raw_ptr() as *mut crate::QPerVertexColorMaterial,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QComponent* static_cast<Qt3DCore::QComponent*>(Qt3DExtras::QPerVertexColorMaterial* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QPerVertexColorMaterial>,
) -> ::cpp_core::MutPtr<::qt_3d_core::QComponent> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QComponent_ptr12(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QPerVertexColorMaterial> for ::qt_3d_core::QComponent {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QPerVertexColorMaterial* dynamic_cast<Qt3DExtras::QPerVertexColorMaterial*>(Qt3DCore::QComponent* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QComponent>,
) -> ::cpp_core::Ptr<crate::QPerVertexColorMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QPerVertexColorMaterial_ptr1(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QComponent,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QPerVertexColorMaterial* dynamic_cast<Qt3DExtras::QPerVertexColorMaterial*>(Qt3DCore::QComponent* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QComponent>,
) -> ::cpp_core::MutPtr<crate::QPerVertexColorMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QPerVertexColorMaterial_ptr1(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QPerVertexColorMaterial> for ::qt_3d_core::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QPerVertexColorMaterial* static_cast<Qt3DExtras::QPerVertexColorMaterial*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QNode>,
) -> ::cpp_core::Ptr<crate::QPerVertexColorMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QPerVertexColorMaterial_ptr2(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QNode,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QPerVertexColorMaterial* static_cast<Qt3DExtras::QPerVertexColorMaterial*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QNode>,
) -> ::cpp_core::MutPtr<crate::QPerVertexColorMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QPerVertexColorMaterial_ptr2(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_3d_core::QNode> for crate::QPerVertexColorMaterial {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DExtras::QPerVertexColorMaterial* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QPerVertexColorMaterial>,
) -> ::cpp_core::Ptr<::qt_3d_core::QNode> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QNode_ptr19(
ptr.as_raw_ptr() as *mut crate::QPerVertexColorMaterial,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DExtras::QPerVertexColorMaterial* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QPerVertexColorMaterial>,
) -> ::cpp_core::MutPtr<::qt_3d_core::QNode> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QNode_ptr19(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QPerVertexColorMaterial> for ::qt_3d_core::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QPerVertexColorMaterial* dynamic_cast<Qt3DExtras::QPerVertexColorMaterial*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QNode>,
) -> ::cpp_core::Ptr<crate::QPerVertexColorMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QPerVertexColorMaterial_ptr2(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QNode,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QPerVertexColorMaterial* dynamic_cast<Qt3DExtras::QPerVertexColorMaterial*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QNode>,
) -> ::cpp_core::MutPtr<crate::QPerVertexColorMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QPerVertexColorMaterial_ptr2(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QPerVertexColorMaterial> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QPerVertexColorMaterial* static_cast<Qt3DExtras::QPerVertexColorMaterial*>(QObject* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QPerVertexColorMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QPerVertexColorMaterial_ptr3(
ptr.as_raw_ptr() as *mut ::qt_core::QObject,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QPerVertexColorMaterial* static_cast<Qt3DExtras::QPerVertexColorMaterial*>(QObject* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_core::QObject>,
) -> ::cpp_core::MutPtr<crate::QPerVertexColorMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QPerVertexColorMaterial_ptr3(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_core::QObject> for crate::QPerVertexColorMaterial {
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(Qt3DExtras::QPerVertexColorMaterial* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QPerVertexColorMaterial>,
) -> ::cpp_core::Ptr<::qt_core::QObject> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_QObject_ptr19(
ptr.as_raw_ptr() as *mut crate::QPerVertexColorMaterial,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(Qt3DExtras::QPerVertexColorMaterial* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QPerVertexColorMaterial>,
) -> ::cpp_core::MutPtr<::qt_core::QObject> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_QObject_ptr19(ptr.as_mut_raw_ptr());
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QPerVertexColorMaterial> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QPerVertexColorMaterial* dynamic_cast<Qt3DExtras::QPerVertexColorMaterial*>(QObject* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QPerVertexColorMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QPerVertexColorMaterial_ptr3(
ptr.as_raw_ptr() as *mut ::qt_core::QObject,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QPerVertexColorMaterial* dynamic_cast<Qt3DExtras::QPerVertexColorMaterial*>(QObject* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_core::QObject>,
) -> ::cpp_core::MutPtr<crate::QPerVertexColorMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QPerVertexColorMaterial_ptr3(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QPhongAlphaMaterial> for ::qt_3d_render::QMaterial {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QPhongAlphaMaterial* static_cast<Qt3DExtras::QPhongAlphaMaterial*>(Qt3DRender::QMaterial* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_3d_render::QMaterial>,
) -> ::cpp_core::Ptr<crate::QPhongAlphaMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QPhongAlphaMaterial_ptr(
ptr.as_raw_ptr() as *mut ::qt_3d_render::QMaterial,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QPhongAlphaMaterial* static_cast<Qt3DExtras::QPhongAlphaMaterial*>(Qt3DRender::QMaterial* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_render::QMaterial>,
) -> ::cpp_core::MutPtr<crate::QPhongAlphaMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QPhongAlphaMaterial_ptr(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_3d_render::QMaterial> for crate::QPhongAlphaMaterial {
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QMaterial* static_cast<Qt3DRender::QMaterial*>(Qt3DExtras::QPhongAlphaMaterial* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QPhongAlphaMaterial>,
) -> ::cpp_core::Ptr<::qt_3d_render::QMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DRender_QMaterial_ptr9(
ptr.as_raw_ptr() as *mut crate::QPhongAlphaMaterial,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QMaterial* static_cast<Qt3DRender::QMaterial*>(Qt3DExtras::QPhongAlphaMaterial* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QPhongAlphaMaterial>,
) -> ::cpp_core::MutPtr<::qt_3d_render::QMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DRender_QMaterial_ptr9(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::std::ops::Deref for crate::QPhongAlphaMaterial {
type Target = ::qt_3d_render::QMaterial;
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QMaterial* static_cast<Qt3DRender::QMaterial*>(Qt3DExtras::QPhongAlphaMaterial* ptr)```</span>.
fn deref(&self) -> &::qt_3d_render::QMaterial {
let ffi_result = unsafe {
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DRender_QMaterial_ptr9(
self as *const crate::QPhongAlphaMaterial as *mut crate::QPhongAlphaMaterial,
)
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::std::ops::DerefMut for crate::QPhongAlphaMaterial {
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QMaterial* static_cast<Qt3DRender::QMaterial*>(Qt3DExtras::QPhongAlphaMaterial* ptr)```</span>.
fn deref_mut(&mut self) -> &mut ::qt_3d_render::QMaterial {
let ffi_result = unsafe {
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DRender_QMaterial_ptr9(
self as *mut crate::QPhongAlphaMaterial,
)
};
unsafe { ffi_result.as_mut() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_core::DynamicCast<crate::QPhongAlphaMaterial> for ::qt_3d_render::QMaterial {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QPhongAlphaMaterial* dynamic_cast<Qt3DExtras::QPhongAlphaMaterial*>(Qt3DRender::QMaterial* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_3d_render::QMaterial>,
) -> ::cpp_core::Ptr<crate::QPhongAlphaMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QPhongAlphaMaterial_ptr(
ptr.as_raw_ptr() as *mut ::qt_3d_render::QMaterial,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QPhongAlphaMaterial* dynamic_cast<Qt3DExtras::QPhongAlphaMaterial*>(Qt3DRender::QMaterial* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_render::QMaterial>,
) -> ::cpp_core::MutPtr<crate::QPhongAlphaMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QPhongAlphaMaterial_ptr(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QPhongAlphaMaterial> for ::qt_3d_core::QComponent {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QPhongAlphaMaterial* static_cast<Qt3DExtras::QPhongAlphaMaterial*>(Qt3DCore::QComponent* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QComponent>,
) -> ::cpp_core::Ptr<crate::QPhongAlphaMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QPhongAlphaMaterial_ptr1(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QComponent,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QPhongAlphaMaterial* static_cast<Qt3DExtras::QPhongAlphaMaterial*>(Qt3DCore::QComponent* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QComponent>,
) -> ::cpp_core::MutPtr<crate::QPhongAlphaMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QPhongAlphaMaterial_ptr1(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_3d_core::QComponent> for crate::QPhongAlphaMaterial {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QComponent* static_cast<Qt3DCore::QComponent*>(Qt3DExtras::QPhongAlphaMaterial* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QPhongAlphaMaterial>,
) -> ::cpp_core::Ptr<::qt_3d_core::QComponent> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QComponent_ptr13(
ptr.as_raw_ptr() as *mut crate::QPhongAlphaMaterial,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QComponent* static_cast<Qt3DCore::QComponent*>(Qt3DExtras::QPhongAlphaMaterial* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QPhongAlphaMaterial>,
) -> ::cpp_core::MutPtr<::qt_3d_core::QComponent> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QComponent_ptr13(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QPhongAlphaMaterial> for ::qt_3d_core::QComponent {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QPhongAlphaMaterial* dynamic_cast<Qt3DExtras::QPhongAlphaMaterial*>(Qt3DCore::QComponent* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QComponent>,
) -> ::cpp_core::Ptr<crate::QPhongAlphaMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QPhongAlphaMaterial_ptr1(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QComponent,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QPhongAlphaMaterial* dynamic_cast<Qt3DExtras::QPhongAlphaMaterial*>(Qt3DCore::QComponent* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QComponent>,
) -> ::cpp_core::MutPtr<crate::QPhongAlphaMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QPhongAlphaMaterial_ptr1(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QPhongAlphaMaterial> for ::qt_3d_core::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QPhongAlphaMaterial* static_cast<Qt3DExtras::QPhongAlphaMaterial*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QNode>,
) -> ::cpp_core::Ptr<crate::QPhongAlphaMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QPhongAlphaMaterial_ptr2(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QNode,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QPhongAlphaMaterial* static_cast<Qt3DExtras::QPhongAlphaMaterial*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QNode>,
) -> ::cpp_core::MutPtr<crate::QPhongAlphaMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QPhongAlphaMaterial_ptr2(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_3d_core::QNode> for crate::QPhongAlphaMaterial {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DExtras::QPhongAlphaMaterial* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QPhongAlphaMaterial>,
) -> ::cpp_core::Ptr<::qt_3d_core::QNode> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QNode_ptr20(
ptr.as_raw_ptr() as *mut crate::QPhongAlphaMaterial,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DExtras::QPhongAlphaMaterial* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QPhongAlphaMaterial>,
) -> ::cpp_core::MutPtr<::qt_3d_core::QNode> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QNode_ptr20(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QPhongAlphaMaterial> for ::qt_3d_core::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QPhongAlphaMaterial* dynamic_cast<Qt3DExtras::QPhongAlphaMaterial*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QNode>,
) -> ::cpp_core::Ptr<crate::QPhongAlphaMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QPhongAlphaMaterial_ptr2(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QNode,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QPhongAlphaMaterial* dynamic_cast<Qt3DExtras::QPhongAlphaMaterial*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QNode>,
) -> ::cpp_core::MutPtr<crate::QPhongAlphaMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QPhongAlphaMaterial_ptr2(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QPhongAlphaMaterial> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QPhongAlphaMaterial* static_cast<Qt3DExtras::QPhongAlphaMaterial*>(QObject* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QPhongAlphaMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QPhongAlphaMaterial_ptr3(
ptr.as_raw_ptr() as *mut ::qt_core::QObject,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QPhongAlphaMaterial* static_cast<Qt3DExtras::QPhongAlphaMaterial*>(QObject* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_core::QObject>,
) -> ::cpp_core::MutPtr<crate::QPhongAlphaMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QPhongAlphaMaterial_ptr3(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_core::QObject> for crate::QPhongAlphaMaterial {
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(Qt3DExtras::QPhongAlphaMaterial* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QPhongAlphaMaterial>,
) -> ::cpp_core::Ptr<::qt_core::QObject> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_QObject_ptr20(
ptr.as_raw_ptr() as *mut crate::QPhongAlphaMaterial,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(Qt3DExtras::QPhongAlphaMaterial* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QPhongAlphaMaterial>,
) -> ::cpp_core::MutPtr<::qt_core::QObject> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_QObject_ptr20(ptr.as_mut_raw_ptr());
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QPhongAlphaMaterial> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QPhongAlphaMaterial* dynamic_cast<Qt3DExtras::QPhongAlphaMaterial*>(QObject* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QPhongAlphaMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QPhongAlphaMaterial_ptr3(
ptr.as_raw_ptr() as *mut ::qt_core::QObject,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QPhongAlphaMaterial* dynamic_cast<Qt3DExtras::QPhongAlphaMaterial*>(QObject* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_core::QObject>,
) -> ::cpp_core::MutPtr<crate::QPhongAlphaMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QPhongAlphaMaterial_ptr3(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QPhongMaterial> for ::qt_3d_render::QMaterial {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QPhongMaterial* static_cast<Qt3DExtras::QPhongMaterial*>(Qt3DRender::QMaterial* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_3d_render::QMaterial>,
) -> ::cpp_core::Ptr<crate::QPhongMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QPhongMaterial_ptr(
ptr.as_raw_ptr() as *mut ::qt_3d_render::QMaterial,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QPhongMaterial* static_cast<Qt3DExtras::QPhongMaterial*>(Qt3DRender::QMaterial* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_render::QMaterial>,
) -> ::cpp_core::MutPtr<crate::QPhongMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QPhongMaterial_ptr(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_3d_render::QMaterial> for crate::QPhongMaterial {
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QMaterial* static_cast<Qt3DRender::QMaterial*>(Qt3DExtras::QPhongMaterial* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QPhongMaterial>,
) -> ::cpp_core::Ptr<::qt_3d_render::QMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DRender_QMaterial_ptr10(
ptr.as_raw_ptr() as *mut crate::QPhongMaterial,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QMaterial* static_cast<Qt3DRender::QMaterial*>(Qt3DExtras::QPhongMaterial* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QPhongMaterial>,
) -> ::cpp_core::MutPtr<::qt_3d_render::QMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DRender_QMaterial_ptr10(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::std::ops::Deref for crate::QPhongMaterial {
type Target = ::qt_3d_render::QMaterial;
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QMaterial* static_cast<Qt3DRender::QMaterial*>(Qt3DExtras::QPhongMaterial* ptr)```</span>.
fn deref(&self) -> &::qt_3d_render::QMaterial {
let ffi_result = unsafe {
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DRender_QMaterial_ptr10(
self as *const crate::QPhongMaterial as *mut crate::QPhongMaterial,
)
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::std::ops::DerefMut for crate::QPhongMaterial {
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QMaterial* static_cast<Qt3DRender::QMaterial*>(Qt3DExtras::QPhongMaterial* ptr)```</span>.
fn deref_mut(&mut self) -> &mut ::qt_3d_render::QMaterial {
let ffi_result = unsafe {
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DRender_QMaterial_ptr10(
self as *mut crate::QPhongMaterial,
)
};
unsafe { ffi_result.as_mut() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_core::DynamicCast<crate::QPhongMaterial> for ::qt_3d_render::QMaterial {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QPhongMaterial* dynamic_cast<Qt3DExtras::QPhongMaterial*>(Qt3DRender::QMaterial* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_3d_render::QMaterial>,
) -> ::cpp_core::Ptr<crate::QPhongMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QPhongMaterial_ptr(
ptr.as_raw_ptr() as *mut ::qt_3d_render::QMaterial,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QPhongMaterial* dynamic_cast<Qt3DExtras::QPhongMaterial*>(Qt3DRender::QMaterial* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_render::QMaterial>,
) -> ::cpp_core::MutPtr<crate::QPhongMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QPhongMaterial_ptr(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QPhongMaterial> for ::qt_3d_core::QComponent {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QPhongMaterial* static_cast<Qt3DExtras::QPhongMaterial*>(Qt3DCore::QComponent* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QComponent>,
) -> ::cpp_core::Ptr<crate::QPhongMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QPhongMaterial_ptr1(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QComponent,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QPhongMaterial* static_cast<Qt3DExtras::QPhongMaterial*>(Qt3DCore::QComponent* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QComponent>,
) -> ::cpp_core::MutPtr<crate::QPhongMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QPhongMaterial_ptr1(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_3d_core::QComponent> for crate::QPhongMaterial {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QComponent* static_cast<Qt3DCore::QComponent*>(Qt3DExtras::QPhongMaterial* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QPhongMaterial>,
) -> ::cpp_core::Ptr<::qt_3d_core::QComponent> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QComponent_ptr14(
ptr.as_raw_ptr() as *mut crate::QPhongMaterial,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QComponent* static_cast<Qt3DCore::QComponent*>(Qt3DExtras::QPhongMaterial* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QPhongMaterial>,
) -> ::cpp_core::MutPtr<::qt_3d_core::QComponent> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QComponent_ptr14(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QPhongMaterial> for ::qt_3d_core::QComponent {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QPhongMaterial* dynamic_cast<Qt3DExtras::QPhongMaterial*>(Qt3DCore::QComponent* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QComponent>,
) -> ::cpp_core::Ptr<crate::QPhongMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QPhongMaterial_ptr1(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QComponent,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QPhongMaterial* dynamic_cast<Qt3DExtras::QPhongMaterial*>(Qt3DCore::QComponent* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QComponent>,
) -> ::cpp_core::MutPtr<crate::QPhongMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QPhongMaterial_ptr1(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QPhongMaterial> for ::qt_3d_core::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QPhongMaterial* static_cast<Qt3DExtras::QPhongMaterial*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QNode>,
) -> ::cpp_core::Ptr<crate::QPhongMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QPhongMaterial_ptr2(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QNode,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QPhongMaterial* static_cast<Qt3DExtras::QPhongMaterial*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QNode>,
) -> ::cpp_core::MutPtr<crate::QPhongMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QPhongMaterial_ptr2(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_3d_core::QNode> for crate::QPhongMaterial {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DExtras::QPhongMaterial* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QPhongMaterial>,
) -> ::cpp_core::Ptr<::qt_3d_core::QNode> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QNode_ptr21(
ptr.as_raw_ptr() as *mut crate::QPhongMaterial,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DExtras::QPhongMaterial* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QPhongMaterial>,
) -> ::cpp_core::MutPtr<::qt_3d_core::QNode> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QNode_ptr21(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QPhongMaterial> for ::qt_3d_core::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QPhongMaterial* dynamic_cast<Qt3DExtras::QPhongMaterial*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QNode>,
) -> ::cpp_core::Ptr<crate::QPhongMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QPhongMaterial_ptr2(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QNode,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QPhongMaterial* dynamic_cast<Qt3DExtras::QPhongMaterial*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QNode>,
) -> ::cpp_core::MutPtr<crate::QPhongMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QPhongMaterial_ptr2(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QPhongMaterial> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QPhongMaterial* static_cast<Qt3DExtras::QPhongMaterial*>(QObject* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QPhongMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QPhongMaterial_ptr3(
ptr.as_raw_ptr() as *mut ::qt_core::QObject,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QPhongMaterial* static_cast<Qt3DExtras::QPhongMaterial*>(QObject* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_core::QObject>,
) -> ::cpp_core::MutPtr<crate::QPhongMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QPhongMaterial_ptr3(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_core::QObject> for crate::QPhongMaterial {
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(Qt3DExtras::QPhongMaterial* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QPhongMaterial>,
) -> ::cpp_core::Ptr<::qt_core::QObject> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_QObject_ptr21(
ptr.as_raw_ptr() as *mut crate::QPhongMaterial,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(Qt3DExtras::QPhongMaterial* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QPhongMaterial>,
) -> ::cpp_core::MutPtr<::qt_core::QObject> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_QObject_ptr21(ptr.as_mut_raw_ptr());
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QPhongMaterial> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QPhongMaterial* dynamic_cast<Qt3DExtras::QPhongMaterial*>(QObject* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QPhongMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QPhongMaterial_ptr3(
ptr.as_raw_ptr() as *mut ::qt_core::QObject,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QPhongMaterial* dynamic_cast<Qt3DExtras::QPhongMaterial*>(QObject* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_core::QObject>,
) -> ::cpp_core::MutPtr<crate::QPhongMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QPhongMaterial_ptr3(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QPlaneGeometry> for ::qt_3d_render::QGeometry {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QPlaneGeometry* static_cast<Qt3DExtras::QPlaneGeometry*>(Qt3DRender::QGeometry* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_3d_render::QGeometry>,
) -> ::cpp_core::Ptr<crate::QPlaneGeometry> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QPlaneGeometry_ptr(
ptr.as_raw_ptr() as *mut ::qt_3d_render::QGeometry,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QPlaneGeometry* static_cast<Qt3DExtras::QPlaneGeometry*>(Qt3DRender::QGeometry* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_render::QGeometry>,
) -> ::cpp_core::MutPtr<crate::QPlaneGeometry> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QPlaneGeometry_ptr(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_3d_render::QGeometry> for crate::QPlaneGeometry {
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QGeometry* static_cast<Qt3DRender::QGeometry*>(Qt3DExtras::QPlaneGeometry* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QPlaneGeometry>,
) -> ::cpp_core::Ptr<::qt_3d_render::QGeometry> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DRender_QGeometry_ptr4(
ptr.as_raw_ptr() as *mut crate::QPlaneGeometry,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QGeometry* static_cast<Qt3DRender::QGeometry*>(Qt3DExtras::QPlaneGeometry* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QPlaneGeometry>,
) -> ::cpp_core::MutPtr<::qt_3d_render::QGeometry> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DRender_QGeometry_ptr4(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::std::ops::Deref for crate::QPlaneGeometry {
type Target = ::qt_3d_render::QGeometry;
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QGeometry* static_cast<Qt3DRender::QGeometry*>(Qt3DExtras::QPlaneGeometry* ptr)```</span>.
fn deref(&self) -> &::qt_3d_render::QGeometry {
let ffi_result = unsafe {
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DRender_QGeometry_ptr4(
self as *const crate::QPlaneGeometry as *mut crate::QPlaneGeometry,
)
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::std::ops::DerefMut for crate::QPlaneGeometry {
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QGeometry* static_cast<Qt3DRender::QGeometry*>(Qt3DExtras::QPlaneGeometry* ptr)```</span>.
fn deref_mut(&mut self) -> &mut ::qt_3d_render::QGeometry {
let ffi_result = unsafe {
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DRender_QGeometry_ptr4(
self as *mut crate::QPlaneGeometry,
)
};
unsafe { ffi_result.as_mut() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_core::DynamicCast<crate::QPlaneGeometry> for ::qt_3d_render::QGeometry {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QPlaneGeometry* dynamic_cast<Qt3DExtras::QPlaneGeometry*>(Qt3DRender::QGeometry* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_3d_render::QGeometry>,
) -> ::cpp_core::Ptr<crate::QPlaneGeometry> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QPlaneGeometry_ptr(
ptr.as_raw_ptr() as *mut ::qt_3d_render::QGeometry,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QPlaneGeometry* dynamic_cast<Qt3DExtras::QPlaneGeometry*>(Qt3DRender::QGeometry* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_render::QGeometry>,
) -> ::cpp_core::MutPtr<crate::QPlaneGeometry> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QPlaneGeometry_ptr(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QPlaneGeometry> for ::qt_3d_core::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QPlaneGeometry* static_cast<Qt3DExtras::QPlaneGeometry*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QNode>,
) -> ::cpp_core::Ptr<crate::QPlaneGeometry> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QPlaneGeometry_ptr1(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QNode,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QPlaneGeometry* static_cast<Qt3DExtras::QPlaneGeometry*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QNode>,
) -> ::cpp_core::MutPtr<crate::QPlaneGeometry> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QPlaneGeometry_ptr1(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_3d_core::QNode> for crate::QPlaneGeometry {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DExtras::QPlaneGeometry* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QPlaneGeometry>,
) -> ::cpp_core::Ptr<::qt_3d_core::QNode> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QNode_ptr22(
ptr.as_raw_ptr() as *mut crate::QPlaneGeometry,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DExtras::QPlaneGeometry* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QPlaneGeometry>,
) -> ::cpp_core::MutPtr<::qt_3d_core::QNode> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QNode_ptr22(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QPlaneGeometry> for ::qt_3d_core::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QPlaneGeometry* dynamic_cast<Qt3DExtras::QPlaneGeometry*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QNode>,
) -> ::cpp_core::Ptr<crate::QPlaneGeometry> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QPlaneGeometry_ptr1(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QNode,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QPlaneGeometry* dynamic_cast<Qt3DExtras::QPlaneGeometry*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QNode>,
) -> ::cpp_core::MutPtr<crate::QPlaneGeometry> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QPlaneGeometry_ptr1(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QPlaneGeometry> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QPlaneGeometry* static_cast<Qt3DExtras::QPlaneGeometry*>(QObject* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QPlaneGeometry> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QPlaneGeometry_ptr2(
ptr.as_raw_ptr() as *mut ::qt_core::QObject,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QPlaneGeometry* static_cast<Qt3DExtras::QPlaneGeometry*>(QObject* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_core::QObject>,
) -> ::cpp_core::MutPtr<crate::QPlaneGeometry> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QPlaneGeometry_ptr2(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_core::QObject> for crate::QPlaneGeometry {
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(Qt3DExtras::QPlaneGeometry* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QPlaneGeometry>,
) -> ::cpp_core::Ptr<::qt_core::QObject> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_QObject_ptr22(
ptr.as_raw_ptr() as *mut crate::QPlaneGeometry,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(Qt3DExtras::QPlaneGeometry* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QPlaneGeometry>,
) -> ::cpp_core::MutPtr<::qt_core::QObject> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_QObject_ptr22(ptr.as_mut_raw_ptr());
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QPlaneGeometry> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QPlaneGeometry* dynamic_cast<Qt3DExtras::QPlaneGeometry*>(QObject* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QPlaneGeometry> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QPlaneGeometry_ptr2(
ptr.as_raw_ptr() as *mut ::qt_core::QObject,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QPlaneGeometry* dynamic_cast<Qt3DExtras::QPlaneGeometry*>(QObject* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_core::QObject>,
) -> ::cpp_core::MutPtr<crate::QPlaneGeometry> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QPlaneGeometry_ptr2(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QPlaneMesh> for ::qt_3d_render::QGeometryRenderer {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QPlaneMesh* static_cast<Qt3DExtras::QPlaneMesh*>(Qt3DRender::QGeometryRenderer* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_3d_render::QGeometryRenderer>,
) -> ::cpp_core::Ptr<crate::QPlaneMesh> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QPlaneMesh_ptr(
ptr.as_raw_ptr() as *mut ::qt_3d_render::QGeometryRenderer,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QPlaneMesh* static_cast<Qt3DExtras::QPlaneMesh*>(Qt3DRender::QGeometryRenderer* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_render::QGeometryRenderer>,
) -> ::cpp_core::MutPtr<crate::QPlaneMesh> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QPlaneMesh_ptr(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_3d_render::QGeometryRenderer> for crate::QPlaneMesh {
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QGeometryRenderer* static_cast<Qt3DRender::QGeometryRenderer*>(Qt3DExtras::QPlaneMesh* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QPlaneMesh>,
) -> ::cpp_core::Ptr<::qt_3d_render::QGeometryRenderer> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DRender_QGeometryRenderer_ptr4(
ptr.as_raw_ptr() as *mut crate::QPlaneMesh,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QGeometryRenderer* static_cast<Qt3DRender::QGeometryRenderer*>(Qt3DExtras::QPlaneMesh* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QPlaneMesh>,
) -> ::cpp_core::MutPtr<::qt_3d_render::QGeometryRenderer> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DRender_QGeometryRenderer_ptr4(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::std::ops::Deref for crate::QPlaneMesh {
type Target = ::qt_3d_render::QGeometryRenderer;
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QGeometryRenderer* static_cast<Qt3DRender::QGeometryRenderer*>(Qt3DExtras::QPlaneMesh* ptr)```</span>.
fn deref(&self) -> &::qt_3d_render::QGeometryRenderer {
let ffi_result = unsafe {
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DRender_QGeometryRenderer_ptr4(
self as *const crate::QPlaneMesh as *mut crate::QPlaneMesh,
)
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::std::ops::DerefMut for crate::QPlaneMesh {
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QGeometryRenderer* static_cast<Qt3DRender::QGeometryRenderer*>(Qt3DExtras::QPlaneMesh* ptr)```</span>.
fn deref_mut(&mut self) -> &mut ::qt_3d_render::QGeometryRenderer {
let ffi_result = unsafe {
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DRender_QGeometryRenderer_ptr4(
self as *mut crate::QPlaneMesh,
)
};
unsafe { ffi_result.as_mut() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_core::DynamicCast<crate::QPlaneMesh> for ::qt_3d_render::QGeometryRenderer {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QPlaneMesh* dynamic_cast<Qt3DExtras::QPlaneMesh*>(Qt3DRender::QGeometryRenderer* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_3d_render::QGeometryRenderer>,
) -> ::cpp_core::Ptr<crate::QPlaneMesh> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QPlaneMesh_ptr(
ptr.as_raw_ptr() as *mut ::qt_3d_render::QGeometryRenderer,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QPlaneMesh* dynamic_cast<Qt3DExtras::QPlaneMesh*>(Qt3DRender::QGeometryRenderer* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_render::QGeometryRenderer>,
) -> ::cpp_core::MutPtr<crate::QPlaneMesh> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QPlaneMesh_ptr(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QPlaneMesh> for ::qt_3d_core::QComponent {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QPlaneMesh* static_cast<Qt3DExtras::QPlaneMesh*>(Qt3DCore::QComponent* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QComponent>,
) -> ::cpp_core::Ptr<crate::QPlaneMesh> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QPlaneMesh_ptr1(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QComponent,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QPlaneMesh* static_cast<Qt3DExtras::QPlaneMesh*>(Qt3DCore::QComponent* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QComponent>,
) -> ::cpp_core::MutPtr<crate::QPlaneMesh> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QPlaneMesh_ptr1(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_3d_core::QComponent> for crate::QPlaneMesh {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QComponent* static_cast<Qt3DCore::QComponent*>(Qt3DExtras::QPlaneMesh* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QPlaneMesh>,
) -> ::cpp_core::Ptr<::qt_3d_core::QComponent> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QComponent_ptr15(
ptr.as_raw_ptr() as *mut crate::QPlaneMesh,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QComponent* static_cast<Qt3DCore::QComponent*>(Qt3DExtras::QPlaneMesh* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QPlaneMesh>,
) -> ::cpp_core::MutPtr<::qt_3d_core::QComponent> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QComponent_ptr15(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QPlaneMesh> for ::qt_3d_core::QComponent {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QPlaneMesh* dynamic_cast<Qt3DExtras::QPlaneMesh*>(Qt3DCore::QComponent* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QComponent>,
) -> ::cpp_core::Ptr<crate::QPlaneMesh> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QPlaneMesh_ptr1(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QComponent,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QPlaneMesh* dynamic_cast<Qt3DExtras::QPlaneMesh*>(Qt3DCore::QComponent* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QComponent>,
) -> ::cpp_core::MutPtr<crate::QPlaneMesh> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QPlaneMesh_ptr1(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QPlaneMesh> for ::qt_3d_core::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QPlaneMesh* static_cast<Qt3DExtras::QPlaneMesh*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QNode>,
) -> ::cpp_core::Ptr<crate::QPlaneMesh> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QPlaneMesh_ptr2(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QNode,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QPlaneMesh* static_cast<Qt3DExtras::QPlaneMesh*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QNode>,
) -> ::cpp_core::MutPtr<crate::QPlaneMesh> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QPlaneMesh_ptr2(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_3d_core::QNode> for crate::QPlaneMesh {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DExtras::QPlaneMesh* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QPlaneMesh>,
) -> ::cpp_core::Ptr<::qt_3d_core::QNode> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QNode_ptr23(
ptr.as_raw_ptr() as *mut crate::QPlaneMesh,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DExtras::QPlaneMesh* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QPlaneMesh>,
) -> ::cpp_core::MutPtr<::qt_3d_core::QNode> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QNode_ptr23(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QPlaneMesh> for ::qt_3d_core::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QPlaneMesh* dynamic_cast<Qt3DExtras::QPlaneMesh*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QNode>,
) -> ::cpp_core::Ptr<crate::QPlaneMesh> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QPlaneMesh_ptr2(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QNode,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QPlaneMesh* dynamic_cast<Qt3DExtras::QPlaneMesh*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QNode>,
) -> ::cpp_core::MutPtr<crate::QPlaneMesh> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QPlaneMesh_ptr2(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QPlaneMesh> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QPlaneMesh* static_cast<Qt3DExtras::QPlaneMesh*>(QObject* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QPlaneMesh> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QPlaneMesh_ptr3(
ptr.as_raw_ptr() as *mut ::qt_core::QObject,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QPlaneMesh* static_cast<Qt3DExtras::QPlaneMesh*>(QObject* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_core::QObject>,
) -> ::cpp_core::MutPtr<crate::QPlaneMesh> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QPlaneMesh_ptr3(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_core::QObject> for crate::QPlaneMesh {
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(Qt3DExtras::QPlaneMesh* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QPlaneMesh>,
) -> ::cpp_core::Ptr<::qt_core::QObject> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_QObject_ptr23(
ptr.as_raw_ptr() as *mut crate::QPlaneMesh,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(Qt3DExtras::QPlaneMesh* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QPlaneMesh>,
) -> ::cpp_core::MutPtr<::qt_core::QObject> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_QObject_ptr23(ptr.as_mut_raw_ptr());
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QPlaneMesh> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QPlaneMesh* dynamic_cast<Qt3DExtras::QPlaneMesh*>(QObject* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QPlaneMesh> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QPlaneMesh_ptr3(
ptr.as_raw_ptr() as *mut ::qt_core::QObject,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QPlaneMesh* dynamic_cast<Qt3DExtras::QPlaneMesh*>(QObject* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_core::QObject>,
) -> ::cpp_core::MutPtr<crate::QPlaneMesh> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QPlaneMesh_ptr3(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QSkyboxEntity> for ::qt_3d_core::QEntity {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QSkyboxEntity* static_cast<Qt3DExtras::QSkyboxEntity*>(Qt3DCore::QEntity* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QEntity>,
) -> ::cpp_core::Ptr<crate::QSkyboxEntity> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QSkyboxEntity_ptr(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QEntity,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QSkyboxEntity* static_cast<Qt3DExtras::QSkyboxEntity*>(Qt3DCore::QEntity* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QEntity>,
) -> ::cpp_core::MutPtr<crate::QSkyboxEntity> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QSkyboxEntity_ptr(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_3d_core::QEntity> for crate::QSkyboxEntity {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QEntity* static_cast<Qt3DCore::QEntity*>(Qt3DExtras::QSkyboxEntity* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QSkyboxEntity>,
) -> ::cpp_core::Ptr<::qt_3d_core::QEntity> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QEntity_ptr2(
ptr.as_raw_ptr() as *mut crate::QSkyboxEntity,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QEntity* static_cast<Qt3DCore::QEntity*>(Qt3DExtras::QSkyboxEntity* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QSkyboxEntity>,
) -> ::cpp_core::MutPtr<::qt_3d_core::QEntity> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QEntity_ptr2(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::std::ops::Deref for crate::QSkyboxEntity {
type Target = ::qt_3d_core::QEntity;
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QEntity* static_cast<Qt3DCore::QEntity*>(Qt3DExtras::QSkyboxEntity* ptr)```</span>.
fn deref(&self) -> &::qt_3d_core::QEntity {
let ffi_result = unsafe {
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QEntity_ptr2(
self as *const crate::QSkyboxEntity as *mut crate::QSkyboxEntity,
)
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::std::ops::DerefMut for crate::QSkyboxEntity {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QEntity* static_cast<Qt3DCore::QEntity*>(Qt3DExtras::QSkyboxEntity* ptr)```</span>.
fn deref_mut(&mut self) -> &mut ::qt_3d_core::QEntity {
let ffi_result = unsafe {
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QEntity_ptr2(
self as *mut crate::QSkyboxEntity,
)
};
unsafe { ffi_result.as_mut() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_core::DynamicCast<crate::QSkyboxEntity> for ::qt_3d_core::QEntity {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QSkyboxEntity* dynamic_cast<Qt3DExtras::QSkyboxEntity*>(Qt3DCore::QEntity* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QEntity>,
) -> ::cpp_core::Ptr<crate::QSkyboxEntity> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QSkyboxEntity_ptr(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QEntity,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QSkyboxEntity* dynamic_cast<Qt3DExtras::QSkyboxEntity*>(Qt3DCore::QEntity* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QEntity>,
) -> ::cpp_core::MutPtr<crate::QSkyboxEntity> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QSkyboxEntity_ptr(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QSkyboxEntity> for ::qt_3d_core::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QSkyboxEntity* static_cast<Qt3DExtras::QSkyboxEntity*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QNode>,
) -> ::cpp_core::Ptr<crate::QSkyboxEntity> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QSkyboxEntity_ptr1(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QNode,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QSkyboxEntity* static_cast<Qt3DExtras::QSkyboxEntity*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QNode>,
) -> ::cpp_core::MutPtr<crate::QSkyboxEntity> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QSkyboxEntity_ptr1(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_3d_core::QNode> for crate::QSkyboxEntity {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DExtras::QSkyboxEntity* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QSkyboxEntity>,
) -> ::cpp_core::Ptr<::qt_3d_core::QNode> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QNode_ptr24(
ptr.as_raw_ptr() as *mut crate::QSkyboxEntity,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DExtras::QSkyboxEntity* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QSkyboxEntity>,
) -> ::cpp_core::MutPtr<::qt_3d_core::QNode> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QNode_ptr24(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QSkyboxEntity> for ::qt_3d_core::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QSkyboxEntity* dynamic_cast<Qt3DExtras::QSkyboxEntity*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QNode>,
) -> ::cpp_core::Ptr<crate::QSkyboxEntity> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QSkyboxEntity_ptr1(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QNode,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QSkyboxEntity* dynamic_cast<Qt3DExtras::QSkyboxEntity*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QNode>,
) -> ::cpp_core::MutPtr<crate::QSkyboxEntity> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QSkyboxEntity_ptr1(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QSkyboxEntity> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QSkyboxEntity* static_cast<Qt3DExtras::QSkyboxEntity*>(QObject* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QSkyboxEntity> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QSkyboxEntity_ptr2(
ptr.as_raw_ptr() as *mut ::qt_core::QObject,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QSkyboxEntity* static_cast<Qt3DExtras::QSkyboxEntity*>(QObject* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_core::QObject>,
) -> ::cpp_core::MutPtr<crate::QSkyboxEntity> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QSkyboxEntity_ptr2(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_core::QObject> for crate::QSkyboxEntity {
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(Qt3DExtras::QSkyboxEntity* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QSkyboxEntity>,
) -> ::cpp_core::Ptr<::qt_core::QObject> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_QObject_ptr24(
ptr.as_raw_ptr() as *mut crate::QSkyboxEntity,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(Qt3DExtras::QSkyboxEntity* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QSkyboxEntity>,
) -> ::cpp_core::MutPtr<::qt_core::QObject> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_QObject_ptr24(ptr.as_mut_raw_ptr());
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QSkyboxEntity> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QSkyboxEntity* dynamic_cast<Qt3DExtras::QSkyboxEntity*>(QObject* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QSkyboxEntity> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QSkyboxEntity_ptr2(
ptr.as_raw_ptr() as *mut ::qt_core::QObject,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QSkyboxEntity* dynamic_cast<Qt3DExtras::QSkyboxEntity*>(QObject* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_core::QObject>,
) -> ::cpp_core::MutPtr<crate::QSkyboxEntity> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QSkyboxEntity_ptr2(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QSphereGeometry> for ::qt_3d_render::QGeometry {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QSphereGeometry* static_cast<Qt3DExtras::QSphereGeometry*>(Qt3DRender::QGeometry* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_3d_render::QGeometry>,
) -> ::cpp_core::Ptr<crate::QSphereGeometry> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QSphereGeometry_ptr(
ptr.as_raw_ptr() as *mut ::qt_3d_render::QGeometry,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QSphereGeometry* static_cast<Qt3DExtras::QSphereGeometry*>(Qt3DRender::QGeometry* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_render::QGeometry>,
) -> ::cpp_core::MutPtr<crate::QSphereGeometry> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QSphereGeometry_ptr(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_3d_render::QGeometry> for crate::QSphereGeometry {
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QGeometry* static_cast<Qt3DRender::QGeometry*>(Qt3DExtras::QSphereGeometry* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QSphereGeometry>,
) -> ::cpp_core::Ptr<::qt_3d_render::QGeometry> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DRender_QGeometry_ptr5(
ptr.as_raw_ptr() as *mut crate::QSphereGeometry,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QGeometry* static_cast<Qt3DRender::QGeometry*>(Qt3DExtras::QSphereGeometry* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QSphereGeometry>,
) -> ::cpp_core::MutPtr<::qt_3d_render::QGeometry> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DRender_QGeometry_ptr5(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::std::ops::Deref for crate::QSphereGeometry {
type Target = ::qt_3d_render::QGeometry;
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QGeometry* static_cast<Qt3DRender::QGeometry*>(Qt3DExtras::QSphereGeometry* ptr)```</span>.
fn deref(&self) -> &::qt_3d_render::QGeometry {
let ffi_result = unsafe {
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DRender_QGeometry_ptr5(
self as *const crate::QSphereGeometry as *mut crate::QSphereGeometry,
)
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::std::ops::DerefMut for crate::QSphereGeometry {
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QGeometry* static_cast<Qt3DRender::QGeometry*>(Qt3DExtras::QSphereGeometry* ptr)```</span>.
fn deref_mut(&mut self) -> &mut ::qt_3d_render::QGeometry {
let ffi_result = unsafe {
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DRender_QGeometry_ptr5(
self as *mut crate::QSphereGeometry,
)
};
unsafe { ffi_result.as_mut() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_core::DynamicCast<crate::QSphereGeometry> for ::qt_3d_render::QGeometry {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QSphereGeometry* dynamic_cast<Qt3DExtras::QSphereGeometry*>(Qt3DRender::QGeometry* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_3d_render::QGeometry>,
) -> ::cpp_core::Ptr<crate::QSphereGeometry> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QSphereGeometry_ptr(
ptr.as_raw_ptr() as *mut ::qt_3d_render::QGeometry,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QSphereGeometry* dynamic_cast<Qt3DExtras::QSphereGeometry*>(Qt3DRender::QGeometry* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_render::QGeometry>,
) -> ::cpp_core::MutPtr<crate::QSphereGeometry> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QSphereGeometry_ptr(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QSphereGeometry> for ::qt_3d_core::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QSphereGeometry* static_cast<Qt3DExtras::QSphereGeometry*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QNode>,
) -> ::cpp_core::Ptr<crate::QSphereGeometry> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QSphereGeometry_ptr1(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QNode,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QSphereGeometry* static_cast<Qt3DExtras::QSphereGeometry*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QNode>,
) -> ::cpp_core::MutPtr<crate::QSphereGeometry> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QSphereGeometry_ptr1(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_3d_core::QNode> for crate::QSphereGeometry {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DExtras::QSphereGeometry* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QSphereGeometry>,
) -> ::cpp_core::Ptr<::qt_3d_core::QNode> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QNode_ptr25(
ptr.as_raw_ptr() as *mut crate::QSphereGeometry,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DExtras::QSphereGeometry* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QSphereGeometry>,
) -> ::cpp_core::MutPtr<::qt_3d_core::QNode> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QNode_ptr25(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QSphereGeometry> for ::qt_3d_core::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QSphereGeometry* dynamic_cast<Qt3DExtras::QSphereGeometry*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QNode>,
) -> ::cpp_core::Ptr<crate::QSphereGeometry> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QSphereGeometry_ptr1(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QNode,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QSphereGeometry* dynamic_cast<Qt3DExtras::QSphereGeometry*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QNode>,
) -> ::cpp_core::MutPtr<crate::QSphereGeometry> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QSphereGeometry_ptr1(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QSphereGeometry> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QSphereGeometry* static_cast<Qt3DExtras::QSphereGeometry*>(QObject* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QSphereGeometry> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QSphereGeometry_ptr2(
ptr.as_raw_ptr() as *mut ::qt_core::QObject,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QSphereGeometry* static_cast<Qt3DExtras::QSphereGeometry*>(QObject* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_core::QObject>,
) -> ::cpp_core::MutPtr<crate::QSphereGeometry> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QSphereGeometry_ptr2(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_core::QObject> for crate::QSphereGeometry {
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(Qt3DExtras::QSphereGeometry* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QSphereGeometry>,
) -> ::cpp_core::Ptr<::qt_core::QObject> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_QObject_ptr25(
ptr.as_raw_ptr() as *mut crate::QSphereGeometry,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(Qt3DExtras::QSphereGeometry* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QSphereGeometry>,
) -> ::cpp_core::MutPtr<::qt_core::QObject> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_QObject_ptr25(ptr.as_mut_raw_ptr());
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QSphereGeometry> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QSphereGeometry* dynamic_cast<Qt3DExtras::QSphereGeometry*>(QObject* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QSphereGeometry> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QSphereGeometry_ptr2(
ptr.as_raw_ptr() as *mut ::qt_core::QObject,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QSphereGeometry* dynamic_cast<Qt3DExtras::QSphereGeometry*>(QObject* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_core::QObject>,
) -> ::cpp_core::MutPtr<crate::QSphereGeometry> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QSphereGeometry_ptr2(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QSphereMesh> for ::qt_3d_render::QGeometryRenderer {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QSphereMesh* static_cast<Qt3DExtras::QSphereMesh*>(Qt3DRender::QGeometryRenderer* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_3d_render::QGeometryRenderer>,
) -> ::cpp_core::Ptr<crate::QSphereMesh> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QSphereMesh_ptr(
ptr.as_raw_ptr() as *mut ::qt_3d_render::QGeometryRenderer,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QSphereMesh* static_cast<Qt3DExtras::QSphereMesh*>(Qt3DRender::QGeometryRenderer* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_render::QGeometryRenderer>,
) -> ::cpp_core::MutPtr<crate::QSphereMesh> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QSphereMesh_ptr(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_3d_render::QGeometryRenderer> for crate::QSphereMesh {
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QGeometryRenderer* static_cast<Qt3DRender::QGeometryRenderer*>(Qt3DExtras::QSphereMesh* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QSphereMesh>,
) -> ::cpp_core::Ptr<::qt_3d_render::QGeometryRenderer> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DRender_QGeometryRenderer_ptr5(
ptr.as_raw_ptr() as *mut crate::QSphereMesh,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QGeometryRenderer* static_cast<Qt3DRender::QGeometryRenderer*>(Qt3DExtras::QSphereMesh* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QSphereMesh>,
) -> ::cpp_core::MutPtr<::qt_3d_render::QGeometryRenderer> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DRender_QGeometryRenderer_ptr5(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::std::ops::Deref for crate::QSphereMesh {
type Target = ::qt_3d_render::QGeometryRenderer;
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QGeometryRenderer* static_cast<Qt3DRender::QGeometryRenderer*>(Qt3DExtras::QSphereMesh* ptr)```</span>.
fn deref(&self) -> &::qt_3d_render::QGeometryRenderer {
let ffi_result = unsafe {
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DRender_QGeometryRenderer_ptr5(
self as *const crate::QSphereMesh as *mut crate::QSphereMesh,
)
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::std::ops::DerefMut for crate::QSphereMesh {
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QGeometryRenderer* static_cast<Qt3DRender::QGeometryRenderer*>(Qt3DExtras::QSphereMesh* ptr)```</span>.
fn deref_mut(&mut self) -> &mut ::qt_3d_render::QGeometryRenderer {
let ffi_result = unsafe {
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DRender_QGeometryRenderer_ptr5(
self as *mut crate::QSphereMesh,
)
};
unsafe { ffi_result.as_mut() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_core::DynamicCast<crate::QSphereMesh> for ::qt_3d_render::QGeometryRenderer {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QSphereMesh* dynamic_cast<Qt3DExtras::QSphereMesh*>(Qt3DRender::QGeometryRenderer* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_3d_render::QGeometryRenderer>,
) -> ::cpp_core::Ptr<crate::QSphereMesh> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QSphereMesh_ptr(
ptr.as_raw_ptr() as *mut ::qt_3d_render::QGeometryRenderer,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QSphereMesh* dynamic_cast<Qt3DExtras::QSphereMesh*>(Qt3DRender::QGeometryRenderer* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_render::QGeometryRenderer>,
) -> ::cpp_core::MutPtr<crate::QSphereMesh> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QSphereMesh_ptr(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QSphereMesh> for ::qt_3d_core::QComponent {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QSphereMesh* static_cast<Qt3DExtras::QSphereMesh*>(Qt3DCore::QComponent* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QComponent>,
) -> ::cpp_core::Ptr<crate::QSphereMesh> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QSphereMesh_ptr1(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QComponent,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QSphereMesh* static_cast<Qt3DExtras::QSphereMesh*>(Qt3DCore::QComponent* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QComponent>,
) -> ::cpp_core::MutPtr<crate::QSphereMesh> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QSphereMesh_ptr1(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_3d_core::QComponent> for crate::QSphereMesh {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QComponent* static_cast<Qt3DCore::QComponent*>(Qt3DExtras::QSphereMesh* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QSphereMesh>,
) -> ::cpp_core::Ptr<::qt_3d_core::QComponent> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QComponent_ptr16(
ptr.as_raw_ptr() as *mut crate::QSphereMesh,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QComponent* static_cast<Qt3DCore::QComponent*>(Qt3DExtras::QSphereMesh* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QSphereMesh>,
) -> ::cpp_core::MutPtr<::qt_3d_core::QComponent> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QComponent_ptr16(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QSphereMesh> for ::qt_3d_core::QComponent {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QSphereMesh* dynamic_cast<Qt3DExtras::QSphereMesh*>(Qt3DCore::QComponent* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QComponent>,
) -> ::cpp_core::Ptr<crate::QSphereMesh> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QSphereMesh_ptr1(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QComponent,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QSphereMesh* dynamic_cast<Qt3DExtras::QSphereMesh*>(Qt3DCore::QComponent* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QComponent>,
) -> ::cpp_core::MutPtr<crate::QSphereMesh> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QSphereMesh_ptr1(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QSphereMesh> for ::qt_3d_core::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QSphereMesh* static_cast<Qt3DExtras::QSphereMesh*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QNode>,
) -> ::cpp_core::Ptr<crate::QSphereMesh> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QSphereMesh_ptr2(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QNode,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QSphereMesh* static_cast<Qt3DExtras::QSphereMesh*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QNode>,
) -> ::cpp_core::MutPtr<crate::QSphereMesh> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QSphereMesh_ptr2(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_3d_core::QNode> for crate::QSphereMesh {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DExtras::QSphereMesh* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QSphereMesh>,
) -> ::cpp_core::Ptr<::qt_3d_core::QNode> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QNode_ptr26(
ptr.as_raw_ptr() as *mut crate::QSphereMesh,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DExtras::QSphereMesh* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QSphereMesh>,
) -> ::cpp_core::MutPtr<::qt_3d_core::QNode> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QNode_ptr26(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QSphereMesh> for ::qt_3d_core::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QSphereMesh* dynamic_cast<Qt3DExtras::QSphereMesh*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QNode>,
) -> ::cpp_core::Ptr<crate::QSphereMesh> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QSphereMesh_ptr2(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QNode,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QSphereMesh* dynamic_cast<Qt3DExtras::QSphereMesh*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QNode>,
) -> ::cpp_core::MutPtr<crate::QSphereMesh> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QSphereMesh_ptr2(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QSphereMesh> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QSphereMesh* static_cast<Qt3DExtras::QSphereMesh*>(QObject* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QSphereMesh> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QSphereMesh_ptr3(
ptr.as_raw_ptr() as *mut ::qt_core::QObject,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QSphereMesh* static_cast<Qt3DExtras::QSphereMesh*>(QObject* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_core::QObject>,
) -> ::cpp_core::MutPtr<crate::QSphereMesh> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QSphereMesh_ptr3(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_core::QObject> for crate::QSphereMesh {
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(Qt3DExtras::QSphereMesh* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QSphereMesh>,
) -> ::cpp_core::Ptr<::qt_core::QObject> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_QObject_ptr26(
ptr.as_raw_ptr() as *mut crate::QSphereMesh,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(Qt3DExtras::QSphereMesh* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QSphereMesh>,
) -> ::cpp_core::MutPtr<::qt_core::QObject> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_QObject_ptr26(ptr.as_mut_raw_ptr());
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QSphereMesh> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QSphereMesh* dynamic_cast<Qt3DExtras::QSphereMesh*>(QObject* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QSphereMesh> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QSphereMesh_ptr3(
ptr.as_raw_ptr() as *mut ::qt_core::QObject,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QSphereMesh* dynamic_cast<Qt3DExtras::QSphereMesh*>(QObject* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_core::QObject>,
) -> ::cpp_core::MutPtr<crate::QSphereMesh> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QSphereMesh_ptr3(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::Qt3DWindow> for ::qt_gui::QWindow {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::Qt3DWindow* static_cast<Qt3DExtras::Qt3DWindow*>(QWindow* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_gui::QWindow>,
) -> ::cpp_core::Ptr<crate::Qt3DWindow> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_Qt3DWindow_ptr(
ptr.as_raw_ptr() as *mut ::qt_gui::QWindow,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::Qt3DWindow* static_cast<Qt3DExtras::Qt3DWindow*>(QWindow* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_gui::QWindow>,
) -> ::cpp_core::MutPtr<crate::Qt3DWindow> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_Qt3DWindow_ptr(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_gui::QWindow> for crate::Qt3DWindow {
/// Calls C++ function: <span style='color: green;'>```QWindow* static_cast<QWindow*>(Qt3DExtras::Qt3DWindow* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::Qt3DWindow>,
) -> ::cpp_core::Ptr<::qt_gui::QWindow> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_QWindow_ptr(
ptr.as_raw_ptr() as *mut crate::Qt3DWindow,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```QWindow* static_cast<QWindow*>(Qt3DExtras::Qt3DWindow* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::Qt3DWindow>,
) -> ::cpp_core::MutPtr<::qt_gui::QWindow> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_QWindow_ptr(ptr.as_mut_raw_ptr());
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::std::ops::Deref for crate::Qt3DWindow {
type Target = ::qt_gui::QWindow;
/// Calls C++ function: <span style='color: green;'>```QWindow* static_cast<QWindow*>(Qt3DExtras::Qt3DWindow* ptr)```</span>.
fn deref(&self) -> &::qt_gui::QWindow {
let ffi_result = unsafe {
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_QWindow_ptr(
self as *const crate::Qt3DWindow as *mut crate::Qt3DWindow,
)
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::std::ops::DerefMut for crate::Qt3DWindow {
/// Calls C++ function: <span style='color: green;'>```QWindow* static_cast<QWindow*>(Qt3DExtras::Qt3DWindow* ptr)```</span>.
fn deref_mut(&mut self) -> &mut ::qt_gui::QWindow {
let ffi_result = unsafe {
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_QWindow_ptr(
self as *mut crate::Qt3DWindow,
)
};
unsafe { ffi_result.as_mut() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_core::DynamicCast<crate::Qt3DWindow> for ::qt_gui::QWindow {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::Qt3DWindow* dynamic_cast<Qt3DExtras::Qt3DWindow*>(QWindow* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_gui::QWindow>,
) -> ::cpp_core::Ptr<crate::Qt3DWindow> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_Qt3DWindow_ptr(
ptr.as_raw_ptr() as *mut ::qt_gui::QWindow,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::Qt3DWindow* dynamic_cast<Qt3DExtras::Qt3DWindow*>(QWindow* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_gui::QWindow>,
) -> ::cpp_core::MutPtr<crate::Qt3DWindow> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_Qt3DWindow_ptr(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::Qt3DWindow> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::Qt3DWindow* static_cast<Qt3DExtras::Qt3DWindow*>(QObject* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::Qt3DWindow> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_Qt3DWindow_ptr1(
ptr.as_raw_ptr() as *mut ::qt_core::QObject,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::Qt3DWindow* static_cast<Qt3DExtras::Qt3DWindow*>(QObject* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_core::QObject>,
) -> ::cpp_core::MutPtr<crate::Qt3DWindow> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_Qt3DWindow_ptr1(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_core::QObject> for crate::Qt3DWindow {
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(Qt3DExtras::Qt3DWindow* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::Qt3DWindow>,
) -> ::cpp_core::Ptr<::qt_core::QObject> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_QObject_ptr27(
ptr.as_raw_ptr() as *mut crate::Qt3DWindow,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(Qt3DExtras::Qt3DWindow* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::Qt3DWindow>,
) -> ::cpp_core::MutPtr<::qt_core::QObject> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_QObject_ptr27(ptr.as_mut_raw_ptr());
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::Qt3DWindow> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::Qt3DWindow* dynamic_cast<Qt3DExtras::Qt3DWindow*>(QObject* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::Qt3DWindow> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_Qt3DWindow_ptr1(
ptr.as_raw_ptr() as *mut ::qt_core::QObject,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::Qt3DWindow* dynamic_cast<Qt3DExtras::Qt3DWindow*>(QObject* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_core::QObject>,
) -> ::cpp_core::MutPtr<crate::Qt3DWindow> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_Qt3DWindow_ptr1(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::Qt3DWindow> for ::qt_gui::QSurface {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::Qt3DWindow* static_cast<Qt3DExtras::Qt3DWindow*>(QSurface* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_gui::QSurface>,
) -> ::cpp_core::Ptr<crate::Qt3DWindow> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_Qt3DWindow_ptr2(
ptr.as_raw_ptr() as *mut ::qt_gui::QSurface,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::Qt3DWindow* static_cast<Qt3DExtras::Qt3DWindow*>(QSurface* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_gui::QSurface>,
) -> ::cpp_core::MutPtr<crate::Qt3DWindow> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_Qt3DWindow_ptr2(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_gui::QSurface> for crate::Qt3DWindow {
/// Calls C++ function: <span style='color: green;'>```QSurface* static_cast<QSurface*>(Qt3DExtras::Qt3DWindow* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::Qt3DWindow>,
) -> ::cpp_core::Ptr<::qt_gui::QSurface> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_QSurface_ptr(
ptr.as_raw_ptr() as *mut crate::Qt3DWindow,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```QSurface* static_cast<QSurface*>(Qt3DExtras::Qt3DWindow* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::Qt3DWindow>,
) -> ::cpp_core::MutPtr<::qt_gui::QSurface> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_QSurface_ptr(ptr.as_mut_raw_ptr());
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::Qt3DWindow> for ::qt_gui::QSurface {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::Qt3DWindow* dynamic_cast<Qt3DExtras::Qt3DWindow*>(QSurface* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_gui::QSurface>,
) -> ::cpp_core::Ptr<crate::Qt3DWindow> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_Qt3DWindow_ptr2(
ptr.as_raw_ptr() as *mut ::qt_gui::QSurface,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::Qt3DWindow* dynamic_cast<Qt3DExtras::Qt3DWindow*>(QSurface* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_gui::QSurface>,
) -> ::cpp_core::MutPtr<crate::Qt3DWindow> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_Qt3DWindow_ptr2(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QText2DEntity> for ::qt_3d_core::QEntity {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QText2DEntity* static_cast<Qt3DExtras::QText2DEntity*>(Qt3DCore::QEntity* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QEntity>,
) -> ::cpp_core::Ptr<crate::QText2DEntity> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QText2DEntity_ptr(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QEntity,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QText2DEntity* static_cast<Qt3DExtras::QText2DEntity*>(Qt3DCore::QEntity* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QEntity>,
) -> ::cpp_core::MutPtr<crate::QText2DEntity> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QText2DEntity_ptr(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_3d_core::QEntity> for crate::QText2DEntity {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QEntity* static_cast<Qt3DCore::QEntity*>(Qt3DExtras::QText2DEntity* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QText2DEntity>,
) -> ::cpp_core::Ptr<::qt_3d_core::QEntity> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QEntity_ptr3(
ptr.as_raw_ptr() as *mut crate::QText2DEntity,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QEntity* static_cast<Qt3DCore::QEntity*>(Qt3DExtras::QText2DEntity* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QText2DEntity>,
) -> ::cpp_core::MutPtr<::qt_3d_core::QEntity> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QEntity_ptr3(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::std::ops::Deref for crate::QText2DEntity {
type Target = ::qt_3d_core::QEntity;
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QEntity* static_cast<Qt3DCore::QEntity*>(Qt3DExtras::QText2DEntity* ptr)```</span>.
fn deref(&self) -> &::qt_3d_core::QEntity {
let ffi_result = unsafe {
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QEntity_ptr3(
self as *const crate::QText2DEntity as *mut crate::QText2DEntity,
)
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::std::ops::DerefMut for crate::QText2DEntity {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QEntity* static_cast<Qt3DCore::QEntity*>(Qt3DExtras::QText2DEntity* ptr)```</span>.
fn deref_mut(&mut self) -> &mut ::qt_3d_core::QEntity {
let ffi_result = unsafe {
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QEntity_ptr3(
self as *mut crate::QText2DEntity,
)
};
unsafe { ffi_result.as_mut() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_core::DynamicCast<crate::QText2DEntity> for ::qt_3d_core::QEntity {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QText2DEntity* dynamic_cast<Qt3DExtras::QText2DEntity*>(Qt3DCore::QEntity* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QEntity>,
) -> ::cpp_core::Ptr<crate::QText2DEntity> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QText2DEntity_ptr(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QEntity,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QText2DEntity* dynamic_cast<Qt3DExtras::QText2DEntity*>(Qt3DCore::QEntity* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QEntity>,
) -> ::cpp_core::MutPtr<crate::QText2DEntity> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QText2DEntity_ptr(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QText2DEntity> for ::qt_3d_core::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QText2DEntity* static_cast<Qt3DExtras::QText2DEntity*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QNode>,
) -> ::cpp_core::Ptr<crate::QText2DEntity> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QText2DEntity_ptr1(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QNode,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QText2DEntity* static_cast<Qt3DExtras::QText2DEntity*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QNode>,
) -> ::cpp_core::MutPtr<crate::QText2DEntity> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QText2DEntity_ptr1(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_3d_core::QNode> for crate::QText2DEntity {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DExtras::QText2DEntity* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QText2DEntity>,
) -> ::cpp_core::Ptr<::qt_3d_core::QNode> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QNode_ptr27(
ptr.as_raw_ptr() as *mut crate::QText2DEntity,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DExtras::QText2DEntity* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QText2DEntity>,
) -> ::cpp_core::MutPtr<::qt_3d_core::QNode> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QNode_ptr27(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QText2DEntity> for ::qt_3d_core::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QText2DEntity* dynamic_cast<Qt3DExtras::QText2DEntity*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QNode>,
) -> ::cpp_core::Ptr<crate::QText2DEntity> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QText2DEntity_ptr1(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QNode,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QText2DEntity* dynamic_cast<Qt3DExtras::QText2DEntity*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QNode>,
) -> ::cpp_core::MutPtr<crate::QText2DEntity> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QText2DEntity_ptr1(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QText2DEntity> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QText2DEntity* static_cast<Qt3DExtras::QText2DEntity*>(QObject* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QText2DEntity> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QText2DEntity_ptr2(
ptr.as_raw_ptr() as *mut ::qt_core::QObject,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QText2DEntity* static_cast<Qt3DExtras::QText2DEntity*>(QObject* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_core::QObject>,
) -> ::cpp_core::MutPtr<crate::QText2DEntity> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QText2DEntity_ptr2(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_core::QObject> for crate::QText2DEntity {
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(Qt3DExtras::QText2DEntity* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QText2DEntity>,
) -> ::cpp_core::Ptr<::qt_core::QObject> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_QObject_ptr28(
ptr.as_raw_ptr() as *mut crate::QText2DEntity,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(Qt3DExtras::QText2DEntity* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QText2DEntity>,
) -> ::cpp_core::MutPtr<::qt_core::QObject> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_QObject_ptr28(ptr.as_mut_raw_ptr());
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QText2DEntity> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QText2DEntity* dynamic_cast<Qt3DExtras::QText2DEntity*>(QObject* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QText2DEntity> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QText2DEntity_ptr2(
ptr.as_raw_ptr() as *mut ::qt_core::QObject,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QText2DEntity* dynamic_cast<Qt3DExtras::QText2DEntity*>(QObject* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_core::QObject>,
) -> ::cpp_core::MutPtr<crate::QText2DEntity> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QText2DEntity_ptr2(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QTexturedMetalRoughMaterial> for ::qt_3d_render::QMaterial {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QTexturedMetalRoughMaterial* static_cast<Qt3DExtras::QTexturedMetalRoughMaterial*>(Qt3DRender::QMaterial* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_3d_render::QMaterial>,
) -> ::cpp_core::Ptr<crate::QTexturedMetalRoughMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QTexturedMetalRoughMaterial_ptr(ptr.as_raw_ptr() as *mut ::qt_3d_render::QMaterial);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QTexturedMetalRoughMaterial* static_cast<Qt3DExtras::QTexturedMetalRoughMaterial*>(Qt3DRender::QMaterial* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_render::QMaterial>,
) -> ::cpp_core::MutPtr<crate::QTexturedMetalRoughMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QTexturedMetalRoughMaterial_ptr(ptr.as_mut_raw_ptr());
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_3d_render::QMaterial> for crate::QTexturedMetalRoughMaterial {
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QMaterial* static_cast<Qt3DRender::QMaterial*>(Qt3DExtras::QTexturedMetalRoughMaterial* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QTexturedMetalRoughMaterial>,
) -> ::cpp_core::Ptr<::qt_3d_render::QMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DRender_QMaterial_ptr11(
ptr.as_raw_ptr() as *mut crate::QTexturedMetalRoughMaterial,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QMaterial* static_cast<Qt3DRender::QMaterial*>(Qt3DExtras::QTexturedMetalRoughMaterial* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QTexturedMetalRoughMaterial>,
) -> ::cpp_core::MutPtr<::qt_3d_render::QMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DRender_QMaterial_ptr11(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::std::ops::Deref for crate::QTexturedMetalRoughMaterial {
type Target = ::qt_3d_render::QMaterial;
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QMaterial* static_cast<Qt3DRender::QMaterial*>(Qt3DExtras::QTexturedMetalRoughMaterial* ptr)```</span>.
fn deref(&self) -> &::qt_3d_render::QMaterial {
let ffi_result = unsafe {
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DRender_QMaterial_ptr11(
self as *const crate::QTexturedMetalRoughMaterial
as *mut crate::QTexturedMetalRoughMaterial,
)
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::std::ops::DerefMut for crate::QTexturedMetalRoughMaterial {
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QMaterial* static_cast<Qt3DRender::QMaterial*>(Qt3DExtras::QTexturedMetalRoughMaterial* ptr)```</span>.
fn deref_mut(&mut self) -> &mut ::qt_3d_render::QMaterial {
let ffi_result = unsafe {
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DRender_QMaterial_ptr11(
self as *mut crate::QTexturedMetalRoughMaterial,
)
};
unsafe { ffi_result.as_mut() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_core::DynamicCast<crate::QTexturedMetalRoughMaterial> for ::qt_3d_render::QMaterial {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QTexturedMetalRoughMaterial* dynamic_cast<Qt3DExtras::QTexturedMetalRoughMaterial*>(Qt3DRender::QMaterial* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_3d_render::QMaterial>,
) -> ::cpp_core::Ptr<crate::QTexturedMetalRoughMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QTexturedMetalRoughMaterial_ptr(ptr.as_raw_ptr() as *mut ::qt_3d_render::QMaterial);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QTexturedMetalRoughMaterial* dynamic_cast<Qt3DExtras::QTexturedMetalRoughMaterial*>(Qt3DRender::QMaterial* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_render::QMaterial>,
) -> ::cpp_core::MutPtr<crate::QTexturedMetalRoughMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QTexturedMetalRoughMaterial_ptr(ptr.as_mut_raw_ptr());
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QTexturedMetalRoughMaterial> for ::qt_3d_core::QComponent {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QTexturedMetalRoughMaterial* static_cast<Qt3DExtras::QTexturedMetalRoughMaterial*>(Qt3DCore::QComponent* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QComponent>,
) -> ::cpp_core::Ptr<crate::QTexturedMetalRoughMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QTexturedMetalRoughMaterial_ptr1(ptr.as_raw_ptr() as *mut ::qt_3d_core::QComponent);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QTexturedMetalRoughMaterial* static_cast<Qt3DExtras::QTexturedMetalRoughMaterial*>(Qt3DCore::QComponent* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QComponent>,
) -> ::cpp_core::MutPtr<crate::QTexturedMetalRoughMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QTexturedMetalRoughMaterial_ptr1(ptr.as_mut_raw_ptr());
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_3d_core::QComponent> for crate::QTexturedMetalRoughMaterial {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QComponent* static_cast<Qt3DCore::QComponent*>(Qt3DExtras::QTexturedMetalRoughMaterial* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QTexturedMetalRoughMaterial>,
) -> ::cpp_core::Ptr<::qt_3d_core::QComponent> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QComponent_ptr17(
ptr.as_raw_ptr() as *mut crate::QTexturedMetalRoughMaterial,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QComponent* static_cast<Qt3DCore::QComponent*>(Qt3DExtras::QTexturedMetalRoughMaterial* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QTexturedMetalRoughMaterial>,
) -> ::cpp_core::MutPtr<::qt_3d_core::QComponent> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QComponent_ptr17(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QTexturedMetalRoughMaterial> for ::qt_3d_core::QComponent {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QTexturedMetalRoughMaterial* dynamic_cast<Qt3DExtras::QTexturedMetalRoughMaterial*>(Qt3DCore::QComponent* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QComponent>,
) -> ::cpp_core::Ptr<crate::QTexturedMetalRoughMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QTexturedMetalRoughMaterial_ptr1(ptr.as_raw_ptr() as *mut ::qt_3d_core::QComponent);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QTexturedMetalRoughMaterial* dynamic_cast<Qt3DExtras::QTexturedMetalRoughMaterial*>(Qt3DCore::QComponent* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QComponent>,
) -> ::cpp_core::MutPtr<crate::QTexturedMetalRoughMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QTexturedMetalRoughMaterial_ptr1(ptr.as_mut_raw_ptr());
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QTexturedMetalRoughMaterial> for ::qt_3d_core::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QTexturedMetalRoughMaterial* static_cast<Qt3DExtras::QTexturedMetalRoughMaterial*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QNode>,
) -> ::cpp_core::Ptr<crate::QTexturedMetalRoughMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QTexturedMetalRoughMaterial_ptr2(ptr.as_raw_ptr() as *mut ::qt_3d_core::QNode);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QTexturedMetalRoughMaterial* static_cast<Qt3DExtras::QTexturedMetalRoughMaterial*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QNode>,
) -> ::cpp_core::MutPtr<crate::QTexturedMetalRoughMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QTexturedMetalRoughMaterial_ptr2(ptr.as_mut_raw_ptr());
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_3d_core::QNode> for crate::QTexturedMetalRoughMaterial {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DExtras::QTexturedMetalRoughMaterial* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QTexturedMetalRoughMaterial>,
) -> ::cpp_core::Ptr<::qt_3d_core::QNode> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QNode_ptr28(
ptr.as_raw_ptr() as *mut crate::QTexturedMetalRoughMaterial,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DExtras::QTexturedMetalRoughMaterial* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QTexturedMetalRoughMaterial>,
) -> ::cpp_core::MutPtr<::qt_3d_core::QNode> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QNode_ptr28(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QTexturedMetalRoughMaterial> for ::qt_3d_core::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QTexturedMetalRoughMaterial* dynamic_cast<Qt3DExtras::QTexturedMetalRoughMaterial*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QNode>,
) -> ::cpp_core::Ptr<crate::QTexturedMetalRoughMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QTexturedMetalRoughMaterial_ptr2(ptr.as_raw_ptr() as *mut ::qt_3d_core::QNode);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QTexturedMetalRoughMaterial* dynamic_cast<Qt3DExtras::QTexturedMetalRoughMaterial*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QNode>,
) -> ::cpp_core::MutPtr<crate::QTexturedMetalRoughMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QTexturedMetalRoughMaterial_ptr2(ptr.as_mut_raw_ptr());
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QTexturedMetalRoughMaterial> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QTexturedMetalRoughMaterial* static_cast<Qt3DExtras::QTexturedMetalRoughMaterial*>(QObject* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QTexturedMetalRoughMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QTexturedMetalRoughMaterial_ptr3(ptr.as_raw_ptr() as *mut ::qt_core::QObject);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QTexturedMetalRoughMaterial* static_cast<Qt3DExtras::QTexturedMetalRoughMaterial*>(QObject* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_core::QObject>,
) -> ::cpp_core::MutPtr<crate::QTexturedMetalRoughMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QTexturedMetalRoughMaterial_ptr3(ptr.as_mut_raw_ptr());
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_core::QObject> for crate::QTexturedMetalRoughMaterial {
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(Qt3DExtras::QTexturedMetalRoughMaterial* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QTexturedMetalRoughMaterial>,
) -> ::cpp_core::Ptr<::qt_core::QObject> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_QObject_ptr29(
ptr.as_raw_ptr() as *mut crate::QTexturedMetalRoughMaterial,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(Qt3DExtras::QTexturedMetalRoughMaterial* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QTexturedMetalRoughMaterial>,
) -> ::cpp_core::MutPtr<::qt_core::QObject> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_QObject_ptr29(ptr.as_mut_raw_ptr());
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QTexturedMetalRoughMaterial> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QTexturedMetalRoughMaterial* dynamic_cast<Qt3DExtras::QTexturedMetalRoughMaterial*>(QObject* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QTexturedMetalRoughMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QTexturedMetalRoughMaterial_ptr3(ptr.as_raw_ptr() as *mut ::qt_core::QObject);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QTexturedMetalRoughMaterial* dynamic_cast<Qt3DExtras::QTexturedMetalRoughMaterial*>(QObject* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_core::QObject>,
) -> ::cpp_core::MutPtr<crate::QTexturedMetalRoughMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QTexturedMetalRoughMaterial_ptr3(ptr.as_mut_raw_ptr());
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QTextureMaterial> for ::qt_3d_render::QMaterial {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QTextureMaterial* static_cast<Qt3DExtras::QTextureMaterial*>(Qt3DRender::QMaterial* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_3d_render::QMaterial>,
) -> ::cpp_core::Ptr<crate::QTextureMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QTextureMaterial_ptr(
ptr.as_raw_ptr() as *mut ::qt_3d_render::QMaterial,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QTextureMaterial* static_cast<Qt3DExtras::QTextureMaterial*>(Qt3DRender::QMaterial* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_render::QMaterial>,
) -> ::cpp_core::MutPtr<crate::QTextureMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QTextureMaterial_ptr(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_3d_render::QMaterial> for crate::QTextureMaterial {
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QMaterial* static_cast<Qt3DRender::QMaterial*>(Qt3DExtras::QTextureMaterial* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QTextureMaterial>,
) -> ::cpp_core::Ptr<::qt_3d_render::QMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DRender_QMaterial_ptr12(
ptr.as_raw_ptr() as *mut crate::QTextureMaterial,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QMaterial* static_cast<Qt3DRender::QMaterial*>(Qt3DExtras::QTextureMaterial* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QTextureMaterial>,
) -> ::cpp_core::MutPtr<::qt_3d_render::QMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DRender_QMaterial_ptr12(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::std::ops::Deref for crate::QTextureMaterial {
type Target = ::qt_3d_render::QMaterial;
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QMaterial* static_cast<Qt3DRender::QMaterial*>(Qt3DExtras::QTextureMaterial* ptr)```</span>.
fn deref(&self) -> &::qt_3d_render::QMaterial {
let ffi_result = unsafe {
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DRender_QMaterial_ptr12(
self as *const crate::QTextureMaterial as *mut crate::QTextureMaterial,
)
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::std::ops::DerefMut for crate::QTextureMaterial {
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QMaterial* static_cast<Qt3DRender::QMaterial*>(Qt3DExtras::QTextureMaterial* ptr)```</span>.
fn deref_mut(&mut self) -> &mut ::qt_3d_render::QMaterial {
let ffi_result = unsafe {
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DRender_QMaterial_ptr12(
self as *mut crate::QTextureMaterial,
)
};
unsafe { ffi_result.as_mut() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_core::DynamicCast<crate::QTextureMaterial> for ::qt_3d_render::QMaterial {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QTextureMaterial* dynamic_cast<Qt3DExtras::QTextureMaterial*>(Qt3DRender::QMaterial* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_3d_render::QMaterial>,
) -> ::cpp_core::Ptr<crate::QTextureMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QTextureMaterial_ptr(
ptr.as_raw_ptr() as *mut ::qt_3d_render::QMaterial,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QTextureMaterial* dynamic_cast<Qt3DExtras::QTextureMaterial*>(Qt3DRender::QMaterial* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_render::QMaterial>,
) -> ::cpp_core::MutPtr<crate::QTextureMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QTextureMaterial_ptr(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QTextureMaterial> for ::qt_3d_core::QComponent {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QTextureMaterial* static_cast<Qt3DExtras::QTextureMaterial*>(Qt3DCore::QComponent* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QComponent>,
) -> ::cpp_core::Ptr<crate::QTextureMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QTextureMaterial_ptr1(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QComponent,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QTextureMaterial* static_cast<Qt3DExtras::QTextureMaterial*>(Qt3DCore::QComponent* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QComponent>,
) -> ::cpp_core::MutPtr<crate::QTextureMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QTextureMaterial_ptr1(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_3d_core::QComponent> for crate::QTextureMaterial {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QComponent* static_cast<Qt3DCore::QComponent*>(Qt3DExtras::QTextureMaterial* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QTextureMaterial>,
) -> ::cpp_core::Ptr<::qt_3d_core::QComponent> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QComponent_ptr18(
ptr.as_raw_ptr() as *mut crate::QTextureMaterial,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QComponent* static_cast<Qt3DCore::QComponent*>(Qt3DExtras::QTextureMaterial* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QTextureMaterial>,
) -> ::cpp_core::MutPtr<::qt_3d_core::QComponent> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QComponent_ptr18(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QTextureMaterial> for ::qt_3d_core::QComponent {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QTextureMaterial* dynamic_cast<Qt3DExtras::QTextureMaterial*>(Qt3DCore::QComponent* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QComponent>,
) -> ::cpp_core::Ptr<crate::QTextureMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QTextureMaterial_ptr1(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QComponent,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QTextureMaterial* dynamic_cast<Qt3DExtras::QTextureMaterial*>(Qt3DCore::QComponent* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QComponent>,
) -> ::cpp_core::MutPtr<crate::QTextureMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QTextureMaterial_ptr1(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QTextureMaterial> for ::qt_3d_core::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QTextureMaterial* static_cast<Qt3DExtras::QTextureMaterial*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QNode>,
) -> ::cpp_core::Ptr<crate::QTextureMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QTextureMaterial_ptr2(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QNode,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QTextureMaterial* static_cast<Qt3DExtras::QTextureMaterial*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QNode>,
) -> ::cpp_core::MutPtr<crate::QTextureMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QTextureMaterial_ptr2(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_3d_core::QNode> for crate::QTextureMaterial {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DExtras::QTextureMaterial* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QTextureMaterial>,
) -> ::cpp_core::Ptr<::qt_3d_core::QNode> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QNode_ptr29(
ptr.as_raw_ptr() as *mut crate::QTextureMaterial,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DExtras::QTextureMaterial* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QTextureMaterial>,
) -> ::cpp_core::MutPtr<::qt_3d_core::QNode> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QNode_ptr29(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QTextureMaterial> for ::qt_3d_core::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QTextureMaterial* dynamic_cast<Qt3DExtras::QTextureMaterial*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QNode>,
) -> ::cpp_core::Ptr<crate::QTextureMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QTextureMaterial_ptr2(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QNode,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QTextureMaterial* dynamic_cast<Qt3DExtras::QTextureMaterial*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QNode>,
) -> ::cpp_core::MutPtr<crate::QTextureMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QTextureMaterial_ptr2(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QTextureMaterial> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QTextureMaterial* static_cast<Qt3DExtras::QTextureMaterial*>(QObject* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QTextureMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QTextureMaterial_ptr3(
ptr.as_raw_ptr() as *mut ::qt_core::QObject,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QTextureMaterial* static_cast<Qt3DExtras::QTextureMaterial*>(QObject* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_core::QObject>,
) -> ::cpp_core::MutPtr<crate::QTextureMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QTextureMaterial_ptr3(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_core::QObject> for crate::QTextureMaterial {
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(Qt3DExtras::QTextureMaterial* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QTextureMaterial>,
) -> ::cpp_core::Ptr<::qt_core::QObject> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_QObject_ptr30(
ptr.as_raw_ptr() as *mut crate::QTextureMaterial,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(Qt3DExtras::QTextureMaterial* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QTextureMaterial>,
) -> ::cpp_core::MutPtr<::qt_core::QObject> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_QObject_ptr30(ptr.as_mut_raw_ptr());
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QTextureMaterial> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QTextureMaterial* dynamic_cast<Qt3DExtras::QTextureMaterial*>(QObject* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QTextureMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QTextureMaterial_ptr3(
ptr.as_raw_ptr() as *mut ::qt_core::QObject,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QTextureMaterial* dynamic_cast<Qt3DExtras::QTextureMaterial*>(QObject* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_core::QObject>,
) -> ::cpp_core::MutPtr<crate::QTextureMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QTextureMaterial_ptr3(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QTorusGeometry> for ::qt_3d_render::QGeometry {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QTorusGeometry* static_cast<Qt3DExtras::QTorusGeometry*>(Qt3DRender::QGeometry* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_3d_render::QGeometry>,
) -> ::cpp_core::Ptr<crate::QTorusGeometry> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QTorusGeometry_ptr(
ptr.as_raw_ptr() as *mut ::qt_3d_render::QGeometry,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QTorusGeometry* static_cast<Qt3DExtras::QTorusGeometry*>(Qt3DRender::QGeometry* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_render::QGeometry>,
) -> ::cpp_core::MutPtr<crate::QTorusGeometry> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QTorusGeometry_ptr(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_3d_render::QGeometry> for crate::QTorusGeometry {
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QGeometry* static_cast<Qt3DRender::QGeometry*>(Qt3DExtras::QTorusGeometry* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QTorusGeometry>,
) -> ::cpp_core::Ptr<::qt_3d_render::QGeometry> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DRender_QGeometry_ptr6(
ptr.as_raw_ptr() as *mut crate::QTorusGeometry,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QGeometry* static_cast<Qt3DRender::QGeometry*>(Qt3DExtras::QTorusGeometry* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QTorusGeometry>,
) -> ::cpp_core::MutPtr<::qt_3d_render::QGeometry> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DRender_QGeometry_ptr6(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::std::ops::Deref for crate::QTorusGeometry {
type Target = ::qt_3d_render::QGeometry;
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QGeometry* static_cast<Qt3DRender::QGeometry*>(Qt3DExtras::QTorusGeometry* ptr)```</span>.
fn deref(&self) -> &::qt_3d_render::QGeometry {
let ffi_result = unsafe {
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DRender_QGeometry_ptr6(
self as *const crate::QTorusGeometry as *mut crate::QTorusGeometry,
)
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::std::ops::DerefMut for crate::QTorusGeometry {
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QGeometry* static_cast<Qt3DRender::QGeometry*>(Qt3DExtras::QTorusGeometry* ptr)```</span>.
fn deref_mut(&mut self) -> &mut ::qt_3d_render::QGeometry {
let ffi_result = unsafe {
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DRender_QGeometry_ptr6(
self as *mut crate::QTorusGeometry,
)
};
unsafe { ffi_result.as_mut() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_core::DynamicCast<crate::QTorusGeometry> for ::qt_3d_render::QGeometry {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QTorusGeometry* dynamic_cast<Qt3DExtras::QTorusGeometry*>(Qt3DRender::QGeometry* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_3d_render::QGeometry>,
) -> ::cpp_core::Ptr<crate::QTorusGeometry> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QTorusGeometry_ptr(
ptr.as_raw_ptr() as *mut ::qt_3d_render::QGeometry,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QTorusGeometry* dynamic_cast<Qt3DExtras::QTorusGeometry*>(Qt3DRender::QGeometry* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_render::QGeometry>,
) -> ::cpp_core::MutPtr<crate::QTorusGeometry> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QTorusGeometry_ptr(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QTorusGeometry> for ::qt_3d_core::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QTorusGeometry* static_cast<Qt3DExtras::QTorusGeometry*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QNode>,
) -> ::cpp_core::Ptr<crate::QTorusGeometry> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QTorusGeometry_ptr1(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QNode,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QTorusGeometry* static_cast<Qt3DExtras::QTorusGeometry*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QNode>,
) -> ::cpp_core::MutPtr<crate::QTorusGeometry> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QTorusGeometry_ptr1(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_3d_core::QNode> for crate::QTorusGeometry {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DExtras::QTorusGeometry* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QTorusGeometry>,
) -> ::cpp_core::Ptr<::qt_3d_core::QNode> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QNode_ptr30(
ptr.as_raw_ptr() as *mut crate::QTorusGeometry,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DExtras::QTorusGeometry* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QTorusGeometry>,
) -> ::cpp_core::MutPtr<::qt_3d_core::QNode> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QNode_ptr30(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QTorusGeometry> for ::qt_3d_core::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QTorusGeometry* dynamic_cast<Qt3DExtras::QTorusGeometry*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QNode>,
) -> ::cpp_core::Ptr<crate::QTorusGeometry> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QTorusGeometry_ptr1(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QNode,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QTorusGeometry* dynamic_cast<Qt3DExtras::QTorusGeometry*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QNode>,
) -> ::cpp_core::MutPtr<crate::QTorusGeometry> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QTorusGeometry_ptr1(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QTorusGeometry> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QTorusGeometry* static_cast<Qt3DExtras::QTorusGeometry*>(QObject* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QTorusGeometry> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QTorusGeometry_ptr2(
ptr.as_raw_ptr() as *mut ::qt_core::QObject,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QTorusGeometry* static_cast<Qt3DExtras::QTorusGeometry*>(QObject* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_core::QObject>,
) -> ::cpp_core::MutPtr<crate::QTorusGeometry> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QTorusGeometry_ptr2(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_core::QObject> for crate::QTorusGeometry {
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(Qt3DExtras::QTorusGeometry* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QTorusGeometry>,
) -> ::cpp_core::Ptr<::qt_core::QObject> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_QObject_ptr31(
ptr.as_raw_ptr() as *mut crate::QTorusGeometry,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(Qt3DExtras::QTorusGeometry* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QTorusGeometry>,
) -> ::cpp_core::MutPtr<::qt_core::QObject> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_QObject_ptr31(ptr.as_mut_raw_ptr());
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QTorusGeometry> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QTorusGeometry* dynamic_cast<Qt3DExtras::QTorusGeometry*>(QObject* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QTorusGeometry> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QTorusGeometry_ptr2(
ptr.as_raw_ptr() as *mut ::qt_core::QObject,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QTorusGeometry* dynamic_cast<Qt3DExtras::QTorusGeometry*>(QObject* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_core::QObject>,
) -> ::cpp_core::MutPtr<crate::QTorusGeometry> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QTorusGeometry_ptr2(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QTorusMesh> for ::qt_3d_render::QGeometryRenderer {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QTorusMesh* static_cast<Qt3DExtras::QTorusMesh*>(Qt3DRender::QGeometryRenderer* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_3d_render::QGeometryRenderer>,
) -> ::cpp_core::Ptr<crate::QTorusMesh> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QTorusMesh_ptr(
ptr.as_raw_ptr() as *mut ::qt_3d_render::QGeometryRenderer,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QTorusMesh* static_cast<Qt3DExtras::QTorusMesh*>(Qt3DRender::QGeometryRenderer* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_render::QGeometryRenderer>,
) -> ::cpp_core::MutPtr<crate::QTorusMesh> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QTorusMesh_ptr(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_3d_render::QGeometryRenderer> for crate::QTorusMesh {
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QGeometryRenderer* static_cast<Qt3DRender::QGeometryRenderer*>(Qt3DExtras::QTorusMesh* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QTorusMesh>,
) -> ::cpp_core::Ptr<::qt_3d_render::QGeometryRenderer> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DRender_QGeometryRenderer_ptr6(
ptr.as_raw_ptr() as *mut crate::QTorusMesh,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QGeometryRenderer* static_cast<Qt3DRender::QGeometryRenderer*>(Qt3DExtras::QTorusMesh* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QTorusMesh>,
) -> ::cpp_core::MutPtr<::qt_3d_render::QGeometryRenderer> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DRender_QGeometryRenderer_ptr6(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::std::ops::Deref for crate::QTorusMesh {
type Target = ::qt_3d_render::QGeometryRenderer;
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QGeometryRenderer* static_cast<Qt3DRender::QGeometryRenderer*>(Qt3DExtras::QTorusMesh* ptr)```</span>.
fn deref(&self) -> &::qt_3d_render::QGeometryRenderer {
let ffi_result = unsafe {
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DRender_QGeometryRenderer_ptr6(
self as *const crate::QTorusMesh as *mut crate::QTorusMesh,
)
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::std::ops::DerefMut for crate::QTorusMesh {
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QGeometryRenderer* static_cast<Qt3DRender::QGeometryRenderer*>(Qt3DExtras::QTorusMesh* ptr)```</span>.
fn deref_mut(&mut self) -> &mut ::qt_3d_render::QGeometryRenderer {
let ffi_result = unsafe {
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DRender_QGeometryRenderer_ptr6(
self as *mut crate::QTorusMesh,
)
};
unsafe { ffi_result.as_mut() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_core::DynamicCast<crate::QTorusMesh> for ::qt_3d_render::QGeometryRenderer {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QTorusMesh* dynamic_cast<Qt3DExtras::QTorusMesh*>(Qt3DRender::QGeometryRenderer* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_3d_render::QGeometryRenderer>,
) -> ::cpp_core::Ptr<crate::QTorusMesh> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QTorusMesh_ptr(
ptr.as_raw_ptr() as *mut ::qt_3d_render::QGeometryRenderer,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QTorusMesh* dynamic_cast<Qt3DExtras::QTorusMesh*>(Qt3DRender::QGeometryRenderer* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_render::QGeometryRenderer>,
) -> ::cpp_core::MutPtr<crate::QTorusMesh> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QTorusMesh_ptr(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QTorusMesh> for ::qt_3d_core::QComponent {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QTorusMesh* static_cast<Qt3DExtras::QTorusMesh*>(Qt3DCore::QComponent* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QComponent>,
) -> ::cpp_core::Ptr<crate::QTorusMesh> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QTorusMesh_ptr1(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QComponent,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QTorusMesh* static_cast<Qt3DExtras::QTorusMesh*>(Qt3DCore::QComponent* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QComponent>,
) -> ::cpp_core::MutPtr<crate::QTorusMesh> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QTorusMesh_ptr1(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_3d_core::QComponent> for crate::QTorusMesh {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QComponent* static_cast<Qt3DCore::QComponent*>(Qt3DExtras::QTorusMesh* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QTorusMesh>,
) -> ::cpp_core::Ptr<::qt_3d_core::QComponent> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QComponent_ptr19(
ptr.as_raw_ptr() as *mut crate::QTorusMesh,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QComponent* static_cast<Qt3DCore::QComponent*>(Qt3DExtras::QTorusMesh* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QTorusMesh>,
) -> ::cpp_core::MutPtr<::qt_3d_core::QComponent> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QComponent_ptr19(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QTorusMesh> for ::qt_3d_core::QComponent {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QTorusMesh* dynamic_cast<Qt3DExtras::QTorusMesh*>(Qt3DCore::QComponent* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QComponent>,
) -> ::cpp_core::Ptr<crate::QTorusMesh> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QTorusMesh_ptr1(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QComponent,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QTorusMesh* dynamic_cast<Qt3DExtras::QTorusMesh*>(Qt3DCore::QComponent* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QComponent>,
) -> ::cpp_core::MutPtr<crate::QTorusMesh> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QTorusMesh_ptr1(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QTorusMesh> for ::qt_3d_core::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QTorusMesh* static_cast<Qt3DExtras::QTorusMesh*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QNode>,
) -> ::cpp_core::Ptr<crate::QTorusMesh> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QTorusMesh_ptr2(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QNode,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QTorusMesh* static_cast<Qt3DExtras::QTorusMesh*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QNode>,
) -> ::cpp_core::MutPtr<crate::QTorusMesh> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QTorusMesh_ptr2(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_3d_core::QNode> for crate::QTorusMesh {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DExtras::QTorusMesh* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QTorusMesh>,
) -> ::cpp_core::Ptr<::qt_3d_core::QNode> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QNode_ptr31(
ptr.as_raw_ptr() as *mut crate::QTorusMesh,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DExtras::QTorusMesh* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QTorusMesh>,
) -> ::cpp_core::MutPtr<::qt_3d_core::QNode> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QNode_ptr31(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QTorusMesh> for ::qt_3d_core::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QTorusMesh* dynamic_cast<Qt3DExtras::QTorusMesh*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QNode>,
) -> ::cpp_core::Ptr<crate::QTorusMesh> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QTorusMesh_ptr2(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QNode,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QTorusMesh* dynamic_cast<Qt3DExtras::QTorusMesh*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QNode>,
) -> ::cpp_core::MutPtr<crate::QTorusMesh> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QTorusMesh_ptr2(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticDowncast<crate::QTorusMesh> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QTorusMesh* static_cast<Qt3DExtras::QTorusMesh*>(QObject* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QTorusMesh> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QTorusMesh_ptr3(
ptr.as_raw_ptr() as *mut ::qt_core::QObject,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QTorusMesh* static_cast<Qt3DExtras::QTorusMesh*>(QObject* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_core::QObject>,
) -> ::cpp_core::MutPtr<crate::QTorusMesh> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QTorusMesh_ptr3(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_core::QObject> for crate::QTorusMesh {
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(Qt3DExtras::QTorusMesh* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QTorusMesh>,
) -> ::cpp_core::Ptr<::qt_core::QObject> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_QObject_ptr32(
ptr.as_raw_ptr() as *mut crate::QTorusMesh,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(Qt3DExtras::QTorusMesh* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QTorusMesh>,
) -> ::cpp_core::MutPtr<::qt_core::QObject> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_QObject_ptr32(ptr.as_mut_raw_ptr());
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::DynamicCast<crate::QTorusMesh> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QTorusMesh* dynamic_cast<Qt3DExtras::QTorusMesh*>(QObject* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QTorusMesh> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QTorusMesh_ptr3(
ptr.as_raw_ptr() as *mut ::qt_core::QObject,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QTorusMesh* dynamic_cast<Qt3DExtras::QTorusMesh*>(QObject* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_core::QObject>,
) -> ::cpp_core::MutPtr<crate::QTorusMesh> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QTorusMesh_ptr3(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::CppDeletable for crate::RawSlotOfQFont {
/// Calls C++ function: <span style='color: green;'>```[destructor] void ctr_qt_3d_extras_ffi_slot_wrapper_QFont_const_ref::~ctr_qt_3d_extras_ffi_slot_wrapper_QFont_const_ref()```</span>.
unsafe fn delete(&mut self) {
crate::__ffi::ctr_qt_3d_extras_ffi_ctr_qt_3d_extras_ffi_slot_wrapper_QFont_const_ref_dctr_qt_3d_extras_ffi_slot_wrapper_QFont_const_ref(self as *mut crate::RawSlotOfQFont)
}
}
impl ::cpp_core::StaticDowncast<crate::RawSlotOfQFont> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```ctr_qt_3d_extras_ffi_slot_wrapper_QFont_const_ref* static_cast<ctr_qt_3d_extras_ffi_slot_wrapper_QFont_const_ref*>(QObject* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::RawSlotOfQFont> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_ctr_qt_3d_extras_ffi_slot_wrapper_QFont_const_ref_ptr(ptr.as_raw_ptr() as *mut ::qt_core::QObject);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```ctr_qt_3d_extras_ffi_slot_wrapper_QFont_const_ref* static_cast<ctr_qt_3d_extras_ffi_slot_wrapper_QFont_const_ref*>(QObject* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_core::QObject>,
) -> ::cpp_core::MutPtr<crate::RawSlotOfQFont> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_ctr_qt_3d_extras_ffi_slot_wrapper_QFont_const_ref_ptr(ptr.as_mut_raw_ptr());
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::cpp_core::StaticUpcast<::qt_core::QObject> for crate::RawSlotOfQFont {
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(ctr_qt_3d_extras_ffi_slot_wrapper_QFont_const_ref* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::RawSlotOfQFont>,
) -> ::cpp_core::Ptr<::qt_core::QObject> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_QObject_ptr66(
ptr.as_raw_ptr() as *mut crate::RawSlotOfQFont,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(ctr_qt_3d_extras_ffi_slot_wrapper_QFont_const_ref* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::RawSlotOfQFont>,
) -> ::cpp_core::MutPtr<::qt_core::QObject> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_QObject_ptr66(ptr.as_mut_raw_ptr());
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
impl ::std::ops::Deref for crate::RawSlotOfQFont {
type Target = ::qt_core::QObject;
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(ctr_qt_3d_extras_ffi_slot_wrapper_QFont_const_ref* ptr)```</span>.
fn deref(&self) -> &::qt_core::QObject {
let ffi_result = unsafe {
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_QObject_ptr66(
self as *const crate::RawSlotOfQFont as *mut crate::RawSlotOfQFont,
)
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::std::ops::DerefMut for crate::RawSlotOfQFont {
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(ctr_qt_3d_extras_ffi_slot_wrapper_QFont_const_ref* ptr)```</span>.
fn deref_mut(&mut self) -> &mut ::qt_core::QObject {
let ffi_result = unsafe {
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_QObject_ptr66(
self as *mut crate::RawSlotOfQFont,
)
};
unsafe { ffi_result.as_mut() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_core::DynamicCast<crate::RawSlotOfQFont> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```ctr_qt_3d_extras_ffi_slot_wrapper_QFont_const_ref* dynamic_cast<ctr_qt_3d_extras_ffi_slot_wrapper_QFont_const_ref*>(QObject* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::RawSlotOfQFont> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_ctr_qt_3d_extras_ffi_slot_wrapper_QFont_const_ref_ptr(ptr.as_raw_ptr() as *mut ::qt_core::QObject);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```ctr_qt_3d_extras_ffi_slot_wrapper_QFont_const_ref* dynamic_cast<ctr_qt_3d_extras_ffi_slot_wrapper_QFont_const_ref*>(QObject* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_core::QObject>,
) -> ::cpp_core::MutPtr<crate::RawSlotOfQFont> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_ctr_qt_3d_extras_ffi_slot_wrapper_QFont_const_ref_ptr(ptr.as_mut_raw_ptr());
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::CppDeletable for crate::QAbstractCameraController {
/// <p>Destroys the instance of QAbstractCameraController. The destructor is virtual.</p>
///
/// Calls C++ function: <span style='color: green;'>```virtual [destructor] void Qt3DExtras::QAbstractCameraController::~QAbstractCameraController()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qabstractcameracontroller.html#dtor.QAbstractCameraController">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Destroys the instance of QAbstractCameraController. The destructor is virtual.</p></div>
unsafe fn delete(&mut self) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QAbstractCameraController_dQAbstractCameraController(self as *mut crate::QAbstractCameraController)
}
}
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::CppDeletable for crate::QAbstractSpriteSheet {
/// <p>Destroys the instance of QAbstractSpriteSheet. The destructor is virtual.</p>
///
/// Calls C++ function: <span style='color: green;'>```virtual [destructor] void Qt3DExtras::QAbstractSpriteSheet::~QAbstractSpriteSheet()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qabstractspritesheet.html#dtor.QAbstractSpriteSheet">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Destroys the instance of QAbstractSpriteSheet. The destructor is virtual.</p></div>
unsafe fn delete(&mut self) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QAbstractSpriteSheet_dQAbstractSpriteSheet(
self as *mut crate::QAbstractSpriteSheet,
)
}
}
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::CppDeletable for crate::QDiffuseSpecularMaterial {
/// <p>Destroys the <a href="http://doc.qt.io/qt-5/qt3dextras-qdiffusespecularmaterial.html">QDiffuseSpecularMaterial</a>.</p>
///
/// Calls C++ function: <span style='color: green;'>```virtual [destructor] void Qt3DExtras::QDiffuseSpecularMaterial::~QDiffuseSpecularMaterial()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qdiffusespecularmaterial.html#dtor.QDiffuseSpecularMaterial">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Destroys the <a href="http://doc.qt.io/qt-5/qt3dextras-qdiffusespecularmaterial.html">QDiffuseSpecularMaterial</a>.</p></div>
unsafe fn delete(&mut self) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QDiffuseSpecularMaterial_dQDiffuseSpecularMaterial(self as *mut crate::QDiffuseSpecularMaterial)
}
}
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::CppDeletable for crate::QSpriteGrid {
/// <p>Destroys the instance of QSpriteGrid. The destructor is virtual.</p>
///
/// Calls C++ function: <span style='color: green;'>```virtual [destructor] void Qt3DExtras::QSpriteGrid::~QSpriteGrid()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qspritegrid.html#dtor.QSpriteGrid">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Destroys the instance of QSpriteGrid. The destructor is virtual.</p></div>
unsafe fn delete(&mut self) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QSpriteGrid_dQSpriteGrid(
self as *mut crate::QSpriteGrid,
)
}
}
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::CppDeletable for crate::QSpriteSheet {
/// <p>Destroys the instance of QSpriteSheet. The destructor is virtual.</p>
///
/// Calls C++ function: <span style='color: green;'>```virtual [destructor] void Qt3DExtras::QSpriteSheet::~QSpriteSheet()```</span>.
///
/// <a href="http://doc.qt.io/qt-5/qt3dextras-qspritesheet.html#dtor.QSpriteSheet">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Destroys the instance of QSpriteSheet. The destructor is virtual.</p></div>
unsafe fn delete(&mut self) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QSpriteSheet_dQSpriteSheet(
self as *mut crate::QSpriteSheet,
)
}
}
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::CppDeletable for crate::QSpriteSheetItem {
/// Calls C++ function: <span style='color: green;'>```[destructor] void Qt3DExtras::QSpriteSheetItem::~QSpriteSheetItem()```</span>.
unsafe fn delete(&mut self) {
crate::__ffi::ctr_qt_3d_extras_ffi_Qt3DExtras_QSpriteSheetItem_dQSpriteSheetItem(
self as *mut crate::QSpriteSheetItem,
)
}
}
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::CppDeletable for crate::QVectorOfQSpriteSheetItem {
/// <p>Destroys the vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```[destructor] void QVector<Qt3DExtras::QSpriteSheetItem*>::~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>
unsafe fn delete(&mut self) {
crate::__ffi::ctr_qt_3d_extras_ffi_QVector_Qt3DExtras_QSpriteSheetItem_ptr_dQVector(
self as *mut crate::QVectorOfQSpriteSheetItem,
)
}
}
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::std::cmp::PartialEq<::cpp_core::Ref<crate::QVectorOfQSpriteSheetItem>>
for crate::QVectorOfQSpriteSheetItem
{
/// <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<Qt3DExtras::QSpriteSheetItem*>::operator==(const QVector<Qt3DExtras::QSpriteSheetItem*>& 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>
fn eq(&self, v: &::cpp_core::Ref<crate::QVectorOfQSpriteSheetItem>) -> bool {
unsafe {
crate::__ffi::ctr_qt_3d_extras_ffi_QVector_Qt3DExtras_QSpriteSheetItem_ptr_operator__(
self as *const crate::QVectorOfQSpriteSheetItem,
v.as_raw_ptr(),
)
}
}
}
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::vector_ops::Size for crate::QVectorOfQSpriteSheetItem {
/// <p>Returns the number of items in the vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```int QVector<Qt3DExtras::QSpriteSheetItem*>::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>
unsafe fn size(&self) -> usize {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_QVector_Qt3DExtras_QSpriteSheetItem_ptr_size(
self as *const crate::QVectorOfQSpriteSheetItem,
);
ffi_result as usize
}
}
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::vector_ops::DataMut for crate::QVectorOfQSpriteSheetItem {
type Output = ::cpp_core::MutPtr<*mut crate::QSpriteSheetItem>;
/// <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;'>```Qt3DExtras::QSpriteSheetItem** QVector<Qt3DExtras::QSpriteSheetItem*>::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>
unsafe fn data_mut(&mut self) -> ::cpp_core::MutPtr<*mut crate::QSpriteSheetItem> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_QVector_Qt3DExtras_QSpriteSheetItem_ptr_data(
self as *mut crate::QVectorOfQSpriteSheetItem,
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::std::ops::AddAssign<::cpp_core::Ref<crate::QVectorOfQSpriteSheetItem>>
for crate::QVectorOfQSpriteSheetItem
{
/// <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<Qt3DExtras::QSpriteSheetItem*>& QVector<Qt3DExtras::QSpriteSheetItem*>::operator+=(const QVector<Qt3DExtras::QSpriteSheetItem*>& 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>
fn add_assign(&mut self, l: ::cpp_core::Ref<crate::QVectorOfQSpriteSheetItem>) {
let ffi_result = unsafe {
crate::__ffi::ctr_qt_3d_extras_ffi_QVector_Qt3DExtras_QSpriteSheetItem_ptr_operator__4(
self as *mut crate::QVectorOfQSpriteSheetItem,
l.as_raw_ptr(),
)
};
let _ = ffi_result;
}
}
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::std::ops::Add<::cpp_core::Ref<crate::QVectorOfQSpriteSheetItem>>
for &crate::QVectorOfQSpriteSheetItem
{
type Output = ::cpp_core::CppBox<crate::QVectorOfQSpriteSheetItem>;
/// <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<Qt3DExtras::QSpriteSheetItem*> QVector<Qt3DExtras::QSpriteSheetItem*>::operator+(const QVector<Qt3DExtras::QSpriteSheetItem*>& 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>
fn add(
self,
l: ::cpp_core::Ref<crate::QVectorOfQSpriteSheetItem>,
) -> ::cpp_core::CppBox<crate::QVectorOfQSpriteSheetItem> {
let ffi_result = unsafe {
crate::__ffi::ctr_qt_3d_extras_ffi_QVector_Qt3DExtras_QSpriteSheetItem_ptr_operator_2(
self as *const crate::QVectorOfQSpriteSheetItem,
l.as_raw_ptr(),
)
};
unsafe {
::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
}
}
}
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::std::ops::Shl<::cpp_core::Ref<crate::QVectorOfQSpriteSheetItem>>
for &crate::QVectorOfQSpriteSheetItem
{
type Output = ::cpp_core::MutRef<crate::QVectorOfQSpriteSheetItem>;
/// <p>Appends <i>other</i> to the vector and returns a reference to the vector.</p>
///
/// Calls C++ function: <span style='color: green;'>```QVector<Qt3DExtras::QSpriteSheetItem*>& QVector<Qt3DExtras::QSpriteSheetItem*>::operator<<(const QVector<Qt3DExtras::QSpriteSheetItem*>& 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>
fn shl(
self,
l: ::cpp_core::Ref<crate::QVectorOfQSpriteSheetItem>,
) -> ::cpp_core::MutRef<crate::QVectorOfQSpriteSheetItem> {
let ffi_result = unsafe {
crate::__ffi::ctr_qt_3d_extras_ffi_QVector_Qt3DExtras_QSpriteSheetItem_ptr_operator__7(
self as *const crate::QVectorOfQSpriteSheetItem
as *mut crate::QVectorOfQSpriteSheetItem,
l.as_raw_ptr(),
)
};
unsafe {
::cpp_core::MutRef::from_raw(ffi_result).expect("attempted to construct a null Ref")
}
}
}
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::cmp::Lt<::cpp_core::Ref<crate::QVectorOfQSpriteSheetItem>>
for crate::QVectorOfQSpriteSheetItem
{
/// Calls C++ function: <span style='color: green;'>```bool operator<(const QVector<Qt3DExtras::QSpriteSheetItem*>& lhs, const QVector<Qt3DExtras::QSpriteSheetItem*>& rhs)```</span>.
unsafe fn lt(&self, rhs: &::cpp_core::Ref<crate::QVectorOfQSpriteSheetItem>) -> bool {
crate::__ffi::ctr_qt_3d_extras_ffi_operator_(
self as *const crate::QVectorOfQSpriteSheetItem,
rhs.as_raw_ptr(),
)
}
}
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::cmp::Gt<::cpp_core::Ref<crate::QVectorOfQSpriteSheetItem>>
for crate::QVectorOfQSpriteSheetItem
{
/// Calls C++ function: <span style='color: green;'>```bool operator>(const QVector<Qt3DExtras::QSpriteSheetItem*>& lhs, const QVector<Qt3DExtras::QSpriteSheetItem*>& rhs)```</span>.
unsafe fn gt(&self, rhs: &::cpp_core::Ref<crate::QVectorOfQSpriteSheetItem>) -> bool {
crate::__ffi::ctr_qt_3d_extras_ffi_operator_1(
self as *const crate::QVectorOfQSpriteSheetItem,
rhs.as_raw_ptr(),
)
}
}
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::cmp::Le<::cpp_core::Ref<crate::QVectorOfQSpriteSheetItem>>
for crate::QVectorOfQSpriteSheetItem
{
/// <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<Qt3DExtras::QSpriteSheetItem*>& lhs, const QVector<Qt3DExtras::QSpriteSheetItem*>& 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>
unsafe fn le(&self, rhs: &::cpp_core::Ref<crate::QVectorOfQSpriteSheetItem>) -> bool {
crate::__ffi::ctr_qt_3d_extras_ffi_operator__(
self as *const crate::QVectorOfQSpriteSheetItem,
rhs.as_raw_ptr(),
)
}
}
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::cmp::Ge<::cpp_core::Ref<crate::QVectorOfQSpriteSheetItem>>
for crate::QVectorOfQSpriteSheetItem
{
/// <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<Qt3DExtras::QSpriteSheetItem*>& lhs, const QVector<Qt3DExtras::QSpriteSheetItem*>& 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>
unsafe fn ge(&self, rhs: &::cpp_core::Ref<crate::QVectorOfQSpriteSheetItem>) -> bool {
crate::__ffi::ctr_qt_3d_extras_ffi_operator__1(
self as *const crate::QVectorOfQSpriteSheetItem,
rhs.as_raw_ptr(),
)
}
}
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::StaticDowncast<crate::QAbstractCameraController> for ::qt_3d_core::QEntity {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QAbstractCameraController* static_cast<Qt3DExtras::QAbstractCameraController*>(Qt3DCore::QEntity* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QEntity>,
) -> ::cpp_core::Ptr<crate::QAbstractCameraController> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QAbstractCameraController_ptr(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QEntity,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QAbstractCameraController* static_cast<Qt3DExtras::QAbstractCameraController*>(Qt3DCore::QEntity* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QEntity>,
) -> ::cpp_core::MutPtr<crate::QAbstractCameraController> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QAbstractCameraController_ptr(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::StaticUpcast<::qt_3d_core::QEntity> for crate::QAbstractCameraController {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QEntity* static_cast<Qt3DCore::QEntity*>(Qt3DExtras::QAbstractCameraController* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QAbstractCameraController>,
) -> ::cpp_core::Ptr<::qt_3d_core::QEntity> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QEntity_ptr8(
ptr.as_raw_ptr() as *mut crate::QAbstractCameraController,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QEntity* static_cast<Qt3DCore::QEntity*>(Qt3DExtras::QAbstractCameraController* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QAbstractCameraController>,
) -> ::cpp_core::MutPtr<::qt_3d_core::QEntity> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QEntity_ptr8(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::std::ops::Deref for crate::QAbstractCameraController {
type Target = ::qt_3d_core::QEntity;
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QEntity* static_cast<Qt3DCore::QEntity*>(Qt3DExtras::QAbstractCameraController* ptr)```</span>.
fn deref(&self) -> &::qt_3d_core::QEntity {
let ffi_result = unsafe {
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QEntity_ptr8(
self as *const crate::QAbstractCameraController
as *mut crate::QAbstractCameraController,
)
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::std::ops::DerefMut for crate::QAbstractCameraController {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QEntity* static_cast<Qt3DCore::QEntity*>(Qt3DExtras::QAbstractCameraController* ptr)```</span>.
fn deref_mut(&mut self) -> &mut ::qt_3d_core::QEntity {
let ffi_result = unsafe {
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QEntity_ptr8(
self as *mut crate::QAbstractCameraController,
)
};
unsafe { ffi_result.as_mut() }.expect("Attempted to convert null pointer to reference")
}
}
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::DynamicCast<crate::QAbstractCameraController> for ::qt_3d_core::QEntity {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QAbstractCameraController* dynamic_cast<Qt3DExtras::QAbstractCameraController*>(Qt3DCore::QEntity* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QEntity>,
) -> ::cpp_core::Ptr<crate::QAbstractCameraController> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QAbstractCameraController_ptr(ptr.as_raw_ptr() as *mut ::qt_3d_core::QEntity);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QAbstractCameraController* dynamic_cast<Qt3DExtras::QAbstractCameraController*>(Qt3DCore::QEntity* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QEntity>,
) -> ::cpp_core::MutPtr<crate::QAbstractCameraController> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QAbstractCameraController_ptr(ptr.as_mut_raw_ptr());
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::StaticDowncast<crate::QAbstractCameraController> for ::qt_3d_core::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QAbstractCameraController* static_cast<Qt3DExtras::QAbstractCameraController*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QNode>,
) -> ::cpp_core::Ptr<crate::QAbstractCameraController> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QAbstractCameraController_ptr1(ptr.as_raw_ptr() as *mut ::qt_3d_core::QNode);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QAbstractCameraController* static_cast<Qt3DExtras::QAbstractCameraController*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QNode>,
) -> ::cpp_core::MutPtr<crate::QAbstractCameraController> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QAbstractCameraController_ptr1(ptr.as_mut_raw_ptr());
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::StaticUpcast<::qt_3d_core::QNode> for crate::QAbstractCameraController {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DExtras::QAbstractCameraController* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QAbstractCameraController>,
) -> ::cpp_core::Ptr<::qt_3d_core::QNode> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QNode_ptr64(
ptr.as_raw_ptr() as *mut crate::QAbstractCameraController,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DExtras::QAbstractCameraController* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QAbstractCameraController>,
) -> ::cpp_core::MutPtr<::qt_3d_core::QNode> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QNode_ptr64(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::DynamicCast<crate::QAbstractCameraController> for ::qt_3d_core::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QAbstractCameraController* dynamic_cast<Qt3DExtras::QAbstractCameraController*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QNode>,
) -> ::cpp_core::Ptr<crate::QAbstractCameraController> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QAbstractCameraController_ptr1(ptr.as_raw_ptr() as *mut ::qt_3d_core::QNode);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QAbstractCameraController* dynamic_cast<Qt3DExtras::QAbstractCameraController*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QNode>,
) -> ::cpp_core::MutPtr<crate::QAbstractCameraController> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QAbstractCameraController_ptr1(ptr.as_mut_raw_ptr());
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::StaticDowncast<crate::QAbstractCameraController> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QAbstractCameraController* static_cast<Qt3DExtras::QAbstractCameraController*>(QObject* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QAbstractCameraController> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QAbstractCameraController_ptr2(ptr.as_raw_ptr() as *mut ::qt_core::QObject);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QAbstractCameraController* static_cast<Qt3DExtras::QAbstractCameraController*>(QObject* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_core::QObject>,
) -> ::cpp_core::MutPtr<crate::QAbstractCameraController> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QAbstractCameraController_ptr2(ptr.as_mut_raw_ptr());
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::StaticUpcast<::qt_core::QObject> for crate::QAbstractCameraController {
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(Qt3DExtras::QAbstractCameraController* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QAbstractCameraController>,
) -> ::cpp_core::Ptr<::qt_core::QObject> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_QObject_ptr70(
ptr.as_raw_ptr() as *mut crate::QAbstractCameraController,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(Qt3DExtras::QAbstractCameraController* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QAbstractCameraController>,
) -> ::cpp_core::MutPtr<::qt_core::QObject> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_QObject_ptr70(ptr.as_mut_raw_ptr());
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::DynamicCast<crate::QAbstractCameraController> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QAbstractCameraController* dynamic_cast<Qt3DExtras::QAbstractCameraController*>(QObject* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QAbstractCameraController> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QAbstractCameraController_ptr2(ptr.as_raw_ptr() as *mut ::qt_core::QObject);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QAbstractCameraController* dynamic_cast<Qt3DExtras::QAbstractCameraController*>(QObject* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_core::QObject>,
) -> ::cpp_core::MutPtr<crate::QAbstractCameraController> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QAbstractCameraController_ptr2(ptr.as_mut_raw_ptr());
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::StaticDowncast<crate::QAbstractSpriteSheet> for ::qt_3d_core::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QAbstractSpriteSheet* static_cast<Qt3DExtras::QAbstractSpriteSheet*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QNode>,
) -> ::cpp_core::Ptr<crate::QAbstractSpriteSheet> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QAbstractSpriteSheet_ptr(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QNode,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QAbstractSpriteSheet* static_cast<Qt3DExtras::QAbstractSpriteSheet*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QNode>,
) -> ::cpp_core::MutPtr<crate::QAbstractSpriteSheet> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QAbstractSpriteSheet_ptr(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::StaticUpcast<::qt_3d_core::QNode> for crate::QAbstractSpriteSheet {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DExtras::QAbstractSpriteSheet* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QAbstractSpriteSheet>,
) -> ::cpp_core::Ptr<::qt_3d_core::QNode> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QNode_ptr65(
ptr.as_raw_ptr() as *mut crate::QAbstractSpriteSheet,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DExtras::QAbstractSpriteSheet* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QAbstractSpriteSheet>,
) -> ::cpp_core::MutPtr<::qt_3d_core::QNode> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QNode_ptr65(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::std::ops::Deref for crate::QAbstractSpriteSheet {
type Target = ::qt_3d_core::QNode;
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DExtras::QAbstractSpriteSheet* ptr)```</span>.
fn deref(&self) -> &::qt_3d_core::QNode {
let ffi_result = unsafe {
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QNode_ptr65(
self as *const crate::QAbstractSpriteSheet as *mut crate::QAbstractSpriteSheet,
)
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::std::ops::DerefMut for crate::QAbstractSpriteSheet {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DExtras::QAbstractSpriteSheet* ptr)```</span>.
fn deref_mut(&mut self) -> &mut ::qt_3d_core::QNode {
let ffi_result = unsafe {
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QNode_ptr65(
self as *mut crate::QAbstractSpriteSheet,
)
};
unsafe { ffi_result.as_mut() }.expect("Attempted to convert null pointer to reference")
}
}
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::DynamicCast<crate::QAbstractSpriteSheet> for ::qt_3d_core::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QAbstractSpriteSheet* dynamic_cast<Qt3DExtras::QAbstractSpriteSheet*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QNode>,
) -> ::cpp_core::Ptr<crate::QAbstractSpriteSheet> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QAbstractSpriteSheet_ptr(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QNode,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QAbstractSpriteSheet* dynamic_cast<Qt3DExtras::QAbstractSpriteSheet*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QNode>,
) -> ::cpp_core::MutPtr<crate::QAbstractSpriteSheet> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QAbstractSpriteSheet_ptr(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::StaticDowncast<crate::QAbstractSpriteSheet> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QAbstractSpriteSheet* static_cast<Qt3DExtras::QAbstractSpriteSheet*>(QObject* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QAbstractSpriteSheet> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QAbstractSpriteSheet_ptr1(
ptr.as_raw_ptr() as *mut ::qt_core::QObject,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QAbstractSpriteSheet* static_cast<Qt3DExtras::QAbstractSpriteSheet*>(QObject* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_core::QObject>,
) -> ::cpp_core::MutPtr<crate::QAbstractSpriteSheet> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QAbstractSpriteSheet_ptr1(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::StaticUpcast<::qt_core::QObject> for crate::QAbstractSpriteSheet {
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(Qt3DExtras::QAbstractSpriteSheet* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QAbstractSpriteSheet>,
) -> ::cpp_core::Ptr<::qt_core::QObject> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_QObject_ptr71(
ptr.as_raw_ptr() as *mut crate::QAbstractSpriteSheet,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(Qt3DExtras::QAbstractSpriteSheet* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QAbstractSpriteSheet>,
) -> ::cpp_core::MutPtr<::qt_core::QObject> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_QObject_ptr71(ptr.as_mut_raw_ptr());
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::DynamicCast<crate::QAbstractSpriteSheet> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QAbstractSpriteSheet* dynamic_cast<Qt3DExtras::QAbstractSpriteSheet*>(QObject* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QAbstractSpriteSheet> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QAbstractSpriteSheet_ptr1(
ptr.as_raw_ptr() as *mut ::qt_core::QObject,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QAbstractSpriteSheet* dynamic_cast<Qt3DExtras::QAbstractSpriteSheet*>(QObject* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_core::QObject>,
) -> ::cpp_core::MutPtr<crate::QAbstractSpriteSheet> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QAbstractSpriteSheet_ptr1(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::StaticDowncast<crate::QDiffuseSpecularMaterial> for ::qt_3d_render::QMaterial {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QDiffuseSpecularMaterial* static_cast<Qt3DExtras::QDiffuseSpecularMaterial*>(Qt3DRender::QMaterial* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_3d_render::QMaterial>,
) -> ::cpp_core::Ptr<crate::QDiffuseSpecularMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QDiffuseSpecularMaterial_ptr(
ptr.as_raw_ptr() as *mut ::qt_3d_render::QMaterial,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QDiffuseSpecularMaterial* static_cast<Qt3DExtras::QDiffuseSpecularMaterial*>(Qt3DRender::QMaterial* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_render::QMaterial>,
) -> ::cpp_core::MutPtr<crate::QDiffuseSpecularMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QDiffuseSpecularMaterial_ptr(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::StaticUpcast<::qt_3d_render::QMaterial> for crate::QDiffuseSpecularMaterial {
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QMaterial* static_cast<Qt3DRender::QMaterial*>(Qt3DExtras::QDiffuseSpecularMaterial* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QDiffuseSpecularMaterial>,
) -> ::cpp_core::Ptr<::qt_3d_render::QMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DRender_QMaterial_ptr26(
ptr.as_raw_ptr() as *mut crate::QDiffuseSpecularMaterial,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QMaterial* static_cast<Qt3DRender::QMaterial*>(Qt3DExtras::QDiffuseSpecularMaterial* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QDiffuseSpecularMaterial>,
) -> ::cpp_core::MutPtr<::qt_3d_render::QMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DRender_QMaterial_ptr26(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::std::ops::Deref for crate::QDiffuseSpecularMaterial {
type Target = ::qt_3d_render::QMaterial;
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QMaterial* static_cast<Qt3DRender::QMaterial*>(Qt3DExtras::QDiffuseSpecularMaterial* ptr)```</span>.
fn deref(&self) -> &::qt_3d_render::QMaterial {
let ffi_result = unsafe {
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DRender_QMaterial_ptr26(
self as *const crate::QDiffuseSpecularMaterial
as *mut crate::QDiffuseSpecularMaterial,
)
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::std::ops::DerefMut for crate::QDiffuseSpecularMaterial {
/// Calls C++ function: <span style='color: green;'>```Qt3DRender::QMaterial* static_cast<Qt3DRender::QMaterial*>(Qt3DExtras::QDiffuseSpecularMaterial* ptr)```</span>.
fn deref_mut(&mut self) -> &mut ::qt_3d_render::QMaterial {
let ffi_result = unsafe {
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DRender_QMaterial_ptr26(
self as *mut crate::QDiffuseSpecularMaterial,
)
};
unsafe { ffi_result.as_mut() }.expect("Attempted to convert null pointer to reference")
}
}
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::DynamicCast<crate::QDiffuseSpecularMaterial> for ::qt_3d_render::QMaterial {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QDiffuseSpecularMaterial* dynamic_cast<Qt3DExtras::QDiffuseSpecularMaterial*>(Qt3DRender::QMaterial* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_3d_render::QMaterial>,
) -> ::cpp_core::Ptr<crate::QDiffuseSpecularMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QDiffuseSpecularMaterial_ptr(
ptr.as_raw_ptr() as *mut ::qt_3d_render::QMaterial,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QDiffuseSpecularMaterial* dynamic_cast<Qt3DExtras::QDiffuseSpecularMaterial*>(Qt3DRender::QMaterial* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_render::QMaterial>,
) -> ::cpp_core::MutPtr<crate::QDiffuseSpecularMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QDiffuseSpecularMaterial_ptr(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::StaticDowncast<crate::QDiffuseSpecularMaterial> for ::qt_3d_core::QComponent {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QDiffuseSpecularMaterial* static_cast<Qt3DExtras::QDiffuseSpecularMaterial*>(Qt3DCore::QComponent* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QComponent>,
) -> ::cpp_core::Ptr<crate::QDiffuseSpecularMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QDiffuseSpecularMaterial_ptr1(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QComponent,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QDiffuseSpecularMaterial* static_cast<Qt3DExtras::QDiffuseSpecularMaterial*>(Qt3DCore::QComponent* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QComponent>,
) -> ::cpp_core::MutPtr<crate::QDiffuseSpecularMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QDiffuseSpecularMaterial_ptr1(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::StaticUpcast<::qt_3d_core::QComponent> for crate::QDiffuseSpecularMaterial {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QComponent* static_cast<Qt3DCore::QComponent*>(Qt3DExtras::QDiffuseSpecularMaterial* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QDiffuseSpecularMaterial>,
) -> ::cpp_core::Ptr<::qt_3d_core::QComponent> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QComponent_ptr40(
ptr.as_raw_ptr() as *mut crate::QDiffuseSpecularMaterial,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QComponent* static_cast<Qt3DCore::QComponent*>(Qt3DExtras::QDiffuseSpecularMaterial* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QDiffuseSpecularMaterial>,
) -> ::cpp_core::MutPtr<::qt_3d_core::QComponent> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QComponent_ptr40(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::DynamicCast<crate::QDiffuseSpecularMaterial> for ::qt_3d_core::QComponent {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QDiffuseSpecularMaterial* dynamic_cast<Qt3DExtras::QDiffuseSpecularMaterial*>(Qt3DCore::QComponent* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QComponent>,
) -> ::cpp_core::Ptr<crate::QDiffuseSpecularMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QDiffuseSpecularMaterial_ptr1(ptr.as_raw_ptr() as *mut ::qt_3d_core::QComponent);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QDiffuseSpecularMaterial* dynamic_cast<Qt3DExtras::QDiffuseSpecularMaterial*>(Qt3DCore::QComponent* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QComponent>,
) -> ::cpp_core::MutPtr<crate::QDiffuseSpecularMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QDiffuseSpecularMaterial_ptr1(ptr.as_mut_raw_ptr());
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::StaticDowncast<crate::QDiffuseSpecularMaterial> for ::qt_3d_core::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QDiffuseSpecularMaterial* static_cast<Qt3DExtras::QDiffuseSpecularMaterial*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QNode>,
) -> ::cpp_core::Ptr<crate::QDiffuseSpecularMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QDiffuseSpecularMaterial_ptr2(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QNode,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QDiffuseSpecularMaterial* static_cast<Qt3DExtras::QDiffuseSpecularMaterial*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QNode>,
) -> ::cpp_core::MutPtr<crate::QDiffuseSpecularMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QDiffuseSpecularMaterial_ptr2(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::StaticUpcast<::qt_3d_core::QNode> for crate::QDiffuseSpecularMaterial {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DExtras::QDiffuseSpecularMaterial* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QDiffuseSpecularMaterial>,
) -> ::cpp_core::Ptr<::qt_3d_core::QNode> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QNode_ptr66(
ptr.as_raw_ptr() as *mut crate::QDiffuseSpecularMaterial,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DExtras::QDiffuseSpecularMaterial* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QDiffuseSpecularMaterial>,
) -> ::cpp_core::MutPtr<::qt_3d_core::QNode> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QNode_ptr66(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::DynamicCast<crate::QDiffuseSpecularMaterial> for ::qt_3d_core::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QDiffuseSpecularMaterial* dynamic_cast<Qt3DExtras::QDiffuseSpecularMaterial*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QNode>,
) -> ::cpp_core::Ptr<crate::QDiffuseSpecularMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QDiffuseSpecularMaterial_ptr2(ptr.as_raw_ptr() as *mut ::qt_3d_core::QNode);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QDiffuseSpecularMaterial* dynamic_cast<Qt3DExtras::QDiffuseSpecularMaterial*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QNode>,
) -> ::cpp_core::MutPtr<crate::QDiffuseSpecularMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QDiffuseSpecularMaterial_ptr2(ptr.as_mut_raw_ptr());
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::StaticDowncast<crate::QDiffuseSpecularMaterial> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QDiffuseSpecularMaterial* static_cast<Qt3DExtras::QDiffuseSpecularMaterial*>(QObject* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QDiffuseSpecularMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QDiffuseSpecularMaterial_ptr3(
ptr.as_raw_ptr() as *mut ::qt_core::QObject,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QDiffuseSpecularMaterial* static_cast<Qt3DExtras::QDiffuseSpecularMaterial*>(QObject* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_core::QObject>,
) -> ::cpp_core::MutPtr<crate::QDiffuseSpecularMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QDiffuseSpecularMaterial_ptr3(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::StaticUpcast<::qt_core::QObject> for crate::QDiffuseSpecularMaterial {
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(Qt3DExtras::QDiffuseSpecularMaterial* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QDiffuseSpecularMaterial>,
) -> ::cpp_core::Ptr<::qt_core::QObject> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_QObject_ptr72(
ptr.as_raw_ptr() as *mut crate::QDiffuseSpecularMaterial,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(Qt3DExtras::QDiffuseSpecularMaterial* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QDiffuseSpecularMaterial>,
) -> ::cpp_core::MutPtr<::qt_core::QObject> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_QObject_ptr72(ptr.as_mut_raw_ptr());
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::DynamicCast<crate::QDiffuseSpecularMaterial> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QDiffuseSpecularMaterial* dynamic_cast<Qt3DExtras::QDiffuseSpecularMaterial*>(QObject* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QDiffuseSpecularMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QDiffuseSpecularMaterial_ptr3(ptr.as_raw_ptr() as *mut ::qt_core::QObject);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QDiffuseSpecularMaterial* dynamic_cast<Qt3DExtras::QDiffuseSpecularMaterial*>(QObject* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_core::QObject>,
) -> ::cpp_core::MutPtr<crate::QDiffuseSpecularMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QDiffuseSpecularMaterial_ptr3(ptr.as_mut_raw_ptr());
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::StaticDowncast<crate::QFirstPersonCameraController>
for crate::QAbstractCameraController
{
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QFirstPersonCameraController* static_cast<Qt3DExtras::QFirstPersonCameraController*>(Qt3DExtras::QAbstractCameraController* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<crate::QAbstractCameraController>,
) -> ::cpp_core::Ptr<crate::QFirstPersonCameraController> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QFirstPersonCameraController_ptr6(ptr.as_raw_ptr() as *mut crate::QAbstractCameraController);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QFirstPersonCameraController* static_cast<Qt3DExtras::QFirstPersonCameraController*>(Qt3DExtras::QAbstractCameraController* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<crate::QAbstractCameraController>,
) -> ::cpp_core::MutPtr<crate::QFirstPersonCameraController> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QFirstPersonCameraController_ptr6(ptr.as_mut_raw_ptr());
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::StaticUpcast<crate::QAbstractCameraController>
for crate::QFirstPersonCameraController
{
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QAbstractCameraController* static_cast<Qt3DExtras::QAbstractCameraController*>(Qt3DExtras::QFirstPersonCameraController* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QFirstPersonCameraController>,
) -> ::cpp_core::Ptr<crate::QAbstractCameraController> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QAbstractCameraController_ptr3(ptr.as_raw_ptr() as *mut crate::QFirstPersonCameraController);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QAbstractCameraController* static_cast<Qt3DExtras::QAbstractCameraController*>(Qt3DExtras::QFirstPersonCameraController* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QFirstPersonCameraController>,
) -> ::cpp_core::MutPtr<crate::QAbstractCameraController> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QAbstractCameraController_ptr3(ptr.as_mut_raw_ptr());
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::DynamicCast<crate::QFirstPersonCameraController>
for crate::QAbstractCameraController
{
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QFirstPersonCameraController* dynamic_cast<Qt3DExtras::QFirstPersonCameraController*>(Qt3DExtras::QAbstractCameraController* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<crate::QAbstractCameraController>,
) -> ::cpp_core::Ptr<crate::QFirstPersonCameraController> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QFirstPersonCameraController_ptr6(ptr.as_raw_ptr() as *mut crate::QAbstractCameraController);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QFirstPersonCameraController* dynamic_cast<Qt3DExtras::QFirstPersonCameraController*>(Qt3DExtras::QAbstractCameraController* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<crate::QAbstractCameraController>,
) -> ::cpp_core::MutPtr<crate::QFirstPersonCameraController> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QFirstPersonCameraController_ptr6(ptr.as_mut_raw_ptr());
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::StaticDowncast<crate::QOrbitCameraController>
for crate::QAbstractCameraController
{
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QOrbitCameraController* static_cast<Qt3DExtras::QOrbitCameraController*>(Qt3DExtras::QAbstractCameraController* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<crate::QAbstractCameraController>,
) -> ::cpp_core::Ptr<crate::QOrbitCameraController> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QOrbitCameraController_ptr6(
ptr.as_raw_ptr() as *mut crate::QAbstractCameraController,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QOrbitCameraController* static_cast<Qt3DExtras::QOrbitCameraController*>(Qt3DExtras::QAbstractCameraController* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<crate::QAbstractCameraController>,
) -> ::cpp_core::MutPtr<crate::QOrbitCameraController> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QOrbitCameraController_ptr6(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::StaticUpcast<crate::QAbstractCameraController> for crate::QOrbitCameraController {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QAbstractCameraController* static_cast<Qt3DExtras::QAbstractCameraController*>(Qt3DExtras::QOrbitCameraController* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QOrbitCameraController>,
) -> ::cpp_core::Ptr<crate::QAbstractCameraController> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QAbstractCameraController_ptr4(ptr.as_raw_ptr() as *mut crate::QOrbitCameraController);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QAbstractCameraController* static_cast<Qt3DExtras::QAbstractCameraController*>(Qt3DExtras::QOrbitCameraController* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QOrbitCameraController>,
) -> ::cpp_core::MutPtr<crate::QAbstractCameraController> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QAbstractCameraController_ptr4(ptr.as_mut_raw_ptr());
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::DynamicCast<crate::QOrbitCameraController> for crate::QAbstractCameraController {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QOrbitCameraController* dynamic_cast<Qt3DExtras::QOrbitCameraController*>(Qt3DExtras::QAbstractCameraController* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<crate::QAbstractCameraController>,
) -> ::cpp_core::Ptr<crate::QOrbitCameraController> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QOrbitCameraController_ptr6(
ptr.as_raw_ptr() as *mut crate::QAbstractCameraController,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QOrbitCameraController* dynamic_cast<Qt3DExtras::QOrbitCameraController*>(Qt3DExtras::QAbstractCameraController* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<crate::QAbstractCameraController>,
) -> ::cpp_core::MutPtr<crate::QOrbitCameraController> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QOrbitCameraController_ptr6(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::StaticDowncast<crate::QSpriteGrid> for crate::QAbstractSpriteSheet {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QSpriteGrid* static_cast<Qt3DExtras::QSpriteGrid*>(Qt3DExtras::QAbstractSpriteSheet* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<crate::QAbstractSpriteSheet>,
) -> ::cpp_core::Ptr<crate::QSpriteGrid> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QSpriteGrid_ptr(
ptr.as_raw_ptr() as *mut crate::QAbstractSpriteSheet,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QSpriteGrid* static_cast<Qt3DExtras::QSpriteGrid*>(Qt3DExtras::QAbstractSpriteSheet* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<crate::QAbstractSpriteSheet>,
) -> ::cpp_core::MutPtr<crate::QSpriteGrid> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QSpriteGrid_ptr(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::StaticUpcast<crate::QAbstractSpriteSheet> for crate::QSpriteGrid {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QAbstractSpriteSheet* static_cast<Qt3DExtras::QAbstractSpriteSheet*>(Qt3DExtras::QSpriteGrid* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QSpriteGrid>,
) -> ::cpp_core::Ptr<crate::QAbstractSpriteSheet> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QAbstractSpriteSheet_ptr2(
ptr.as_raw_ptr() as *mut crate::QSpriteGrid,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QAbstractSpriteSheet* static_cast<Qt3DExtras::QAbstractSpriteSheet*>(Qt3DExtras::QSpriteGrid* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QSpriteGrid>,
) -> ::cpp_core::MutPtr<crate::QAbstractSpriteSheet> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QAbstractSpriteSheet_ptr2(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::std::ops::Deref for crate::QSpriteGrid {
type Target = crate::QAbstractSpriteSheet;
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QAbstractSpriteSheet* static_cast<Qt3DExtras::QAbstractSpriteSheet*>(Qt3DExtras::QSpriteGrid* ptr)```</span>.
fn deref(&self) -> &crate::QAbstractSpriteSheet {
let ffi_result = unsafe {
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QAbstractSpriteSheet_ptr2(
self as *const crate::QSpriteGrid as *mut crate::QSpriteGrid,
)
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::std::ops::DerefMut for crate::QSpriteGrid {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QAbstractSpriteSheet* static_cast<Qt3DExtras::QAbstractSpriteSheet*>(Qt3DExtras::QSpriteGrid* ptr)```</span>.
fn deref_mut(&mut self) -> &mut crate::QAbstractSpriteSheet {
let ffi_result = unsafe {
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QAbstractSpriteSheet_ptr2(
self as *mut crate::QSpriteGrid,
)
};
unsafe { ffi_result.as_mut() }.expect("Attempted to convert null pointer to reference")
}
}
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::DynamicCast<crate::QSpriteGrid> for crate::QAbstractSpriteSheet {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QSpriteGrid* dynamic_cast<Qt3DExtras::QSpriteGrid*>(Qt3DExtras::QAbstractSpriteSheet* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<crate::QAbstractSpriteSheet>,
) -> ::cpp_core::Ptr<crate::QSpriteGrid> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QSpriteGrid_ptr(
ptr.as_raw_ptr() as *mut crate::QAbstractSpriteSheet,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QSpriteGrid* dynamic_cast<Qt3DExtras::QSpriteGrid*>(Qt3DExtras::QAbstractSpriteSheet* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<crate::QAbstractSpriteSheet>,
) -> ::cpp_core::MutPtr<crate::QSpriteGrid> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QSpriteGrid_ptr(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::StaticDowncast<crate::QSpriteGrid> for ::qt_3d_core::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QSpriteGrid* static_cast<Qt3DExtras::QSpriteGrid*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QNode>,
) -> ::cpp_core::Ptr<crate::QSpriteGrid> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QSpriteGrid_ptr1(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QNode,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QSpriteGrid* static_cast<Qt3DExtras::QSpriteGrid*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QNode>,
) -> ::cpp_core::MutPtr<crate::QSpriteGrid> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QSpriteGrid_ptr1(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::StaticUpcast<::qt_3d_core::QNode> for crate::QSpriteGrid {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DExtras::QSpriteGrid* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QSpriteGrid>,
) -> ::cpp_core::Ptr<::qt_3d_core::QNode> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QNode_ptr67(
ptr.as_raw_ptr() as *mut crate::QSpriteGrid,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DExtras::QSpriteGrid* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QSpriteGrid>,
) -> ::cpp_core::MutPtr<::qt_3d_core::QNode> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QNode_ptr67(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::DynamicCast<crate::QSpriteGrid> for ::qt_3d_core::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QSpriteGrid* dynamic_cast<Qt3DExtras::QSpriteGrid*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QNode>,
) -> ::cpp_core::Ptr<crate::QSpriteGrid> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QSpriteGrid_ptr1(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QNode,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QSpriteGrid* dynamic_cast<Qt3DExtras::QSpriteGrid*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QNode>,
) -> ::cpp_core::MutPtr<crate::QSpriteGrid> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QSpriteGrid_ptr1(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::StaticDowncast<crate::QSpriteGrid> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QSpriteGrid* static_cast<Qt3DExtras::QSpriteGrid*>(QObject* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QSpriteGrid> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QSpriteGrid_ptr2(
ptr.as_raw_ptr() as *mut ::qt_core::QObject,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QSpriteGrid* static_cast<Qt3DExtras::QSpriteGrid*>(QObject* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_core::QObject>,
) -> ::cpp_core::MutPtr<crate::QSpriteGrid> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QSpriteGrid_ptr2(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::StaticUpcast<::qt_core::QObject> for crate::QSpriteGrid {
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(Qt3DExtras::QSpriteGrid* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QSpriteGrid>,
) -> ::cpp_core::Ptr<::qt_core::QObject> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_QObject_ptr73(
ptr.as_raw_ptr() as *mut crate::QSpriteGrid,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(Qt3DExtras::QSpriteGrid* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QSpriteGrid>,
) -> ::cpp_core::MutPtr<::qt_core::QObject> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_QObject_ptr73(ptr.as_mut_raw_ptr());
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::DynamicCast<crate::QSpriteGrid> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QSpriteGrid* dynamic_cast<Qt3DExtras::QSpriteGrid*>(QObject* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QSpriteGrid> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QSpriteGrid_ptr2(
ptr.as_raw_ptr() as *mut ::qt_core::QObject,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QSpriteGrid* dynamic_cast<Qt3DExtras::QSpriteGrid*>(QObject* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_core::QObject>,
) -> ::cpp_core::MutPtr<crate::QSpriteGrid> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QSpriteGrid_ptr2(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::StaticDowncast<crate::QSpriteSheet> for crate::QAbstractSpriteSheet {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QSpriteSheet* static_cast<Qt3DExtras::QSpriteSheet*>(Qt3DExtras::QAbstractSpriteSheet* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<crate::QAbstractSpriteSheet>,
) -> ::cpp_core::Ptr<crate::QSpriteSheet> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QSpriteSheet_ptr(
ptr.as_raw_ptr() as *mut crate::QAbstractSpriteSheet,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QSpriteSheet* static_cast<Qt3DExtras::QSpriteSheet*>(Qt3DExtras::QAbstractSpriteSheet* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<crate::QAbstractSpriteSheet>,
) -> ::cpp_core::MutPtr<crate::QSpriteSheet> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QSpriteSheet_ptr(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::StaticUpcast<crate::QAbstractSpriteSheet> for crate::QSpriteSheet {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QAbstractSpriteSheet* static_cast<Qt3DExtras::QAbstractSpriteSheet*>(Qt3DExtras::QSpriteSheet* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QSpriteSheet>,
) -> ::cpp_core::Ptr<crate::QAbstractSpriteSheet> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QAbstractSpriteSheet_ptr3(
ptr.as_raw_ptr() as *mut crate::QSpriteSheet,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QAbstractSpriteSheet* static_cast<Qt3DExtras::QAbstractSpriteSheet*>(Qt3DExtras::QSpriteSheet* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QSpriteSheet>,
) -> ::cpp_core::MutPtr<crate::QAbstractSpriteSheet> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QAbstractSpriteSheet_ptr3(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::std::ops::Deref for crate::QSpriteSheet {
type Target = crate::QAbstractSpriteSheet;
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QAbstractSpriteSheet* static_cast<Qt3DExtras::QAbstractSpriteSheet*>(Qt3DExtras::QSpriteSheet* ptr)```</span>.
fn deref(&self) -> &crate::QAbstractSpriteSheet {
let ffi_result = unsafe {
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QAbstractSpriteSheet_ptr3(
self as *const crate::QSpriteSheet as *mut crate::QSpriteSheet,
)
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::std::ops::DerefMut for crate::QSpriteSheet {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QAbstractSpriteSheet* static_cast<Qt3DExtras::QAbstractSpriteSheet*>(Qt3DExtras::QSpriteSheet* ptr)```</span>.
fn deref_mut(&mut self) -> &mut crate::QAbstractSpriteSheet {
let ffi_result = unsafe {
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QAbstractSpriteSheet_ptr3(
self as *mut crate::QSpriteSheet,
)
};
unsafe { ffi_result.as_mut() }.expect("Attempted to convert null pointer to reference")
}
}
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::DynamicCast<crate::QSpriteSheet> for crate::QAbstractSpriteSheet {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QSpriteSheet* dynamic_cast<Qt3DExtras::QSpriteSheet*>(Qt3DExtras::QAbstractSpriteSheet* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<crate::QAbstractSpriteSheet>,
) -> ::cpp_core::Ptr<crate::QSpriteSheet> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QSpriteSheet_ptr(
ptr.as_raw_ptr() as *mut crate::QAbstractSpriteSheet,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QSpriteSheet* dynamic_cast<Qt3DExtras::QSpriteSheet*>(Qt3DExtras::QAbstractSpriteSheet* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<crate::QAbstractSpriteSheet>,
) -> ::cpp_core::MutPtr<crate::QSpriteSheet> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QSpriteSheet_ptr(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::StaticDowncast<crate::QSpriteSheet> for ::qt_3d_core::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QSpriteSheet* static_cast<Qt3DExtras::QSpriteSheet*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QNode>,
) -> ::cpp_core::Ptr<crate::QSpriteSheet> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QSpriteSheet_ptr1(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QNode,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QSpriteSheet* static_cast<Qt3DExtras::QSpriteSheet*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QNode>,
) -> ::cpp_core::MutPtr<crate::QSpriteSheet> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QSpriteSheet_ptr1(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::StaticUpcast<::qt_3d_core::QNode> for crate::QSpriteSheet {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DExtras::QSpriteSheet* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QSpriteSheet>,
) -> ::cpp_core::Ptr<::qt_3d_core::QNode> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QNode_ptr68(
ptr.as_raw_ptr() as *mut crate::QSpriteSheet,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DExtras::QSpriteSheet* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QSpriteSheet>,
) -> ::cpp_core::MutPtr<::qt_3d_core::QNode> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QNode_ptr68(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::DynamicCast<crate::QSpriteSheet> for ::qt_3d_core::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QSpriteSheet* dynamic_cast<Qt3DExtras::QSpriteSheet*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QNode>,
) -> ::cpp_core::Ptr<crate::QSpriteSheet> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QSpriteSheet_ptr1(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QNode,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QSpriteSheet* dynamic_cast<Qt3DExtras::QSpriteSheet*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QNode>,
) -> ::cpp_core::MutPtr<crate::QSpriteSheet> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QSpriteSheet_ptr1(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::StaticDowncast<crate::QSpriteSheet> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QSpriteSheet* static_cast<Qt3DExtras::QSpriteSheet*>(QObject* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QSpriteSheet> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QSpriteSheet_ptr2(
ptr.as_raw_ptr() as *mut ::qt_core::QObject,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QSpriteSheet* static_cast<Qt3DExtras::QSpriteSheet*>(QObject* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_core::QObject>,
) -> ::cpp_core::MutPtr<crate::QSpriteSheet> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QSpriteSheet_ptr2(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::StaticUpcast<::qt_core::QObject> for crate::QSpriteSheet {
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(Qt3DExtras::QSpriteSheet* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QSpriteSheet>,
) -> ::cpp_core::Ptr<::qt_core::QObject> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_QObject_ptr74(
ptr.as_raw_ptr() as *mut crate::QSpriteSheet,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(Qt3DExtras::QSpriteSheet* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QSpriteSheet>,
) -> ::cpp_core::MutPtr<::qt_core::QObject> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_QObject_ptr74(ptr.as_mut_raw_ptr());
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::DynamicCast<crate::QSpriteSheet> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QSpriteSheet* dynamic_cast<Qt3DExtras::QSpriteSheet*>(QObject* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QSpriteSheet> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QSpriteSheet_ptr2(
ptr.as_raw_ptr() as *mut ::qt_core::QObject,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QSpriteSheet* dynamic_cast<Qt3DExtras::QSpriteSheet*>(QObject* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_core::QObject>,
) -> ::cpp_core::MutPtr<crate::QSpriteSheet> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QSpriteSheet_ptr2(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::StaticDowncast<crate::QSpriteSheetItem> for ::qt_3d_core::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QSpriteSheetItem* static_cast<Qt3DExtras::QSpriteSheetItem*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QNode>,
) -> ::cpp_core::Ptr<crate::QSpriteSheetItem> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QSpriteSheetItem_ptr(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QNode,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QSpriteSheetItem* static_cast<Qt3DExtras::QSpriteSheetItem*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QNode>,
) -> ::cpp_core::MutPtr<crate::QSpriteSheetItem> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QSpriteSheetItem_ptr(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::StaticUpcast<::qt_3d_core::QNode> for crate::QSpriteSheetItem {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DExtras::QSpriteSheetItem* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QSpriteSheetItem>,
) -> ::cpp_core::Ptr<::qt_3d_core::QNode> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QNode_ptr69(
ptr.as_raw_ptr() as *mut crate::QSpriteSheetItem,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DExtras::QSpriteSheetItem* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QSpriteSheetItem>,
) -> ::cpp_core::MutPtr<::qt_3d_core::QNode> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QNode_ptr69(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::std::ops::Deref for crate::QSpriteSheetItem {
type Target = ::qt_3d_core::QNode;
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DExtras::QSpriteSheetItem* ptr)```</span>.
fn deref(&self) -> &::qt_3d_core::QNode {
let ffi_result = unsafe {
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QNode_ptr69(
self as *const crate::QSpriteSheetItem as *mut crate::QSpriteSheetItem,
)
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::std::ops::DerefMut for crate::QSpriteSheetItem {
/// Calls C++ function: <span style='color: green;'>```Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DExtras::QSpriteSheetItem* ptr)```</span>.
fn deref_mut(&mut self) -> &mut ::qt_3d_core::QNode {
let ffi_result = unsafe {
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DCore_QNode_ptr69(
self as *mut crate::QSpriteSheetItem,
)
};
unsafe { ffi_result.as_mut() }.expect("Attempted to convert null pointer to reference")
}
}
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::DynamicCast<crate::QSpriteSheetItem> for ::qt_3d_core::QNode {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QSpriteSheetItem* dynamic_cast<Qt3DExtras::QSpriteSheetItem*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_3d_core::QNode>,
) -> ::cpp_core::Ptr<crate::QSpriteSheetItem> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QSpriteSheetItem_ptr(
ptr.as_raw_ptr() as *mut ::qt_3d_core::QNode,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QSpriteSheetItem* dynamic_cast<Qt3DExtras::QSpriteSheetItem*>(Qt3DCore::QNode* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_3d_core::QNode>,
) -> ::cpp_core::MutPtr<crate::QSpriteSheetItem> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QSpriteSheetItem_ptr(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::StaticDowncast<crate::QSpriteSheetItem> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QSpriteSheetItem* static_cast<Qt3DExtras::QSpriteSheetItem*>(QObject* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QSpriteSheetItem> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QSpriteSheetItem_ptr1(
ptr.as_raw_ptr() as *mut ::qt_core::QObject,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QSpriteSheetItem* static_cast<Qt3DExtras::QSpriteSheetItem*>(QObject* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<::qt_core::QObject>,
) -> ::cpp_core::MutPtr<crate::QSpriteSheetItem> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QSpriteSheetItem_ptr1(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::StaticUpcast<::qt_core::QObject> for crate::QSpriteSheetItem {
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(Qt3DExtras::QSpriteSheetItem* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QSpriteSheetItem>,
) -> ::cpp_core::Ptr<::qt_core::QObject> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_QObject_ptr75(
ptr.as_raw_ptr() as *mut crate::QSpriteSheetItem,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```QObject* static_cast<QObject*>(Qt3DExtras::QSpriteSheetItem* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QSpriteSheetItem>,
) -> ::cpp_core::MutPtr<::qt_core::QObject> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_QObject_ptr75(ptr.as_mut_raw_ptr());
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::DynamicCast<crate::QSpriteSheetItem> for ::qt_core::QObject {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QSpriteSheetItem* dynamic_cast<Qt3DExtras::QSpriteSheetItem*>(QObject* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<::qt_core::QObject>,
) -> ::cpp_core::Ptr<crate::QSpriteSheetItem> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QSpriteSheetItem_ptr1(
ptr.as_raw_ptr() as *mut ::qt_core::QObject,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QSpriteSheetItem* dynamic_cast<Qt3DExtras::QSpriteSheetItem*>(QObject* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<::qt_core::QObject>,
) -> ::cpp_core::MutPtr<crate::QSpriteSheetItem> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QSpriteSheetItem_ptr1(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::StaticDowncast<crate::QTexturedMetalRoughMaterial> for crate::QMetalRoughMaterial {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QTexturedMetalRoughMaterial* static_cast<Qt3DExtras::QTexturedMetalRoughMaterial*>(Qt3DExtras::QMetalRoughMaterial* ptr)```</span>.
unsafe fn static_downcast(
ptr: ::cpp_core::Ptr<crate::QMetalRoughMaterial>,
) -> ::cpp_core::Ptr<crate::QTexturedMetalRoughMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QTexturedMetalRoughMaterial_ptr8(ptr.as_raw_ptr() as *mut crate::QMetalRoughMaterial);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QTexturedMetalRoughMaterial* static_cast<Qt3DExtras::QTexturedMetalRoughMaterial*>(Qt3DExtras::QMetalRoughMaterial* ptr)```</span>.
unsafe fn static_downcast_mut(
ptr: ::cpp_core::MutPtr<crate::QMetalRoughMaterial>,
) -> ::cpp_core::MutPtr<crate::QTexturedMetalRoughMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QTexturedMetalRoughMaterial_ptr8(ptr.as_mut_raw_ptr());
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::StaticUpcast<crate::QMetalRoughMaterial> for crate::QTexturedMetalRoughMaterial {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QMetalRoughMaterial* static_cast<Qt3DExtras::QMetalRoughMaterial*>(Qt3DExtras::QTexturedMetalRoughMaterial* ptr)```</span>.
unsafe fn static_upcast(
ptr: ::cpp_core::Ptr<crate::QTexturedMetalRoughMaterial>,
) -> ::cpp_core::Ptr<crate::QMetalRoughMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QMetalRoughMaterial_ptr8(
ptr.as_raw_ptr() as *mut crate::QTexturedMetalRoughMaterial,
);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QMetalRoughMaterial* static_cast<Qt3DExtras::QMetalRoughMaterial*>(Qt3DExtras::QTexturedMetalRoughMaterial* ptr)```</span>.
unsafe fn static_upcast_mut(
ptr: ::cpp_core::MutPtr<crate::QTexturedMetalRoughMaterial>,
) -> ::cpp_core::MutPtr<crate::QMetalRoughMaterial> {
let ffi_result =
crate::__ffi::ctr_qt_3d_extras_ffi_static_cast_Qt3DExtras_QMetalRoughMaterial_ptr8(
ptr.as_mut_raw_ptr(),
);
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
impl ::cpp_core::DynamicCast<crate::QTexturedMetalRoughMaterial> for crate::QMetalRoughMaterial {
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QTexturedMetalRoughMaterial* dynamic_cast<Qt3DExtras::QTexturedMetalRoughMaterial*>(Qt3DExtras::QMetalRoughMaterial* ptr)```</span>.
unsafe fn dynamic_cast(
ptr: ::cpp_core::Ptr<crate::QMetalRoughMaterial>,
) -> ::cpp_core::Ptr<crate::QTexturedMetalRoughMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QTexturedMetalRoughMaterial_ptr8(ptr.as_raw_ptr() as *mut crate::QMetalRoughMaterial);
::cpp_core::Ptr::from_raw(ffi_result)
}
/// Calls C++ function: <span style='color: green;'>```Qt3DExtras::QTexturedMetalRoughMaterial* dynamic_cast<Qt3DExtras::QTexturedMetalRoughMaterial*>(Qt3DExtras::QMetalRoughMaterial* ptr)```</span>.
unsafe fn dynamic_cast_mut(
ptr: ::cpp_core::MutPtr<crate::QMetalRoughMaterial>,
) -> ::cpp_core::MutPtr<crate::QTexturedMetalRoughMaterial> {
let ffi_result = crate::__ffi::ctr_qt_3d_extras_ffi_dynamic_cast_Qt3DExtras_QTexturedMetalRoughMaterial_ptr8(ptr.as_mut_raw_ptr());
::cpp_core::MutPtr::from_raw(ffi_result)
}
}
/// Calls C++ function: <span style='color: green;'>```unsigned int qHash(const QVector<Qt3DExtras::QSpriteSheetItem*>& key, unsigned int seed = …)```</span>.
///
///
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn q_hash_2a(
key: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QVectorOfQSpriteSheetItem>>,
seed: ::std::os::raw::c_uint,
) -> ::std::os::raw::c_uint {
crate::__ffi::ctr_qt_3d_extras_ffi_qHash(
::cpp_core::CastInto::<::cpp_core::Ref<crate::QVectorOfQSpriteSheetItem>>::cast_into(key)
.as_raw_ptr(),
seed,
)
}
/// Calls C++ function: <span style='color: green;'>```unsigned int qHash(const QVector<Qt3DExtras::QSpriteSheetItem*>& key)```</span>.
///
///
///
/// This item is available if `any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")`.
#[cfg(any(
any(
cpp_lib_version = "5.11.3",
cpp_lib_version = "5.12.2",
cpp_lib_version = "5.13.0"
),
feature = "ritual_rustdoc"
))]
pub unsafe fn q_hash_1a(
key: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QVectorOfQSpriteSheetItem>>,
) -> ::std::os::raw::c_uint {
crate::__ffi::ctr_qt_3d_extras_ffi_qHash1(
::cpp_core::CastInto::<::cpp_core::Ref<crate::QVectorOfQSpriteSheetItem>>::cast_into(key)
.as_raw_ptr(),
)
}