From c55c8dfa1e718987cef06d9532e26773cabd7785 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20R=C3=B6ssler?= Date: Wed, 9 Feb 2022 16:01:44 +0100 Subject: [PATCH] rename size --- egui_extras/src/grid.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/egui_extras/src/grid.rs b/egui_extras/src/grid.rs index cc317c24..0234835b 100644 --- a/egui_extras/src/grid.rs +++ b/egui_extras/src/grid.rs @@ -82,7 +82,7 @@ pub struct Grid<'a, 'b> { } impl<'a, 'b> Grid<'a, 'b> { - fn size(&mut self) -> (CellSize, CellSize) { + fn next_cell_size(&mut self) -> (CellSize, CellSize) { match self.direction { GridDirection::Horizontal => ( CellSize::Absolute(self.sizes.remove(0)), @@ -102,7 +102,7 @@ impl<'a, 'b> Grid<'a, 'b> { "Tried using more grid cells then available." ); - let (width, height) = self.size(); + let (width, height) = self.next_cell_size(); self.layout.empty(width, height); } @@ -112,7 +112,7 @@ impl<'a, 'b> Grid<'a, 'b> { "Tried using more grid cells then available." ); - let (width, height) = self.size(); + let (width, height) = self.next_cell_size(); self.layout.add(width, height, clip, add_contents); }