Skip to content

Add some more variants to mouse::Interaction#2815

Merged
hecrj merged 1 commit intoiced-rs:masterfrom
edwloef:extend-mouse-interactions
Nov 21, 2025
Merged

Add some more variants to mouse::Interaction#2815
hecrj merged 1 commit intoiced-rs:masterfrom
edwloef:extend-mouse-interactions

Conversation

@edwloef
Copy link
Contributor

@edwloef edwloef commented Feb 24, 2025

This PR adds more mouse interactions, and orders them based on the wayland cursor shape protocol (https://drafts.csswg.org/css-ui/#cursor). I've decided to leave out all the *-resize cursors that weren't already present for now, but I would strongly advocate for adding the col_resize and row_resize cursors in the future.

I implemented this because I found myself looking for the NoDrop cursor, and found that iced was missing a bunch of the cursors it could be exposing.

@edwloef edwloef force-pushed the extend-mouse-interactions branch from 3b67733 to caf9861 Compare March 2, 2025 09:20
@edwloef
Copy link
Contributor Author

edwloef commented Mar 2, 2025

I've updated this to re-remove the vertical_text cursor, since iirc we can't even create vertical text in iced as of now, and added the col_resize and row_resize cursors.

@edwloef edwloef changed the title extend mouse interactions add more missing mouse interactions Apr 10, 2025
@hecrj hecrj force-pushed the extend-mouse-interactions branch from caf9861 to a266f62 Compare November 20, 2025 23:48
Copy link
Member

@hecrj hecrj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Thanks!

@hecrj hecrj enabled auto-merge November 20, 2025 23:49
@hecrj hecrj changed the title add more missing mouse interactions Add some more variants to mouse::Interaction Nov 20, 2025
@hecrj hecrj added this to the 0.14 milestone Nov 20, 2025
@hecrj hecrj added feature New feature or request shell addition labels Nov 20, 2025
@hecrj hecrj merged commit 23723f8 into iced-rs:master Nov 21, 2025
15 checks passed
@edwloef edwloef deleted the extend-mouse-interactions branch November 25, 2025 10:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

addition feature New feature or request shell

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants