egui/crates/egui_demo_lib
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
..
benches Add `Context::request_discard` (#5059) 2024-09-13 14:20:51 +02:00
data Fix broken images on egui.rs (move from git lfs to normal git) (#5480) 2024-12-16 14:16:54 +01:00
src Use `u8` in `Rounding`, and introduce `Roundingf` (#5563) 2025-01-02 14:29:50 +01:00
tests/snapshots Fix cargo test --all-features breaking rendering due to unity vertexes (#5542) 2024-12-30 12:39:17 +01:00
Cargo.toml Remove cyclic dependency of egui_demo_lib on itself 2024-12-16 18:10:01 +01:00
README.md Move all crates into a `crates` directory (#1940) 2022-08-20 10:41:49 +02:00

README.md

egui demo library

Latest version Documentation unsafe forbidden MIT Apache

This crate contains example code for egui.

The demo library is a separate crate for three reasons: