egui/crates
Emil Ernerfeldt 249f8bcb93
Use `u8` in `Rounding`, and introduce `Roundingf` (#5563)
* Part of https://github.com/emilk/egui/issues/4019

As part of the work on adding a custom `Border` to everything, I want to
make sure that the size of `RectShape`, `Frame` and the future `Border`
is kept small (for performance reasons).

This PR changes the storage of the corner radius of rectangles from four
`f32` (one for each corner) into four `u8`. This mean the corner radius
can only be an integer in the range 0-255 (in ui points). This should be
enough for most people.

If you want to manipulate rounding using `f32`, there is a new
`Roundingf` to fill that niche.
2025-01-02 14:29:50 +01:00
..
ecolor Release 0.30 - egui_kittest and modals (#5487) 2024-12-16 17:45:35 +01:00
eframe Add `Context::copy_image` (#5533) 2024-12-29 18:03:32 +01:00
egui Use `u8` in `Rounding`, and introduce `Roundingf` (#5563) 2025-01-02 14:29:50 +01:00
egui-wgpu Release 0.30 - egui_kittest and modals (#5487) 2024-12-16 17:45:35 +01:00
egui-winit Re-enable IME support on Linux (#5198) 2024-12-31 13:37:05 +01:00
egui_demo_app Add `WidgetType::Image` and `Image::alt_text` (#5534) 2024-12-30 12:53:46 +01:00
egui_demo_lib Use `u8` in `Rounding`, and introduce `Roundingf` (#5563) 2025-01-02 14:29:50 +01:00
egui_extras Animated WebP support (#5470) 2024-12-29 11:46:08 +01:00
egui_glow Revert "Revert "forward x11 and wayland features to glutin" (#5391)" (#5490) 2024-12-17 09:36:03 +01:00
egui_kittest Add `WidgetType::Image` and `Image::alt_text` (#5534) 2024-12-30 12:53:46 +01:00
egui_plot Move `egui_plot` to its own repo (#4828) 2024-07-15 18:45:19 +02:00
egui_web Fix typos (#2866) 2023-04-18 15:52:45 +02:00
emath Make all lines and rectangles crisp (#5518) 2024-12-26 21:02:27 +01:00
epaint Use `u8` in `Rounding`, and introduce `Roundingf` (#5563) 2025-01-02 14:29:50 +01:00
epaint_default_fonts Release 0.30 - egui_kittest and modals (#5487) 2024-12-16 17:45:35 +01:00