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

[Merged by Bors] - Added set_cursor_icon(...) to Window #3395

Closed
wants to merge 2 commits into from

Conversation

MrGVSV
Copy link
Member

@MrGVSV MrGVSV commented Dec 20, 2021

Objective

The window's cursor should be settable without having to implement a custom cursor icon solution. This will especially be helpful when creating user-interfaces that might like to use the cursor to denote some meaning (e.g., clickable, resizable, etc.).

Solution

Added a CursorIcon enum that maps one-to-one to winit's CursorIcon enum, as well as a method to set/get it for the given Window.

@github-actions github-actions bot added the S-Needs-Triage This issue needs to be labelled label Dec 20, 2021
@mockersf mockersf added A-Windowing Platform-agnostic interface layer to run your app in C-Feature A new feature, making something new possible and removed S-Needs-Triage This issue needs to be labelled labels Dec 20, 2021
@cart
Copy link
Member

cart commented Dec 20, 2021

bors r+

bors bot pushed a commit that referenced this pull request Dec 20, 2021
# Objective

The window's cursor should be settable without having to implement a custom cursor icon solution. This will especially be helpful when creating user-interfaces that might like to use the cursor to denote some meaning (e.g., _clickable_, _resizable_, etc.).

## Solution

Added a `CursorIcon` enum that maps one-to-one to winit's `CursorIcon` enum, as well as a method to set/get it for the given `Window`.
@bors bors bot changed the title Added set_cursor_icon(...) to Window [Merged by Bors] - Added set_cursor_icon(...) to Window Dec 20, 2021
@bors bors bot closed this Dec 20, 2021
@MrGVSV MrGVSV deleted the cursor-icon branch December 20, 2021 22:30
mockersf pushed a commit to mockersf/bevy that referenced this pull request Dec 21, 2021
# Objective

The window's cursor should be settable without having to implement a custom cursor icon solution. This will especially be helpful when creating user-interfaces that might like to use the cursor to denote some meaning (e.g., _clickable_, _resizable_, etc.).

## Solution

Added a `CursorIcon` enum that maps one-to-one to winit's `CursorIcon` enum, as well as a method to set/get it for the given `Window`.
@MrGVSV MrGVSV restored the cursor-icon branch May 14, 2022 20:07
@MrGVSV MrGVSV deleted the cursor-icon branch July 6, 2024 23:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Windowing Platform-agnostic interface layer to run your app in C-Feature A new feature, making something new possible
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants