egui/crates/emath/src
zkldi 8cef6fc872
doc(emath): Add `top_left` as an alias for `left_top`, etc. (#4689)
# What

Adds `#[doc(alias = "top_left")]` as an alias for `left_top`, and so on
for `right_top`, `right_bottom`, `left_bottom`.

# Why

Extremely minor doc-only change, but I keep going to type "top left" to
look for the top left of a rectangle.
I'm unsure whether this is just a british-english thing or an
english-in-general thing, but `top left corner` is far more common than
`left top corner`.
These doc aliases don't conflict with anything, and mean that
rust-analyzer will suggest the correct function when I search for the
wrong thing.

This improves ergonomics and discoverability in my opinion, even if not
by much.
2024-06-23 11:50:35 +02:00
..
align.rs Add `Align2::anchor_size` (#3863) 2024-01-22 16:47:50 +01:00
easing.rs Easing functions (#4630) 2024-06-06 13:09:52 +02:00
history.rs Remove `extra_asserts` and `extra_debug_asserts` feature flags (#4478) 2024-05-10 19:39:08 +02:00
lib.rs Easing functions (#4630) 2024-06-06 13:09:52 +02:00
numeric.rs Move all crates into a `crates` directory (#1940) 2022-08-20 10:41:49 +02:00
ordered_float.rs Add `emath::OrderedFloat` (moved from `epaint::util::OrderedFloat`) (#4389) 2024-04-21 20:36:32 +02:00
pos2.rs Make `Debug` format of `Vec2/Pos2/Rot2` respect user precision (#4671) 2024-06-18 23:03:23 +02:00
range.rs Cross-widget text select (#3870) 2024-01-24 15:45:22 +01:00
rect.rs doc(emath): Add `top_left` as an alias for `left_top`, etc. (#4689) 2024-06-23 11:50:35 +02:00
rect_transform.rs Use `Self` everywhere (#3787) 2024-01-08 17:41:21 +01:00
rot2.rs Make `Debug` format of `Vec2/Pos2/Rot2` respect user precision (#4671) 2024-06-18 23:03:23 +02:00
smart_aim.rs Remove `extra_asserts` and `extra_debug_asserts` feature flags (#4478) 2024-05-10 19:39:08 +02:00
ts_transform.rs Add layer transforms, interaction in layer (#3906) 2024-02-17 11:02:56 +01:00
vec2.rs Make `Debug` format of `Vec2/Pos2/Rot2` respect user precision (#4671) 2024-06-18 23:03:23 +02:00
vec2b.rs A `Window` can now be resizable in only one direction (#4155) 2024-03-11 09:29:48 +01:00