bevy/examples/ui
ickshonpe fbd569c791 Add width, height and all constructor functions to Size (#7468)
## Objective

A common easy to miss mistake is to write something like:
``` rust
Size::new(Val::Percent(100.), Val::Px(100.));
```

`UiRect` has the `left`, `right`, `all`, `vertical`, etc constructor functions, `Size` is used a lot more frequently but lacks anything similar.

## Solution

Implement `all`, `width` and `height` functions for `Size`.

## Changelog

* Added `all`, `width` and `height` functions to `Size`.
2023-02-02 14:29:39 +00:00
..
button.rs Remove auto-margin properties from the examples (#6535) 2022-11-21 14:38:35 +00:00
font_atlas_debug.rs Rename Handle::as_weak() to cast_weak() (#5321) 2022-10-28 22:43:14 +00:00
relative_cursor_position.rs Relative cursor position (#7199) 2023-01-16 17:17:45 +00:00
text.rs Remove VerticalAlign from TextAlignment (#6807) 2023-01-18 02:19:17 +00:00
text_debug.rs Windows as Entities (#5589) 2023-01-19 00:38:28 +00:00
text_layout.rs Add width, height and all constructor functions to Size (#7468) 2023-02-02 14:29:39 +00:00
transparency_ui.rs Remove auto-margin properties from the examples (#6535) 2022-11-21 14:38:35 +00:00
ui.rs Fixes scroll example after inverting UI Y axis (#6290) 2022-10-18 13:28:35 +00:00
ui_scaling.rs UI scaling fix (#6479) 2022-11-05 13:51:12 +00:00
window_fallthrough.rs Windows as Entities (#5589) 2023-01-19 00:38:28 +00:00
z_index.rs Remove auto-margin properties from the examples (#6535) 2022-11-21 14:38:35 +00:00