Skip to main content

Module ui

Module ui 

Source
Expand description

Windows and views: their templates, and the functions behind each template’s dynamic parts, which the runtime calls with the template’s frame.

A for over a place shows each item through an alias, as the interpreter does. Its list positions are worked out when the region is built and kept in extra slots after the frame’s own locals, so every function that reads the item finds the same one.

Structs§

Frame 🔒
The frame a window’s or view’s templates share: its locals, then the extra slots its for regions keep list positions in.
Slot 🔒
Where a template’s fields go: its blob and its offset in it.
Ui 🔒

Functions§

put_image 🔒
put_label 🔒
put_stack 🔒
show_round 🔒
Tells the sink to show a for region’s body once more, and gives that round’s frame.
slot_offset 🔒
store_index 🔒
Puts a round’s position in the loop’s index, when the loop names one.
store_int 🔒
Stores an int in a frame’s slot.
views 🔒
windows 🔒

Type Aliases§

Aliases 🔒
The aliases templates inside a region can see.