bevy/crates/bevy_sprite/src
ickshonpe f4800c24ba
BorderRect maintenance (#16727)
# Objective

The doc comments and function namings for `BorderRect` feel imprecise to
me. Particularly the `square` function which is used to define a uniform
`BorderRect` with equal widths on each edge. But this is potentially
confusing since this "square" border could be around an oblong shape.

Using "padding" to refer to the border extents seems undesirable too
since "padding" is typically used to refer to the area between border
and content, not the border itself.

## Solution
* Rename `square` to `all` (this matches the name of the similar method
on `UiRect`).
* Rename `rectangle` to `axes` (this matches the name of the similar
method on `UiRect`).
* Update doc comments. 

## Migration Guide
The `square` and `rectangle` functions belonging to `BorderRect` have
been renamed to `all` and `axes`.

---------

Co-authored-by: Alice Cecile <alice.i.cecile@gmail.com>
2024-12-12 04:33:44 +00:00
..
mesh2d Use multidraw for opaque meshes when GPU culling is in use. (#16427) 2024-12-06 17:22:03 +00:00
render Use multidraw for opaque meshes when GPU culling is in use. (#16427) 2024-12-06 17:22:03 +00:00
texture_slice BorderRect maintenance (#16727) 2024-12-12 04:33:44 +00:00
bundle.rs Improved UiImage and Sprite scaling and slicing APIs (#16088) 2024-11-04 15:14:03 +00:00
dynamic_texture_atlas_builder.rs ✏️ Fix typos across bevy (#16702) 2024-12-08 01:18:39 +00:00
lib.rs Add optional transparency passthrough for sprite backend with bevy_picking (#16388) 2024-12-03 19:32:52 +00:00
picking_backend.rs Add optional transparency passthrough for sprite backend with bevy_picking (#16388) 2024-12-03 19:32:52 +00:00
sprite.rs Move required components doc to type doc (#16575) 2024-12-03 19:45:20 +00:00
texture_atlas_builder.rs Update hashbrown to 0.15 (#15801) 2024-12-10 19:45:50 +00:00
texture_atlas.rs Don't reëxport bevy_image from bevy_render (#16163) 2024-11-10 06:54:38 +00:00