qtbridge_interfaces/qlist_model/
proxy_cpp_bridge.rs1use super::proxy_rust::QListModelProxyRust;
5#[cxx::bridge]
6pub mod ffi {
7 unsafe extern "C++" {
8 include!("qtbridge-type-lib/src/generated/core/qhash/cpp/qhash_i32_qbytearray.h");
9 type QHash_i32_QByteArray = qtbridge_type_lib::QHash_i32_QByteArray;
10 include!("qtbridge-type-lib/src/generated/core/qmetaobject/cpp/qmetaobject.h");
11 type QMetaObject = qtbridge_type_lib::QMetaObject;
12 include!("qtbridge-type-lib/src/generated/core/qmetatype/cpp/qmetatype.h");
13 type QMetaType = qtbridge_type_lib::QMetaType;
14 include!("qtbridge-type-lib/src/generated/core/qmodelindex/cpp/qmodelindex.h");
15 type QModelIndex = qtbridge_type_lib::QModelIndex;
16 include!("qtbridge-type-lib/src/generated/core/qvariant/cpp/qvariant.h");
17 type QVariant = qtbridge_type_lib::QVariant;
18 include!("qtbridge-interfaces/src/qlist_model/proxy_rust_bridge.rs.h");
19 type QListModelProxyRust = super::QListModelProxyRust;
20 }
21 #[namespace = "rust::bridge"]
22 unsafe extern "C++" {
23 include!("qtbridge-interfaces/src/qlist_model/cpp/QListModelProxyCpp.h");
24 type QListModelProxyCpp;
25 # [rust_name = create_qlist_model_proxy_cpp]
26 unsafe fn create_QListModelProxyCpp(rust_proxy: *mut QListModelProxyRust) -> *mut QListModelProxyCpp;
27 # [rust_name = create_qlist_model_proxy_cpp_at]
28 unsafe fn create_QListModelProxyCpp_At(addr: *mut u8, rust_proxy: *mut QListModelProxyRust)
29 -> *mut QListModelProxyCpp;
30 # [rust_name = static_qmeta_object_of_qlist_model_proxy_cpp]
31 fn staticQMetaObjectOf_QListModelProxyCpp() -> &'static QMetaObject;
32 # [rust_name = size_of_qlist_model_proxy_cpp]
33 fn sizeOf_QListModelProxyCpp() -> usize;
34 # [rust_name = align_of_qlist_model_proxy_cpp]
35 fn alignOf_QListModelProxyCpp() -> usize;
36 # [rust_name = qmetatype_list_of_qlist_model_proxy_cpp]
37 fn qmetaTypeListOf_QListModelProxyCpp() -> QMetaType;
38 # [rust_name = base_index]
39 fn base_index(&self, row: i32, column: i32, parent: &QModelIndex) -> QModelIndex;
40 # [rust_name = base_role_names]
41 fn base_roleNames(&self) -> QHash_i32_QByteArray;
42 # [rust_name = base_set_data]
43 fn base_setData(self: Pin<&mut Self>, index: &QModelIndex, value: &QVariant, role: i32) -> bool;
44 # [rust_name = base_remove_rows]
45 fn base_removeRows(self: Pin<&mut Self>, first: i32, count: i32, parent: &QModelIndex) -> bool;
46 # [rust_name = base_sibling]
47 fn base_sibling(&self, row: i32, column: i32, idx: &QModelIndex) -> QModelIndex;
48 # [rust_name = base_data_changed]
49 fn dataChanged(self: Pin<&mut Self>, top_left: &QModelIndex, bottom_right: &QModelIndex);
50 # [rust_name = base_begin_insert_rows]
51 fn beginInsertRows(self: Pin<&mut Self>, parent: &QModelIndex, first: i32, last: i32);
52 # [rust_name = base_end_insert_rows]
53 fn endInsertRows(self: Pin<&mut Self>);
54 # [rust_name = base_begin_move_rows]
55 fn beginMoveRows(
56 self: Pin<&mut Self>,
57 source_parent: &QModelIndex,
58 source_first: i32,
59 source_last: i32,
60 destination_parent: &QModelIndex,
61 destination_child: i32,
62 );
63 # [rust_name = base_end_move_rows]
64 fn endMoveRows(self: Pin<&mut Self>);
65 # [rust_name = base_begin_remove_rows]
66 fn beginRemoveRows(self: Pin<&mut Self>, parent: &QModelIndex, first: i32, last: i32);
67 # [rust_name = base_end_remove_rows]
68 fn endRemoveRows(self: Pin<&mut Self>);
69 # [rust_name = base_begin_reset_model]
70 fn beginResetModel(self: Pin<&mut Self>);
71 # [rust_name = base_end_reset_model]
72 fn endResetModel(self: Pin<&mut Self>);
73 }
74}
75pub use ffi::QListModelProxyCpp;