The program interface_elements
The elements of the interface package, live (docs/INTERFACE.md).
The window shows each element of the package: a button, a list with a choice, a text input, bars, lines of a label and a value, a table, the large number of a card. A second card shows the draw table of the last frame: its records, its bytes of text, its damage rectangles and the time of each part. A button shows the damage rectangles of each frame over the window, as records of the next frame.
At its start the program measures the damage by difference on its own window: a frame where nothing changed, a frame where one number changed, a frame where everything moved, and the whole frame drawn with no comparison. The log has the numbers.
| Fact | Value |
|---|---|
| Source | programs/interface_elements |
| Boot image | in the boot image; the image is not built, so its size is not known |
| Imports | none |
| Imported by | none |
Exports
| Export | What it does |
|---|---|
| entry() |
Read from the source of the module, as the build reads it to describe the exports (tools/kerneltool/describe.odin).
What the root service gives it
| What | Value | As the root service says |
|---|---|---|
| Grants | {} | Not named in grants_of: the grants of each other program. |
| Budget: pages, programs, threads | {pages = 2048, programs = 1, threads = 1} | Not named in things_of: the budget of each other program. |
Read from grants_of and things_of in programs/root/main.odin; budget_of in the same file adds the limits of processor time and of log records.
