Crate xcb_util_cursor

source ·
Expand description

Safe libxcb-cursor bindings for rust. You will need xcb.

§Example

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

Structs§

  • Wrapper sctruct for xcb_cursor_context_t that handles creation and freeing.

Enums§