mirror of
https://github.com/emilk/egui.git
synced 2026-09-02 06:40:06 -04:00
Round widget coordinates to even multiple of 1/32 (#5517)
* Closes https://github.com/emilk/egui/pull/5197 * Closes https://github.com/emilk/egui/issues/5163 This should help prevent rounding errors in layout code. @lucasmerlin you may wanna test this with `egui_flex`
This commit is contained in:
@@ -27,6 +27,7 @@ use std::ops::{Add, Div, Mul, RangeInclusive, Sub};
|
||||
|
||||
pub mod align;
|
||||
pub mod easing;
|
||||
mod gui_rounding;
|
||||
mod history;
|
||||
mod numeric;
|
||||
mod ordered_float;
|
||||
@@ -42,6 +43,7 @@ mod vec2b;
|
||||
|
||||
pub use self::{
|
||||
align::{Align, Align2},
|
||||
gui_rounding::{GuiRounding, GUI_ROUNDING},
|
||||
history::History,
|
||||
numeric::*,
|
||||
ordered_float::*,
|
||||
|
||||
Reference in New Issue
Block a user