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
#[repr(C)]
pub struct PhysicalDeviceCreatedChangeBase(u8);
impl PhysicalDeviceCreatedChangeBase {
pub fn axis_setting_ids(&self) -> ::qt_3d_core::vector::VectorNodeId {
{
let mut object: ::qt_3d_core::vector::VectorNodeId =
unsafe { ::cpp_utils::new_uninitialized::NewUninitialized::new_uninitialized() };
unsafe {
::ffi::qt_3d_input_c_Qt3DInput_QPhysicalDeviceCreatedChangeBase_axisSettingIds_to_output(self as *const ::physical_device_created_change::PhysicalDeviceCreatedChangeBase, &mut object);
}
object
}
}
pub unsafe fn new(device: *const ::abstract_physical_device::AbstractPhysicalDevice)
-> ::cpp_utils::CppBox<::physical_device_created_change::PhysicalDeviceCreatedChangeBase> {
let ffi_result = ::ffi::qt_3d_input_c_Qt3DInput_QPhysicalDeviceCreatedChangeBase_new(device);
::cpp_utils::CppBox::new(ffi_result)
}
}
impl ::cpp_utils::CppDeletable for ::physical_device_created_change::PhysicalDeviceCreatedChangeBase {
fn deleter() -> ::cpp_utils::Deleter<Self> {
::ffi::qt_3d_input_c_Qt3DInput_QPhysicalDeviceCreatedChangeBase_delete
}
}
impl ::cpp_utils::StaticCast<::qt_3d_core::node_created_change::NodeCreatedChangeBase> for ::physical_device_created_change::PhysicalDeviceCreatedChangeBase {
fn static_cast_mut(&mut self) -> &mut ::qt_3d_core::node_created_change::NodeCreatedChangeBase {
let ffi_result = unsafe { ::ffi::qt_3d_input_c_QPhysicalDeviceCreatedChange_G_static_cast_Qt3DCore_QNodeCreatedChangeBase_ptr(self as *mut ::physical_device_created_change::PhysicalDeviceCreatedChangeBase) };
unsafe { ffi_result.as_mut() }.expect("Attempted to convert null pointer to reference")}
fn static_cast(&self) -> &::qt_3d_core::node_created_change::NodeCreatedChangeBase {
let ffi_result = unsafe { ::ffi::qt_3d_input_c_QPhysicalDeviceCreatedChange_G_static_cast_Qt3DCore_QNodeCreatedChangeBase_ptr(self as *const ::physical_device_created_change::PhysicalDeviceCreatedChangeBase as *mut ::physical_device_created_change::PhysicalDeviceCreatedChangeBase) };
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")}
}
impl ::cpp_utils::StaticCast<::qt_3d_core::scene_change::SceneChange> for ::physical_device_created_change::PhysicalDeviceCreatedChangeBase {
fn static_cast_mut(&mut self) -> &mut ::qt_3d_core::scene_change::SceneChange {
let ffi_result = unsafe { ::ffi::qt_3d_input_c_QPhysicalDeviceCreatedChange_G_static_cast_Qt3DCore_QSceneChange_ptr(self as *mut ::physical_device_created_change::PhysicalDeviceCreatedChangeBase) };
unsafe { ffi_result.as_mut() }.expect("Attempted to convert null pointer to reference")}
fn static_cast(&self) -> &::qt_3d_core::scene_change::SceneChange {
let ffi_result = unsafe { ::ffi::qt_3d_input_c_QPhysicalDeviceCreatedChange_G_static_cast_Qt3DCore_QSceneChange_ptr(self as *const ::physical_device_created_change::PhysicalDeviceCreatedChangeBase as *mut ::physical_device_created_change::PhysicalDeviceCreatedChangeBase) };
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")}
}
impl ::cpp_utils::UnsafeStaticCast<::physical_device_created_change::PhysicalDeviceCreatedChangeBase> for ::qt_3d_core::node_created_change::NodeCreatedChangeBase {
unsafe fn static_cast_mut(&mut self) -> &mut ::physical_device_created_change::PhysicalDeviceCreatedChangeBase {
let ffi_result = ::ffi::qt_3d_input_c_QPhysicalDeviceCreatedChange_G_static_cast_Qt3DInput_QPhysicalDeviceCreatedChangeBase_ptr_Qt3DCore_QNodeCreatedChangeBase(self as *mut ::qt_3d_core::node_created_change::NodeCreatedChangeBase);
ffi_result.as_mut().expect("Attempted to convert null pointer to reference")}
unsafe fn static_cast(&self) -> &::physical_device_created_change::PhysicalDeviceCreatedChangeBase {
let ffi_result = ::ffi::qt_3d_input_c_QPhysicalDeviceCreatedChange_G_static_cast_Qt3DInput_QPhysicalDeviceCreatedChangeBase_ptr_Qt3DCore_QNodeCreatedChangeBase(self as *const ::qt_3d_core::node_created_change::NodeCreatedChangeBase as *mut ::qt_3d_core::node_created_change::NodeCreatedChangeBase);
ffi_result.as_ref().expect("Attempted to convert null pointer to reference")}
}
impl ::cpp_utils::UnsafeStaticCast<::physical_device_created_change::PhysicalDeviceCreatedChangeBase> for ::qt_3d_core::scene_change::SceneChange {
unsafe fn static_cast_mut(&mut self) -> &mut ::physical_device_created_change::PhysicalDeviceCreatedChangeBase {
let ffi_result = ::ffi::qt_3d_input_c_QPhysicalDeviceCreatedChange_G_static_cast_Qt3DInput_QPhysicalDeviceCreatedChangeBase_ptr_Qt3DCore_QSceneChange(self as *mut ::qt_3d_core::scene_change::SceneChange);
ffi_result.as_mut().expect("Attempted to convert null pointer to reference")}
unsafe fn static_cast(&self) -> &::physical_device_created_change::PhysicalDeviceCreatedChangeBase {
let ffi_result = ::ffi::qt_3d_input_c_QPhysicalDeviceCreatedChange_G_static_cast_Qt3DInput_QPhysicalDeviceCreatedChangeBase_ptr_Qt3DCore_QSceneChange(self as *const ::qt_3d_core::scene_change::SceneChange as *mut ::qt_3d_core::scene_change::SceneChange);
ffi_result.as_ref().expect("Attempted to convert null pointer to reference")}
}
impl ::std::ops::Deref for ::physical_device_created_change::PhysicalDeviceCreatedChangeBase {
type Target = ::qt_3d_core::node_created_change::NodeCreatedChangeBase;
fn deref(&self) -> &::qt_3d_core::node_created_change::NodeCreatedChangeBase {
let ffi_result = unsafe { ::ffi::qt_3d_input_c_QPhysicalDeviceCreatedChange_G_static_cast_Qt3DCore_QNodeCreatedChangeBase_ptr(self as *const ::physical_device_created_change::PhysicalDeviceCreatedChangeBase as *mut ::physical_device_created_change::PhysicalDeviceCreatedChangeBase) };
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::std::ops::DerefMut for ::physical_device_created_change::PhysicalDeviceCreatedChangeBase {
fn deref_mut(&mut self) -> &mut ::qt_3d_core::node_created_change::NodeCreatedChangeBase {
let ffi_result = unsafe { ::ffi::qt_3d_input_c_QPhysicalDeviceCreatedChange_G_static_cast_Qt3DCore_QNodeCreatedChangeBase_ptr(self as *mut ::physical_device_created_change::PhysicalDeviceCreatedChangeBase) };
unsafe { ffi_result.as_mut() }.expect("Attempted to convert null pointer to reference")
}
}