|
|
|
|
|
by amluto
2607 days ago
|
|
Here’s a downside that wasn’t mentioned: if (ImGUI::Button("Click Me")) {
IWasClickedSoDoSomething();
}
This forces Button to be stateless, which limits the possible quality of implementation. If you mouse-down on a button and the button changes before you mouse-up, it shouldn’t register as a click. Similarly, if you mouse-down on a button, drag to the button, and mouse-up, it shouldn’t be a click. Implementing this in a fully immediate-mode GUI with this interface is either impossible or requires gross hacks. |
|