diff options
author | 2020-07-10 00:35:15 +0200 | |
---|---|---|
committer | 2020-07-10 00:35:15 +0200 | |
commit | 46ce3a1f0004ddc527ba3de1ffe3dac3f41a06c3 (patch) | |
tree | 66449eec70609f8fc03a5e4e90ce39a7346d02fb /wgpu/src/widget | |
parent | 5c4f5ae5ecb36703a95cafb2cd58692529c9466d (diff) | |
parent | 3c5921f30c17bcbe0af74a30b6a256a3fa03515c (diff) | |
download | iced-46ce3a1f0004ddc527ba3de1ffe3dac3f41a06c3.tar.gz iced-46ce3a1f0004ddc527ba3de1ffe3dac3f41a06c3.tar.bz2 iced-46ce3a1f0004ddc527ba3de1ffe3dac3f41a06c3.zip |
Merge pull request #442 from hecrj/feature/pane-grid-titlebar
Title bar support for `PaneGrid`
Diffstat (limited to 'wgpu/src/widget')
-rw-r--r-- | wgpu/src/widget/pane_grid.rs | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/wgpu/src/widget/pane_grid.rs b/wgpu/src/widget/pane_grid.rs index 6f437df7..3c47b562 100644 --- a/wgpu/src/widget/pane_grid.rs +++ b/wgpu/src/widget/pane_grid.rs @@ -11,8 +11,8 @@ use crate::Renderer; pub use iced_native::pane_grid::{ - Axis, Content, Direction, DragEvent, Focus, KeyPressEvent, Node, Pane, - ResizeEvent, Split, State, + Axis, Configuration, Direction, DragEvent, Focus, KeyPressEvent, Node, + Pane, ResizeEvent, Split, State, }; /// A collection of panes distributed using either vertical or horizontal splits @@ -22,3 +22,15 @@ pub use iced_native::pane_grid::{ /// /// 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>; + +/// The content of a [`Pane`]. +/// +/// [`Pane`]: struct.Pane.html +pub type Content<'a, Message> = + iced_native::pane_grid::Content<'a, Message, Renderer>; + +/// The title bar of a [`Pane`]. +/// +/// [`Pane`]: struct.Pane.html +pub type TitleBar<'a, Message> = + iced_native::pane_grid::TitleBar<'a, Message, Renderer>; |