nx_browser_demo_test.nx
buildroot/runtime/nx_browser_demo_test.nx
about
nx_browser_demo_test.nx -- Session 3 of bits-up browser arc.
Pops a real Windows window via WSLg and paints actual browser
chrome: gray URL bar with back/forward buttons + text area below.
Subscribes to Expose events; redraws when needed. Exits after
a 10-second visible window so user can see the layout.
Compose-only: nx_x11_connect + nx_x11_window + nx_x11_paint.
expect_exit: 0.
license_tier: ORIGINAL
dependencies 11 imports · 0 importers
diagram shows first 10 each side; +1 more imports, +0 more importers in the complete lists below.
imports: nx_syscalls.nxnx_x11_connect.nxnx_x11_window.nxnx_x11_paint.nxnx_x11_paint_text_5x7.nxnx_x11_pixmap.nxnx_x11_screenshot.nxnx_render_journal.nxnx_ux_standard.nxnx_ux_score.nxnx_ux_triangulate.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| 85 | struct NavState |
consts
| 36 | const NX_SIGPIPE: i64 = 13 |
| 37 | const NX_SIG_IGN: i64 = 1 |
| 38 | const NX_SYS_RT_SIGACTION: i64 = 134 |
| 94 | const NX_NAV_STATE_BYTES: i64 = 48 |
functions
| 40 | func _ignore_sigpipe() -> i64 |
| 50 | func dump_dec(l0: i64, l1: i64, v: i64) -> i64 |
| 97 | func nav_color_for(idx: i64) -> i64 called by 1: paint_chrome |
| 110 | func hit_button(x: i64, y: i64) -> i64 called by 1: main |
| 125 | func paint_and_log(c: *X11Conn, wid: i64, j: *RenderJournal, |
| 137 | func paint_chrome(c: *X11Conn, wid: i64, w: i64, h: i64, called by 1: main calls 5: nx_x11_create_gcnx_x11_fill_rectnx_journal_log_rectnav_color_fornx_x11_paint_text_5x7 |
| 305 | func main() -> i64 |