Implement Property::set_constant in C++

This commit is contained in:
Olivier Goffart 2025-02-28 13:05:50 +01:00
parent 2fb62ca0e8
commit 5ab791416b
3 changed files with 14 additions and 0 deletions

View file

@ -186,6 +186,8 @@ struct Property
const T &get_internal() const { return value; }
void set_constant() const { cbindgen_private::slint_property_set_constant(&inner); }
private:
cbindgen_private::PropertyHandleOpaque inner;
mutable T value {};