diff options
author | 2020-06-05 06:52:07 +0200 | |
---|---|---|
committer | 2020-06-05 06:52:07 +0200 | |
commit | 4e1e0e0890b83fb1c4c4406791e3aa63bba58a93 (patch) | |
tree | f74e6712955a4a7239e6a91adfe4c754d876ed52 /wgpu | |
parent | a11bcf5af0be26671ba90097c64021014ab2092d (diff) | |
download | iced-4e1e0e0890b83fb1c4c4406791e3aa63bba58a93.tar.gz iced-4e1e0e0890b83fb1c4c4406791e3aa63bba58a93.tar.bz2 iced-4e1e0e0890b83fb1c4c4406791e3aa63bba58a93.zip |
Draft drawing logic for `Content` and `TitleBar`
Diffstat (limited to 'wgpu')
-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 d9fec026..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, Configuration, 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>; |