-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Make Window
and Windows
structs easier to test with
#6106
Labels
A-Windowing
Platform-agnostic interface layer to run your app in
C-Testing
A change that impacts how we test Bevy or how users test their apps
Comments
The sticking point is the |
I'm taking a look at tackling this. |
james7132
pushed a commit
to james7132/bevy
that referenced
this issue
Oct 19, 2022
…Option`. (bevyengine#6114) # Objective - Trying to make it possible to do write tests that don't require a raw window handle. - Fixes bevyengine#6106. ## Solution - Make the interface and type changes. Avoid accessing `None`. --- ## Changelog - Converted `raw_window_handle` field in both `Window` and `ExtractedWindow` to `Option<RawWindowHandleWrapper>`. - Revised accessor function `Window::raw_window_handle()` to return `Option<RawWindowHandleWrapper>`. - Skip conditions in loops that would require a raw window handle (to create a `Surface`, for example). ## Migration Guide `Window::raw_window_handle()` now returns `Option<RawWindowHandleWrapper>`. Co-authored-by: targrub <62773321+targrub@users.noreply.github.com>
james7132
pushed a commit
to james7132/bevy
that referenced
this issue
Oct 28, 2022
…Option`. (bevyengine#6114) # Objective - Trying to make it possible to do write tests that don't require a raw window handle. - Fixes bevyengine#6106. ## Solution - Make the interface and type changes. Avoid accessing `None`. --- ## Changelog - Converted `raw_window_handle` field in both `Window` and `ExtractedWindow` to `Option<RawWindowHandleWrapper>`. - Revised accessor function `Window::raw_window_handle()` to return `Option<RawWindowHandleWrapper>`. - Skip conditions in loops that would require a raw window handle (to create a `Surface`, for example). ## Migration Guide `Window::raw_window_handle()` now returns `Option<RawWindowHandleWrapper>`. Co-authored-by: targrub <62773321+targrub@users.noreply.github.com>
Pietrek14
pushed a commit
to Pietrek14/bevy
that referenced
this issue
Dec 17, 2022
…Option`. (bevyengine#6114) # Objective - Trying to make it possible to do write tests that don't require a raw window handle. - Fixes bevyengine#6106. ## Solution - Make the interface and type changes. Avoid accessing `None`. --- ## Changelog - Converted `raw_window_handle` field in both `Window` and `ExtractedWindow` to `Option<RawWindowHandleWrapper>`. - Revised accessor function `Window::raw_window_handle()` to return `Option<RawWindowHandleWrapper>`. - Skip conditions in loops that would require a raw window handle (to create a `Surface`, for example). ## Migration Guide `Window::raw_window_handle()` now returns `Option<RawWindowHandleWrapper>`. Co-authored-by: targrub <62773321+targrub@users.noreply.github.com>
ItsDoot
pushed a commit
to ItsDoot/bevy
that referenced
this issue
Feb 1, 2023
…Option`. (bevyengine#6114) # Objective - Trying to make it possible to do write tests that don't require a raw window handle. - Fixes bevyengine#6106. ## Solution - Make the interface and type changes. Avoid accessing `None`. --- ## Changelog - Converted `raw_window_handle` field in both `Window` and `ExtractedWindow` to `Option<RawWindowHandleWrapper>`. - Revised accessor function `Window::raw_window_handle()` to return `Option<RawWindowHandleWrapper>`. - Skip conditions in loops that would require a raw window handle (to create a `Surface`, for example). ## Migration Guide `Window::raw_window_handle()` now returns `Option<RawWindowHandleWrapper>`. Co-authored-by: targrub <62773321+targrub@users.noreply.github.com>
Subserial
pushed a commit
to Subserial/bevy_winit_hook
that referenced
this issue
Jan 24, 2024
…Option`. (#6114) # Objective - Trying to make it possible to do write tests that don't require a raw window handle. - Fixes bevyengine/bevy#6106. ## Solution - Make the interface and type changes. Avoid accessing `None`. --- ## Changelog - Converted `raw_window_handle` field in both `Window` and `ExtractedWindow` to `Option<RawWindowHandleWrapper>`. - Revised accessor function `Window::raw_window_handle()` to return `Option<RawWindowHandleWrapper>`. - Skip conditions in loops that would require a raw window handle (to create a `Surface`, for example). ## Migration Guide `Window::raw_window_handle()` now returns `Option<RawWindowHandleWrapper>`. Co-authored-by: targrub <62773321+targrub@users.noreply.github.com>
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Labels
A-Windowing
Platform-agnostic interface layer to run your app in
C-Testing
A change that impacts how we test Bevy or how users test their apps
Writing tests for these types is quite challenging.
We should have:
Default
struct update syntax forWindowDescriptor
.const fn new
method onWindows
that accepts a singleWindow
.The text was updated successfully, but these errors were encountered: