3 releases (stable)

1.1.0 Nov 2, 2023
1.0.0 May 9, 2023
0.1.0 May 5, 2023

#144 in GUI

Download history 23012/week @ 2024-01-05 30920/week @ 2024-01-12 34389/week @ 2024-01-19 39557/week @ 2024-01-26 40655/week @ 2024-02-02 45344/week @ 2024-02-09 52187/week @ 2024-02-16 50420/week @ 2024-02-23 48938/week @ 2024-03-01 45591/week @ 2024-03-08 46449/week @ 2024-03-15 51340/week @ 2024-03-22 51262/week @ 2024-03-29 44983/week @ 2024-04-05 47061/week @ 2024-04-12 42744/week @ 2024-04-19

193,523 downloads per month
Used in 758 crates (7 directly)

MIT OR Apache-2.0 OR Zlib

19KB
192 lines

cursor-icon: A common cursor icon type

This library provides standard type to work with the cursor icon accross multiple platforms.

The transformation to the actual value used by the platform for this icon is left to the libraries like https://github.com/rust-windowing/winit.


lib.rs:

The cross platform cursor icon type.

This type is intended to be used as a standard interopability type between GUI frameworks in order to convey the cursor icon type.

Example

use cursor_icon::CursorIcon;

// Parse a cursor icon from the string that describes it.
let cursor_name = "pointer";
let cursor_icon: CursorIcon = cursor_name.parse()?;
println!("The cursor icon is {:?}", cursor_icon);

Dependencies

~180KB