Divooka Reference

Immediate GUI Application

70 nodes

On this page 70

Make Immediate GUI Application

Function

This node carries no documentation.

Signature
ImmediateGUIApplication() -> Immediate GUI Application
ImmediateGUIApplication ImmediateGUIApplication()

Returns

Immediate GUI ApplicationImmediate GUI Application
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Immediate GUI Application
Package
Immediate-Mode GUI

Add Button

Function

This node carries no documentation.

Signature
AddButton -> Truth
    Immediate GUI Application: Immediate GUI Application
    caption: Text
bool AddButton(
    ImmediateGUIApplication Immediate GUI Application,
    string caption)

Parameters

nametypedefaultdescription
Immediate GUI ApplicationImmediate GUI Application—
captionText—

Returns

PressedTruth
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Immediate GUI Application
Package
Immediate-Mode GUI

Add Caption

Function

A quieter line, for a unit or an explanation.

Signature
AddCaption
    Immediate GUI Application: Immediate GUI Application
    text: Text
void AddCaption(
    ImmediateGUIApplication Immediate GUI Application,
    string text)

Parameters

nametypedefaultdescription
Immediate GUI ApplicationImmediate GUI Application—
textText—
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Immediate GUI Application
Package
Immediate-Mode GUI

Add Check Box

Function

This node carries no documentation.

Signature
AddCheckBox -> Truth
    Immediate GUI Application: Immediate GUI Application
    label: Text
    ticked: Truth
bool AddCheckBox(
    ImmediateGUIApplication Immediate GUI Application,
    string label,
    bool ticked)

Parameters

nametypedefaultdescription
Immediate GUI ApplicationImmediate GUI Application—
labelText—
tickedTruth—

Returns

TickedTruth
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Immediate GUI Application
Package
Immediate-Mode GUI

Add Drop Down

Function

This node carries no documentation.

Signature
AddDropDown -> Integer
    Immediate GUI Application: Immediate GUI Application
    label: Text
    items: Text Array
    selected: Integer
int AddDropDown(
    ImmediateGUIApplication Immediate GUI Application,
    string label,
    string[] items,
    int selected)

Parameters

nametypedefaultdescription
Immediate GUI ApplicationImmediate GUI Application—
labelText—
itemsText Array—
selectedInteger—

Returns

SelectedInteger
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Immediate GUI Application
Package
Immediate-Mode GUI

Add Label

Function

The graph-facing widgets: a value goes in and the new value comes out.

Signature
AddLabel
    Immediate GUI Application: Immediate GUI Application
    text: Text
void AddLabel(
    ImmediateGUIApplication Immediate GUI Application,
    string text)

Parameters

nametypedefaultdescription
Immediate GUI ApplicationImmediate GUI Application—
textText—What it reads.
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Immediate GUI Application
Package
Immediate-Mode GUI

Add List

Function

This node carries no documentation.

Signature
AddList -> Integer
    Immediate GUI Application: Immediate GUI Application
    label: Text
    items: Text Array
    selected: Integer
int AddList(
    ImmediateGUIApplication Immediate GUI Application,
    string label,
    string[] items,
    int selected)

Parameters

nametypedefaultdescription
Immediate GUI ApplicationImmediate GUI Application—
labelText—
itemsText Array—
selectedInteger—

Returns

SelectedInteger
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Immediate GUI Application
Package
Immediate-Mode GUI

Add Menu Item

Function

This node carries no documentation.

Signature
AddMenuItem -> Truth
    Immediate GUI Application: Immediate GUI Application
    label: Text
    shortcut: Text
bool AddMenuItem(
    ImmediateGUIApplication Immediate GUI Application,
    string label,
    string shortcut = "")

Parameters

nametypedefaultdescription
Immediate GUI ApplicationImmediate GUI Application—
labelText—
shortcutText—

Returns

ChosenTruth
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Immediate GUI Application
Package
Immediate-Mode GUI

Add On Same Line

Function

Put the next widget on the same line as the previous one.

Signature
AddOnSameLine(Immediate GUI Application: Immediate GUI Application)
void AddOnSameLine(ImmediateGUIApplication Immediate GUI Application)

Parameters

nametypedefaultdescription
Immediate GUI ApplicationImmediate GUI Application—
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Immediate GUI Application
Package
Immediate-Mode GUI

Add Paragraph

Function

A paragraph, broken to the width available.

Signature
AddParagraph
    Immediate GUI Application: Immediate GUI Application
    text: Text
void AddParagraph(
    ImmediateGUIApplication Immediate GUI Application,
    string text)

Parameters

nametypedefaultdescription
Immediate GUI ApplicationImmediate GUI Application—
textText—
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Immediate GUI Application
Package
Immediate-Mode GUI

Add Primary Button

Function

The one action a person most likely came for.

Signature
AddPrimaryButton -> Truth
    Immediate GUI Application: Immediate GUI Application
    caption: Text
bool AddPrimaryButton(
    ImmediateGUIApplication Immediate GUI Application,
    string caption)

Parameters

nametypedefaultdescription
Immediate GUI ApplicationImmediate GUI Application—
captionText—

Returns

PressedTruth
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Immediate GUI Application
Package
Immediate-Mode GUI

Add Progress Bar

Function

This node carries no documentation.

Signature
AddProgressBar
    Immediate GUI Application: Immediate GUI Application
    fraction: Number
    caption: Text
void AddProgressBar(
    ImmediateGUIApplication Immediate GUI Application,
    double fraction,
    string caption = "")

Parameters

nametypedefaultdescription
Immediate GUI ApplicationImmediate GUI Application—
fractionNumber—0 to 1.
captionText—A quiet reading on the right, or nothing.
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Immediate GUI Application
Package
Immediate-Mode GUI

Add Radio Button

Function

This node carries no documentation.

Signature
AddRadioButton -> Integer
    Immediate GUI Application: Immediate GUI Application
    label: Text
    option: Integer
    selected: Integer
int AddRadioButton(
    ImmediateGUIApplication Immediate GUI Application,
    string label,
    int option,
    int selected)

Parameters

nametypedefaultdescription
Immediate GUI ApplicationImmediate GUI Application—
labelText—What it reads.
optionInteger—Which value this button stands for.
selectedInteger—Which value is currently chosen.

Returns

SelectedInteger
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Immediate GUI Application
Package
Immediate-Mode GUI

Add Separator

Function

This node carries no documentation.

Signature
AddSeparator(Immediate GUI Application: Immediate GUI Application)
void AddSeparator(ImmediateGUIApplication Immediate GUI Application)

Parameters

nametypedefaultdescription
Immediate GUI ApplicationImmediate GUI Application—
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Immediate GUI Application
Package
Immediate-Mode GUI

Add Slider

Function

This node carries no documentation.

Signature
AddSlider -> Number
    Immediate GUI Application: Immediate GUI Application
    label: Text
    value: Number
    minimum: Number
    maximum: Number
double AddSlider(
    ImmediateGUIApplication Immediate GUI Application,
    string label,
    double value,
    double minimum = 0,
    double maximum = 1)

Parameters

nametypedefaultdescription
Immediate GUI ApplicationImmediate GUI Application—
labelText—
valueNumber—
minimumNumber0
maximumNumber1

Returns

ValueNumber
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Immediate GUI Application
Package
Immediate-Mode GUI

Add Spacing

Function

This node carries no documentation.

Signature
AddSpacing(Immediate GUI Application: Immediate GUI Application)
void AddSpacing(ImmediateGUIApplication Immediate GUI Application)

Parameters

nametypedefaultdescription
Immediate GUI ApplicationImmediate GUI Application—
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Immediate GUI Application
Package
Immediate-Mode GUI

Add Text Box

Function

This node carries no documentation.

Signature
AddTextBox -> Text
    Immediate GUI Application: Immediate GUI Application
    label: Text
    text: Text
    placeholder: Text
string AddTextBox(
    ImmediateGUIApplication Immediate GUI Application,
    string label,
    string text,
    string placeholder = "")

Parameters

nametypedefaultdescription
Immediate GUI ApplicationImmediate GUI Application—
labelText—
textText—
placeholderText—

Returns

TextText
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Immediate GUI Application
Package
Immediate-Mode GUI

Add Title

Function

A heading.

Signature
AddTitle
    Immediate GUI Application: Immediate GUI Application
    text: Text
void AddTitle(
    ImmediateGUIApplication Immediate GUI Application,
    string text)

Parameters

nametypedefaultdescription
Immediate GUI ApplicationImmediate GUI Application—
textText—
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Immediate GUI Application
Package
Immediate-Mode GUI

Add Title Bar

Function

A drag handle and a close button for a window with no frame of its own.

Signature
AddTitleBar -> Truth
    Immediate GUI Application: Immediate GUI Application
    title: Text
bool AddTitleBar(
    ImmediateGUIApplication Immediate GUI Application,
    string title)

Parameters

nametypedefaultdescription
Immediate GUI ApplicationImmediate GUI Application—
titleText—

Returns

ClosedTruth
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Immediate GUI Application
Package
Immediate-Mode GUI

Begin Drawing Area

Function

Reserves a box of the given height and answers where it is, for a graph that draws its own picture.

Signature
BeginDrawingArea -> (left: Number, top: Number, width: Number, height: Number)
    Immediate GUI Application: Immediate GUI Application
    label: Text
    areaHeight: Number
void BeginDrawingArea(
    ImmediateGUIApplication Immediate GUI Application,
    string label,
    double areaHeight,
    out double left,
    out double top,
    out double width,
    out double height)

Parameters

nametypedefaultdescription
Immediate GUI ApplicationImmediate GUI Application—
labelText—
areaHeightNumber—

Returns

leftNumber
topNumber
widthNumber
heightNumber

Remarks

The escape hatch: a graph that has a waveform, a plot or a preview to show asks for a box and draws into it with the drawing tools below, which is the same arrangement the realtime procedural base type offers over the whole window. Matched by ImmediateGUIApplication.EndDrawingArea.

Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Immediate GUI Application
Package
Immediate-Mode GUI

Begin Menu

Function

One title on the menu bar.

Signature
BeginMenu -> Truth
    Immediate GUI Application: Immediate GUI Application
    title: Text
bool BeginMenu(
    ImmediateGUIApplication Immediate GUI Application,
    string title)

Parameters

nametypedefaultdescription
Immediate GUI ApplicationImmediate GUI Application—
titleText—

Returns

OpenTruth
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Immediate GUI Application
Package
Immediate-Mode GUI

Begin Menu Bar

Function

A strip of menu titles. Matched by ImmediateGUIApplication.EndMenuBar.

Signature
BeginMenuBar(Immediate GUI Application: Immediate GUI Application)
void BeginMenuBar(ImmediateGUIApplication Immediate GUI Application)

Parameters

nametypedefaultdescription
Immediate GUI ApplicationImmediate GUI Application—
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Immediate GUI Application
Package
Immediate-Mode GUI

Begin Panel

Function

Opens a floating panel. Everything added until ImmediateGUIApplication.EndPanel lands inside it.

Signature
BeginPanel -> Truth
    Immediate GUI Application: Immediate GUI Application
    title: Text
bool BeginPanel(
    ImmediateGUIApplication Immediate GUI Application,
    string title)

Parameters

nametypedefaultdescription
Immediate GUI ApplicationImmediate GUI Application—
titleText—

Returns

VisibleTruth
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Immediate GUI Application
Package
Immediate-Mode GUI

Begin Screen

Function

The whole window as one region with no panel chrome: what a single-screen tool declares.

Signature
BeginScreen(Immediate GUI Application: Immediate GUI Application) -> Truth
bool BeginScreen(ImmediateGUIApplication Immediate GUI Application)

Parameters

nametypedefaultdescription
Immediate GUI ApplicationImmediate GUI Application—

Returns

VisibleTruth
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Immediate GUI Application
Package
Immediate-Mode GUI

Close

Function

Ask to stop after this frame.

Signature
Close(Immediate GUI Application: Immediate GUI Application)
void Close(ImmediateGUIApplication Immediate GUI Application)

Parameters

nametypedefaultdescription
Immediate GUI ApplicationImmediate GUI Application—
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Immediate GUI Application
Package
Immediate-Mode GUI

Dispose

Function

This node carries no documentation.

Signature
Dispose(Immediate GUI Application: Immediate GUI Application)
void Dispose(ImmediateGUIApplication Immediate GUI Application)

Parameters

nametypedefaultdescription
Immediate GUI ApplicationImmediate GUI Application—
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Immediate GUI Application
Package
Immediate-Mode GUI

Draw Circle

Function

This node carries no documentation.

Signature
DrawCircle
    Immediate GUI Application: Immediate GUI Application
    x: Number
    y: Number
    radius: Number
    colour: Color
void DrawCircle(
    ImmediateGUIApplication Immediate GUI Application,
    double x,
    double y,
    double radius,
    ColorElement colour)

Parameters

nametypedefaultdescription
Immediate GUI ApplicationImmediate GUI Application—
xNumber—
yNumber—
radiusNumber—
colourColor—
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Immediate GUI Application
Package
Immediate-Mode GUI

Draw Image

Function

This node carries no documentation.

Signature
DrawImage
    Immediate GUI Application: Immediate GUI Application
    image: Pixel Image
    x: Number
    y: Number
    width: Number
    height: Number
void DrawImage(
    ImmediateGUIApplication Immediate GUI Application,
    PixelImage image,
    double x,
    double y,
    double width,
    double height)

Parameters

nametypedefaultdescription
Immediate GUI ApplicationImmediate GUI Application—
imagePixel Image—
xNumber—
yNumber—
widthNumber—
heightNumber—
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Immediate GUI Application
Package
Immediate-Mode GUI

Draw Line

Function

This node carries no documentation.

Signature
DrawLine
    Immediate GUI Application: Immediate GUI Application
    x1: Number
    y1: Number
    x2: Number
    y2: Number
    thickness: Number
    colour: Color
void DrawLine(
    ImmediateGUIApplication Immediate GUI Application,
    double x1,
    double y1,
    double x2,
    double y2,
    double thickness,
    ColorElement colour)

Parameters

nametypedefaultdescription
Immediate GUI ApplicationImmediate GUI Application—
x1Number—
y1Number—
x2Number—
y2Number—
thicknessNumber—
colourColor—
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Immediate GUI Application
Package
Immediate-Mode GUI

Draw Rectangle

Function

A filled rectangle, in surface pixels.

Signature
DrawRectangle
    Immediate GUI Application: Immediate GUI Application
    x: Number
    y: Number
    width: Number
    height: Number
    colour: Color
void DrawRectangle(
    ImmediateGUIApplication Immediate GUI Application,
    double x,
    double y,
    double width,
    double height,
    ColorElement colour)

Parameters

nametypedefaultdescription
Immediate GUI ApplicationImmediate GUI Application—
xNumber—
yNumber—
widthNumber—
heightNumber—
colourColor—
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Immediate GUI Application
Package
Immediate-Mode GUI

Draw Rounded Rectangle

Function

A filled rectangle with rounded corners.

Signature
DrawRoundedRectangle
    Immediate GUI Application: Immediate GUI Application
    x: Number
    y: Number
    width: Number
    height: Number
    radius: Number
    colour: Color
void DrawRoundedRectangle(
    ImmediateGUIApplication Immediate GUI Application,
    double x,
    double y,
    double width,
    double height,
    double radius,
    ColorElement colour)

Parameters

nametypedefaultdescription
Immediate GUI ApplicationImmediate GUI Application—
xNumber—
yNumber—
widthNumber—
heightNumber—
radiusNumber—
colourColor—
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Immediate GUI Application
Package
Immediate-Mode GUI

Draw Text

Function

A run of text with its left edge and baseline named exactly.

Signature
DrawText
    Immediate GUI Application: Immediate GUI Application
    text: Text
    x: Number
    baseline: Number
    colour: Color
void DrawText(
    ImmediateGUIApplication Immediate GUI Application,
    string text,
    double x,
    double baseline,
    ColorElement colour)

Parameters

nametypedefaultdescription
Immediate GUI ApplicationImmediate GUI Application—
textText—
xNumber—
baselineNumber—
colourColor—
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Immediate GUI Application
Package
Immediate-Mode GUI

Draw Text At Size

Function

A run of text at an exact pixel size, for a headline a role could not name.

Signature
DrawTextAtSize
    Immediate GUI Application: Immediate GUI Application
    text: Text
    x: Number
    baseline: Number
    size: Number
    colour: Color
void DrawTextAtSize(
    ImmediateGUIApplication Immediate GUI Application,
    string text,
    double x,
    double baseline,
    double size,
    ColorElement colour)

Parameters

nametypedefaultdescription
Immediate GUI ApplicationImmediate GUI Application—
textText—
xNumber—
baselineNumber—
sizeNumber—The em size in pixels.
colourColor—

Remarks

The type ramp is sized for widgets inside a panel, and a full-screen overlay's one line - a countdown, a
warning over somebody's desktop - is a fraction of the screen rather than a step on that scale. Paired
with ImmediateGUIApplication.MeasureText, which is what centring it needs.

Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Immediate GUI Application
Package
Immediate-Mode GUI

Draw Wrapped Text At Size

Function

Text 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.

Signature
DrawWrappedTextAtSize
    Immediate GUI Application: Immediate GUI Application
    text: Text
    centreX: Number
    centreY: Number
    width: Number
    size: Number
    colour: Color
void DrawWrappedTextAtSize(
    ImmediateGUIApplication Immediate GUI Application,
    string text,
    double centreX,
    double centreY,
    double width,
    double size,
    ColorElement colour)

Parameters

nametypedefaultdescription
Immediate GUI ApplicationImmediate GUI Application—
textText—What to say; a newline in it starts a new line.
centreXNumber—Where the middle of every line goes.
centreYNumber—Where the middle of the whole block goes.
widthNumber—How wide a line may be.
sizeNumber—The em size in pixels.
colourColor—The colour of every line.

Remarks

ImmediateGUIApplication.DrawTextAtSize draws one line, and a headline sized as a fraction of the screen runs off both edges the moment it is a sentence rather than a word - which is what the desktop automation example's refusals did on a screen of ordinary width. This breaks on spaces, as ImmediateGUIApplication.AddParagraph does, keeps the newlines the text already has, and leaves a word wider than the width whole rather than cutting it.

Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Immediate GUI Application
Package
Immediate-Mode GUI

End Drawing Area

Function

This node carries no documentation.

Signature
EndDrawingArea(Immediate GUI Application: Immediate GUI Application)
void EndDrawingArea(ImmediateGUIApplication Immediate GUI Application)

Parameters

nametypedefaultdescription
Immediate GUI ApplicationImmediate GUI Application—
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Immediate GUI Application
Package
Immediate-Mode GUI

End Menu

Function

This node carries no documentation.

Signature
EndMenu(Immediate GUI Application: Immediate GUI Application)
void EndMenu(ImmediateGUIApplication Immediate GUI Application)

Parameters

nametypedefaultdescription
Immediate GUI ApplicationImmediate GUI Application—
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Immediate GUI Application
Package
Immediate-Mode GUI

End Menu Bar

Function

This node carries no documentation.

Signature
EndMenuBar(Immediate GUI Application: Immediate GUI Application)
void EndMenuBar(ImmediateGUIApplication Immediate GUI Application)

Parameters

nametypedefaultdescription
Immediate GUI ApplicationImmediate GUI Application—
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Immediate GUI Application
Package
Immediate-Mode GUI

End Panel

Function

This node carries no documentation.

Signature
EndPanel(Immediate GUI Application: Immediate GUI Application)
void EndPanel(ImmediateGUIApplication Immediate GUI Application)

Parameters

nametypedefaultdescription
Immediate GUI ApplicationImmediate GUI Application—
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Immediate GUI Application
Package
Immediate-Mode GUI

Close Requested

Function

Whether the application has asked to stop. A host reads this and ends its loop.

Signature
CloseRequested(Immediate GUI Application: Immediate GUI Application) -> Truth
bool CloseRequested(ImmediateGUIApplication Immediate GUI Application)

Parameters

nametypedefaultdescription
Immediate GUI ApplicationImmediate GUI Application—

Returns

resultTruth
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Immediate GUI Application
Package
Immediate-Mode GUI

Elapsed Time

Function

Milliseconds the last frame took. Set by whatever drives the loop.

Signature
ElapsedTime(Immediate GUI Application: Immediate GUI Application) -> Number
double ElapsedTime(ImmediateGUIApplication Immediate GUI Application)

Parameters

nametypedefaultdescription
Immediate GUI ApplicationImmediate GUI Application—

Returns

resultNumber
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Immediate GUI Application
Package
Immediate-Mode GUI

Gui

Function

The interface itself: every widget, the layout and the theme.

Signature
GUI(Immediate GUI Application: Immediate GUI Application) -> Immediate GUI
ImmediateGUI GUI(ImmediateGUIApplication Immediate GUI Application)

Parameters

nametypedefaultdescription
Immediate GUI ApplicationImmediate GUI Application—

Returns

resultImmediate GUI

Remarks

Public because a C# subclass declares its interface through it directly, and because the framework's driver needs it. A graph reaches the same widgets through the wrappers below, which take and return values instead of taking them by reference - a dataflow graph has a value on a wire and nowhere to put a `ref`.

Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Immediate GUI Application
Package
Immediate-Mode GUI

Host

Function

The host running this application, attached by whatever is running it.

Signature
Host(Immediate GUI Application: Immediate GUI Application) -> I Immediate GUI Host
IImmediateGUIHost Host(ImmediateGUIApplication Immediate GUI Application)

Parameters

nametypedefaultdescription
Immediate GUI ApplicationImmediate GUI Application—

Returns

resultI Immediate GUI Host

Remarks

Settable rather than constructed here, for the reason RealtimeApplication.AudioOutput records: the package a graph is authored against must not depend on a backend. Null is an ordinary state - an application driven by a test has no window - and everything that needs one checks.

Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Immediate GUI Application
Package
Immediate-Mode GUI

Last Frame

Function

What the most recent frame answered.

Signature
LastFrame(Immediate GUI Application: Immediate GUI Application) -> Immediate Frame Result
ImmediateFrameResult LastFrame(ImmediateGUIApplication Immediate GUI Application)

Parameters

nametypedefaultdescription
Immediate GUI ApplicationImmediate GUI Application—

Returns

resultImmediate Frame Result
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Immediate GUI Application
Package
Immediate-Mode GUI

Storage

Function

Per-run storage a node can keep something in.

Signature
Storage(Immediate GUI Application: Immediate GUI Application) -> Dictionary of Text to Any
Dictionary<string, object> Storage(ImmediateGUIApplication Immediate GUI Application)

Parameters

nametypedefaultdescription
Immediate GUI ApplicationImmediate GUI Application—

Returns

resultDictionary of Text to Any
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Immediate GUI Application
Package
Immediate-Mode GUI

Surface

Function

The pixels. Rebuilt when the window is resized.

Signature
Surface(Immediate GUI Application: Immediate GUI Application) -> Immediate Surface
ImmediateSurface Surface(ImmediateGUIApplication Immediate GUI Application)

Parameters

nametypedefaultdescription
Immediate GUI ApplicationImmediate GUI Application—

Returns

resultImmediate Surface
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Immediate GUI Application
Package
Immediate-Mode GUI

Theme

Function

The theme the interface reads. Assign before the first frame; a later assignment takes effect on the next one.

Signature
Theme(Immediate GUI Application: Immediate GUI Application) -> Immediate Theme
ImmediateTheme Theme(ImmediateGUIApplication Immediate GUI Application)

Parameters

nametypedefaultdescription
Immediate GUI ApplicationImmediate GUI Application—

Returns

resultImmediate Theme
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Immediate GUI Application
Package
Immediate-Mode GUI

Window Options

Function

What the window was asked to be. A host reads this after ImmediateGUIApplication.Start and before it opens anything.

Signature
WindowOptions(Immediate GUI Application: Immediate GUI Application) -> Immediate Window Options
ImmediateWindowOptions WindowOptions(ImmediateGUIApplication Immediate GUI Application)

Parameters

nametypedefaultdescription
Immediate GUI ApplicationImmediate GUI Application—

Returns

resultImmediate Window Options
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Immediate GUI Application
Package
Immediate-Mode GUI

Get Click Count

Function

How many clicks this press was the last of: one, two for a double click, three for a triple.

Signature
GetClickCount(Immediate GUI Application: Immediate GUI Application) -> Number
double GetClickCount(ImmediateGUIApplication Immediate GUI Application)

Parameters

nametypedefaultdescription
Immediate GUI ApplicationImmediate GUI Application—

Returns

ClicksNumber
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Immediate GUI Application
Package
Immediate-Mode GUI

Get Elapsed Time

Function

This node carries no documentation.

Signature
GetElapsedTime(Immediate GUI Application: Immediate GUI Application) -> Number
double GetElapsedTime(ImmediateGUIApplication Immediate GUI Application)

Parameters

nametypedefaultdescription
Immediate GUI ApplicationImmediate GUI Application—

Returns

resultNumber
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Immediate GUI Application
Package
Immediate-Mode GUI

Get Pointer Position

Function

Where the pointer is, in surface pixels.

Signature
GetPointerPosition(Immediate GUI Application: Immediate GUI Application) -> (x: Number, y: Number)
void GetPointerPosition(
    ImmediateGUIApplication Immediate GUI Application,
    out double x,
    out double y)

Parameters

nametypedefaultdescription
Immediate GUI ApplicationImmediate GUI Application—

Returns

xNumber
yNumber
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Immediate GUI Application
Package
Immediate-Mode GUI

Get Previous Pointer Position

Function

Where the pointer was on the previous frame, in surface pixels - the other end of a segment whose near end is ImmediateGUIApplication.GetPointerPosition.

Signature
GetPreviousPointerPosition(Immediate GUI Application: Immediate GUI Application) -> (x: Number, y: Number)
void GetPreviousPointerPosition(
    ImmediateGUIApplication Immediate GUI Application,
    out double x,
    out double y)

Parameters

nametypedefaultdescription
Immediate GUI ApplicationImmediate GUI Application—

Returns

xNumber
yNumber
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Immediate GUI Application
Package
Immediate-Mode GUI

Get Typed Text

Function

What the keyboard typed on this frame, as characters, or nothing on the frames nobody typed.

Signature
GetTypedText(Immediate GUI Application: Immediate GUI Application) -> Text
string GetTypedText(ImmediateGUIApplication Immediate GUI Application)

Parameters

nametypedefaultdescription
Immediate GUI ApplicationImmediate GUI Application—

Returns

TextText

Remarks

The layout's own answer, which is the only way a number key means the number on a keyboard that is not the author's - and the reason ImmediateGUI.ImmediateKey carries no digits to compare against.

Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Immediate GUI Application
Package
Immediate-Mode GUI

Get Window Size

Function

How big the drawing surface actually is, which is what the person can see rather than what was asked for.

Signature
GetWindowSize(Immediate GUI Application: Immediate GUI Application) -> (width: Number, height: Number)
void GetWindowSize(
    ImmediateGUIApplication Immediate GUI Application,
    out double width,
    out double height)

Parameters

nametypedefaultdescription
Immediate GUI ApplicationImmediate GUI Application—

Returns

widthNumber
heightNumber
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Immediate GUI Application
Package
Immediate-Mode GUI

Is Key Down

Function

Whether a key is held right now.

Signature
IsKeyDown -> Truth
    Immediate GUI Application: Immediate GUI Application
    key: Immediate Key
bool IsKeyDown(
    ImmediateGUIApplication Immediate GUI Application,
    ImmediateKey key)

Parameters

nametypedefaultdescription
Immediate GUI ApplicationImmediate GUI Application—
keyImmediate Key—

Returns

HeldTruth
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Immediate GUI Application
Package
Immediate-Mode GUI

Is Pointer Down

Function

Whether a mouse button is held right now, which is what a drag asks.

Signature
IsPointerDown -> Truth
    Immediate GUI Application: Immediate GUI Application
    button: Mouse Button
bool IsPointerDown(
    ImmediateGUIApplication Immediate GUI Application,
    MouseButton button = MouseButton.Left)

Parameters

nametypedefaultdescription
Immediate GUI ApplicationImmediate GUI Application—
buttonMouse ButtonLeft

Returns

HeldTruth
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Immediate GUI Application
Package
Immediate-Mode GUI

Measure Text

Function

How wide a run of text draws at a pixel size, so a graph can centre it.

Signature
MeasureText -> Number
    Immediate GUI Application: Immediate GUI Application
    text: Text
    size: Number
double MeasureText(
    ImmediateGUIApplication Immediate GUI Application,
    string text,
    double size)

Parameters

nametypedefaultdescription
Immediate GUI ApplicationImmediate GUI Application—
textText—
sizeNumber—

Returns

WidthNumber
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Immediate GUI Application
Package
Immediate-Mode GUI

Set Always On Top

Function

This node carries no documentation.

Signature
SetAlwaysOnTop
    Immediate GUI Application: Immediate GUI Application
    onTop: Truth
void SetAlwaysOnTop(
    ImmediateGUIApplication Immediate GUI Application,
    bool onTop = true)

Parameters

nametypedefaultdescription
Immediate GUI ApplicationImmediate GUI Application—
onTopTruthTrue
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Immediate GUI Application
Package
Immediate-Mode GUI

Set Borderless

Function

No frame, no title bar. Declare an Add Title Bar row so the window can still be moved and closed.

Signature
SetBorderless
    Immediate GUI Application: Immediate GUI Application
    borderless: Truth
void SetBorderless(
    ImmediateGUIApplication Immediate GUI Application,
    bool borderless = true)

Parameters

nametypedefaultdescription
Immediate GUI ApplicationImmediate GUI Application—
borderlessTruthTrue
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Immediate GUI Application
Package
Immediate-Mode GUI

Set Dark Theme

Function

The dark palette rather than the light one.

Signature
SetDarkTheme
    Immediate GUI Application: Immediate GUI Application
    dark: Truth
void SetDarkTheme(
    ImmediateGUIApplication Immediate GUI Application,
    bool dark = true)

Parameters

nametypedefaultdescription
Immediate GUI ApplicationImmediate GUI Application—
darkTruthTrue
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Immediate GUI Application
Package
Immediate-Mode GUI

Set Full Screen

Function

This node carries no documentation.

Signature
SetFullScreen
    Immediate GUI Application: Immediate GUI Application
    fullScreen: Truth
void SetFullScreen(
    ImmediateGUIApplication Immediate GUI Application,
    bool fullScreen = true)

Parameters

nametypedefaultdescription
Immediate GUI ApplicationImmediate GUI Application—
fullScreenTruthTrue
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Immediate GUI Application
Package
Immediate-Mode GUI

Set Overlay Window

Function

A borderless, transparent, always-on-top window that stays out of the taskbar: the desktop overlay.

Signature
SetOverlayWindow
    Immediate GUI Application: Immediate GUI Application
    width: Number
    height: Number
void SetOverlayWindow(
    ImmediateGUIApplication Immediate GUI Application,
    double width = 480,
    double height = 320)

Parameters

nametypedefaultdescription
Immediate GUI ApplicationImmediate GUI Application—
widthNumber480
heightNumber320
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Immediate GUI Application
Package
Immediate-Mode GUI

Set Transparent Background

Function

The window's background shows the desktop through it, where the platform allows. Windows and macOS do; Linux needs a compositor.

Signature
SetTransparentBackground
    Immediate GUI Application: Immediate GUI Application
    transparent: Truth
void SetTransparentBackground(
    ImmediateGUIApplication Immediate GUI Application,
    bool transparent = true)

Parameters

nametypedefaultdescription
Immediate GUI ApplicationImmediate GUI Application—
transparentTruthTrue
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Immediate GUI Application
Package
Immediate-Mode GUI

Set Window Size

Function

The window's size, in pixels. Valid in ImmediateGUIApplication.Start.

Signature
SetWindowSize
    Immediate GUI Application: Immediate GUI Application
    width: Number
    height: Number
void SetWindowSize(
    ImmediateGUIApplication Immediate GUI Application,
    double width = 1024,
    double height = 720)

Parameters

nametypedefaultdescription
Immediate GUI ApplicationImmediate GUI Application—
widthNumber1024
heightNumber720
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Immediate GUI Application
Package
Immediate-Mode GUI

Set Window Title

Function

This node carries no documentation.

Signature
SetWindowTitle
    Immediate GUI Application: Immediate GUI Application
    title: Text
void SetWindowTitle(
    ImmediateGUIApplication Immediate GUI Application,
    string title = "Divooka")

Parameters

nametypedefaultdescription
Immediate GUI ApplicationImmediate GUI Application—
titleTextDivooka
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Immediate GUI Application
Package
Immediate-Mode GUI

Was Key Pressed

Function

Whether a key went down on this frame, whatever was held with it.

Signature
WasKeyPressed -> Truth
    Immediate GUI Application: Immediate GUI Application
    key: Immediate Key
bool WasKeyPressed(
    ImmediateGUIApplication Immediate GUI Application,
    ImmediateKey key)

Parameters

nametypedefaultdescription
Immediate GUI ApplicationImmediate GUI Application—
keyImmediate Key—

Returns

PressedTruth

Remarks

Any modifier rather than none, because a graph asking "was Escape pressed" means it however the person's other hand happened to be resting. A chord is not offered here: an interface wanting Ctrl+S is describing a command, and a menu item with a shortcut says so where a person can see it.

Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Immediate GUI Application
Package
Immediate-Mode GUI

Was Pointer Pressed

Function

Whether a mouse button went down on this frame, which is what a click asks.

Signature
WasPointerPressed -> Truth
    Immediate GUI Application: Immediate GUI Application
    button: Mouse Button
bool WasPointerPressed(
    ImmediateGUIApplication Immediate GUI Application,
    MouseButton button = MouseButton.Left)

Parameters

nametypedefaultdescription
Immediate GUI ApplicationImmediate GUI Application—
buttonMouse ButtonLeft

Returns

PressedTruth
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Immediate GUI Application
Package
Immediate-Mode GUI

Was Pointer Released

Function

Whether a mouse button came up on this frame.

Signature
WasPointerReleased -> Truth
    Immediate GUI Application: Immediate GUI Application
    button: Mouse Button
bool WasPointerReleased(
    ImmediateGUIApplication Immediate GUI Application,
    MouseButton button = MouseButton.Left)

Parameters

nametypedefaultdescription
Immediate GUI ApplicationImmediate GUI Application—
buttonMouse ButtonLeft

Returns

ReleasedTruth
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Immediate GUI Application
Package
Immediate-Mode GUI

Frame

Event

Declare the whole interface. Runs once per frame, and what it declares IS the interface for that frame.

Signature
Frame(deltaTimeMilliseconds: Number)
void Frame(double deltaTimeMilliseconds)

Parameters

nametypedefaultdescription
deltaTimeMillisecondsNumber—Time elapsed since the previous frame.

Remarks

There is no separate place to handle a press: a button's own call answers whether it was pressed, on the frame it was pressed, so the thing that happens next is written where the button is. That is the whole difference from GUIApplication's Clicked, and the reason an immediate-mode graph has one callback where a described screen has four.

Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events StateMachineState
Declared by
Immediate GUI Application
Package
Immediate-Mode GUI

Initialized

Event

The window exists. Anything that needs to know how big it is, or to read the clipboard, belongs here rather than in ImmediateGUIApplication.Start.

Signature
Initialized()
void Initialized()
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events StateMachineState
Declared by
Immediate GUI Application
Package
Immediate-Mode GUI

Start

Event

Divooka procedural program entry, equivalent to "Main" in many programming languages. Runs before the window exists, which is where the window's size, title and kind belong.

Signature
Start()
void Start()
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events StateMachineState
Declared by
Immediate GUI Application
Package
Immediate-Mode GUI