8 releases

0.3.3 May 24, 2024
0.3.2 Apr 7, 2023
0.3.0 Nov 10, 2022
0.2.0 Nov 9, 2022
0.1.2 Nov 8, 2022

#308 in Graphics APIs

Download history 128/week @ 2024-07-25 71/week @ 2024-08-01 111/week @ 2024-08-08 79/week @ 2024-08-15 92/week @ 2024-08-22 133/week @ 2024-08-29 186/week @ 2024-09-05 186/week @ 2024-09-12 139/week @ 2024-09-19 104/week @ 2024-09-26 130/week @ 2024-10-03 117/week @ 2024-10-10 167/week @ 2024-10-17 317/week @ 2024-10-24 325/week @ 2024-10-31 156/week @ 2024-11-07

986 downloads per month

MIT/Apache

20KB
253 lines

xcb-util-cursor

github crates.io docs.rs build status crates.io

xcb-util-cursor is a safe rust interface for libxcb-cursor. It depends on rust-xcb and uses their types.

# Cargo.toml
[dependencies]
xcb = "1.4.0"
xcb-util-cursor = "0.3.3"
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);

Dependencies

~0.7–2.7MB
~55K SLoC