Divooka Reference

GUI Framework

Preview

Windows of widgets: describe the layout once, then change widgets by name

Guide on the Methodox Wiki

37 nodes in 1 category

Ships with
Divooka ExploreDivooka Compute
Support tier
Tier 2 (proposed)
Package
GUI Applications
GUI Applications

A framework for making GUI applications as assembly of widgets. Useful for forms, dialogs and small tools.

GUI Application

Make GUI ApplicationAdd ButtonAdd a button.Add DividerAdd a hairline rule.Add LabelAdd a line of text.Add SpacerAdd empty room: a fixed number of pixels, or with no size, whatever room is free.Add Text BoxAdd a line of text the person can edit.Begin CardOpen a card: a raised surface with an optional heading, holding its children in a column.Begin ColumnOpen a column: everything added until the matching End stacks top to bottom.Begin GridOpen a grid of equal cells.Begin RowOpen a row: everything added until the matching End runs left to right.CloseAsk to stop.EndClose the innermost open container.Desired Window SizeHow big a window to open.Desired Window TitleThe window's title.Get Elapsed TimeTime the current frame represents, in milliseconds.Get TextWhat a named element says right now - for a text box, what the person has typed.Has ElementWhether the screen has an element of this name.Place In GridPut the element added most recently in a particular cell of the grid it is in.PressAct on an intent as if a button meaning it had been pressed - what a keyboard shortcut does.RebuildAsk for the screen to be described again: Build runs afresh before the next frame, and the widgetsSet EnabledWhether a named element can be used.Set PaddingSet the room inside the edge of the container opened most recently.Set SizeFix the size of the element added most recently.Set StretchGive the element added most recently a share of the free room in its column or row.Set TextChange what a named element says: a label's text, a button's caption, a text box's content.Set Text FitDraw the text of the element added most recently as large as fits it, growing and shrinking with the room it is given - or, for a container, the text of every label and button inside it.Set VisibleWhether a named element is shown at all.Set Window SizeSet the size the window opens at.Set Window TitleSet the window's title.Show NoticeShow a brief notice in the corner of the window.Was ClickedWhether a button meaning this was pressed during the current frame.Was Key PressedWhether this key was pressed during the current frame.BuildDescribe the screen: open containers, add labels and buttons, close containers.ClickedA button was pressed.Key PressedA key was pressed.StartDivooka procedural program entry, equivalent to "Main" in many programming languages.UpdateCalled once per frame, after that frame's presses have been delivered.