summaryrefslogtreecommitdiffstats
path: root/wgpu/src/widget/pane_grid.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-03-19 09:37:13 +0100
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-03-19 09:37:13 +0100
commitbb898fa2e277d46642feec397efd753f133a0aae (patch)
treec12dfe5f8b5e282297ce8ea1b783d5ae176dc574 /wgpu/src/widget/pane_grid.rs
parentbd74c4e577de01b48064c7a01541ca2ad6d9ae16 (diff)
downloadiced-bb898fa2e277d46642feec397efd753f133a0aae.tar.gz
iced-bb898fa2e277d46642feec397efd753f133a0aae.tar.bz2
iced-bb898fa2e277d46642feec397efd753f133a0aae.zip
Create `PaneGrid` alias in `iced_wgpu`
Diffstat (limited to 'wgpu/src/widget/pane_grid.rs')
-rw-r--r--wgpu/src/widget/pane_grid.rs17
1 files changed, 17 insertions, 0 deletions
diff --git a/wgpu/src/widget/pane_grid.rs b/wgpu/src/widget/pane_grid.rs
new file mode 100644
index 00000000..7bc2f7c5
--- /dev/null
+++ b/wgpu/src/widget/pane_grid.rs
@@ -0,0 +1,17 @@
+//! Let your users split regions of your application and organize layout dynamically.
+//!
+//! [![Pane grid - Iced](https://thumbs.gfycat.com/MixedFlatJellyfish-small.gif)](https://gfycat.com/mixedflatjellyfish)
+use crate::Renderer;
+
+pub use iced_native::pane_grid::{
+ Axis, Direction, DragEvent, Focus, KeyPressEvent, Pane, ResizeEvent, Split,
+ State,
+};
+
+/// A collection of panes distributed using either vertical or horizontal splits
+/// to completely fill the space available.
+///
+/// [![Pane grid - Iced](https://thumbs.gfycat.com/MixedFlatJellyfish-small.gif)](https://gfycat.com/mixedflatjellyfish)
+///
+/// This is an alias of an `iced_native` pane grid with an `iced_wgpu::Renderer`.
+pub type PaneGrid<'a, Message> = iced_native::PaneGrid<'a, Message, Renderer>;