Provide native window access, via "fetch_native_handle" method on window.#2200
Merged
hecrj merged 5 commits intoiced-rs:masterfrom Feb 7, 2024
Merged
Provide native window access, via "fetch_native_handle" method on window.#2200hecrj merged 5 commits intoiced-rs:masterfrom
hecrj merged 5 commits intoiced-rs:masterfrom
Conversation
28aefed to
fe66406
Compare
fe66406 to
347ee25
Compare
Contributor
Author
|
Will rework this once #2191 lands. |
608aa87 to
7ae7fcb
Compare
eaafa92 to
9a871c1
Compare
9a871c1 to
f18a814
Compare
Closed
|
How does one get from a What about global protocol objects like |
Member
|
You call https://docs.rs/iced/latest/iced/widget/shader/wgpu/rwh/enum.RawWindowHandle.html#variant.Wayland |
|
I looked at that before asking here, but that variant's associated type is: I'm not sure how to operate on a |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This should alleviate some of the concerns in: #2194 (comment) because it will force the callback to be ran in the event loop in iced, and gives us a reference to the window directly instead. While the user could mess up the iced state by making changes here, I think that anyone using this method should know what they are doing and it's an advanced use case.
Links:
#2194