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

add TrustedHandle type #52

Merged
merged 3 commits into from
Jul 31, 2020
Merged

add TrustedHandle type #52

merged 3 commits into from
Jul 31, 2020

Conversation

Lokathor
Copy link
Contributor

Add a wrapper to mark when a specific raw window handle is to be trusted.

Closes #49

Copy link
Contributor

@Osspial Osspial left a comment

Choose a reason for hiding this comment

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

This mostly looks good to me, but I'd prefer the name TrustedWindowHandle.

@Osspial Osspial merged commit 3300b7b into rust-windowing:master Jul 31, 2020
@DJMcNab
Copy link

DJMcNab commented Jan 23, 2021

Would it be possible to have a safe impl of new or equivalent for any T: HasRawWindowHandle?

Specifically, an implementation which would replace https://github.com/bevyengine/bevy/blob/a68c78cef5fb2112617de095efd4e64cba1587eb/crates/bevy_winit/src/winit_windows.rs#L117-L119

(I need this for bevyengine/bevy#1279, which is currently assuming that the impl could be correct, so I would like to know if that assumption is wrong anyway. That PR is otherwise blocked on #58 anyway)

@Lokathor
Copy link
Contributor Author

Could you open this as a new issue where I won't lose track of it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Implement HasRawWindowHandle for RawWindowHandle
3 participants