mirror of
https://github.com/bevyengine/bevy
synced 2024-11-22 12:43:34 +00:00
fbd569c791
## 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`. |
||
---|---|---|
.. | ||
button.rs | ||
font_atlas_debug.rs | ||
relative_cursor_position.rs | ||
text.rs | ||
text_debug.rs | ||
text_layout.rs | ||
transparency_ui.rs | ||
ui.rs | ||
ui_scaling.rs | ||
window_fallthrough.rs | ||
z_index.rs |