Rename regions and splits in pane_grid::Node
This commit is contained in:
parent
1bc69e7a8a
commit
cb530ccf2f
3 changed files with 14 additions and 12 deletions
|
|
@ -288,7 +288,7 @@ impl<'a, Message, Renderer> PaneGrid<'a, Message, Renderer> {
|
|||
if let Some((split, _)) = self.state.picked_split() {
|
||||
let bounds = layout.bounds();
|
||||
|
||||
let splits = self.state.splits(
|
||||
let splits = self.state.split_regions(
|
||||
f32::from(self.spacing),
|
||||
Size::new(bounds.width, bounds.height),
|
||||
);
|
||||
|
|
@ -410,7 +410,7 @@ where
|
|||
let limits = limits.width(self.width).height(self.height);
|
||||
let size = limits.resolve(Size::ZERO);
|
||||
|
||||
let regions = self.state.regions(f32::from(self.spacing), size);
|
||||
let regions = self.state.pane_regions(f32::from(self.spacing), size);
|
||||
|
||||
let children = self
|
||||
.elements
|
||||
|
|
@ -453,7 +453,7 @@ where
|
|||
cursor_position.y - bounds.y,
|
||||
);
|
||||
|
||||
let splits = self.state.splits(
|
||||
let splits = self.state.split_regions(
|
||||
f32::from(self.spacing),
|
||||
Size::new(bounds.width, bounds.height),
|
||||
);
|
||||
|
|
@ -590,7 +590,7 @@ where
|
|||
|
||||
let splits = self
|
||||
.state
|
||||
.splits(f32::from(self.spacing), bounds.size());
|
||||
.split_regions(f32::from(self.spacing), bounds.size());
|
||||
|
||||
hovered_split(
|
||||
splits.iter(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue