1
0
mirror of https://github.com/emilk/egui.git synced 2026-06-27 07:03:14 -04:00
Files
egui/crates/epaint/src
0Qwel 23e8312fc0 Convenience const fn for Margin, Rounding and Shadow (#4080)
I often write constants at the top of my widget files, as a "config". I
kept writing stuff like that :
```rust
const DEFAULT_INNER_MARGIN: Margin = Margin { left: 17., right: 17., top: 7., bottom: 7. };
```
So I prefixed constructors for `Margin`, `Rounding` and `Shadow` const.
No code was changed.

I also added a `Shadow::new()` for similar reasons.
2024-02-21 16:20:26 +01:00
..
2024-01-24 15:47:44 +01:00
2024-01-08 17:41:21 +01:00
2024-01-08 17:41:21 +01:00
2024-02-01 16:27:59 +01:00
2024-01-08 17:41:21 +01:00
2024-01-08 17:41:21 +01:00