bevy/crates/bevy_ui/src
ickshonpe 64dcaf002b
Rename Val evaluate to resolve and implement viewport variant support (#9568)
# Objective

Rename `Val`'s `evaluate` method to `resolve`.

Implement `resolve` support for `Val`'s viewport variants.

fixes #9535

---

## Changelog

`bevy_ui::ui_node::Val`:
* Renamed the following methods and added a `viewport_size` parameter:
   - `evaluate` to `resolve`
   - `try_add_with_size` to `try_add_with_context`
   - `try_add_assign_with_size` to `try_add_assign_with_context`
   - `try_sub_with_size` to `try_sub_with_context`
   - `try_sub_assign_with_size` to `try_sub_assign_with_context`
* Implemented `resolve` support for `Val`'s viewport coordinate types

## Migration Guide
* Renamed the following `Val` methods and added a `viewport_size`
parameter:
   - `evaluate` to `resolve`
   - `try_add_with_size` to `try_add_with_context`
   - `try_add_assign_with_size` to `try_add_assign_with_context`
   - `try_sub_with_size` to `try_sub_with_context`
   - `try_sub_assign_with_size` to `try_sub_assign_with_context`
2023-08-29 11:12:23 +00:00
..
layout Make GridPlacement's fields non-zero and add accessor functions. (#9486) 2023-08-28 17:21:08 +00:00
render Swap TransparentUi to use a stable sort (#9598) 2023-08-27 20:37:17 +00:00
widget Cleanup some bevy_text pipeline.rs (#9111) 2023-08-28 16:46:16 +00:00
accessibility.rs Move bevy_ui accessibility systems to PostUpdate. (#8653) 2023-05-23 23:50:48 +00:00
camera_config.rs bevy_reflect: FromReflect Ergonomics Implementation (#6056) 2023-06-29 01:31:34 +00:00
focus.rs Change UiScale to a tuple struct (#9444) 2023-08-16 18:18:50 +00:00
geometry.rs Added Val::ZERO Constant (#9566) 2023-08-26 14:00:53 +00:00
lib.rs Change UiScale to a tuple struct (#9444) 2023-08-16 18:18:50 +00:00
measurement.rs Change the default for the measure_func field of ContentSize to None. (#9346) 2023-08-07 23:06:40 +00:00
node_bundles.rs UI node bundle comment fix (#9404) 2023-08-28 18:55:35 +00:00
stack.rs Fix typos throughout the project (#9090) 2023-07-10 00:11:51 +00:00
ui_node.rs Rename Val evaluate to resolve and implement viewport variant support (#9568) 2023-08-29 11:12:23 +00:00
update.rs Do not panic on non-UI child of UI entity (#9621) 2023-08-29 10:49:40 +00:00