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

egui_extras: improve Table/Strip docs, and only panic in debug builds

This commit is contained in:
Emil Ernerfeldt
2022-04-11 09:54:44 +02:00
parent 65d16695ae
commit c88e1f8b29
5 changed files with 136 additions and 104 deletions

View File

@@ -76,16 +76,12 @@ impl Size {
}
}
#[derive(Clone)]
#[derive(Clone, Default)]
pub struct Sizing {
pub(crate) sizes: Vec<Size>,
}
impl Sizing {
pub fn new() -> Self {
Self { sizes: vec![] }
}
pub fn add(&mut self, size: Size) {
self.sizes.push(size);
}