-
-
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
Split UI Overflow
by axis
#8095
Merged
alice-i-cecile
merged 17 commits into
bevyengine:main
from
ickshonpe:split-overflow-by-axes
Apr 17, 2023
Merged
Split UI Overflow
by axis
#8095
alice-i-cecile
merged 17 commits into
bevyengine:main
from
ickshonpe:split-overflow-by-axes
Apr 17, 2023
Commits on Mar 15, 2023
-
* Split the UI overflow implementation so overflow can be set for each axis separately. * Added new enum `OverflowAxis` with `Hidden` and `Visible` variants. * Changed `Overflow` to a struct with `x` and `y` fields of type `OverflowAxis`. * `Overflow` has new methods `visible()` and `hidden()` that replace its previous `Hidden` and `Visible` variants. * Added `Overflow` helper methods `x_hidden()` and `y_hidden()` that return a new `Overflow` with the given axis hidden. * Added register type for `OverflowAxis`. * Changed the `ui` example to use `Overflow::y_hidden()` instead of `Overflow::Hidden`. * Modified `update_clipping` so it calculates clipping for each axis separately. If a node is only clipped on one axis, the other axis is given -/+ `f32::INFINITY` clipping bounds.
Configuration menu - View commit details
-
Copy full SHA for c3c44b7 - Browse repository at this point
Copy the full SHA c3c44b7View commit details -
* Added `overflow_debug` example demonstrating how to use the `overflow`.
Configuration menu - View commit details
-
Copy full SHA for 2fa9401 - Browse repository at this point
Copy the full SHA 2fa9401View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8ef59f3 - Browse repository at this point
Copy the full SHA 8ef59f3View commit details -
Configuration menu - View commit details
-
Copy full SHA for c72213f - Browse repository at this point
Copy the full SHA c72213fView commit details
Commits on Mar 21, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 2b1c527 - Browse repository at this point
Copy the full SHA 2b1c527View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8653609 - Browse repository at this point
Copy the full SHA 8653609View commit details -
* Added `is_visible` methods to `Overflow` and `OverflowAxis` * Replaced the second `match` statement in `update_clipping` with an `if` statement.
Configuration menu - View commit details
-
Copy full SHA for 8284671 - Browse repository at this point
Copy the full SHA 8284671View commit details
Commits on Mar 24, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 2a3e129 - Browse repository at this point
Copy the full SHA 2a3e129View commit details -
* Renamed
overflow_debug
example tooverflow
* Cargo fmt * Overflow example clips a bevy logo image instead of a rectangle.
Configuration menu - View commit details
-
Copy full SHA for 131650d - Browse repository at this point
Copy the full SHA 131650dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8c65e33 - Browse repository at this point
Copy the full SHA 8c65e33View commit details
Commits on Apr 11, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 648ac48 - Browse repository at this point
Copy the full SHA 648ac48View commit details -
* Renamed `OverflowAxis::Hidden` to `OverflowAxis::Clip` * Replaced `hide`/`hidden` with `clip in the names of the functions belonging to `Overflow` and `OverflowAxis`. * Fixed errors in the examples.
Configuration menu - View commit details
-
Copy full SHA for 44c170f - Browse repository at this point
Copy the full SHA 44c170fView commit details -
Configuration menu - View commit details
-
Copy full SHA for cf840ce - Browse repository at this point
Copy the full SHA cf840ceView commit details
Commits on Apr 17, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 4938380 - Browse repository at this point
Copy the full SHA 4938380View commit details -
Configuration menu - View commit details
-
Copy full SHA for cafed54 - Browse repository at this point
Copy the full SHA cafed54View commit details -
Configuration menu - View commit details
-
Copy full SHA for 48ef027 - Browse repository at this point
Copy the full SHA 48ef027View commit details -
Merge branch 'split-overflow-by-axes' of https://github.com/ickshonpe…
…/bevy into split-overflow-by-axes
Configuration menu - View commit details
-
Copy full SHA for e8d8fec - Browse repository at this point
Copy the full SHA e8d8fecView commit details
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.