Skip to content

add TrustedHandle type#52

Merged
Osspial merged 3 commits intorust-windowing:masterfrom
Lokathor:trusted-handle
Jul 31, 2020
Merged

add TrustedHandle type#52
Osspial merged 3 commits intorust-windowing:masterfrom
Lokathor:trusted-handle

Conversation

@Lokathor
Copy link
Copy Markdown
Contributor

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

Closes #49

Copy link
Copy Markdown
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
Copy Markdown

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
Copy Markdown
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