# xcb-util-cursor [github](https://github.com/juliuskreutz/xcb-util-cursor-rs) [crates.io](https://crates.io/crates/xcb-util-cursor) [docs.rs](https://docs.rs/xcb-util-cursor) [build status](https://github.com/juliuskreutz/xcb-util-cursor-rs/actions?query=branch%3Amaster) [crates.io](https://github.com/juliuskreutz/xcb-util-cursor-rs) xcb-util-cursor is a safe rust interface for [libxcb-cursor](https://gitlab.freedesktop.org/xorg/lib/libxcb-cursor). It depends on [rust-xcb](https://crates.io/crates/xcb) and uses their types. ```toml # Cargo.toml [dependencies] xcb = "1.4.0" xcb-util-cursor = "0.3.3" ``` ```rust use xcb_util_cursor::{Cursor, CursorContext}; let (connection, _) = xcb::Connection::connect(None).unwrap(); let setup = connection.get_setup(); let screen = setup.roots().next().unwrap(); let cursor_context = CursorContext::new(&connection, screen).unwrap(); let left_ptr = cursor_context.load_cursor(Cursor::LeftPtr); ```