qtbridge_type_lib/core/qobject/
mod.rs1pub use cxx_qt::QObject;
5
6#[cxx::bridge]
7mod ffi {
8 unsafe extern "C++" {
9 include!("qtbridge-type-lib/src/core/qobject/cpp/qobject.h");
10 type QObject = crate::QObject;
11 include!("qtbridge-type-lib/src/core/qmetaobject/cpp/qmetaobject.h");
12 type QMetaObject = crate::QMetaObject;
13 include!("qtbridge-type-lib/src/core/qvariant/cpp/qvariant.h");
14 type QVariant = crate::QVariant;
15 }
16 #[allow(clippy::missing_safety_doc)]
17 #[namespace = "rust::bridge::qobject"]
18 unsafe extern "C++" {
19 #[rust_name = "meta_object"]
21 fn metaObject(obj: &QObject) -> *const QMetaObject;
22
23 #[rust_name = "delete"]
25 unsafe fn deleteQObject(obj: *mut QObject);
26
27 #[rust_name = "destruct"]
29 unsafe fn destructQObject(obj: *mut QObject);
30
31 fn property(obj: &QObject, name: &str) -> QVariant;
33
34 #[rust_name = "set_property"]
36 unsafe fn setProperty(obj: *mut QObject, name: &str, value: &QVariant) -> bool;
37 }
38}
39
40pub use ffi::{delete, destruct, meta_object, property, set_property};