code wiki / _hdl_build / nx_browser_render_pe.nx

nx_browser_render_pe.nx

buildroot/runtime/_hdl_build/nx_browser_render_pe.nx

1641 B37 linesdepth 9pulls 29 transitivereach 0 importersview sourcekind tooltopic browser
docsdependenciesstructsconstsfunctions

about

nx_browser_render_pe.nx -- R2/R3 proof: run the EXTRACTED CSS render organ (br_layout cascade+box-layout, br_draw_fb framebuffer paint) as a NATIVE WINDOWS PE. Reads _offc/nxhtml.html, lays it out, paints into an RGBA framebuffer, swaps to BGRA (Windows DIB order), and dumps the raw pixels to stdout (SW*SH*4 bytes) so a Windows-side blit can PNG it. Built through the fetch keystone (file-read + write + mmap thunks already present). Proves the layout+paint compiles + runs off-X11 on metal, the foundation for the GUI integration.

dependencies 1 imports · 0 importers

nx_browser_render.nx nx_browser_render_pe.nx

imports: nx_browser_render.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main sys_read_file sys_openat_rd sys_lseek sys_mmap sys_read sys_close br_layout br_slen sys_mmap ↻ rh_extract_styles sys_mmap ↻ nx_html_cursor_init nx_html_next_token _scan_name _is_name _is_void_element _lc nx_html_is_raw_text_tag _lc ↻ nx_html_consume_raw_text _lc ↻ _is_ws _lfd_name_eq _lfd_lc _rh_copy_css rh_filter_media sys_mmap ↻ rh_find rh_media_matches rh_find ↻ rh_num_after rh_digit cx_expand sys_mmap ↻ cx_collect cx_ch cx_is_ws cx_find cx_name_eq

structs

none

consts

none

functions

8func main() -> i64