code wiki / _hdl_build / nx_ui_exec_intent_gate.nx
nx_ui_exec_intent_gate.nx
buildroot/runtime/_hdl_build/nx_ui_exec_intent_gate.nx
about
nx_ui_exec_intent_gate.nx -- EXECUTION-verify the DEMOTED-button pattern (task #35/#36): a click fires
an INTENT into a sovereign core (stubbed here as a plain fn owning the state), the core flips state, and
the adapter RENDERS it via classList -- the exact shape of the demoted mic/cam buttons in app.v2.js
(NX.uic_intent -> read state -> e.currentTarget.classList.toggle("on", state)). Proves the engine now
executes event + classList so this pattern is machine-verifiable, not browser-only. Drives js_render_page
(real engine path). NEG-controls give teeth. 0=GREEN / 1=RED.
dependencies 2 imports · 0 importers
imports: nx_syscalls.nxnx_js_eval.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| none |
functions
| 10 | func r_p(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 } |
| 11 | func r_pn(v: i64) -> i64 |
| 17 | func r_clen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n } |
| 18 | func r_contains(buf: *u8, blen: i64, needle: *u8) -> i64 |
| 23 | func chk(cond: i64, name: *u8, pp: *i64, tp: *i64) -> i64 |
| 28 | func main() -> i64 |