bevy/examples/ecs
KDecay 989fb8a78d Move Rect to bevy_ui and rename it to UiRect (#4276)
# Objective

- Closes #335.
- Related #4285.
- Part of the splitting process of #3503.

## Solution

- Move `Rect` to `bevy_ui` and rename it to `UiRect`.

## Reasons

- `Rect` is only used in `bevy_ui` and therefore calling it `UiRect` makes the intent clearer.
- We have two types that are called `Rect` currently and it's missleading (see `bevy_sprite::Rect` and #335).
- Discussion in #3503.

## Changelog

### Changed

- The `Rect` type got moved from `bevy_math` to `bevy_ui` and renamed to `UiRect`.

## Migration Guide

- The `Rect` type got renamed to `UiRect`. To migrate you just have to change every occurrence of `Rect` to `UiRect`.

Co-authored-by: KDecay <KDecayMusic@protonmail.com>
2022-04-25 19:20:38 +00:00
..
component_change_detection.rs Implement and require #[derive(Component)] on all component structs (#2254) 2021-10-03 19:23:44 +00:00
custom_query_param.rs Remove unnecessary system labels (#4340) 2022-04-01 21:11:05 +00:00
ecs_guide.rs Cleanup some outdated parts of ecs_guide (#4342) 2022-04-04 21:16:36 +00:00
event.rs Simplify sending empty events (#2935) 2022-02-04 01:24:47 +00:00
fixed_timestep.rs Down with the system! (#2496) 2021-07-27 23:42:36 +00:00
generic_system.rs bevy_derive: Add derives for Deref and DerefMut (#4328) 2022-03-29 02:10:06 +00:00
hierarchy.rs default() shorthand (#4071) 2022-03-01 20:52:09 +00:00
iter_combinations.rs default() shorthand (#4071) 2022-03-01 20:52:09 +00:00
parallel_query.rs bevy_derive: Add derives for Deref and DerefMut (#4328) 2022-03-29 02:10:06 +00:00
removal_detection.rs default() shorthand (#4071) 2022-03-01 20:52:09 +00:00
startup_system.rs Down with the system! (#2496) 2021-07-27 23:42:36 +00:00
state.rs Move Rect to bevy_ui and rename it to UiRect (#4276) 2022-04-25 19:20:38 +00:00
system_chaining.rs bevy_derive: Add derives for Deref and DerefMut (#4328) 2022-03-29 02:10:06 +00:00
system_param.rs Fix doc_markdown lints in examples (#3486) 2021-12-29 17:25:34 +00:00
system_sets.rs Some small changes related to run criteria piping (#3923) 2022-04-07 19:08:08 +00:00
timers.rs bevy_derive: Add derives for Deref and DerefMut (#4328) 2022-03-29 02:10:06 +00:00