summaryrefslogtreecommitdiffstats
path: root/native/src/widget/pane_grid/state.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-06-08 18:11:29 +0200
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-06-08 18:11:29 +0200
commit041cab0fa499a54d21d2742ba821583f55b2a8fc (patch)
tree2ae68bbf38c3eaa6eb50788c589f4e10076cb09d /native/src/widget/pane_grid/state.rs
parent4960a8827e46cafca672ed7c4550086a9c6029bc (diff)
downloadiced-041cab0fa499a54d21d2742ba821583f55b2a8fc.tar.gz
iced-041cab0fa499a54d21d2742ba821583f55b2a8fc.tar.bz2
iced-041cab0fa499a54d21d2742ba821583f55b2a8fc.zip
Resize `PaneGrid` without modifier keys
Diffstat (limited to 'native/src/widget/pane_grid/state.rs')
-rw-r--r--native/src/widget/pane_grid/state.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/native/src/widget/pane_grid/state.rs b/native/src/widget/pane_grid/state.rs
index 4b13fb8e..7a53d6c7 100644
--- a/native/src/widget/pane_grid/state.rs
+++ b/native/src/widget/pane_grid/state.rs
@@ -4,6 +4,7 @@ use crate::{
Hasher, Point, Rectangle, Size,
};
+use std::cell::RefCell;
use std::collections::HashMap;
/// The state of a [`PaneGrid`].
@@ -71,6 +72,7 @@ impl<T> State<T> {
internal: Internal {
layout,
last_id,
+ split_cache: RefCell::new(None),
action: Action::Idle { focus: None },
},
modifiers: keyboard::ModifiersState::default(),
@@ -308,6 +310,7 @@ pub struct Internal {
layout: Node,
last_id: usize,
action: Action,
+ split_cache: RefCell<Option<HashMap<Split, (Axis, f32, Rectangle)>>>,
}
#[derive(Debug, Clone, Copy, PartialEq, Eq)]