Expand description
The graphics call executor: one service behind every way a program reaches the UI.
A caller names a call by its catalog ID and passes up to
MAX_ARGUMENTS words. execute checks the call,
takes the graphics lock, resolves object handles through the caller’s
State, runs the call on LVGL and writes the result back. Whatever
differs between callers is behind Transport: how a pointer, string or
buffer word becomes memory. Wasm guests pass offsets into linear memory
(LinearMemory); native code passes host pointers.
The executor owns what every caller needs and none should reimplement:
- the graphics lock, held for exactly one call;
- the per-process object identity table in
State, deleted with the process; - the event queue behind
window_pop_event; - the Xila extension calls (IDs from
0xf000).
The call table (the Function enum and its dispatch) is generated at
build time from the same catalog that generates guest bindings.
Structs§
- Call
- One call.
argumentsbeyond the function’s count are ignored but must be present;countmust equal the function’s argument count. - Linear
Memory - A flat byte buffer addressed by offset: the transport for Wasm linear memory, and for any caller whose pointers are offsets into one buffer. Offset 0 is null.
- State
- One process’s graphics identity table and the resources behind it.
Enums§
Constants§
- EVENT_
CLOSE_ REQUESTED - Xila window close request, separate from LVGL’s standard events.
- MAX_
ARGUMENTS - The most argument words one call carries.
Traits§
- Transport
- Argument memory of one caller.
Functions§
- execute
- Run one call for the process that owns
state, blocking the thread while another holder has the graphics lock. A caller on a cooperative executor takes the lock itself and usesexecute_locked. - execute_
locked - Run a call after the caller has acquired the graphics lock.