-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
feat: support for clip children on windows #16545
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
feat: support for clip children on windows #16545
Conversation
|
Welcome, new contributor! Please make sure you've read our contributing guide and we look forward to reviewing your pull request shortly ✨ |
jf908
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thought I would review this because of an interest in webview stuff. Tested and it works, example here: https://github.com/jf908/bevy-webview-test.
Small doc suggestion but nothing blocking, lgtm.
P.S. It took me ages to find the Microsoft documentation which explains this option, it's here: https://learn.microsoft.com/en-us/windows/win32/winmsg/window-features#clipping
Co-authored-by: jf908 <jf908@users.noreply.github.com>
# Objective Support the parametrization of the WS_CLIPCHILDREN style on Windows. Fixes bevyengine#16544 ## Solution Added a window configuration in bevy_winit to control the usage of the WS_CLIPCHILDREN style. ## Testing - Did you test these changes? If so, how? I did. I was able to create a Wry Webview with a transparent HTML document and was also able to see my Bevy scene behind the webview elements. - Are there any parts that need more testing? I don't believe so. I assume the option is extensively tested within winit itself. - How can other people (reviewers) test your changes? Is there anything specific they need to know? Test repositiory [here](https://github.com/nicholasc/bevy_wry_test). Bevy's path will need to be updated in the Cargo.toml - If relevant, what platforms did you test these changes on, and are there any important ones you can't test? This is a Windows specific issue. Should be tested accordingly. --------- Co-authored-by: jf908 <jf908@users.noreply.github.com>
Objective
Support the parametrization of the WS_CLIPCHILDREN style on Windows.
Fixes #16544
Solution
Added a window configuration in bevy_winit to control the usage of the WS_CLIPCHILDREN style.
Testing
Did you test these changes? If so, how?
I did. I was able to create a Wry Webview with a transparent HTML document and was also able to see my Bevy scene behind the webview elements.
Are there any parts that need more testing?
I don't believe so. I assume the option is extensively tested within winit itself.
How can other people (reviewers) test your changes? Is there anything specific they need to know?
Test repositiory here. Bevy's path will need to be updated in the Cargo.toml
If relevant, what platforms did you test these changes on, and are there any important ones you can't test?
This is a Windows specific issue. Should be tested accordingly.