nx_paint_walk_layout_test.nx
buildroot/runtime/nx_paint_walk_layout_test.nx
about
nx_paint_walk_layout_test.nx -- end-to-end integration smoke for
the bits-up rendering pipeline. Builds a layout tree by hand
(since nx_layout_from_dom is queued), populates a cascade with
background-color declarations per box, walks the tree to paint,
and verifies framebuffer pixels match the expected coloring.
Tree:
root at (0, 0, 32, 32) with background-color: #00ff00 (green)
child at (4, 8, 16, 12) with background-color: #ff00ff (magenta)
Expected rendering (document-order paint: root first, child OVER):
pixel (1, 1) -> green
pixel (10, 10) -> magenta (inside child)
pixel (28, 28) -> green (outside child but inside root)
pixel (4, 8) -> magenta (top-left of child)
pixel (19, 19) -> magenta (bottom-right of child = 4+15, 8+11)
dependencies 7 imports · 0 importers
imports: nx_syscalls.nxnx_css_tokenize.nxnx_css_apply.nxnx_css_color_decode.nxnx_layout_box.nxnx_paint_solid_rect.nxnx_paint_walk_layout.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
| none |
functions
| 26 | func _put_byte(buf: *u8, i: i64, v: i64) -> i64 called by 1: main |
| 31 | func main() -> i64 |