mirror of https://github.com/emilk/egui.git
Browse Source
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.pull/1897/head
Trevor Gross
6 months ago
committed by
GitHub
3 changed files with 42 additions and 6 deletions
Loading…
Reference in new issue