Skip to content

Mouse interaction to hide system cursor#2685

Merged
hecrj merged 2 commits intoiced-rs:masterfrom
thorn132:interaction_hidden
Nov 18, 2025
Merged

Mouse interaction to hide system cursor#2685
hecrj merged 2 commits intoiced-rs:masterfrom
thorn132:interaction_hidden

Conversation

@thorn132
Copy link
Contributor

@thorn132 thorn132 commented Dec 5, 2024

Adds support for hiding the system cursor via mouse::Interaction.

  • Adds mouse::Interaction::Hidden variant
  • Returns Option<CursorIcon> from conversion::mouse_interaction, where None denotes the cursor should be hidden
  • Calls set_cursor_visible only when the interaction changes to/from mouse::Interaction::Hidden

@hecrj hecrj added this to the 0.14 milestone Nov 18, 2025
@hecrj hecrj added feature New feature or request shell addition labels Nov 18, 2025
@hecrj hecrj force-pushed the interaction_hidden branch from a5b3d72 to d33e18e Compare November 18, 2025 22:45
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.

Thanks!

@hecrj hecrj enabled auto-merge November 18, 2025 22:47
@hecrj hecrj merged commit 80a3ca7 into iced-rs:master Nov 18, 2025
15 checks passed
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