qtbridge_interfaces/qtable_model/
proxy_cpp_bridge.rs1use super::proxy_rust::QTableModelProxyRust;
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/qtable_model/proxy_rust_bridge.rs.h");
19 type QTableModelProxyRust = super::QTableModelProxyRust;
20 }
21 #[namespace = "rust::bridge"]
22 unsafe extern "C++" {
23 include!("qtbridge-interfaces/src/qtable_model/cpp/QTableModelProxyCpp.h");
24 type QTableModelProxyCpp;
25 # [rust_name = create_qtable_model_proxy_cpp]
26 unsafe fn create_QTableModelProxyCpp(rust_proxy: *mut QTableModelProxyRust) -> *mut QTableModelProxyCpp;
27 # [rust_name = create_qtable_model_proxy_cpp_at]
28 unsafe fn create_QTableModelProxyCpp_At(addr: *mut u8, rust_proxy: *mut QTableModelProxyRust)
29 -> *mut QTableModelProxyCpp;
30 # [rust_name = static_qmeta_object_of_qtable_model_proxy_cpp]
31 fn staticQMetaObjectOf_QTableModelProxyCpp() -> &'static QMetaObject;
32 # [rust_name = size_of_qtable_model_proxy_cpp]
33 fn sizeOf_QTableModelProxyCpp() -> usize;
34 # [rust_name = align_of_qtable_model_proxy_cpp]
35 fn alignOf_QTableModelProxyCpp() -> usize;
36 # [rust_name = qmetatype_list_of_qtable_model_proxy_cpp]
37 fn qmetaTypeListOf_QTableModelProxyCpp() -> QMetaType;
38 # [rust_name = base_role_names]
39 fn base_roleNames(&self) -> QHash_i32_QByteArray;
40 # [rust_name = base_set_data]
41 fn base_setData(self: Pin<&mut Self>, index: &QModelIndex, value: &QVariant, role: i32) -> bool;
42 # [rust_name = base_remove_columns]
43 fn base_removeColumns(self: Pin<&mut Self>, first: i32, count: i32, parent: &QModelIndex) -> 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_columns]
51 fn beginInsertColumns(self: Pin<&mut Self>, parent: &QModelIndex, first: i32, last: i32);
52 # [rust_name = base_end_insert_columns]
53 fn endInsertColumns(self: Pin<&mut Self>);
54 # [rust_name = base_begin_insert_rows]
55 fn beginInsertRows(self: Pin<&mut Self>, parent: &QModelIndex, first: i32, last: i32);
56 # [rust_name = base_end_insert_rows]
57 fn endInsertRows(self: Pin<&mut Self>);
58 # [rust_name = base_begin_move_columns]
59 fn beginMoveColumns(
60 self: Pin<&mut Self>,
61 source_parent: &QModelIndex,
62 source_first: i32,
63 source_last: i32,
64 destination_parent: &QModelIndex,
65 destination_child: i32,
66 );
67 # [rust_name = base_end_move_columns]
68 fn endMoveColumns(self: Pin<&mut Self>);
69 # [rust_name = base_begin_move_rows]
70 fn beginMoveRows(
71 self: Pin<&mut Self>,
72 source_parent: &QModelIndex,
73 source_first: i32,
74 source_last: i32,
75 destination_parent: &QModelIndex,
76 destination_child: i32,
77 );
78 # [rust_name = base_end_move_rows]
79 fn endMoveRows(self: Pin<&mut Self>);
80 # [rust_name = base_begin_remove_columns]
81 fn beginRemoveColumns(self: Pin<&mut Self>, parent: &QModelIndex, first: i32, last: i32);
82 # [rust_name = base_end_remove_columns]
83 fn endRemoveColumns(self: Pin<&mut Self>);
84 # [rust_name = base_begin_remove_rows]
85 fn beginRemoveRows(self: Pin<&mut Self>, parent: &QModelIndex, first: i32, last: i32);
86 # [rust_name = base_end_remove_rows]
87 fn endRemoveRows(self: Pin<&mut Self>);
88 # [rust_name = base_begin_reset_model]
89 fn beginResetModel(self: Pin<&mut Self>);
90 # [rust_name = base_end_reset_model]
91 fn endResetModel(self: Pin<&mut Self>);
92 # [rust_name = base_create_index]
93 fn createIndex(&self, row: i32, column: i32, ptr: usize) -> QModelIndex;
94 }
95}
96pub use ffi::QTableModelProxyCpp;