Skip to main content

Module elements

Module elements 

Source
Expand description

The built-in UI elements and the arguments each one takes. The checker dispatches on Element::kind, and tools such as the language server read the same table.

Structsยง

Element
A built-in element such as label or row.
Param

Enumsยง

BoundType
ElementKind
Which element a table entry is, for the checker to dispatch on.
Options
A set of values written as .name; Options::names lists them.
ParamKind
Place
Where in a program an element may be written.
TrailingBlock
What the { โ€ฆ } after an element holds.

Constantsยง

ELEMENTS
IN_UI ๐Ÿ”’
MENU
The element that declares a menu, at the top level or in another menu.
OPEN
The window setting that says whether it opens when the app starts.
SCROLL_PARAMS ๐Ÿ”’
A scroll area always takes the space its parent has left, so it takes every stack setting but grow, which comes last.
STACK_PARAMS ๐Ÿ”’
WINDOW
The element that declares a window, which only appears at the top level.

Functionsยง

element
The element called name, if it is built in.
named ๐Ÿ”’
positional ๐Ÿ”’
primitive_name ๐Ÿ”’
required ๐Ÿ”’