The entry pointers
The pointer themes of the boot image, as a table that a reader reads : each pointer shape of a theme at each of its sizes, in each of its forms (the light form on a light track), its hot spot marked, its frames, and the theme with its license and its attribution.
The process has the boot image, read-only. It finds the pointer theme files in the resource table, checks the hash of each one against its entry (the identity of a file is the hash of its content), validates it with the validation of the compositor, and shows one theme at a time: a button for each theme, the theme of the system first, changes the theme. The window is built with the interface package; the pointer pictures are drawn into the canvas directly, inside the area of each tile, because the package has no record of a picture of pixels. Over a tile, the process asks the compositor for the shape of the tile (display.pointer_shape_set): the pointer over this surface shows it.
What it is for. It is the check, by eye, of a resource of the boot image: a reader sees each picture that the compositor can show, at each size, with its license, before it trusts the theme. It also shows the identity rule of a resource: a file whose bytes do not have the hash of its entry is shown as not valid, with the reason.
Start: start("pointers") in the console, or the bar of the desktop.
Grants, as the root service gives them:
- Image: the boot image, read-only, for the resource table and the bytes of each theme. With no image it writes "pointers: no boot image" and stops with
Failed.
What a reader sees: the tiles of one theme; a button for each theme changes the theme, and a press writes "pointers: the theme NAME is shown". A release image holds the theme of the system only, so it shows one button. The log has one line for each theme ("pointers: NAME: the theme, its license, N shapes, M pictures, ...; the hash and the validation in T us", or "... is not valid: ..."), then "pointers: ok, N themes; ...", and "pointers: the pointer is over the tile ..." when the pointer enters a tile.
The design: Pointer pictures.
See: Pointer pictures
pointers module with an entry
- Hash
41ea3c3c9ffbc01bcbd0fa69d22e8f07a67620f95baccd4612815f2ca0053c9a- Size
271752 bytes- Exports
0- Imports
0- Imported by
0- License
- MIT
The pointer themes of the boot image, as a table that a reader reads: each pointer shape of a theme at each of its sizes, in each of its forms (the light form on a light track), its hot spot marked, its frames, and the theme with its license and its attribution
| Fact | Value |
|---|---|
| Kind | Modules with an entry |
| Source | src/modules/demonstrations/pointers |
| Boot image | yes: in the boot image, 271752 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() | The entry of pointers: it checks each pointer theme of the boot image, then shows them until the principal closes the window |
entry
entry()
The entry of pointers: it checks each pointer theme of the boot image, then shows them until the principal closes the window.
It maps the boot image, read-only, and takes the themes in the order in which the compositor prefers them. For each theme it computes the hash, compares it with the entry of the resource, validates the file with the validation of the compositor, and writes one line on the log. With no theme it stops with Failed; with no window it stops with Failed. Then it draws, and draws again after each event that changes the window.
- Form
- The entry of the module: one parameter, an address, fixed by the contract.
src/modules/demonstrations/pointers/main.odin:363
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 | It reads the pointer themes in the resource table of the boot image. | |
| Other terms of its start grant set | none | |
| Budget that it asks for |
| The pointer themes that it checks: 1616 pages. And the glyph memory of its own copy of the text rendering, which draws its text: 354 pages (display.TEXT_MEMORY_PAGES). And the picture of its window, which it draws by hand at its logical size: 976 x 704 pixels of 4 bytes, 671 pages (interface.hand_picture_pages). 1616 + 354 + 671 = 2641. |
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).
