Skip to content

Merge Window::set_cursor_icon() and Window::set_custom_cursor()#3308

Merged
daxpedda merged 1 commit intorust-windowing:masterfrom
daxpedda:merge-cursor-types
Dec 25, 2023
Merged

Merge Window::set_cursor_icon() and Window::set_custom_cursor()#3308
daxpedda merged 1 commit intorust-windowing:masterfrom
daxpedda:merge-cursor-types

Conversation

@daxpedda
Copy link
Copy Markdown
Member

@daxpedda daxpedda commented Dec 24, 2023

This merges the two methods Window::set_cursor_icon() and Window::set_custom_cursor().
The underlying implementations were not changed at all!

This simplifies the API a bit so we don't have two methods that override each other, in the future this will allow a getter to be implemented when Linux implements caching, see #3306.

In a follow-up I will implement a custom cursor setting in WindowBuilder, the merged type allows WindowAttributes to easily expose the currently set cursor.

Copy link
Copy Markdown
Member

@notgull notgull left a comment

Choose a reason for hiding this comment

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

LGTM to me for X11

@daxpedda daxpedda merged commit be4a660 into rust-windowing:master Dec 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S - api Design and usability

Development

Successfully merging this pull request may close these issues.

3 participants