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
#[repr(C)]
pub struct AbstractActionInput(u8);
impl AbstractActionInput {
pub fn meta_object(&self) -> *const ::qt_core::meta_object::MetaObject {
unsafe { ::ffi::qt_3d_input_c_Qt3DInput_QAbstractActionInput_metaObject(self as *const ::abstract_action_input::AbstractActionInput) }
}
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_QAbstractActionInput_qt_metacall(self as *mut ::abstract_action_input::AbstractActionInput, 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_QAbstractActionInput_qt_metacast(self as *mut ::abstract_action_input::AbstractActionInput, 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_QAbstractActionInput_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_QAbstractActionInput_trUtf8_to_output(s, c, n, &mut object);
object
}
}
}
impl ::cpp_utils::CppDeletable for ::abstract_action_input::AbstractActionInput {
fn deleter() -> ::cpp_utils::Deleter<Self> {
::ffi::qt_3d_input_c_Qt3DInput_QAbstractActionInput_delete
}
}
pub mod connection {
use ::cpp_utils::StaticCast;
pub struct Signals<'a>(&'a ::abstract_action_input::AbstractActionInput);
pub struct EnabledChanged<'a>(&'a ::abstract_action_input::AbstractActionInput);
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> {}
pub struct NodeDestroyed<'a>(&'a ::abstract_action_input::AbstractActionInput);
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> {}
pub struct ParentChanged<'a>(&'a ::abstract_action_input::AbstractActionInput);
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> {}
impl<'a> Signals<'a> {
pub fn enabled_changed(&self) -> EnabledChanged {
EnabledChanged(self.0)
}
pub fn node_destroyed(&self) -> NodeDestroyed {
NodeDestroyed(self.0)
}
pub fn parent_changed(&self) -> ParentChanged {
ParentChanged(self.0)
}
}
pub struct Slots<'a>(&'a ::abstract_action_input::AbstractActionInput);
pub struct SetParent<'a>(&'a ::abstract_action_input::AbstractActionInput);
impl<'a> ::qt_core::connection::Receiver for SetParent<'a> {
type Arguments = (*mut ::qt_3d_core::node::Node,);
fn object(&self) -> &::qt_core::object::Object {
self.0.static_cast()
}
fn receiver_id() -> &'static [u8] {
b"1setParent(Qt3DCore::QNode*)\0"
}
}
pub struct SetEnabled<'a>(&'a ::abstract_action_input::AbstractActionInput);
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"
}
}
impl<'a> Slots<'a> {
pub fn set_parent(&self) -> SetParent {
SetParent(self.0)
}
pub fn set_enabled(&self) -> SetEnabled {
SetEnabled(self.0)
}
}
impl ::abstract_action_input::AbstractActionInput {
pub fn signals(&self) -> Signals {
Signals(self)
}
pub fn slots(&self) -> Slots {
Slots(self)
}
}
}
impl ::cpp_utils::StaticCast<::qt_3d_core::node::Node> for ::abstract_action_input::AbstractActionInput {
fn static_cast_mut(&mut self) -> &mut ::qt_3d_core::node::Node {
let ffi_result = unsafe { ::ffi::qt_3d_input_c_QAbstractActionInput_G_static_cast_Qt3DCore_QNode_ptr(self as *mut ::abstract_action_input::AbstractActionInput) };
unsafe { ffi_result.as_mut() }.expect("Attempted to convert null pointer to reference")
}
fn static_cast(&self) -> &::qt_3d_core::node::Node {
let ffi_result = unsafe { ::ffi::qt_3d_input_c_QAbstractActionInput_G_static_cast_Qt3DCore_QNode_ptr(self as *const ::abstract_action_input::AbstractActionInput as *mut ::abstract_action_input::AbstractActionInput) };
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_utils::StaticCast<::qt_core::object::Object> for ::abstract_action_input::AbstractActionInput {
fn static_cast_mut(&mut self) -> &mut ::qt_core::object::Object {
let ffi_result = unsafe { ::ffi::qt_3d_input_c_QAbstractActionInput_G_static_cast_QObject_ptr(self as *mut ::abstract_action_input::AbstractActionInput) };
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_QAbstractActionInput_G_static_cast_QObject_ptr(self as *const ::abstract_action_input::AbstractActionInput as *mut ::abstract_action_input::AbstractActionInput) };
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_utils::UnsafeStaticCast<::abstract_action_input::AbstractActionInput> for ::qt_core::object::Object {
unsafe fn static_cast_mut(&mut self) -> &mut ::abstract_action_input::AbstractActionInput {
let ffi_result = ::ffi::qt_3d_input_c_QAbstractActionInput_G_static_cast_Qt3DInput_QAbstractActionInput_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) -> &::abstract_action_input::AbstractActionInput {
let ffi_result = ::ffi::qt_3d_input_c_QAbstractActionInput_G_static_cast_Qt3DInput_QAbstractActionInput_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<::abstract_action_input::AbstractActionInput> for ::qt_3d_core::node::Node {
unsafe fn static_cast_mut(&mut self) -> &mut ::abstract_action_input::AbstractActionInput {
let ffi_result = ::ffi::qt_3d_input_c_QAbstractActionInput_G_static_cast_Qt3DInput_QAbstractActionInput_ptr_Qt3DCore_QNode(self as *mut ::qt_3d_core::node::Node);
ffi_result.as_mut().expect("Attempted to convert null pointer to reference")
}
unsafe fn static_cast(&self) -> &::abstract_action_input::AbstractActionInput {
let ffi_result = ::ffi::qt_3d_input_c_QAbstractActionInput_G_static_cast_Qt3DInput_QAbstractActionInput_ptr_Qt3DCore_QNode(self as *const ::qt_3d_core::node::Node as *mut ::qt_3d_core::node::Node);
ffi_result.as_ref().expect("Attempted to convert null pointer to reference")
}
}
impl ::std::ops::Deref for ::abstract_action_input::AbstractActionInput {
type Target = ::qt_3d_core::node::Node;
fn deref(&self) -> &::qt_3d_core::node::Node {
let ffi_result = unsafe { ::ffi::qt_3d_input_c_QAbstractActionInput_G_static_cast_Qt3DCore_QNode_ptr(self as *const ::abstract_action_input::AbstractActionInput as *mut ::abstract_action_input::AbstractActionInput) };
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::std::ops::DerefMut for ::abstract_action_input::AbstractActionInput {
fn deref_mut(&mut self) -> &mut ::qt_3d_core::node::Node {
let ffi_result = unsafe { ::ffi::qt_3d_input_c_QAbstractActionInput_G_static_cast_Qt3DCore_QNode_ptr(self as *mut ::abstract_action_input::AbstractActionInput) };
unsafe { ffi_result.as_mut() }.expect("Attempted to convert null pointer to reference")
}
}