code wiki / (root) / nx_browser_demo_test.nx

nx_browser_demo_test.nx

buildroot/runtime/nx_browser_demo_test.nx

24938 B583 linesdepth 8pulls 16 transitivereach 0 importersview sourcekind gate/prooftopic browser
docsdependenciesstructsconstsfunctions

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

nx_syscalls.nx nx_x11_connect.nx nx_x11_window.nx nx_x11_paint.nx nx_x11_paint_text_5x7.nx nx_x11_pixmap.nx nx_x11_screenshot.nx nx_render_journal.nx nx_ux_standard.nx nx_ux_score.nx nx_browser_demo_test.nx

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

main _ignore_sigpipe sys_mmap nx_x11_connect_local sys_mmap ↻ _x11_build_path nx_unix_connect sys_socket sys_mmap ↻ sys_connect sys_close _x11_write_n sys_write sys_close ↻ _x11_read_n sys_read _x11_rd_u16 _x11_rd_u32 dump_dec sys_mmap ↻ sys_write ↻ sys_mmap ↻ nx_x11_create_window nx_x11_alloc_id sys_mmap ↻ _x11_wr_u16 _x11_wr_u32 _x11_send sys_write ↻ nx_x11_set_wm_name sys_mmap ↻ _x11_wr_u16 ↻ _x11_wr_u32 ↻ _x11_send ↻ nx_x11_map_window sys_mmap ↻ _x11_wr_u16 ↻ _x11_wr_u32 ↻ _x11_send ↻ nx_x11_flush_via_get_input

structs

85struct NavState

consts

36const NX_SIGPIPE: i64 = 13
37const NX_SIG_IGN: i64 = 1
38const NX_SYS_RT_SIGACTION: i64 = 134
94const NX_NAV_STATE_BYTES: i64 = 48

functions

40func _ignore_sigpipe() -> i64
called by 1: main calls 1: sys_mmap
50func dump_dec(l0: i64, l1: i64, v: i64) -> i64
called by 1: main calls 2: sys_mmapsys_write
97func nav_color_for(idx: i64) -> i64
called by 1: paint_chrome
110func hit_button(x: i64, y: i64) -> i64
called by 1: main
125func paint_and_log(c: *X11Conn, wid: i64, j: *RenderJournal,
137func paint_chrome(c: *X11Conn, wid: i64, w: i64, h: i64,
305func main() -> i64