-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
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
alice-i-cecile
added
D-Trivial
Nice and easy! A great choice to get started with Bevy
O-Windows
Specific to the Windows desktop operating system
C-Testing
A change that impacts how we test Bevy or how users test their apps
and removed
D-Trivial
Nice and easy! A great choice to get started with Bevy
labels
Sep 26, 2022
The sticking point is the |
alice-i-cecile
added
A-Windowing
Platform-agnostic interface layer to run your app in
and removed
O-Windows
Specific to the Windows desktop operating system
labels
Sep 26, 2022
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>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in 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: