mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 10:50:00 +00:00
Implement Property::set_constant in C++
This commit is contained in:
parent
2fb62ca0e8
commit
5ab791416b
3 changed files with 14 additions and 0 deletions
|
@ -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 {};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue