egui/crates
Trevor Gross 2fabde1396
Add a `Display` impl for `Vec2`, `Pos2`, and `Rect` (#4428)
These three types currently have a `Debug` implementation that only ever
prints one decimal point. Sometimes it is useful to see more of the
number, or otherwise have specific formatting.

Add `Display` implementations that pass the format specification to the
member `f32`s for an easier way to control what is shown when debugging.

This allows doing e.g. `ui.label(format!("{:.4}", rect * scale))` which
currently prints zeroes if scale is small.
2024-04-29 14:22:34 +02:00
..
ecolor Replace cargo-cranky with workspace lints (#4413) 2024-04-25 17:24:50 +02:00
eframe Replace cargo-cranky with workspace lints (#4413) 2024-04-25 17:24:50 +02:00
egui chore: remove repetitive words (#4400) 2024-04-29 10:33:29 +02:00
egui-wgpu Replace cargo-cranky with workspace lints (#4413) 2024-04-25 17:24:50 +02:00
egui-winit Replace cargo-cranky with workspace lints (#4413) 2024-04-25 17:24:50 +02:00
egui_demo_app Replace cargo-cranky with workspace lints (#4413) 2024-04-25 17:24:50 +02:00
egui_demo_lib crates: egui_demo_lib: Fix table height (#4422) 2024-04-29 11:16:55 +02:00
egui_extras Replace cargo-cranky with workspace lints (#4413) 2024-04-25 17:24:50 +02:00
egui_glow Enable egui_glow's winit feature on wasm (#4420) (#4421) 2024-04-29 10:33:23 +02:00
egui_plot Replace cargo-cranky with workspace lints (#4413) 2024-04-25 17:24:50 +02:00
egui_web Fix typos (#2866) 2023-04-18 15:52:45 +02:00
emath Add a `Display` impl for `Vec2`, `Pos2`, and `Rect` (#4428) 2024-04-29 14:22:34 +02:00
epaint chore: remove repetitive words (#4400) 2024-04-29 10:33:29 +02:00