Glossary
anchor
Section titled “anchor”The side or the corner of the window that a UI is pinned to, set by anchorX and anchorY of UIData: the canvas sits there when the window shows more than it, and zooms around it.
A node has anchors too: the point of its bounds that stays in place when its size changes (Position and size).
See The design canvas.
backend
Section titled “backend”The module that runs JOID on a graphics and window library: LWJGL 2, LWJGL 3 or Vulkan.
See Choosing a backend.
background
Section titled “background”The documentation uses this word in three senses, always with its qualifier:
- UI backdrop: the veil that
@UIData(background = true)draws behind a UI, with the color ofbackgroundColor; a modal popup uses it to dim what is under it. - Window background: the color that
WindowUIBridge.background(Color)clears the window with before every frame. - Host background: what your own application draws around JOID when JOID runs inside it; JOID never draws it.
See UIs.
The lambda that body(...) runs right away with a node, to create its children where the node is created.
See Nodes and the tree.
bridge
Section titled “bridge”The interface through which the core of JOID talks to a backend (render, window, audio, thread, clock, UI).
See Embedding JOID.
cache folder
Section titled “cache folder”The folder where JOID writes machine caches that it can rebuild, such as generated font atlases.
cancel
Section titled “cancel”To refuse a change with cancel() in a before listener: the change does not apply, and no on listener hears it.
The listeners after it do not run, except the MONITOR ones.
See Events.
consume
Section titled “consume”To stop an input with consume(): a consumed input reaches no other handle listener, no onClick, none of the handling of the node itself, no UI below and not the host.
Only the MONITOR listeners still hear it.
See Events.
control
Section titled “control”A node that holds a value the user changes: checkbox, toggle, switch, selector, slider, text field.
See Controls.
data folder
Section titled “data folder”The folder where JOID writes the data of the application: stores and remembered properties.
derived value
Section titled “derived value”A read-only signal computed from other signals, with map or Signal.from.
JOID computes it again when it is read after one of those signals changed, or at once when it has subscribers.
See Derived values.
design canvas
Section titled “design canvas”The fixed area, in design pixels, on which you place the nodes of a UI; JOID scales it to the window.
See The design canvas.
design pixel
Section titled “design pixel”The unit of every position and size in JOID: one pixel of the design canvas, whatever the size of the window.
See The design canvas.
dev jar
Section titled “dev jar”The -dev jar of a JOID module: the prod content plus the inspector, the reload, the dev warnings and the snapshot backends.
See Installation.
dev mode
Section titled “dev mode”The mode that the dev jar turns on: the inspector, hot reload, the dev shortcuts and the warnings meant for development.
JOIDEnv.isDevMode reads it.
See Dev tools.
effect
Section titled “effect”A NodeEffect that changes how a node is drawn (rounded corners, border, shadow, blur, mask, transform), never its layout.
See Effects.
The state of the text field that receives the typed keys: a press over a field blurs the other fields of the UI bridge first, so the user has one focused field at a time.
A field gains the focus (“focuses the field”) on a press over it or with focus(), and loses it (“blurs the field”) on a press elsewhere, Escape, Enter in a one-line field, its detach or blur().
See Text fields.
One call of frame() by your loop: JOID handles the resize, updates every open UI, then draws them.
See The frame lifecycle.
The application that runs JOID inside its own window and loop.
See Embedding JOID.
interface scale
Section titled “interface scale”A factor that the UI bridge applies on top of the canvas scaling, to make every UI larger or smaller.
See The design canvas.
layout node
Section titled “layout node”A node that places its children itself on every frame, such as a FlexNode or a GridNode; any other node leaves its children where they are.
See Layout.
listener
Section titled “listener”A function that you give to a handleX, beforeX or onX method of a node or a UI, and that JOID calls with an event object when the event happens.
handle listeners receive the raw input, before listeners can refuse a change, on listeners hear what happened.
See Events.
listener priority
Section titled “listener priority”The order of the listeners of one event, set by EventPriority: from HIGHEST to LOWEST, then MONITOR, and in the order they were added within one priority.
A MONITOR listener only reads: it still runs after a consume or a cancel.
See Events.
Multi-channel signed distance field: the technique JOID uses to keep text sharp at every size.
See MSDF text.
An element of the node tree: a shape, a text, an image, a control or a container.
Every node extends Node and is created by a create(...) factory.
See Nodes and the tree.
node tree
Section titled “node tree”The nodes of a UI, attached to the UI or to each other; a child is drawn and positioned relative to its parent.
See Nodes and the tree.
overlay
Section titled “overlay”A UI that stays open while screens open and close, configured by UIDataOverlay: it is drawn below the screens unless its render sets aboveScreens, and it takes the input only when its interaction is active.
See Overlays and popups.
pending value
Section titled “pending value”The last value that a control was asked for, by a setter, its signal or the user, when its bounds refuse it: the control shows a value within its bounds and asks for the pending value again when the bounds change.
See Controls.
A UI opened above another one, configured by UIDataPopup, with an opening and a closing transition.
See Overlays and popups.
priority
Section titled “priority”The order of the bridges of one registry: the highest priority receives the input first and is drawn on top.
See Embedding JOID.
prod jar
Section titled “prod jar”The -prod jar of a JOID module, the one an application ships.
See Installation.
reactive setter
Section titled “reactive setter”The overload of a fluent setter that takes a Supplier, so that the property follows a value that changes.
To the question “When does JOID compute this value again?”, it answers: on every frame for a lambda, when one of its signals changes for an expression that reads signals.
See Signals.
render thread
Section titled “render thread”The thread that calls register() on the backend, then frame(): JOID draws there and calls the listeners of your UIs there.
The end of a load (onLoad, a font future) and a signal written from another thread reach it at the start of the next frame.
See Threads.
resource
Section titled “resource”An image, an animated image, a vector image or a video, created by Resource.of from a file, a stream, a URL or an asset.
See Images and media.
screen
Section titled “screen”A UI that is neither a popup nor an overlay: opening one closes the open screens and popups.
See UIs.
screen pixel
Section titled “screen pixel”The unit of the window: one pixel of what the backend draws, in which the window bridge gives the size of the window and the position of the mouse. On a HiDPI screen, the backends read the size of the framebuffer: a window that the system scales by 2 is twice as many screen pixels wide as the size the system gives it.
See The design canvas.
shortcut
Section titled “shortcut”A Shortcut: a key with its modifiers, attached to a UI or a node, that runs a listener when the key goes down.
signal
Section titled “signal”A value holder that the interface follows: a node property set from a signal shows its new value from the next frame after the signal changes.
See Signals.
skeleton
Section titled “skeleton”The placeholder that a node draws in its place while one of its wait conditions fails.
See Rebuilding the tree.
A subclass of an abstract control that draws it; a set of skins forms a UI kit.
See Give your controls a look.
A shared value container that lives as long as its scope: a UI, the application or the disk.
See Stores and remembered properties.
A Task: code that runs after a delay, once or on a period, on the clock of JOID and on the render thread, while it stays attached to a UI or a node.
See Tasks and background updates.
transition
Section titled “transition”The animation of a UI when it opens or closes.
See Transitions.
A class that extends UI and describes one interface: a screen, an overlay or a popup.
JOID draws the open UIs in three groups, the overlays below the screens, then the screens and the popups, then the overlays above the screens, ordered by zindex inside each group.
See UIs.
UI bridge
Section titled “UI bridge”The bridge that holds the open UIs, routes the input to them and draws them every frame; the window UI bridge is the default one.
See Embedding JOID.
The part of the design canvas, and of the space around it, that the window shows, in design pixels: getViewX, getViewY, getViewWidth and getViewHeight of a UI.
See The design canvas.
viewport
Section titled “viewport”The window measured in design pixels: the window divided by the factor that fits the 1920 × 1080 canvas in it; what exceeds the canvas forms the bands.
See The design canvas.
window bridge
Section titled “window bridge”The IWindowBridge of a backend, which gives JOID the size of the window, the mouse, the held keys and the clipboard; it holds no UI.
See Window bridge.
window UI bridge
Section titled “window UI bridge”The WindowUIBridge, the UI bridge that the backend registers by default: it clears the window to the window background and draws text tooltips.
See Style the window UI bridge.
A factor of one UI, set by UI.zoom, that scales it around its anchor on top of the interface scale.
See The design canvas.
