xcb-util-cursor-sys

Crates.ioxcb-util-cursor-sys
lib.rsxcb-util-cursor-sys
version0.1.4
sourcesrc
created_at2022-11-07 03:18:17.790882
updated_at2024-05-24 05:44:06.700381
descriptionBindings to libxcb-cursor.
homepagehttps://github.com/JuliusKreutz/xcb-util-cursor-rs
repositoryhttps://github.com/JuliusKreutz/xcb-util-cursor-rs
max_upload_size
id706928
size17,163
Julius Kreutz (juliuskreutz)

documentation

https://docs.rs/xcb-util-cursor-sys

README

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);
Commit count: 27

cargo fmt