Most of the immediate mode GUI widget toolkit is implemented in default system controls and custom rendering for game development, graphic apps. Libraries include Scaleform, and Dear ImGui.
is more direct in the sense that the widget tree is often a function call tree that is composable and flexible but hard to interact with.
is less complex and easier to understand (in terms of fewer implicit assumptions per toolset API call). This usually also results in less functionality.
is more elaborate to create and manage (typically needs more tool set API calls) if more than a simple widget tree, including layout (absolute and relative positioning referring to parent or siblings).
has to rebuild the vertex buffers completely from scratch for each new frame.
can put a constant workload on the CPU if not utilizing shaders loaded on the GPU.
Immediate mode GUI widget toolkits are a good choice for those who prefer a simple, easily changeable, and extendable GUI toolkit. They are usually generic, open-source, and cross-platform. One way to have the flexibility and composability of an immediate mode GUI without the disadvantages of keeping the widget tree only in function calls, with the lack of direct control of how the GUI is drawn in the rendering engine would be to use a virtual widget tree, just like React uses a virtual DOM.
History
Casey Muratori developed the technique and coined the term "Single-path Immediate Mode Graphical User Interface" to describe it.[2][3] One of the earliest publicly available implementations was written by Sean Barrett.[4]