The entry interface_elements
The elements of the windows of the system, live: buttons, fields, lists, tables. The design: The interface of the processes.
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 process 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.
What it is for. It is the catalog of the elements of the interface package, each in its live state, and the measure of damage by difference: a frame is a draw table that the package compares with the table of the frame before, and only the rectangles that differ are drawn again.
What a reader sees. Start it from the start menu, or with start("interface_elements") in the console. The input can press the button, choose a line of the list, and type in the text input; the second card shows the cost of each frame. The action bar at the bottom names the keys, and a press on an item runs its key. The log gets one line for each measured frame (interface_elements: <frame>: <count> records, <count> damage rectangles, ...), the time of one whole frame, then interface_elements: ok, ....
Its grants: none. A window is all that it needs.
interface_elements module with an entry
- Hash
d4b316e32bc8cdf8d7fe408c5eb415ba198fe9367eaf82f85ea28c854bb3dc03- Size
270647 bytes- Exports
0- Imports
0- Imported by
0- License
- MIT
The elements of the windows of the system, live: buttons, fields, lists, tables
| Fact | Value |
|---|---|
| Kind | Modules with an entry |
| Source | src/modules/demonstrations/interface_elements |
| Boot image | yes: in the boot image, 270647 bytes in this build |
| Build settings | none: the defaults of the source |
| Imports | none |
| Imported by | none |
Neighbours
It imports no module, and no module imports it. The module graph shows it with the other modules that have no edge.
Exports
| Export | What it does |
|---|---|
entry() | opens the window, runs the four measures of the damage by difference and the measure of one whole frame, writes them on the log, then draws a frame at each event of the window until the process is stopped |
entry
entry()
entry opens the window, runs the four measures of the damage by difference and the measure of one whole frame, writes them on the log, then draws a frame at each event of the window until the process is stopped. With no window, it stops with Failed.
- Form
- The entry of the module: one parameter, an address, fixed by the contract.
src/modules/demonstrations/interface_elements/main.odin:282
Read from the source of the module, as the build reads it to describe the exports (tools/modustool/build/describe.odin).
What the root service gives it
| What | Value | As the root service says |
|---|---|---|
| Grants | none | The elements of the interface package, in its window. |
| Other terms of its start grant set | none | |
| Budget that it asks for |
| The least budget of 2048 pages, in which it ran before it stated its window, less that window at the scale 1 (893 pages): its module, its stack, its tables and its glyph memory. The tool counts the window at the largest scale. See: Module contract: The budget that a module asks for |
The start grant set is read from start_grant_sets in src/modules/system/root/start_grant_sets.odin. The stated budget is read from the constant MODULE_BUDGET of the source of the module (its line); the build adds the counted parts and writes the sum in the module (tools/modustool/build/budget_count.odin); the root service accepts it up to the largest budget of a process, and adds the limits of processor time and of log records (src/modules/system/root/budgets.odin).
