nx_x11_pixmap.nx
buildroot/runtime/nx_x11_pixmap.nx
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
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
| 38 | func nx_x11_create_pixmap(conn: *X11Conn, drawable: i64, called by 3: maindg_prove_surfacemain calls 5: nx_x11_alloc_idsys_mmap_x11_wr_u16_x11_wr_u32_x11_send |
| 56 | func nx_x11_free_pixmap(conn: *X11Conn, pixmap_id: i64) -> i64 |
| 67 | func main() -> i64 |