C++ model that can be changed

This commit is contained in:
Olivier Goffart 2020-09-15 12:06:57 +02:00
parent 02d18b09cf
commit 4a0a65f113
6 changed files with 122 additions and 47 deletions

View file

@ -65,6 +65,10 @@ struct Property
template<typename F>
inline void set_animated_binding(F binding, const cbindgen_private::PropertyAnimation &animation_data);
bool is_dirty() const {
return cbindgen_private::sixtyfps_property_is_dirty(&inner);
}
private:
cbindgen_private::PropertyHandleOpaque inner;
mutable T value{};