1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
/// C++ type: <span style='color: green;'>```Qt3DInput::QInputAspect```</span>
///
/// <a href="http://doc.qt.io/qt-5/qt3dinput-qinputaspect.html">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Responsible for creating physical devices and handling associated jobs.</p>
/// <p>Handles mapping between front and backend nodes</p>
/// <p><a href="http://doc.qt.io/qt-5/qt3dinput-qinputaspect.html">QInputAspect</a> is responsible for creating physical devices. It is also the object responsible establishing the jobs to run at a particular time from the current input setup.</p></div>
#[repr(C)]
pub struct InputAspect(u8);

impl InputAspect {
  /// C++ method: <span style='color: green;'>```QStringList Qt3DInput::QInputAspect::availablePhysicalDevices() const```</span>
  ///
  /// <a href="http://doc.qt.io/qt-5/qt3dinput-qinputaspect.html#availablePhysicalDevices">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns a list of all available physical devices.</p></div>
  pub fn available_physical_devices(&self) -> ::qt_core::string_list::StringList {
    {
      let mut object: ::qt_core::string_list::StringList =
        unsafe { ::cpp_utils::new_uninitialized::NewUninitialized::new_uninitialized() };
      unsafe {
        ::ffi::qt_3d_input_c_Qt3DInput_QInputAspect_availablePhysicalDevices_to_output(self as *const ::input_aspect::InputAspect, &mut object);
      }
      object
    }
  }

  /// C++ method: <span style='color: green;'>```Qt3DInput::QAbstractPhysicalDevice* Qt3DInput::QInputAspect::createPhysicalDevice(const QString& name)```</span>
  ///
  /// <a href="http://doc.qt.io/qt-5/qt3dinput-qinputaspect.html#createPhysicalDevice">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Create a physical device identified by <i>name</i> using the input device integrations present returns a Q_NULLPTR if it is not found.</p>
  /// <p><b>Note: </b>caller is responsible for ownership</p></div>
  pub fn create_physical_device(&mut self,
                                name: &::qt_core::string::String)
                                -> *mut ::abstract_physical_device::AbstractPhysicalDevice {
    unsafe {
      ::ffi::qt_3d_input_c_Qt3DInput_QInputAspect_createPhysicalDevice(self as *mut ::input_aspect::InputAspect,
                                                                       name as *const ::qt_core::string::String)
    }
  }

  /// C++ method: <span style='color: green;'>```virtual const QMetaObject* Qt3DInput::QInputAspect::metaObject() const```</span>
  ///
  ///
  pub fn meta_object(&self) -> *const ::qt_core::meta_object::MetaObject {
    unsafe { ::ffi::qt_3d_input_c_Qt3DInput_QInputAspect_metaObject(self as *const ::input_aspect::InputAspect) }
  }

  /// C++ method: <span style='color: green;'>```[constructor] void Qt3DInput::QInputAspect::QInputAspect()```</span>
  ///
  /// <a href="http://doc.qt.io/qt-5/qt3dinput-qinputaspect.html#QInputAspect">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Constructs a new <a href="http://doc.qt.io/qt-5/qt3dinput-qinputaspect.html">QInputAspect</a> with <i>parent</i>.</p></div>
  pub fn new() -> ::cpp_utils::CppBox<::input_aspect::InputAspect> {
    let ffi_result = unsafe { ::ffi::qt_3d_input_c_Qt3DInput_QInputAspect_new_no_args() };
    unsafe { ::cpp_utils::CppBox::new(ffi_result) }
  }

  /// C++ method: <span style='color: green;'>```[constructor] void Qt3DInput::QInputAspect::QInputAspect(QObject* parent = ?)```</span>
  ///
  /// <a href="http://doc.qt.io/qt-5/qt3dinput-qinputaspect.html#QInputAspect">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Constructs a new <a href="http://doc.qt.io/qt-5/qt3dinput-qinputaspect.html">QInputAspect</a> with <i>parent</i>.</p></div>
  pub unsafe fn new_unsafe(parent: *mut ::qt_core::object::Object) -> ::cpp_utils::CppBox<::input_aspect::InputAspect> {
    let ffi_result = ::ffi::qt_3d_input_c_Qt3DInput_QInputAspect_new_parent(parent);
    ::cpp_utils::CppBox::new(ffi_result)
  }

  /// C++ method: <span style='color: green;'>```virtual int Qt3DInput::QInputAspect::qt_metacall(QMetaObject::Call arg1, int arg2, void** arg3)```</span>
  ///
  ///
  pub unsafe fn qt_metacall(&mut self,
                            arg1: ::qt_core::meta_object::Call,
                            arg2: ::libc::c_int,
                            arg3: *mut *mut ::libc::c_void)
                            -> ::libc::c_int {
    ::ffi::qt_3d_input_c_Qt3DInput_QInputAspect_qt_metacall(self as *mut ::input_aspect::InputAspect, arg1, arg2, arg3)
  }

  /// C++ method: <span style='color: green;'>```virtual void* Qt3DInput::QInputAspect::qt_metacast(const char* arg1)```</span>
  ///
  ///
  pub unsafe fn qt_metacast(&mut self, arg1: *const ::libc::c_char) -> *mut ::libc::c_void {
    ::ffi::qt_3d_input_c_Qt3DInput_QInputAspect_qt_metacast(self as *mut ::input_aspect::InputAspect, arg1)
  }

  /// C++ method: <span style='color: green;'>```static QString Qt3DInput::QInputAspect::tr(const char* s, const char* c, int n)```</span>
  ///
  ///
  pub unsafe fn tr(s: *const ::libc::c_char, c: *const ::libc::c_char, n: ::libc::c_int) -> ::qt_core::string::String {
    {
      let mut object: ::qt_core::string::String =
        ::cpp_utils::new_uninitialized::NewUninitialized::new_uninitialized();
      ::ffi::qt_3d_input_c_Qt3DInput_QInputAspect_tr_to_output(s, c, n, &mut object);
      object
    }
  }

  /// C++ method: <span style='color: green;'>```static QString Qt3DInput::QInputAspect::trUtf8(const char* s, const char* c, int n)```</span>
  ///
  ///
  pub unsafe fn tr_utf8(s: *const ::libc::c_char,
                        c: *const ::libc::c_char,
                        n: ::libc::c_int)
                        -> ::qt_core::string::String {
    {
      let mut object: ::qt_core::string::String =
        ::cpp_utils::new_uninitialized::NewUninitialized::new_uninitialized();
      ::ffi::qt_3d_input_c_Qt3DInput_QInputAspect_trUtf8_to_output(s, c, n, &mut object);
      object
    }
  }
}

impl ::cpp_utils::CppDeletable for ::input_aspect::InputAspect {
  fn deleter() -> ::cpp_utils::Deleter<Self> {
    ::ffi::qt_3d_input_c_Qt3DInput_QInputAspect_delete
  }
}

impl ::cpp_utils::StaticCast<::qt_3d_core::abstract_aspect::AbstractAspect> for ::input_aspect::InputAspect {
  fn static_cast_mut(&mut self) -> &mut ::qt_3d_core::abstract_aspect::AbstractAspect {
    let ffi_result = unsafe { ::ffi::qt_3d_input_c_QInputAspect_G_static_cast_Qt3DCore_QAbstractAspect_ptr(self as *mut ::input_aspect::InputAspect) };
    unsafe { ffi_result.as_mut() }.expect("Attempted to convert null pointer to reference")
  }

  fn static_cast(&self) -> &::qt_3d_core::abstract_aspect::AbstractAspect {
    let ffi_result = unsafe { ::ffi::qt_3d_input_c_QInputAspect_G_static_cast_Qt3DCore_QAbstractAspect_ptr(self as *const ::input_aspect::InputAspect as *mut ::input_aspect::InputAspect) };
    unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
  }
}

impl ::cpp_utils::StaticCast<::qt_core::object::Object> for ::input_aspect::InputAspect {
  fn static_cast_mut(&mut self) -> &mut ::qt_core::object::Object {
    let ffi_result =
      unsafe { ::ffi::qt_3d_input_c_QInputAspect_G_static_cast_QObject_ptr(self as *mut ::input_aspect::InputAspect) };
    unsafe { ffi_result.as_mut() }.expect("Attempted to convert null pointer to reference")
  }

  fn static_cast(&self) -> &::qt_core::object::Object {
    let ffi_result = unsafe { ::ffi::qt_3d_input_c_QInputAspect_G_static_cast_QObject_ptr(self as *const ::input_aspect::InputAspect as *mut ::input_aspect::InputAspect) };
    unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
  }
}

impl ::cpp_utils::UnsafeStaticCast<::input_aspect::InputAspect> for ::qt_core::object::Object {
  unsafe fn static_cast_mut(&mut self) -> &mut ::input_aspect::InputAspect {
    let ffi_result = ::ffi::qt_3d_input_c_QInputAspect_G_static_cast_Qt3DInput_QInputAspect_ptr_QObject(self as *mut ::qt_core::object::Object);
    ffi_result.as_mut().expect("Attempted to convert null pointer to reference")
  }

  unsafe fn static_cast(&self) -> &::input_aspect::InputAspect {
    let ffi_result = ::ffi::qt_3d_input_c_QInputAspect_G_static_cast_Qt3DInput_QInputAspect_ptr_QObject(self as *const ::qt_core::object::Object as *mut ::qt_core::object::Object);
    ffi_result.as_ref().expect("Attempted to convert null pointer to reference")
  }
}

impl ::cpp_utils::UnsafeStaticCast<::input_aspect::InputAspect> for ::qt_3d_core::abstract_aspect::AbstractAspect {
  unsafe fn static_cast_mut(&mut self) -> &mut ::input_aspect::InputAspect {
    let ffi_result = ::ffi::qt_3d_input_c_QInputAspect_G_static_cast_Qt3DInput_QInputAspect_ptr_Qt3DCore_QAbstractAspect(self as *mut ::qt_3d_core::abstract_aspect::AbstractAspect);
    ffi_result.as_mut().expect("Attempted to convert null pointer to reference")
  }

  unsafe fn static_cast(&self) -> &::input_aspect::InputAspect {
    let ffi_result = ::ffi::qt_3d_input_c_QInputAspect_G_static_cast_Qt3DInput_QInputAspect_ptr_Qt3DCore_QAbstractAspect(self as *const ::qt_3d_core::abstract_aspect::AbstractAspect as *mut ::qt_3d_core::abstract_aspect::AbstractAspect);
    ffi_result.as_ref().expect("Attempted to convert null pointer to reference")
  }
}

impl ::std::ops::Deref for ::input_aspect::InputAspect {
  type Target = ::qt_3d_core::abstract_aspect::AbstractAspect;
  fn deref(&self) -> &::qt_3d_core::abstract_aspect::AbstractAspect {
    let ffi_result = unsafe { ::ffi::qt_3d_input_c_QInputAspect_G_static_cast_Qt3DCore_QAbstractAspect_ptr(self as *const ::input_aspect::InputAspect as *mut ::input_aspect::InputAspect) };
    unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
  }
}

impl ::std::ops::DerefMut for ::input_aspect::InputAspect {
  fn deref_mut(&mut self) -> &mut ::qt_3d_core::abstract_aspect::AbstractAspect {
    let ffi_result = unsafe { ::ffi::qt_3d_input_c_QInputAspect_G_static_cast_Qt3DCore_QAbstractAspect_ptr(self as *mut ::input_aspect::InputAspect) };
    unsafe { ffi_result.as_mut() }.expect("Attempted to convert null pointer to reference")
  }
}