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
#[repr(C)]
pub struct InputAspect(u8);
impl InputAspect {
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
}
}
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)
}
}
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) }
}
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) }
}
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)
}
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)
}
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)
}
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
}
}
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")
}
}