Immediate GUI Framework
The Immediate GUI Framework toolbox builds a window by declaring its interface again on every frame: add a title, a label, a button, a slider, a list; if a button was clicked this frame, the node says so. Nothing is kept between frames except your own data, so the interface always matches it. The toolbox also reads raw mouse and keyboard input and lets you draw on the window.
Use it for tools whose controls depend on what they show, such as editors, inspectors and drawing tools. For a fixed form, GUI Framework is simpler.
- Included in: Divooka Explore and Divooka Compute Standard. In Compute, start a document from the GUI Development workload, or add the Immediate-Mode GUI reference with Add reference (
Ctrl+Shift+L). - Maturity: Preview · Support: Tier 2 (proposed) · what these mean
- Open it: node library (
Ctrl+Shift+Space) → Immediate GUI Framework, or search for a node withCtrl+Space. - Examples and reference:
Ctrl+Shift+E→ GUI > Immediate · node reference
New to graphs? Start with Your first program.
Example: a painting canvas
Open GUI > Immediate (Ctrl+Shift+E) and run it. A full-screen canvas opens. Hold the left mouse button and move to draw; keys 1 to 6 choose the color (red, amber, green, teal, blue, violet); Escape closes the window. The strokes are the document's own data, five lists holding one segment each, drawn again by every frame.
Tips and limits
- Keep state in data members. An immediate interface remembers nothing; store values the user changes in your document's data members.
- Everything runs every frame. Keep the per-frame work small.
What is in the toolbox
| Category | Some of its nodes |
|---|---|
| Immediate GUI Application | Make Immediate GUI Application, Add Button, Add Caption, Add Check Box and 66 more |
See also
- Immediate GUI Framework node reference
- Immediate GUI
- Toolboxes - every other toolbox.