1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-31 05:40:03 -04:00

[refactor] introduce NumExt with at_least and at_most

`x.min(maxumim)` can be confusing but `x.at_most(maximum)` is very clear
This commit is contained in:
Emil Ernerfeldt
2020-09-16 21:39:45 +02:00
parent 5856cded95
commit 85a67ab15e
12 changed files with 83 additions and 22 deletions

View File

@@ -68,7 +68,7 @@ TODO-list for the Egui project. If you looking for something to do, look here.
* [ ] Thin circles look bad
* [ ] Allow adding multiple tooltips to the same widget, showing them all one after the other.
* Math
* [ ] Change `width.min(max_width)` to `width.at_most(max_width)`
* [x] Change `width.min(max_width)` to `width.at_most(max_width)`
* Id
* struct TempId(u64); struct StateId(u64);
* `TempId` is count-based. Only good for interaction. Can't be used for storing state.