pub fn create_pixmap<Conn>(
    conn: &Conn,
    depth: u8,
    pid: Pixmap,
    drawable: Drawable,
    width: u16,
    height: u16
) -> Result<VoidCookie<'_, Conn>, ConnectionError>
where Conn: RequestConnection + ?Sized,
Expand description

Creates a pixmap.

Creates a pixmap. The pixmap can only be used on the same screen as drawable is on and only with drawables of the same depth.

Fields

  • depth - TODO
  • pid - The ID with which you will refer to the new pixmap, created by xcb_generate_id.
  • drawable - Drawable to get the screen from.
  • width - The width of the new pixmap.
  • height - The height of the new pixmap.

Errors

  • Value - TODO: reasons?
  • Drawable - The specified drawable (Window or Pixmap) does not exist.
  • Alloc - The X server could not allocate the requested resources (no memory?).

See

  • xcb_generate_id: function