nx_browser_render.nx
buildroot/runtime/_hdl_build/nx_browser_render.nx
about
dependencies 18 imports · 31 importers
diagram shows first 10 each side; +8 more imports, +21 more importers in the complete lists below.
imports: nx_syscalls.nxnx_font8x8.nxnx_html_tokenizer.nxnx_dom_query.nxnx_srcset_lib.nxnx_html_entities.nxnx_render_html.nxnx_css_color_decode.nxnx_layout_box.nxnx_layout_default_display.nxnx_layout_from_dom.nxnx_layout_block.nxnx_paint_solid_rect.nxnx_paint_text.nxnx_png_write.nxnx_font.nxnx_aa_raster.nxnx_ttf_fontlib.nx
imported by: nishi_gui.nxnx_blitproof.nxnx_browser_bg_cascade_gate.nxnx_browser_bg_gate.nxnx_browser_darkmode_gate.nxnx_browser_find_gate.nxnx_browser_render_pe.nxnx_browser_render_shot.nxnx_browser_user_sim.nxnx_browser_xp.nxnx_cidx_equiv_gate.nxnx_css_boxmodel_gate.nxnx_css_fontsize_frac_gate.nxnx_drawfb_probe.nxnx_imgpage.nxnx_imgsrc_probe.nxnx_inline_vec_measure_gate.nxnx_layout_probe.nxnx_lineheight_gate.nxnx_nishios_browser.nxnx_nishios_browser_input.nxnx_nishios_browser_x86.nxnx_nishios_docview.nxnx_nishios_net.nxnx_nishios_net_wire.nxnx_ocr_bench_render.nxnx_rawtext_layout_gate.nxnx_srcset_lib_gate.nxnx_text_recall.nxnx_vecpaint_test.nxnx_wpt_reftest.nx
structs
| 27 | struct Page |
consts
| 63 | const NX_PAGE_FIELDS: i64 = 22 |
| 64 | const NX_PAGE_FIELD_BYTES: i64 = 8 |
| 65 | const NX_PAGE_BYTES: i64 = NX_PAGE_FIELDS * NX_PAGE_FIELD_BYTES |
| 66 | const NX_CHROME_H: i64 = 44 // browser chrome (toolbar + address bar) height; page viewport is below it |
| 818 | const BR_FACE_BYTES: i64 = 256 |
| 1240 | const BR_LO: i64 = 40 |
| 1241 | const BR_HI: i64 = 165 |
functions
| 68 | func br_slen(s: *u8) -> i64 { var k: i64=0; while s[k]!=(0 as u8){k=k+1} return k } called by 1: br_layout |
| 86 | func br_cidx_build(tree: *LayoutTree, computed: *CssComputedDecl, ncomp: i64) -> i64 |
| 136 | func br_comp_int(src: *u8, computed: *CssComputedDecl, ncomp: i64, box_idx: i64, prop: *u8, plen: i64, dflt: i64) -> i64 called by 1: main |
| 170 | func br_comp_color(src: *u8, computed: *CssComputedDecl, ncomp: i64, box_idx: i64, prop: *u8, plen: i64) -> i64 called by 3: mainbr_comp_color_inhmain calls 4: sys_mmapnx_css_color_decodenx_css_color_namednx_css_color_rgb_func |
| 211 | func br_comp_fontsize_own(src: *u8, computed: *CssComputedDecl, ncomp: i64, box_idx: i64, pct_out: *i64) -> i64 |
| 257 | func br_comp_lineheight_own(src: *u8, computed: *CssComputedDecl, ncomp: i64, box_idx: i64, fs: i64) -> i64 |
| 352 | func br_comp_lineheight_px(src: *u8, computed: *CssComputedDecl, ncomp: i64, tree: *LayoutTree, box_idx: i64, fs: i64) -> i64 |
| 366 | func br_comp_fontsize_inh(src: *u8, computed: *CssComputedDecl, ncomp: i64, tree: *LayoutTree, box_idx: i64, dflt: i64) -> i64 called by 4: br_comp_fontsize_inhbr_draw_fb_atmainmain calls 3: sys_mmapbr_comp_fontsize_ownbr_comp_fontsize_inh |
| 388 | func br_comp_color_inh(src: *u8, computed: *CssComputedDecl, ncomp: i64, tree: *LayoutTree, box_idx: i64) -> i64 |
| 405 | func br_prop_eq(src: *u8, off: i64, lit: *u8, len: i64) -> i64 |
| 414 | func br_comp_bg(src: *u8, computed: *CssComputedDecl, ncomp: i64, box_idx: i64) -> i64 |
| 449 | func br_comp_border(src: *u8, computed: *CssComputedDecl, ncomp: i64, box_idx: i64, wout: *i64) -> i64 |
| 495 | func br_extract(html: *u8, hlen: i64, elements: *CssElement, ehref_off: *i64, ehref_len: *i64, esrc_off: *i64, esrc_len: *i64, elazy: *i64, vw: i64, dpr_permil: i64, maxn: i64) -> i64 |
| 569 | func br_layout(page: *Page, vw: i64) -> i64 |
| 766 | func br_find_canvas(page: *Page, from: i64) -> i64 |
| 805 | func br_set_fast_vec(v: i64) -> i64 { bpv_fast_on = v; return 0 } |
| 821 | func br_face_register(idx: i64, fh: *i64) -> i64 called by 2: br_set_facebr_face_load_idx calls 7: sys_mmaptf_adv_em1000tf_kern_em1000tf_gidtf_adv_units_gidtf_upem+1 |
| 858 | func br_face_select(idx: i64) -> i64 |
| 867 | func br_set_face(fh: *i64) -> i64 |
| 876 | func br_face_resolve(src: *u8, computed: *CssComputedDecl, ncomp: i64, tree: *LayoutTree, box_idx: i64) -> i64 |
| 880 | func br_face_load_idx(idx: i64, path: *u8) -> i64 |
| 886 | func br_face_load(path: *u8) -> i64 |
| 891 | func br_face_on() -> i64 { if br_face != 0 { return 1 } return 0 } |
| 895 | func br_face_line_h(px: i64) -> i64 { if br_face == 0 { return (px * 12) / 10 + 2 } return tf_content_px(br_face as *i64, px) } |
| 904 | func br_fold_text(src: *u8, off: i64, len: i64, out: *u8, out_cap: i64) -> i64 |
| 929 | func br_text_cp(text: *u8, i: i64, len: i64, cp: *i64) -> i64 { return font_next_cp(text, i, len, cp) } |
| 930 | func bpv_atlas_init() -> i64 |
| 948 | func bpv_cell(ch: i64, empx: i64, cs: *i64, sn: *i64, out: *i64) -> i64 called by 1: br_paint_vec_atlas calls 9: font_face_hasfs_face_adv_ptrtf_glyph_notdeftf_glyphtf_glyph_cpfont_vec_adv_px2+3 |
| 1000 | func bpv_blit_rgba(fb: *Framebuffer, ox: i64, oy: i64, cov: *u8, gw: i64, gh: i64, cr: i64, cg: i64, cb: i64) -> i64 called by 1: br_paint_vec_atlas |
| 1027 | func br_paint_vec_atlas(fb: *Framebuffer, x0: i64, y0: i64, text: *u8, text_len: i64, empx: i64, color: *CssColor, avail_w: i64) -> i64 called by 1: br_paint_vec calls 14: bpv_atlas_initfont_trig_initbr_face_line_hsys_mmapfont_vec_next_break_pxbr_text_cp+8 |
| 1073 | func br_paint_vec(fb: *Framebuffer, x0: i64, y0: i64, text: *u8, text_len: i64, empx: i64, color: *CssColor, avail_w: i64) -> i64 |
| 1160 | func font_vec_adv_px2(ch: i64, empx: i64) -> i64 { return (font_adv_em(ch) * empx) / 1000 } |
| 1163 | func font_vec_text_w_px(text: *u8, start: i64, end: i64, empx: i64) -> i64 { return font_vec_text_w_fs(text, start, end, empx) } |
| 1164 | func font_vec_next_break_px(text: *u8, len: i64, avail_px: i64, start: i64, empx: i64) -> i64 { return font_vec_next_break_fs(text, len, avail_px, start, empx) } |
| 1171 | func br_ci(a: i64) -> i64 { if a >= 65 { if a <= 90 { return a + 32 } } return a } called by 1: br_box_has_term |
| 1172 | func br_box_has_term(buf: *u8, off: i64, len: i64, term: *u8, tlen: i64) -> i64 |
| 1184 | func br_find(page: *Page, term: *u8, tlen: i64, yb: *i64) -> i64 calls 1: br_box_has_term |
| 1206 | func br_color_from_int(c: i64) -> *CssColor |
| 1215 | func br_bit(ft8: *u8, go: i64, col: i64, row: i64) -> i64 |
| 1224 | func br_glyph_cov(ft8: *u8, go: i64, fx256: i64, fy256: i64) -> i64 |
| 1242 | func br_sharpen(c: i64) -> i64 called by 1: br_cov_hybrid |
| 1250 | func br_cov_hybrid(ft8: *u8, go: i64, fx256: i64, fy256: i64) -> i64 |
| 1266 | func br_paint_text2x(fb: *Framebuffer, x: i64, y: i64, text: *u8, text_len: i64, color: *CssColor, scale: i64) -> i64 |
| 1322 | func br_blit_rgb(fb: *Framebuffer, dx: i64, dy: i64, boxW: i64, boxH: i64, src: *u8, sw: i64, sh: i64) -> i64 |
| 1359 | func br_draw_fb_at(fb: *Framebuffer, page: *Page, win_w: i64, cur_url: *u8, ulen: i64, scale: i64, scroll_y: i64) -> i64 |
| 1620 | func br_draw_fb(fb: *Framebuffer, page: *Page, win_w: i64, cur_url: *u8, ulen: i64, scale: i64) -> i64 |
| 1631 | func br_shot_png(page: *Page, cur_url: *u8, ulen: i64, path: *u8) -> i64 |
| 1658 | func br_hit_link(page: *Page, dx: i64, dy: i64, off: *i64, len: *i64) -> i64 called by 1: main |