decide on mechanism for determining whether views require redrawing
We could use a mechanism similar to iced
's Widget::hash_layout
and have the engine keep track of previous hashes, or continue to use something that simply returns bool
. The former requires state to be held in the engine and the latter requires state to be held in views. Given that it's a little complicated to give views persistent state, doing so for just a single bool
for most views that otherwise wouldn't require state may not be the most ergonomic solution.