mirror of
https://github.com/emilk/egui.git
synced 2026-09-03 07:10:04 -04:00
Refactor layers
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user