From 0fc6197034c49d9fdf5607cae201f1ac3270e7de Mon Sep 17 00:00:00 2001 From: Demi Marie Obenour Date: Sun, 3 Jul 2022 18:01:40 -0400 Subject: Document the MIT-SHM extension This adds documentation for the entire MIT-SHM extension. Signed-off-by: Demi Marie Obenour --- src/shm.xml | 214 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 214 insertions(+) diff --git a/src/shm.xml b/src/shm.xml index c2605da..41fb1c1 100644 --- a/src/shm.xml +++ b/src/shm.xml @@ -39,6 +39,29 @@ authorization from the authors. + + Report that an XCB_SHM_PUT_IMAGE request has completed + + + + + + + @@ -52,7 +75,39 @@ authorization from the authors. + + The version of the MIT-SHM extension supported by the server + + + + + The UID of the server. + The GID of the server. + + + Query the version of the MIT-SHM extension. + + @@ -60,10 +115,36 @@ authorization from the authors. + + Attach a System V shared memory segment. + + + + + + + Destroys the specified shared memory segment. + + The segment to be destroyed. + @@ -83,6 +164,49 @@ authorization from the authors. + + Copy data from the shared memory to the specified drawable. + + The drawable to draw to. + The graphics context to use. + The total width of the source image. + The total height of the source image. + The source X coordinate of the sub-image to copy. + The source Y coordinate of the sub-image to copy. + + + + + The depth to use. + + + The offset that the source image starts at. + @@ -100,7 +224,33 @@ authorization from the authors. + + Indicates the result of the copy. + + The depth of the source drawable. + The visual ID of the source drawable. + The number of bytes copied. + + + Copies data from the specified drawable to the shared memory segment. + + The drawable to copy the image out of. + The X coordinate in the drawable to begin copying at. + The Y coordinate in the drawable to begin copying at. + The width of the image to copy. + The height of the image to copy. + A mask that determines which planes are used. + The format to use for the copy (???). + The destination shared memory segment. + The offset in the shared memory segment to copy data to. + @@ -112,6 +262,31 @@ authorization from the authors. + + Create a pixmap backed by shared memory. + +Create a pixmap backed by shared memory. Writes to the shared memory will be +reflected in the contents of the pixmap, and writes to the pixmap will be +reflected in the contents of the shared memory. + + A pixmap ID created with xcb_generate_id(). + The drawable to create the pixmap in. + + + + + + @@ -119,6 +294,21 @@ authorization from the authors. + + Create a shared memory segment + + + The file descriptor the server should mmap(). + + @@ -130,6 +320,30 @@ authorization from the authors. + + The returned file descriptor. + + + + + Asks the server to allocate a shared memory segment. + + + The size of the segment to create. + + -- cgit v1.2.3