Skip to content

Move PlatformSpecificWindowBuilderAttributes into WindowAttributes#3318

Merged
daxpedda merged 1 commit intorust-windowing:masterfrom
daxpedda:platform-specific-window-builder-attributes
Jan 17, 2024
Merged

Move PlatformSpecificWindowBuilderAttributes into WindowAttributes#3318
daxpedda merged 1 commit intorust-windowing:masterfrom
daxpedda:platform-specific-window-builder-attributes

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.

@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
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