pub fn create_pixmap<Conn>(
conn: &Conn,
pid: Pixmap,
drawable: Drawable,
width: u16,
height: u16,
depth: u8,
shmseg: Seg,
offset: u32,
) -> Result<VoidCookie<'_, Conn>, ConnectionError>where
Conn: RequestConnection + ?Sized,
Expand description
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.
ยงFields
pid
- A pixmap ID created with xcb_generate_id().drawable
- The drawable to create the pixmap in.width
- The width of the pixmap to create. Must be nonzero, or a Value error results.height
- The height of the pixmap to create. Must be nonzero, or a Value error results.depth
- The depth of the pixmap to create. Must be nonzero, or a Value error results.shmseg
- The shared memory segment to use to create the pixmap.offset
- The offset in the segment to create the pixmap at.