Add support for tracking the length of a model in C++

Similar to the parent commit, the model tracks changes to the rows and
marks an internal property dirty. Since we have a base class this is a
little less intrusive.

cc #98
This commit is contained in:
Simon Hausmann 2021-10-20 14:11:16 +02:00 committed by Simon Hausmann
parent 63bf1af093
commit 7d12fd7b4e
6 changed files with 49 additions and 2 deletions

View file

@ -142,6 +142,7 @@ struct Property
}
bool is_dirty() const { return cbindgen_private::sixtyfps_property_is_dirty(&inner); }
void set_dirty() const { cbindgen_private::sixtyfps_property_set_dirty(&inner); }
static void link_two_way(const Property<T> *p1, const Property<T> *p2)
{