1
0
mirror of https://github.com/emilk/egui.git synced 2026-09-03 07:10:04 -04:00

Refactor layers

This commit is contained in:
Emil Ernerfeldt
2020-05-10 14:27:02 +02:00
parent fd99213222
commit be6ada6923
9 changed files with 189 additions and 134 deletions

View File

@@ -74,6 +74,14 @@ impl Resize {
self
}
pub fn auto_sized(self) -> Self {
self.resizable(false)
.auto_shrink_width(true)
.auto_expand_width(true)
.auto_shrink_height(true)
.auto_expand_height(true)
}
pub fn fixed_size(mut self, size: Vec2) -> Self {
self.auto_shrink_width = false;
self.auto_shrink_height = false;