mirror of
https://github.com/slint-ui/slint.git
synced 2025-09-27 20:42:25 +00:00
Move all cbindgen generated code into
sixtyfps::cbindgen_private Having private in the name makes it clear that this is ... private, and cbindgen helps remember that it's generated.
This commit is contained in:
parent
2fa953ce8a
commit
14fe897086
12 changed files with 108 additions and 108 deletions
|
@ -18,23 +18,23 @@ struct SharedArray
|
|||
{
|
||||
SharedArray()
|
||||
{
|
||||
internal::sixtyfps_shared_array_new_null(reinterpret_cast<SharedArray<uint8_t> *>(this));
|
||||
cbindgen_private::sixtyfps_shared_array_new_null(reinterpret_cast<SharedArray<uint8_t> *>(this));
|
||||
}
|
||||
|
||||
SharedArray(const SharedArray &other)
|
||||
{
|
||||
internal::sixtyfps_shared_array_clone(
|
||||
cbindgen_private::sixtyfps_shared_array_clone(
|
||||
reinterpret_cast<SharedArray<uint8_t> *>(this),
|
||||
reinterpret_cast<const SharedArray<uint8_t> *>(&other));
|
||||
}
|
||||
~SharedArray()
|
||||
{
|
||||
internal::sixtyfps_shared_array_drop(reinterpret_cast<SharedArray<uint8_t> *>(this));
|
||||
cbindgen_private::sixtyfps_shared_array_drop(reinterpret_cast<SharedArray<uint8_t> *>(this));
|
||||
}
|
||||
SharedArray &operator=(const SharedArray &other)
|
||||
{
|
||||
internal::sixtyfps_shared_array_drop(reinterpret_cast<SharedArray<uint8_t> *>(this));
|
||||
internal::sixtyfps_shared_array_clone(
|
||||
cbindgen_private::sixtyfps_shared_array_drop(reinterpret_cast<SharedArray<uint8_t> *>(this));
|
||||
cbindgen_private::sixtyfps_shared_array_clone(
|
||||
reinterpret_cast<SharedArray<uint8_t> *>(this),
|
||||
reinterpret_cast<const SharedArray<uint8_t> *>(&other));
|
||||
return *this;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue