code wiki / _hdl_build / nx_render_wiki_window.nx
nx_render_wiki_window.nx
buildroot/runtime/_hdl_build/nx_render_wiki_window.nx
about
nx_render_wiki_window.nx -- render the REAL fetched Wikipedia page into a REAL, SCROLLABLE on-screen
window on the Windows desktop (WSLg X server). Composes the sovereign pipeline (layout_from_dom +
layout_block) + the X11 client organs. Text drawn with our 5x7 font (nx_x11_paint_text_5x7 -- no
server font needed). A real X11 event loop: stays open until you close it; scroll with the mouse
wheel / arrow keys / space / PageUp-Down; Esc or q quits. No gcc/V8/Chrome.
dependencies 10 imports · 0 importers
imports: nx_syscalls.nxnx_css_tokenize.nxnx_css_apply.nxnx_layout_box.nxnx_layout_from_dom.nxnx_layout_block.nxnx_x11_connect.nxnx_x11_window.nxnx_x11_paint.nxnx_x11_paint_text_5x7.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
| 16 | const K_MAGIC_16384: i64 = 16384 |
| 17 | const K_MAGIC_8000: i64 = 8000 |
functions
| 20 | func find_byte(html: *u8, hlen: i64, start: i64, b: i64) -> i64 called by 1: scan_links |
| 26 | func find_close_a(html: *u8, hlen: i64, start: i64) -> i64 called by 1: scan_links |
| 39 | func scan_links(html: *u8, hlen: i64, ranges: *i64, maxn: i64) -> i64 |
| 73 | func is_link(off: i64, ranges: *i64, n: i64) -> i64 called by 1: draw_page |
| 83 | func draw_page(c: *X11Conn, wid: i64, ink: i64, blue: i64, paper: i64, tree: *LayoutTree, html: *u8, called by 1: main calls 4: nx_x11_fill_rectis_linknx_x11_paint_text_5x7nx_x11_flush_via_get_input_focus |
| 107 | func main() -> i64 |