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
..
text Fix text selection crashes 2024-01-24 15:47:44 +01:00
util Use `Self` everywhere (#3787) 2024-01-08 17:41:21 +01:00
bezier.rs Use `Self` everywhere (#3787) 2024-01-08 17:41:21 +01:00
image.rs Add `ColorImage::from_gray_iter` (#3536) 2024-02-20 15:29:23 +01:00
lib.rs Parallell tessellation (#3934) 2024-02-01 16:27:59 +01:00
mesh.rs Add layer transforms, interaction in layer (#3906) 2024-02-17 11:02:56 +01:00
mutex.rs Use `impl Into<Stroke>` as argument in a few more places (#3420) 2023-11-10 21:36:51 +01:00
shadow.rs Convenience const fn for Margin, Rounding and Shadow (#4080) 2024-02-21 16:20:26 +01:00
shape.rs Convenience const fn for Margin, Rounding and Shadow (#4080) 2024-02-21 16:20:26 +01:00
shape_transform.rs Add opacity factor to `TextShape` (#3916) 2024-01-30 15:55:18 +01:00
stats.rs Use `Self` everywhere (#3787) 2024-01-08 17:41:21 +01:00
stroke.rs Use `Self` everywhere (#3787) 2024-01-08 17:41:21 +01:00
tessellator.rs Remove profile scope from `tessellate_shape` 2024-02-02 15:53:01 +01:00
texture_atlas.rs Fix buggy text withviewports on monitors with different scales (#3666) 2023-11-30 15:56:05 +01:00
texture_handle.rs Improved texture loading (#3315) 2023-09-12 10:39:17 +02:00
textures.rs Add `TextureOptions::wrap_mode` (#3954) 2024-02-05 09:37:05 +01:00