code wiki / (root) / nx_x11_pixmap_kat_test.nx

nx_x11_pixmap_kat_test.nx

buildroot/runtime/nx_x11_pixmap_kat_test.nx

2876 B81 linesdepth 7pulls 8 transitivereach 0 importersview sourcekind gate/prooftopic x11
docsdependenciesstructsconstsfunctions

about

nx_x11_pixmap_kat_test.nx -- minimal pixmap paint+capture KAT. CreatePixmap 100x60. CreateGC with foreground = 0x00FF0000 (red in RGB / X-byte-G-byte-R-byte on a typical 24-bit visual). PolyFillRectangle covering entire pixmap. GetImage 100x60. Verify first pixel bytes are red-ish (any non-zero R channel). expect_exit: 0. license_tier: ORIGINAL

dependencies 6 imports · 0 importers

nx_syscalls.nx nx_x11_connect.nx nx_x11_window.nx nx_x11_paint.nx nx_x11_pixmap.nx nx_x11_get_image.nx nx_x11_pixmap_kat_test.nx

imports: nx_syscalls.nxnx_x11_connect.nxnx_x11_window.nxnx_x11_paint.nxnx_x11_pixmap.nxnx_x11_get_image.nx

imported by: nobody (leaf or entry point)

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

main nx_x11_connect_local sys_mmap _x11_build_path nx_unix_connect sys_socket sys_mmap ↻ sys_connect sys_close _x11_write_n sys_write sys_close ↻ _x11_read_n sys_read _x11_rd_u16 _x11_rd_u32 nx_x11_create_window nx_x11_alloc_id sys_mmap ↻ _x11_wr_u16 _x11_wr_u32 _x11_send sys_write ↻ nx_x11_create_pixmap nx_x11_alloc_id ↻ sys_mmap ↻ _x11_wr_u16 ↻ _x11_wr_u32 ↻ _x11_send ↻ dump_dec sys_mmap ↻ sys_write ↻ nx_x11_create_gc nx_x11_alloc_id ↻ sys_mmap ↻ _x11_wr_u16 ↻ _x11_wr_u32 ↻ _x11_send ↻ nx_x11_fill_rect sys_mmap ↻

structs

none

consts

none

functions

20func dump_dec(l0: i64, l1: i64, v: i64) -> i64
called by 1: main calls 2: sys_mmapsys_write
37func main() -> i64