mirror of
https://github.com/slint-ui/slint.git
synced 2025-09-30 22:01:13 +00:00
More work on signal: the C++ part is working
This commit is contained in:
parent
83d206ea39
commit
4575011293
15 changed files with 166 additions and 59 deletions
|
@ -31,11 +31,11 @@ struct Property
|
|||
{
|
||||
internal::sixtyfps_property_set_binding(
|
||||
&inner,
|
||||
[](const void *user_data, const void *value) {
|
||||
[](void *user_data, const void *value) {
|
||||
*reinterpret_cast<T *>(value) = (*reinterpret_cast<F *>(user_data))();
|
||||
},
|
||||
new F(binding),
|
||||
[](const void *user_data) { delete reinterpret_cast<F *>(user_data); });
|
||||
[](void *user_data) { delete reinterpret_cast<F *>(user_data); });
|
||||
}
|
||||
|
||||
private:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue