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

Move PlatformSpecificWindowBuilderAttributes into WindowAttributes #3318

Conversation

daxpedda
Copy link
Member

Fixes #3313.
Any unsoundness this expands on is addressed by #3303.

This doesn't actually implement any getters, these can be implemented in follow-ups as needed.

@daxpedda daxpedda changed the title Move PlatformSpecificWindowBuilderAttributes Move PlatformSpecificWindowBuilderAttributes into WindowAttributes Dec 25, 2023
@daxpedda daxpedda added the S - api Design and usability label Dec 26, 2023
@daxpedda daxpedda force-pushed the platform-specific-window-builder-attributes branch 2 times, most recently from 4e80ab2 to d9f66dc Compare December 26, 2023 20:43
@daxpedda daxpedda added this to the Version 0.30.0 milestone Dec 26, 2023
@daxpedda daxpedda force-pushed the platform-specific-window-builder-attributes branch from d9f66dc to b4023a2 Compare December 26, 2023 21:15
Copy link
Member

@madsmtm madsmtm left a comment

Choose a reason for hiding this comment

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

I've been hesitant to review this because I dislike WindowAttributes on a philosophical level, but I think this is the right approach forwards.

Would also make it easier to move towards event_loop.create_window(attributes) as proposed in #3367, which would in turn make #3299 easier to move forwards on.

@kchibisov
Copy link
Member

I've been hesitant to review this because I dislike WindowAttributes on a philosophical level, but I think this is the right approach forwards.

In general the WindowAttributes and the builder in its current form will be gone in 0.31, because you can't extend builder when you own the type, and we'll have the trait for stuff like that.

src/window.rs Outdated Show resolved Hide resolved
@daxpedda daxpedda force-pushed the platform-specific-window-builder-attributes branch 2 times, most recently from fa3417b to eb0117c Compare January 16, 2024 09:47
@daxpedda daxpedda force-pushed the platform-specific-window-builder-attributes branch from eb0117c to ef164ea Compare January 17, 2024 22:24
@daxpedda daxpedda merged commit d7c7ba1 into rust-windowing:master Jan 17, 2024
51 checks passed
jpedrick pushed a commit to jpedrick/winit that referenced this pull request Jan 25, 2024
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.

Platform-specific getters on WindowAttributes
3 participants