egui/crates
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
..
ecolor Release 0.26.2 - Response.interact/context_menu fix 2024-02-14 10:49:57 +01:00
eframe Add API for raw mouse motion (#4063) 2024-02-20 18:00:39 +01:00
egui Convenience const fn for Margin, Rounding and Shadow (#4080) 2024-02-21 16:20:26 +01:00
egui-wgpu Release 0.26.2 - Response.interact/context_menu fix 2024-02-14 10:49:57 +01:00
egui-winit Add API for raw mouse motion (#4063) 2024-02-20 18:00:39 +01:00
egui_demo_app Add API for raw mouse motion (#4063) 2024-02-20 18:00:39 +01:00
egui_demo_lib `ui.dnd_drop_zone()` now returns `InnerResponse`. (#4079) 2024-02-21 16:20:14 +01:00
egui_extras Fix interaction with widgets inside selectable rows of `Table` (#4077) 2024-02-20 14:50:13 +01:00
egui_glow Release 0.26.2 - Response.interact/context_menu fix 2024-02-14 10:49:57 +01:00
egui_plot egui_plot: fix panic when the base step size is set to 0 (#4078) 2024-02-20 16:26:47 +01:00
egui_web Fix typos (#2866) 2023-04-18 15:52:45 +02:00
emath Add layer transforms, interaction in layer (#3906) 2024-02-17 11:02:56 +01:00
epaint Convenience const fn for Margin, Rounding and Shadow (#4080) 2024-02-21 16:20:26 +01:00