Skip to content

juliuskreutz/xcb-util-cursor-rs

Repository files navigation

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);

About

No description, website, or topics provided.

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published