slint-ui/slint

Allow custom backends to set the mouse cursor

Aperta

#3905 aperta il 11 nov 2023

 (0 commenti) (4 reazioni) (0 assegnatari)Rust (881 fork)batch import
apigood first issue

Metriche repository

Star
 (22.596 stelle)
Metriche merge PR
 (Merge medio 4g 18h) (254 PR mergiate in 30 g)

Descrizione

Currently set_mouse_cursor() is in WindowAdapterInternal and MouseCursor is in the internal core crate. Move those to the public API.

@ogoffart suggested possibly using the cursor-icon crate for the enum: https://github.com/rust-windowing/cursor-icon

Guida contributor