code wiki / (root) / nx_x11_pixmap.nx

nx_x11_pixmap.nx

buildroot/runtime/nx_x11_pixmap.nx

2207 B69 linesdepth 5pulls 5 transitivereach 5 importersview sourcekind tooltopic x11
docsdependenciesstructsconstsfunctions

about

nx_x11_pixmap.nx -- bits-up X11 off-screen pixmap drawable. Part of the "Nishi troubleshoots Nishi" self-closing-loop arc. Off-screen pixmaps let us render the SAME drawing code-path to a drawable we can read back via GetImage, then drop to a file the developer (human OR Claude) can open without needing a live X11 session. Replaces "ask the user did you see X?" with "diff /tmp/nishi_render.ppm against the expected golden." X11 Protocol ยง6 Pixmap. CreatePixmap (opcode 53): byte 0: opcode = 53 byte 1: depth bytes 2-3: request_length (4-byte units) = 4 bytes 4-7: pixmap id (allocated via nx_x11_alloc_id) bytes 8-11: drawable (typically the window -- gives screen context) bytes 12-13: width bytes 14-15: height FreePixmap (opcode 54): byte 0: 54 byte 1: unused bytes 2-3: request_length = 2 bytes 4-7: pixmap id license_tier: ORIGINAL genealogy_id: international-research-sources/x_org/xproto_v11_r0 lineage_id: nishi_x11_pixmap_q10

dependencies 3 imports · 3 importers

nx_syscalls.nx nx_x11_connect.nx nx_x11_window.nx nx_x11_pixmap.nx nx_browser_demo_test.nx nx_desktop_game.nx nx_x11_pixmap_kat_test.nx

imports: nx_syscalls.nxnx_x11_connect.nxnx_x11_window.nx

imported by: nx_browser_demo_test.nxnx_desktop_game.nxnx_x11_pixmap_kat_test.nx

structs

none

consts

none

functions

38func nx_x11_create_pixmap(conn: *X11Conn, drawable: i64,
56func nx_x11_free_pixmap(conn: *X11Conn, pixmap_id: i64) -> i64
67func main() -> i64