Skip to content

Cursor availability#1904

Merged
hecrj merged 6 commits into
masterfrom
cursor-availability
Jun 9, 2023
Merged

Cursor availability#1904
hecrj merged 6 commits into
masterfrom
cursor-availability

Conversation

@hecrj

@hecrj hecrj commented Jun 8, 2023

Copy link
Copy Markdown
Member

This PR moves the canvas::Cursor type to the mouse module in the core crate and introduces it to the Widget and Overlay traits.

Until now, cursor availability was awkwardly encoded using a Point with -1.0 coordinates, which caused pesky bugs! These changes encode cursor availability in the type system and, therefore, widgets will need to handle the Unavailable case explicitly.

@hecrj hecrj added bug Something isn't working feature New feature or request widget labels Jun 8, 2023
@hecrj hecrj added this to the 0.10.0 milestone Jun 8, 2023
@hecrj hecrj merged commit 60cd864 into master Jun 9, 2023
@hecrj hecrj deleted the cursor-availability branch June 9, 2023 19:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working feature New feature or request widget

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant