Immediate GUI Framework
PreviewInterfaces redeclared every frame, for tools whose controls change with their data
70 nodes in 1 category
- Ships with
- Divooka ExploreDivooka Compute
- Support tier
- Tier 2 (proposed)
- Package
- Immediate-Mode GUI
Immediate-Mode GUI
An immediate mode GUI that's redrawn every frame, for tools with dynamic look screens.
Immediate GUI Application
Make Immediate GUI ApplicationAdd ButtonAdd CaptionA quieter line, for a unit or an explanation.Add Check BoxAdd Drop DownAdd LabelThe graph-facing widgets: a value goes in and the new value comes out.Add ListAdd Menu ItemAdd On Same LinePut the next widget on the same line as the previous one.Add ParagraphA paragraph, broken to the width available.Add Primary ButtonThe one action a person most likely came for.Add Progress BarAdd Radio ButtonAdd SeparatorAdd SliderAdd SpacingAdd Text BoxAdd TitleA heading.Add Title BarA drag handle and a close button for a window with no frame of its own.Begin Drawing AreaReserves a box of the given height and answers where it is, for a graph that draws its own picture.Begin MenuOne title on the menu bar.Begin Menu BarA strip of menu titles.Begin PanelOpens a floating panel.Begin ScreenThe whole window as one region with no panel chrome: what a single-screen tool declares.CloseAsk to stop after this frame.DisposeDraw CircleDraw ImageDraw LineDraw RectangleA filled rectangle, in surface pixels.Draw Rounded RectangleA filled rectangle with rounded corners.Draw TextA run of text with its left edge and baseline named exactly.Draw Text At SizeA run of text at an exact pixel size, for a headline a role could not name.Draw Wrapped Text At SizeText at an exact pixel size, broken into lines no wider than a width, every line centred and the block centred on a point: an overlay's sentence, which has to fit the screen it stands on.End Drawing AreaEnd MenuEnd Menu BarEnd PanelClose RequestedWhether the application has asked to stop.Elapsed TimeMilliseconds the last frame took.GuiThe interface itself: every widget, the layout and the theme.HostThe host running this application, attached by whatever is running it.Last FrameWhat the most recent frame answered.StoragePer-run storage a node can keep something in.SurfaceThe pixels.ThemeThe theme the interface reads.Window OptionsWhat the window was asked to be.Get Click CountHow many clicks this press was the last of: one, two for a double click, three for a triple.Get Elapsed TimeGet Pointer PositionWhere the pointer is, in surface pixels.Get Previous Pointer PositionWhere the pointer was on the previous frame, in surface pixels - the other end of a segment whose near end is ImmediateGUIApplication.GetPointerPosition.Get Typed TextWhat the keyboard typed on this frame, as characters, or nothing on the frames nobody typed.Get Window SizeHow big the drawing surface actually is, which is what the person can see rather than what was asked for.Is Key DownWhether a key is held right now.Is Pointer DownWhether a mouse button is held right now, which is what a drag asks.Measure TextHow wide a run of text draws at a pixel size, so a graph can centre it.Set Always On TopSet BorderlessNo frame, no title bar.Set Dark ThemeThe dark palette rather than the light one.Set Full ScreenSet Overlay WindowA borderless, transparent, always-on-top window that stays out of the taskbar: the desktop overlay.Set Transparent BackgroundThe window's background shows the desktop through it, where the platform allows.Set Window SizeThe window's size, in pixels.Set Window TitleWas Key PressedWhether a key went down on this frame, whatever was held with it.Was Pointer PressedWhether a mouse button went down on this frame, which is what a click asks.Was Pointer ReleasedWhether a mouse button came up on this frame.FrameDeclare the whole interface.InitializedThe window exists.StartDivooka procedural program entry, equivalent to "Main" in many programming languages.