3 releases (stable)
1.1.0 | Nov 2, 2023 |
---|---|
1.0.0 | May 9, 2023 |
0.1.0 | May 5, 2023 |
#160 in GUI
341,591 downloads per month
Used in 1,239 crates
(12 directly)
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
~165KB