diff options
author | 2020-06-30 00:32:55 +0200 | |
---|---|---|
committer | 2020-06-30 01:02:26 +0200 | |
commit | cb530ccf2f0ba82e49be317a14eb61025777a24e (patch) | |
tree | b3d0f2e3bc048be2fa7cef1ca2f15ad841d283b8 /native/src/widget/pane_grid/state.rs | |
parent | 1bc69e7a8a8ea59efc14fd765889895662c9ba46 (diff) | |
download | iced-cb530ccf2f0ba82e49be317a14eb61025777a24e.tar.gz iced-cb530ccf2f0ba82e49be317a14eb61025777a24e.tar.bz2 iced-cb530ccf2f0ba82e49be317a14eb61025777a24e.zip |
Rename `regions` and `splits` in `pane_grid::Node`
Diffstat (limited to 'native/src/widget/pane_grid/state.rs')
-rw-r--r-- | native/src/widget/pane_grid/state.rs | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/native/src/widget/pane_grid/state.rs b/native/src/widget/pane_grid/state.rs index 4b13fb8e..57fdbc55 100644 --- a/native/src/widget/pane_grid/state.rs +++ b/native/src/widget/pane_grid/state.rs @@ -154,8 +154,10 @@ impl<T> State<T> { /// [`Pane`]: struct.Pane.html /// [`State::active`]: struct.State.html#method.active pub fn adjacent(&self, pane: &Pane, direction: Direction) -> Option<Pane> { - let regions = - self.internal.layout.regions(0.0, Size::new(4096.0, 4096.0)); + let regions = self + .internal + .layout + .pane_regions(0.0, Size::new(4096.0, 4096.0)); let current_region = regions.get(pane)?; @@ -362,20 +364,20 @@ impl Internal { } } - pub fn regions( + pub fn pane_regions( &self, spacing: f32, size: Size, ) -> HashMap<Pane, Rectangle> { - self.layout.regions(spacing, size) + self.layout.pane_regions(spacing, size) } - pub fn splits( + pub fn split_regions( &self, spacing: f32, size: Size, ) -> HashMap<Split, (Axis, Rectangle, f32)> { - self.layout.splits(spacing, size) + self.layout.split_regions(spacing, size) } pub fn focus(&mut self, pane: &Pane) { |