diff options
author | 2020-03-19 09:37:13 +0100 | |
---|---|---|
committer | 2020-03-19 09:37:13 +0100 | |
commit | bb898fa2e277d46642feec397efd753f133a0aae (patch) | |
tree | c12dfe5f8b5e282297ce8ea1b783d5ae176dc574 /wgpu/src/widget/pane_grid.rs | |
parent | bd74c4e577de01b48064c7a01541ca2ad6d9ae16 (diff) | |
download | iced-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.rs | 17 |
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. +//! +//! [](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. +/// +/// [](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>; |