nx_browser_render.nx
buildroot/runtime/_hdl_build/nx_browser_render.nx
about
dependencies 16 imports · 33 importers
diagram shows first 10 each side; +6 more imports, +23 more importers in the complete lists below.
imports: nx_syscalls.nxnx_font8x8.nxnx_html_tokenizer.nxnx_dom_query.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.nx
imported by: nishi_gui.nxnx_aw_browser_gate.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_gx1b_page3d_gate.nxnx_gx1c_canvas_gate.nxnx_gx4_walk_gate.nxnx_gx7_game_gate.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_vecpaint_test.nx
structs
| 25 | struct Page |
consts
| 51 | const NX_PAGE_BYTES: i64 = 160 |
| 52 | const NX_CHROME_H: i64 = 44 // browser chrome (toolbar + address bar) height; page viewport is below it |
| 1022 | const BR_LO: i64 = 40 |
| 1023 | const BR_HI: i64 = 165 |
functions
| 54 | func br_slen(s: *u8) -> i64 { var k: i64=0; while s[k]!=(0 as u8){k=k+1} return k } |
| 72 | func br_cidx_build(tree: *LayoutTree, computed: *CssComputedDecl, ncomp: i64) -> i64 |
| 122 | func br_comp_int(src: *u8, computed: *CssComputedDecl, ncomp: i64, box_idx: i64, prop: *u8, plen: i64, dflt: i64) -> i64 called by 1: main |
| 156 | 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 |
| 197 | func br_comp_fontsize_own(src: *u8, computed: *CssComputedDecl, ncomp: i64, box_idx: i64, pct_out: *i64) -> i64 |
| 243 | func br_comp_lineheight_own(src: *u8, computed: *CssComputedDecl, ncomp: i64, box_idx: i64, fs: i64) -> i64 |
| 338 | func br_comp_lineheight_px(src: *u8, computed: *CssComputedDecl, ncomp: i64, tree: *LayoutTree, box_idx: i64, fs: i64) -> i64 |
| 352 | 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 |
| 374 | func br_comp_color_inh(src: *u8, computed: *CssComputedDecl, ncomp: i64, tree: *LayoutTree, box_idx: i64) -> i64 |
| 391 | func br_prop_eq(src: *u8, off: i64, lit: *u8, len: i64) -> i64 |
| 400 | func br_comp_bg(src: *u8, computed: *CssComputedDecl, ncomp: i64, box_idx: i64) -> i64 |
| 435 | func br_comp_border(src: *u8, computed: *CssComputedDecl, ncomp: i64, box_idx: i64, wout: *i64) -> i64 |
| 481 | func br_extract(html: *u8, hlen: i64, elements: *CssElement, ehref_off: *i64, ehref_len: *i64, esrc_off: *i64, esrc_len: *i64, maxn: i64) -> i64 |
| 541 | func br_layout(page: *Page, vw: i64) -> i64 |
| 680 | func br_find_canvas(page: *Page, from: i64) -> i64 |
| 719 | func br_set_fast_vec(v: i64) -> i64 { bpv_fast_on = v; return 0 } |
| 720 | func bpv_atlas_init() -> i64 |
| 738 | func bpv_cell(ch: i64, empx: i64, cs: *i64, sn: *i64, out: *i64) -> i64 |
| 774 | 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 |
| 801 | 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 10: bpv_atlas_initfont_trig_initsys_mmapfont_vec_next_break_pxbpv_cellfont_sp_shift_disp+4 |
| 839 | func br_paint_vec(fb: *Framebuffer, x0: i64, y0: i64, text: *u8, text_len: i64, empx: i64, color: *CssColor, avail_w: i64) -> i64 |
| 923 | func font_vec_adv_px2(ch: i64, empx: i64) -> i64 { return (font_adv_em(ch) * empx) / 1000 } called by 4: bpv_cellbr_paint_vec_atlasfont_vec_text_w_pxfont_vec_next_break_px calls 1: font_adv_em |
| 924 | func font_vec_text_w_px(text: *u8, start: i64, end: i64, empx: i64) -> i64 |
| 930 | func font_vec_next_break_px(text: *u8, len: i64, avail_px: i64, start: i64, empx: i64) -> i64 |
| 953 | func br_ci(a: i64) -> i64 { if a >= 65 { if a <= 90 { return a + 32 } } return a } called by 1: br_box_has_term |
| 954 | func br_box_has_term(buf: *u8, off: i64, len: i64, term: *u8, tlen: i64) -> i64 |
| 966 | func br_find(page: *Page, term: *u8, tlen: i64, yb: *i64) -> i64 calls 1: br_box_has_term |
| 988 | func br_color_from_int(c: i64) -> *CssColor |
| 997 | func br_bit(ft8: *u8, go: i64, col: i64, row: i64) -> i64 |
| 1006 | func br_glyph_cov(ft8: *u8, go: i64, fx256: i64, fy256: i64) -> i64 |
| 1024 | func br_sharpen(c: i64) -> i64 called by 1: br_cov_hybrid |
| 1032 | func br_cov_hybrid(ft8: *u8, go: i64, fx256: i64, fy256: i64) -> i64 |
| 1048 | func br_paint_text2x(fb: *Framebuffer, x: i64, y: i64, text: *u8, text_len: i64, color: *CssColor, scale: i64) -> i64 |
| 1104 | func br_blit_rgb(fb: *Framebuffer, dx: i64, dy: i64, boxW: i64, boxH: i64, src: *u8, sw: i64, sh: i64) -> i64 |
| 1141 | func br_draw_fb_at(fb: *Framebuffer, page: *Page, win_w: i64, cur_url: *u8, ulen: i64, scale: i64, scroll_y: i64) -> i64 |
| 1381 | func br_draw_fb(fb: *Framebuffer, page: *Page, win_w: i64, cur_url: *u8, ulen: i64, scale: i64) -> i64 |
| 1392 | func br_shot_png(page: *Page, cur_url: *u8, ulen: i64, path: *u8) -> i64 |
| 1419 | func br_hit_link(page: *Page, dx: i64, dy: i64, off: *i64, len: *i64) -> i64 |