Function x11rb::protocol::xproto::free_cursor

source ·
pub fn free_cursor<Conn>(
    conn: &Conn,
    cursor: Cursor
) -> Result<VoidCookie<'_, Conn>, ConnectionError>
where Conn: RequestConnection + ?Sized,
Expand description

Deletes a cursor.

Deletes the association between the cursor resource ID and the specified cursor. The cursor is freed when no other resource references it.

Fields

  • cursor - The cursor to destroy.

Errors

  • Cursor - The specified cursor does not exist.