4 releases (stable)

1.2.0 May 25, 2025
1.1.0 Nov 2, 2023
1.0.0 May 9, 2023
0.1.0 May 5, 2023

#194 in GUI

Download history 209247/week @ 2025-03-20 198610/week @ 2025-03-27 189222/week @ 2025-04-03 176251/week @ 2025-04-10 149127/week @ 2025-04-17 172080/week @ 2025-04-24 173113/week @ 2025-05-01 160396/week @ 2025-05-08 157864/week @ 2025-05-15 157803/week @ 2025-05-22 167069/week @ 2025-05-29 184723/week @ 2025-06-05 172920/week @ 2025-06-12 144362/week @ 2025-06-19 167225/week @ 2025-06-26 164888/week @ 2025-07-03

682,748 downloads per month
Used in 1,611 crates (20 directly)

MIT OR Apache-2.0 OR Zlib

20KB
198 lines

The cross platform cursor icon type.

This type is intended to be used as a standard interoperability 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);

cursor-icon: A common cursor icon type

This library provides a standard type to work with the cursor icon across 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.

Dependencies

~150KB