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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user