hide private functions
This commit is contained in:
parent
2eae720ee6
commit
f95755768e
1 changed files with 2 additions and 2 deletions
|
@ -114,7 +114,7 @@ impl<'a, 'b> Grid<'a, 'b> {
|
||||||
self.layout.empty(width, height);
|
self.layout.empty(width, height);
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn _cell(&mut self, clip: bool, add_contents: impl FnOnce(&mut Ui)) {
|
fn _cell(&mut self, clip: bool, add_contents: impl FnOnce(&mut Ui)) {
|
||||||
assert!(
|
assert!(
|
||||||
!self.widths.is_empty(),
|
!self.widths.is_empty(),
|
||||||
"Tried using more grid cells then available."
|
"Tried using more grid cells then available."
|
||||||
|
@ -134,7 +134,7 @@ impl<'a, 'b> Grid<'a, 'b> {
|
||||||
self._cell(false, add_contents);
|
self._cell(false, add_contents);
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn _grid(&mut self, clip: bool, grid_builder: impl FnOnce(GridBuilder<'_>)) {
|
fn _grid(&mut self, clip: bool, grid_builder: impl FnOnce(GridBuilder<'_>)) {
|
||||||
let padding = self.padding.clone();
|
let padding = self.padding.clone();
|
||||||
self._cell(clip, |ui| {
|
self._cell(clip, |ui| {
|
||||||
grid_builder(GridBuilder::new(ui, padding));
|
grid_builder(GridBuilder::new(ui, padding));
|
||||||
|
|
Loading…
Reference in a new issue