|
|
|
|
|
by epcoa
883 days ago
|
|
> You could even have your UI report "interactive" rectangles to the event layer to prevent it from producing e.g. mouse move events that are irrelevant. And then what? With this one innocuous seeming sentence you are hand waving a way a ton of complexity. If you try to implement it you will at least have some respect for toolkit authors. > IMGUI is just a different API design IMO. Yes one that is lower level and
therefore is fundamentally harder to deal with to get all the things people take for granted in a full blown mature state based GUI toolkit. You can implement a retained GUI toolkit with IMGUI. Or you can use something already done. IMGUI eschews this complexity as part of its purpose but it comes with trade offs that limit its use cases. |
|
https://github.com/goodpaul6/imgui-power-saving-example
Of course this is a greatly simplified example, but I can see this extending to any GUI widget that can be represented with a (hierarchy) of rectangles.