bevy/crates/bevy_ui/src
KDecay 7a7f097485 Move Size to bevy_ui (#4285)
# Objective

- Related #4276.
- Part of the splitting process of #3503.

## Solution

- Move `Size` to `bevy_ui`.

## Reasons

- `Size` is only needed in `bevy_ui` (because it needs to use `Val` instead of `f32`), but it's also used as a worse `Vec2`  replacement in other areas.
- `Vec2` is more powerful than `Size` so it should be used whenever possible.
- Discussion in #3503.

## Changelog

### Changed

- The `Size` type got moved from `bevy_math` to `bevy_ui`.

## Migration Guide

- The `Size` type got moved from `bevy::math` to `bevy::ui`. To migrate you just have to import `bevy::ui::Size` instead of `bevy::math::Math` or use the `bevy::prelude` instead.

Co-authored-by: KDecay <KDecayMusic@protonmail.com>
2022-04-25 13:54:46 +00:00
..
flex Move Size to bevy_ui (#4285) 2022-04-25 13:54:46 +00:00
render Clean up duplicated color conversion code (#4360) 2022-03-29 23:03:22 +00:00
widget Move Size to bevy_ui (#4285) 2022-04-25 13:54:46 +00:00
entity.rs use marker components for cameras instead of name strings (#3635) 2022-03-12 00:41:06 +00:00
focus.rs Fix clicked UI nodes getting reset when hovering child nodes (#4194) 2022-04-07 19:08:09 +00:00
geometry.rs Move Size to bevy_ui (#4285) 2022-04-25 13:54:46 +00:00
lib.rs Move Size to bevy_ui (#4285) 2022-04-25 13:54:46 +00:00
ui_node.rs Move Size to bevy_ui (#4285) 2022-04-25 13:54:46 +00:00
update.rs Split bevy_hierarchy out from bevy_transform (#4168) 2022-03-15 01:54:05 +00:00