It would be nice to have an inactive option on the base object.
This would add a small amount of code, but result in speedier operation on inactive objects at runtime.
There are examples in the UI Editor where I want to draw controls but not necessairly have them active for interaction. I suppose I could hide them, but that is not really the answer I’d like. I want them visable, just not active.
So my thinking is this:
- Add a flag “inactive” to lv_obj_t
- If inactive none of the call backs are called for any reason
- If there is already an inactive style for the object, use it, otherwise drop to a default inactive style