3 releases (stable)

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

#160 in GUI

Download history 65353/week @ 2024-07-23 62581/week @ 2024-07-30 66481/week @ 2024-08-06 67626/week @ 2024-08-13 62978/week @ 2024-08-20 66385/week @ 2024-08-27 70451/week @ 2024-09-03 66186/week @ 2024-09-10 71201/week @ 2024-09-17 77939/week @ 2024-09-24 82251/week @ 2024-10-01 80820/week @ 2024-10-08 79641/week @ 2024-10-15 79224/week @ 2024-10-22 82193/week @ 2024-10-29 85642/week @ 2024-11-05

341,591 downloads per month
Used in 1,239 crates (12 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

~165KB