Re:Towards Principled Reactive UI
by flohofwoe on Sunday September 27, 2020 @06:25AM
(#24605619)
Dear ImGui does have stable widget ids, it's just not very obvious when looking at the API, and often also irrelevant for the API user. Usually it's the label string, but you can make those unique with special '#' postfix strings which are not displayed but only used to create a unique hash. There's also a push/pop API for identifiers (often useful when creating lists of items where labels are not guaranteed to be unique).
[ Parent
| on HN ]
There are no comments on this comment yet.