Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extract PointerType and upgrade to enum class #1561

Merged
merged 7 commits into from
Feb 3, 2025
Merged

Conversation

DanRStevens
Copy link
Member

Extract PointerType enum to it's own header file, and convert to enum class.

Add a few helper functions for managing mouse pointers.

Update NAS2D for recent changes for mouse cursors.

Part of:

Also strip off the enum name prefix from the value names.
I was kind of hoping for an explicit conversion operator on `PointerType` to convert to a `CursorId` struct, but sadly such conversion operators are not possible with `enum class`. A free standing function is I suppose close enough.
@DanRStevens DanRStevens merged commit 9de4f84 into main Feb 3, 2025
7 checks passed
@DanRStevens DanRStevens deleted the pointerType branch February 3, 2025 04:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant