qt_3d_extras/
ops.rs

1#![cfg_attr(feature = "ritual_rustdoc_nightly", feature(doc_cfg))]
2//! Functions that provide access to C++ operators
3
4/// <p>Writes bit array <i>ba</i> to stream <i>out</i>.</p>
5///
6/// Calls C++ function: <span style='color: green;'>```QDataStream& operator<<(QDataStream& s, const QVector<Qt3DExtras::QSpriteSheetItem*>& v)```</span>.
7///
8/// Warning: no exact match found in C++ documentation. Below is the <a href="http://doc.qt.io/qt-5/qbitarray.html#operator-lt-lt">C++ documentation</a> for <span style='color: green;'>```QDataStream &operator<<(QDataStream &out, const QBitArray &ba)```</span>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Writes bit array <i>ba</i> to stream <i>out</i>.</p>
9/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/datastreamformat.html">Format of the QDataStream operators</a>.</p></div>
10#[inline(always)]
11#[cfg_attr(
12    feature = "ritual_rustdoc_nightly",
13    doc(cfg(any(
14        cpp_lib_version = "5.11.3",
15        cpp_lib_version = "5.12.2",
16        cpp_lib_version = "5.13.0",
17        cpp_lib_version = "5.14.0"
18    )))
19)]
20#[cfg(any(
21    any(
22        cpp_lib_version = "5.11.3",
23        cpp_lib_version = "5.12.2",
24        cpp_lib_version = "5.13.0",
25        cpp_lib_version = "5.14.0"
26    ),
27    feature = "ritual_rustdoc"
28))]
29pub unsafe fn shl_q_data_stream_q_vector_of_q_sprite_sheet_item(
30    s: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_core::QDataStream>>,
31    v: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QVectorOfQSpriteSheetItem>>,
32) -> ::cpp_core::Ref<::qt_core::QDataStream> {
33    let ffi_result = {
34        crate::__ffi::ctr_qt_3d_extras_ffi_operator__3(
35            ::cpp_core::CastInto::<::cpp_core::Ref<::qt_core::QDataStream>>::cast_into(s)
36                .as_raw_ptr() as *mut ::qt_core::QDataStream,
37            ::cpp_core::CastInto::<::cpp_core::Ref<crate::QVectorOfQSpriteSheetItem>>::cast_into(v)
38                .as_raw_ptr(),
39        )
40    };
41    ::cpp_core::Ref::from_raw(ffi_result).expect("attempted to construct a null Ref")
42}
43
44/// <p>Writes bit array <i>ba</i> to stream <i>out</i>.</p>
45///
46/// Calls C++ function: <span style='color: green;'>```QDebug operator<<(QDebug debug, const QVector<Qt3DExtras::QSpriteSheetItem*>& vec)```</span>.
47///
48/// Warning: no exact match found in C++ documentation. Below is the <a href="http://doc.qt.io/qt-5/qbitarray.html#operator-lt-lt">C++ documentation</a> for <span style='color: green;'>```QDataStream &operator<<(QDataStream &out, const QBitArray &ba)```</span>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Writes bit array <i>ba</i> to stream <i>out</i>.</p>
49/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/datastreamformat.html">Format of the QDataStream operators</a>.</p></div>
50#[inline(always)]
51#[cfg_attr(
52    feature = "ritual_rustdoc_nightly",
53    doc(cfg(any(
54        cpp_lib_version = "5.11.3",
55        cpp_lib_version = "5.12.2",
56        cpp_lib_version = "5.13.0",
57        cpp_lib_version = "5.14.0"
58    )))
59)]
60#[cfg(any(
61    any(
62        cpp_lib_version = "5.11.3",
63        cpp_lib_version = "5.12.2",
64        cpp_lib_version = "5.13.0",
65        cpp_lib_version = "5.14.0"
66    ),
67    feature = "ritual_rustdoc"
68))]
69pub unsafe fn shl_q_debug_q_vector_of_q_sprite_sheet_item(
70    debug: impl ::cpp_core::CastInto<::cpp_core::Ref<::qt_core::QDebug>>,
71    vec: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QVectorOfQSpriteSheetItem>>,
72) -> ::cpp_core::CppBox<::qt_core::QDebug> {
73    let ffi_result = {
74        crate::__ffi::ctr_qt_3d_extras_ffi_operator__4(
75            ::cpp_core::CastInto::<::cpp_core::Ref<::qt_core::QDebug>>::cast_into(debug)
76                .as_raw_ptr(),
77            ::cpp_core::CastInto::<::cpp_core::Ref<crate::QVectorOfQSpriteSheetItem>>::cast_into(
78                vec,
79            )
80            .as_raw_ptr(),
81        )
82    };
83    ::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox")
84}