x11rb::protocol::xproto

Function free_pixmap

Source
pub fn free_pixmap<Conn>(
    conn: &Conn,
    pixmap: Pixmap,
) -> Result<VoidCookie<'_, Conn>, ConnectionError>
where Conn: RequestConnection + ?Sized,
Expand description

Destroys a pixmap.

Deletes the association between the pixmap ID and the pixmap. The pixmap storage will be freed when there are no more references to it.

§Fields

  • pixmap - The pixmap to destroy.

§Errors

  • Pixmap - The specified pixmap does not exist.