5 releases

0.1.4 May 24, 2024
0.1.3 Apr 7, 2023
0.1.2 Apr 6, 2023
0.1.1 Nov 9, 2022
0.1.0 Nov 7, 2022

#19 in #xcb

Download history 74/week @ 2024-07-19 119/week @ 2024-07-26 92/week @ 2024-08-02 111/week @ 2024-08-09 75/week @ 2024-08-16 107/week @ 2024-08-23 158/week @ 2024-08-30 163/week @ 2024-09-06 188/week @ 2024-09-13 143/week @ 2024-09-20 111/week @ 2024-09-27 122/week @ 2024-10-04 135/week @ 2024-10-11 164/week @ 2024-10-18 381/week @ 2024-10-25 251/week @ 2024-11-01

942 downloads per month
Used in xcb-util-cursor

MIT/Apache

7KB

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.6–2.7MB
~55K SLoC