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
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
/// C++ type: <span style='color: green;'>```Qt3DCore::QNode```</span>
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p><a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html">QNode</a> is the base class of all Qt3D node classes used to build a Qt3D scene.</p>
/// <p>The owernship of <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html">QNode</a> is determined by the <a href="http://doc.qt.io/qt-5/qobject.html">QObject</a> parent/child relationship between nodes. By itself, a <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html">QNode</a> has no visual appearance and no particular meaning, it is there as a way of building a node based tree structure.</p>
/// <p>The parent of a <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html">QNode</a> instance can only be another <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html">QNode</a> instance.</p>
/// <p>Each <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html">QNode</a> instance has a unique id that allows it to be recognizable from other instances.</p>
/// <p>When properties are defined on a <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html">QNode</a> subclass, their NOTIFY signal will automatically generate notifications that the Qt3D backend aspects will receive.</p></div>
#[repr(C)]
pub struct Node(u8);

impl Node {
  /// C++ method: <span style='color: green;'>```bool Qt3DCore::QNode::blockNotifications(bool block)```</span>
  ///
  /// <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html#blockNotifications">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>If <i>block</i> is <code>true</code>, property change notifications sent by this object to aspects are blocked. If <i>block</i> is <code>false</code>, no such blocking will occur.</p>
  /// <p>The return value is the previous value of <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html#notificationsBlocked">notificationsBlocked</a>().</p>
  /// <p>Note that the other notification types will be sent even if the notifications for this object have been blocked.</p>
  /// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html#notificationsBlocked">notificationsBlocked</a>().</p></div>
  pub fn block_notifications(&mut self, block: bool) -> bool {
    unsafe { ::ffi::qt_3d_core_c_Qt3DCore_QNode_blockNotifications(self as *mut ::node::Node, block) }
  }

  /// C++ method: <span style='color: green;'>```QVector<Qt3DCore::QNode*> Qt3DCore::QNode::childNodes() const```</span>
  ///
  /// <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html#childNodes">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns a list filled with the <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html">QNode</a> children of the current <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html">QNode</a> instance.</p></div>
  pub fn child_nodes(&self) -> ::vector::VectorNodeMutPtr {
    {
      let mut object: ::vector::VectorNodeMutPtr =
        unsafe { ::cpp_utils::new_uninitialized::NewUninitialized::new_uninitialized() };
      unsafe {
        ::ffi::qt_3d_core_c_Qt3DCore_QNode_childNodes_to_output(self as *const ::node::Node, &mut object);
      }
      object
    }
  }

  /// C++ method: <span style='color: green;'>```Qt3DCore::QNodeId Qt3DCore::QNode::id() const```</span>
  ///
  /// <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html#id">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the id that uniquely identifies the <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html">QNode</a> instance.</p></div>
  pub fn id(&self) -> ::node_id::NodeId {
    {
      let mut object: ::node_id::NodeId =
        unsafe { ::cpp_utils::new_uninitialized::NewUninitialized::new_uninitialized() };
      unsafe {
        ::ffi::qt_3d_core_c_Qt3DCore_QNode_id_to_output(self as *const ::node::Node, &mut object);
      }
      object
    }
  }

  /// C++ method: <span style='color: green;'>```bool Qt3DCore::QNode::isEnabled() const```</span>
  ///
  /// <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html#enabled-prop">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html">QNode</a> enabled flag. By default a <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html">QNode</a> is always enabled.</p>
  /// <p><b>Note: </b>the interpretation of what enabled means is aspect-dependent. Even if enabled is set to <code>false</code>, some aspects may still consider the node in some manner. This is documented on a class by class basis.</p><p><b>Access functions:</b></p>
  /// <div class="table"><table class="alignedsummary">
  /// <tbody><tr><td class="memItemLeft topAlign rightAlign"> bool </td><td class="memItemRight bottomAlign"><span class="name"><b>isEnabled</b></span>() const</td></tr>
  /// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setEnabled</b></span>(bool <i>isEnabled</i>)</td></tr>
  /// </tbody></table></div>
  /// <p><b>Notifier signal:</b></p>
  /// <div class="table"><table class="alignedsummary">
  /// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>enabledChanged</b></span>(bool <i>enabled</i>)</td></tr>
  /// </tbody></table></div></div>
  pub fn is_enabled(&self) -> bool {
    unsafe { ::ffi::qt_3d_core_c_Qt3DCore_QNode_isEnabled(self as *const ::node::Node) }
  }

  /// C++ method: <span style='color: green;'>```virtual const QMetaObject* Qt3DCore::QNode::metaObject() const```</span>
  ///
  ///
  pub fn meta_object(&self) -> *const ::qt_core::meta_object::MetaObject {
    unsafe { ::ffi::qt_3d_core_c_Qt3DCore_QNode_metaObject(self as *const ::node::Node) }
  }

  /// C++ method: <span style='color: green;'>```[constructor] void Qt3DCore::QNode::QNode()```</span>
  ///
  /// <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html#QNode">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Creates a new <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html">QNode</a> instance with parent <i>parent</i>.</p>
  /// <p><b>Note: </b>The backend aspects will be notified that a <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html">QNode</a> instance is part of the scene only if it has a parent; unless this is the root node of the Qt3D scene.</p><p><b>See also </b><a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html#parent-prop">setParent</a>().</p></div>
  pub fn new() -> ::cpp_utils::CppBox<::node::Node> {
    let ffi_result = unsafe { ::ffi::qt_3d_core_c_Qt3DCore_QNode_new_no_args() };
    unsafe { ::cpp_utils::CppBox::new(ffi_result) }
  }

  /// C++ method: <span style='color: green;'>```[constructor] void Qt3DCore::QNode::QNode(Qt3DCore::QNode* parent = ?)```</span>
  ///
  /// <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html#QNode">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Creates a new <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html">QNode</a> instance with parent <i>parent</i>.</p>
  /// <p><b>Note: </b>The backend aspects will be notified that a <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html">QNode</a> instance is part of the scene only if it has a parent; unless this is the root node of the Qt3D scene.</p><p><b>See also </b><a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html#parent-prop">setParent</a>().</p></div>
  pub unsafe fn new_unsafe(parent: *mut ::node::Node) -> ::cpp_utils::CppBox<::node::Node> {
    let ffi_result = ::ffi::qt_3d_core_c_Qt3DCore_QNode_new_parent(parent);
    ::cpp_utils::CppBox::new(ffi_result)
  }

  /// C++ method: <span style='color: green;'>```bool Qt3DCore::QNode::notificationsBlocked() const```</span>
  ///
  /// <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html#notificationsBlocked">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns <code>true</code> if aspect notifications are blocked; otherwise returns <code>false</code>. By default, notifications are <i>not</i> blocked.</p>
  /// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html#blockNotifications">blockNotifications</a>().</p></div>
  pub fn notifications_blocked(&self) -> bool {
    unsafe { ::ffi::qt_3d_core_c_Qt3DCore_QNode_notificationsBlocked(self as *const ::node::Node) }
  }

  /// C++ method: <span style='color: green;'>```Qt3DCore::QNode* Qt3DCore::QNode::parentNode() const```</span>
  ///
  /// <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html#parent-prop">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the immediate <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html">QNode</a> parent, or null if the node has no parent.</p>
  /// <p>Setting the parent will notify the backend aspects about current <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html">QNode</a> instance's parent change.</p>
  /// <p><b>Note: </b>if <i>parent</i> happens to be null, this will actually notify that the current <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html">QNode</a> instance was removed from the scene.</p><p><b>Access functions:</b></p>
  /// <div class="table"><table class="alignedsummary">
  /// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QNode *</td><td class="memItemRight bottomAlign"><span class="name"><b>parentNode</b></span>() const</td></tr>
  /// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setParent</b></span>(QNode *<i>parent</i>)</td></tr>
  /// </tbody></table></div>
  /// <p><b>Notifier signal:</b></p>
  /// <div class="table"><table class="alignedsummary">
  /// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>parentChanged</b></span>(QObject *<i>parent</i>)</td></tr>
  /// </tbody></table></div></div>
  pub fn parent_node(&self) -> *mut ::node::Node {
    unsafe { ::ffi::qt_3d_core_c_Qt3DCore_QNode_parentNode(self as *const ::node::Node) }
  }

  /// C++ method: <span style='color: green;'>```virtual int Qt3DCore::QNode::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_core_c_Qt3DCore_QNode_qt_metacall(self as *mut ::node::Node, arg1, arg2, arg3)
  }

  /// C++ method: <span style='color: green;'>```virtual void* Qt3DCore::QNode::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_core_c_Qt3DCore_QNode_qt_metacast(self as *mut ::node::Node, arg1)
  }

  /// C++ method: <span style='color: green;'>```[slot] void Qt3DCore::QNode::setEnabled(bool isEnabled)```</span>
  ///
  /// <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html#enabled-prop">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html">QNode</a> enabled flag. By default a <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html">QNode</a> is always enabled.</p>
  /// <p><b>Note: </b>the interpretation of what enabled means is aspect-dependent. Even if enabled is set to <code>false</code>, some aspects may still consider the node in some manner. This is documented on a class by class basis.</p><p><b>Access functions:</b></p>
  /// <div class="table"><table class="alignedsummary">
  /// <tbody><tr><td class="memItemLeft topAlign rightAlign"> bool </td><td class="memItemRight bottomAlign"><span class="name"><b>isEnabled</b></span>() const</td></tr>
  /// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setEnabled</b></span>(bool <i>isEnabled</i>)</td></tr>
  /// </tbody></table></div>
  /// <p><b>Notifier signal:</b></p>
  /// <div class="table"><table class="alignedsummary">
  /// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>enabledChanged</b></span>(bool <i>enabled</i>)</td></tr>
  /// </tbody></table></div></div>
  pub fn set_enabled(&mut self, is_enabled: bool) {
    unsafe { ::ffi::qt_3d_core_c_Qt3DCore_QNode_setEnabled(self as *mut ::node::Node, is_enabled) }
  }

  /// C++ method: <span style='color: green;'>```[slot] void Qt3DCore::QNode::setParent(Qt3DCore::QNode* parent)```</span>
  ///
  /// <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html#parent-prop">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Holds the immediate <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html">QNode</a> parent, or null if the node has no parent.</p>
  /// <p>Setting the parent will notify the backend aspects about current <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html">QNode</a> instance's parent change.</p>
  /// <p><b>Note: </b>if <i>parent</i> happens to be null, this will actually notify that the current <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html">QNode</a> instance was removed from the scene.</p><p><b>Access functions:</b></p>
  /// <div class="table"><table class="alignedsummary">
  /// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QNode *</td><td class="memItemRight bottomAlign"><span class="name"><b>parentNode</b></span>() const</td></tr>
  /// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setParent</b></span>(QNode *<i>parent</i>)</td></tr>
  /// </tbody></table></div>
  /// <p><b>Notifier signal:</b></p>
  /// <div class="table"><table class="alignedsummary">
  /// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>parentChanged</b></span>(QObject *<i>parent</i>)</td></tr>
  /// </tbody></table></div></div>
  pub unsafe fn set_parent(&mut self, parent: *mut ::node::Node) {
    ::ffi::qt_3d_core_c_Qt3DCore_QNode_setParent(self as *mut ::node::Node, parent)
  }

  /// C++ method: <span style='color: green;'>```static QString Qt3DCore::QNode::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_core_c_Qt3DCore_QNode_tr_to_output(s, c, n, &mut object);
      object
    }
  }

  /// C++ method: <span style='color: green;'>```static QString Qt3DCore::QNode::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_core_c_Qt3DCore_QNode_trUtf8_to_output(s, c, n, &mut object);
      object
    }
  }
}

impl ::cpp_utils::CppDeletable for ::node::Node {
  fn deleter() -> ::cpp_utils::Deleter<Self> {
    ::ffi::qt_3d_core_c_Qt3DCore_QNode_delete
  }
}

/// Types for accessing built-in Qt signals and slots present in this module
pub mod connection {
  use ::cpp_utils::StaticCast;
  /// Provides access to built-in Qt signals of `Node`.
  pub struct Signals<'a>(&'a ::node::Node);
  /// Represents a built-in Qt signal `Qt3DCore::QNode::parentChanged`.
  ///
  /// An object of this type can be created from `Node` with `object.signals().parent_changed()` and used for creating Qt connections using `qt_core::connection` API. After the connection is made, the object can (should) be dropped. The connection will remain active until sender or receiver are destroyed or until a manual disconnection is made.
  ///
  /// An object of this type contains a reference to the original `Node` object.
  pub struct ParentChanged<'a>(&'a ::node::Node);
  impl<'a> ::qt_core::connection::Receiver for ParentChanged<'a> {
    type Arguments = (*mut ::qt_core::object::Object,);
    fn object(&self) -> &::qt_core::object::Object {
      self.0.static_cast()
    }
    fn receiver_id() -> &'static [u8] {
      b"2parentChanged(QObject*)\0"
    }
  }
  impl<'a> ::qt_core::connection::Signal for ParentChanged<'a> {}
  /// Represents a built-in Qt signal `Qt3DCore::QNode::enabledChanged`.
  ///
  /// An object of this type can be created from `Node` with `object.signals().enabled_changed()` and used for creating Qt connections using `qt_core::connection` API. After the connection is made, the object can (should) be dropped. The connection will remain active until sender or receiver are destroyed or until a manual disconnection is made.
  ///
  /// An object of this type contains a reference to the original `Node` object.
  pub struct EnabledChanged<'a>(&'a ::node::Node);
  impl<'a> ::qt_core::connection::Receiver for EnabledChanged<'a> {
    type Arguments = (bool,);
    fn object(&self) -> &::qt_core::object::Object {
      self.0.static_cast()
    }
    fn receiver_id() -> &'static [u8] {
      b"2enabledChanged(bool)\0"
    }
  }
  impl<'a> ::qt_core::connection::Signal for EnabledChanged<'a> {}
  /// Represents a built-in Qt signal `Qt3DCore::QNode::nodeDestroyed`.
  ///
  /// An object of this type can be created from `Node` with `object.signals().node_destroyed()` and used for creating Qt connections using `qt_core::connection` API. After the connection is made, the object can (should) be dropped. The connection will remain active until sender or receiver are destroyed or until a manual disconnection is made.
  ///
  /// An object of this type contains a reference to the original `Node` object.
  pub struct NodeDestroyed<'a>(&'a ::node::Node);
  impl<'a> ::qt_core::connection::Receiver for NodeDestroyed<'a> {
    type Arguments = ();
    fn object(&self) -> &::qt_core::object::Object {
      self.0.static_cast()
    }
    fn receiver_id() -> &'static [u8] {
      b"2nodeDestroyed()\0"
    }
  }
  impl<'a> ::qt_core::connection::Signal for NodeDestroyed<'a> {}
  /// Represents a built-in Qt signal `Qt3DCore::QNode::objectNameChanged`.
  ///
  /// An object of this type can be created from `Node` with `object.signals().object_name_changed()` and used for creating Qt connections using `qt_core::connection` API. After the connection is made, the object can (should) be dropped. The connection will remain active until sender or receiver are destroyed or until a manual disconnection is made.
  ///
  /// An object of this type contains a reference to the original `Node` object.
  pub struct ObjectNameChanged<'a>(&'a ::node::Node);
  impl<'a> ::qt_core::connection::Receiver for ObjectNameChanged<'a> {
    type Arguments = (&'static ::qt_core::string::String,);
    fn object(&self) -> &::qt_core::object::Object {
      self.0.static_cast()
    }
    fn receiver_id() -> &'static [u8] {
      b"2objectNameChanged(const QString&)\0"
    }
  }
  impl<'a> ::qt_core::connection::Signal for ObjectNameChanged<'a> {}
  impl<'a> Signals<'a> {
    /// Returns an object representing a built-in Qt signal `Qt3DCore::QNode::parentChanged`.
    ///
    /// Return value of this function can be used for creating Qt connections using `qt_core::connection` API.
    pub fn parent_changed(&self) -> ParentChanged {
      ParentChanged(self.0)
    }
    /// Returns an object representing a built-in Qt signal `Qt3DCore::QNode::enabledChanged`.
    ///
    /// Return value of this function can be used for creating Qt connections using `qt_core::connection` API.
    pub fn enabled_changed(&self) -> EnabledChanged {
      EnabledChanged(self.0)
    }
    /// Returns an object representing a built-in Qt signal `Qt3DCore::QNode::nodeDestroyed`.
    ///
    /// Return value of this function can be used for creating Qt connections using `qt_core::connection` API.
    pub fn node_destroyed(&self) -> NodeDestroyed {
      NodeDestroyed(self.0)
    }
    /// Returns an object representing a built-in Qt signal `Qt3DCore::QNode::objectNameChanged`.
    ///
    /// Return value of this function can be used for creating Qt connections using `qt_core::connection` API.
    pub fn object_name_changed(&self) -> ObjectNameChanged {
      ObjectNameChanged(self.0)
    }
  }
  /// Provides access to built-in Qt slots of `Node`.
  pub struct Slots<'a>(&'a ::node::Node);
  /// Represents a built-in Qt slot `Qt3DCore::QNode::setEnabled`.
  ///
  /// An object of this type can be created from `Node` with `object.slots().set_enabled()` and used for creating Qt connections using `qt_core::connection` API. After the connection is made, the object can (should) be dropped. The connection will remain active until sender or receiver are destroyed or until a manual disconnection is made.
  ///
  /// An object of this type contains a reference to the original `Node` object.
  pub struct SetEnabled<'a>(&'a ::node::Node);
  impl<'a> ::qt_core::connection::Receiver for SetEnabled<'a> {
    type Arguments = (bool,);
    fn object(&self) -> &::qt_core::object::Object {
      self.0.static_cast()
    }
    fn receiver_id() -> &'static [u8] {
      b"1setEnabled(bool)\0"
    }
  }
  /// Represents a built-in Qt slot `Qt3DCore::QNode::setParent`.
  ///
  /// An object of this type can be created from `Node` with `object.slots().set_parent()` and used for creating Qt connections using `qt_core::connection` API. After the connection is made, the object can (should) be dropped. The connection will remain active until sender or receiver are destroyed or until a manual disconnection is made.
  ///
  /// An object of this type contains a reference to the original `Node` object.
  pub struct SetParent<'a>(&'a ::node::Node);
  impl<'a> ::qt_core::connection::Receiver for SetParent<'a> {
    type Arguments = (*mut ::node::Node,);
    fn object(&self) -> &::qt_core::object::Object {
      self.0.static_cast()
    }
    fn receiver_id() -> &'static [u8] {
      b"1setParent(Qt3DCore::QNode*)\0"
    }
  }
  impl<'a> Slots<'a> {
    /// Returns an object representing a built-in Qt slot `Qt3DCore::QNode::setEnabled`.
    ///
    /// Return value of this function can be used for creating Qt connections using `qt_core::connection` API.
    pub fn set_enabled(&self) -> SetEnabled {
      SetEnabled(self.0)
    }
    /// Returns an object representing a built-in Qt slot `Qt3DCore::QNode::setParent`.
    ///
    /// Return value of this function can be used for creating Qt connections using `qt_core::connection` API.
    pub fn set_parent(&self) -> SetParent {
      SetParent(self.0)
    }
  }
  impl ::node::Node {
    /// Provides access to built-in Qt signals of this type
    pub fn signals(&self) -> Signals {
      Signals(self)
    }
    /// Provides access to built-in Qt slots of this type
    pub fn slots(&self) -> Slots {
      Slots(self)
    }
  }

}

/// C++ type: <span style='color: green;'>```Qt3DCore::QNodeIdTypePair```</span>
#[repr(C)]
pub struct NodeIdTypePair([u8; ::type_sizes::QT_3D_CORE_NODE_NODE_ID_TYPE_PAIR]);

impl ::cpp_utils::new_uninitialized::NewUninitialized for NodeIdTypePair {
  unsafe fn new_uninitialized() -> NodeIdTypePair {
    NodeIdTypePair(::std::mem::uninitialized())
  }
}

impl NodeIdTypePair {
  /// C++ method: <span style='color: green;'>```const Qt3DCore::QNodeId& Qt3DCore::QNodeIdTypePair::id() const```</span>
  ///
  ///
  pub fn id<'l0>(&'l0 self) -> &'l0 ::node_id::NodeId {
    let ffi_result = unsafe { ::ffi::qt_3d_core_c_Qt3DCore_QNodeIdTypePair_id(self as *const ::node::NodeIdTypePair) };
    unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
  }

  /// C++ method: <span style='color: green;'>```Qt3DCore::QNodeId& Qt3DCore::QNodeIdTypePair::id_mut()```</span>
  ///
  ///
  pub fn id_mut<'l0>(&'l0 mut self) -> &'l0 mut ::node_id::NodeId {
    let ffi_result =
      unsafe { ::ffi::qt_3d_core_c_Qt3DCore_QNodeIdTypePair_id_mut(self as *mut ::node::NodeIdTypePair) };
    unsafe { ffi_result.as_mut() }.expect("Attempted to convert null pointer to reference")
  }

  /// C++ method: <span style='color: green;'>```[constructor] void Qt3DCore::QNodeIdTypePair::QNodeIdTypePair()```</span>
  ///
  /// <a href="http://doc.qt.io/qt-5/qt3dcore-qnodeidtypepair.html#QNodeIdTypePair">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Default constructs an instance of QNodeIdTypePair.</p></div>
  pub fn new() -> ::node::NodeIdTypePair {
    {
      let mut object: ::node::NodeIdTypePair =
        unsafe { ::cpp_utils::new_uninitialized::NewUninitialized::new_uninitialized() };
      unsafe {
        ::ffi::qt_3d_core_c_Qt3DCore_QNodeIdTypePair_constructor_no_args(&mut object);
      }
      object
    }
  }

  /// C++ method: <span style='color: green;'>```[constructor] void Qt3DCore::QNodeIdTypePair::QNodeIdTypePair(Qt3DCore::QNodeId _id, const QMetaObject* _type)```</span>
  ///
  /// <a href="http://doc.qt.io/qt-5/qt3dcore-qnodeidtypepair.html#QNodeIdTypePair-1">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Default constructs an instance of QNodeIdTypePair.</p></div>
  pub unsafe fn new_unsafe(id: &::node_id::NodeId,
                           type_: *const ::qt_core::meta_object::MetaObject)
                           -> ::node::NodeIdTypePair {
    {
      let mut object: ::node::NodeIdTypePair = ::cpp_utils::new_uninitialized::NewUninitialized::new_uninitialized();
      ::ffi::qt_3d_core_c_Qt3DCore_QNodeIdTypePair_constructor__id__type(id as *const ::node_id::NodeId,
                                                                         type_,
                                                                         &mut object);
      object
    }
  }

  /// C++ method: <span style='color: green;'>```void Qt3DCore::QNodeIdTypePair::set_id(Qt3DCore::QNodeId value)```</span>
  ///
  ///
  pub fn set_id(&mut self, value: &::node_id::NodeId) {
    unsafe {
      ::ffi::qt_3d_core_c_Qt3DCore_QNodeIdTypePair_set_id(self as *mut ::node::NodeIdTypePair,
                                                          value as *const ::node_id::NodeId)
    }
  }

  /// C++ method: <span style='color: green;'>```void Qt3DCore::QNodeIdTypePair::set_type(const QMetaObject* value)```</span>
  ///
  ///
  pub unsafe fn set_type(&mut self, value: *const ::qt_core::meta_object::MetaObject) {
    ::ffi::qt_3d_core_c_Qt3DCore_QNodeIdTypePair_set_type(self as *mut ::node::NodeIdTypePair, value)
  }

  /// C++ method: <span style='color: green;'>```const QMetaObject* Qt3DCore::QNodeIdTypePair::type() const```</span>
  ///
  ///
  pub fn type_(&self) -> *const ::qt_core::meta_object::MetaObject {
    unsafe { ::ffi::qt_3d_core_c_Qt3DCore_QNodeIdTypePair_type(self as *const ::node::NodeIdTypePair) }
  }
}

impl Drop for ::node::NodeIdTypePair {
  /// C++ method: <span style='color: green;'>```[destructor] void Qt3DCore::QNodeIdTypePair::~Qt3DCore::QNodeIdTypePair()```</span>
  ///
  ///
  fn drop(&mut self) {
    unsafe { ::ffi::qt_3d_core_c_Qt3DCore_QNodeIdTypePair_destructor(self as *mut ::node::NodeIdTypePair) }
  }
}

/// C++ method: <span style='color: green;'>```Qt3DCore::QNodeId Qt3DCore::qIdForNode(Qt3DCore::QNode* node)```</span>
///
/// <a href="http://doc.qt.io/qt-5/qt3dcore-qnode.html#qIdForNode">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns node id for <i>node</i>.</p></div>
pub unsafe fn id_for_node(node: *mut ::node::Node) -> ::node_id::NodeId {
  {
    let mut object: ::node_id::NodeId = ::cpp_utils::new_uninitialized::NewUninitialized::new_uninitialized();
    ::ffi::qt_3d_core_c_QNode_G_Qt3DCore_qIdForNode_to_output(node, &mut object);
    object
  }
}

impl ::cpp_utils::StaticCast<::qt_core::object::Object> for ::node::Node {
  fn static_cast_mut(&mut self) -> &mut ::qt_core::object::Object {
    let ffi_result = unsafe { ::ffi::qt_3d_core_c_QNode_G_static_cast_QObject_ptr(self as *mut ::node::Node) };
    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_core_c_QNode_G_static_cast_QObject_ptr(self as *const ::node::Node as *mut ::node::Node) };
    unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
  }
}

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

  unsafe fn static_cast(&self) -> &::node::Node {
    let ffi_result = ::ffi::qt_3d_core_c_QNode_G_static_cast_Qt3DCore_QNode_ptr(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 ::std::ops::Deref for ::node::Node {
  type Target = ::qt_core::object::Object;
  fn deref(&self) -> &::qt_core::object::Object {
    let ffi_result =
      unsafe { ::ffi::qt_3d_core_c_QNode_G_static_cast_QObject_ptr(self as *const ::node::Node as *mut ::node::Node) };
    unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
  }
}

impl ::std::ops::DerefMut for ::node::Node {
  fn deref_mut(&mut self) -> &mut ::qt_core::object::Object {
    let ffi_result = unsafe { ::ffi::qt_3d_core_c_QNode_G_static_cast_QObject_ptr(self as *mut ::node::Node) };
    unsafe { ffi_result.as_mut() }.expect("Attempted to convert null pointer to reference")
  }
}