mirror of
https://github.com/emilk/egui.git
synced 2026-08-30 21:30:03 -04:00
Refactor text layout: fewer allocations
This commit is contained in:
@@ -47,6 +47,11 @@ impl Default for Resize {
|
||||
}
|
||||
|
||||
impl Resize {
|
||||
pub fn default_width(mut self, width: f32) -> Self {
|
||||
self.default_size.x = width;
|
||||
self
|
||||
}
|
||||
|
||||
pub fn default_height(mut self, height: f32) -> Self {
|
||||
self.default_size.y = height;
|
||||
self
|
||||
|
||||
Reference in New Issue
Block a user