summaryrefslogblamecommitdiffstats
path: root/wgpu/src/widget/pane_grid.rs
blob: c26dde48962398346428b3e66f0bc6488fcc943f (plain) (tree)
1
2
3
4
5
6
7
8
9


                                                                                                                        




                                                                                
                                                                                    


                                 

                                                                              








                                                                                                                        

                              



                                                           

                                                            
//! 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)
//!
//! # Example
//! The [`pane_grid` example] showcases how to use a [`PaneGrid`] with resizing,
//! drag and drop, and hotkey support.
//!
//! [`pane_grid` example]: https://github.com/hecrj/iced/tree/0.2/examples/pane_grid
use crate::Renderer;

pub use iced_native::pane_grid::{
    Axis, Configuration, Direction, DragEvent, Node, 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>;

/// The content of a [`Pane`].
pub type Content<'a, Message> =
    iced_native::pane_grid::Content<'a, Message, Renderer>;

/// The title bar of a [`Pane`].
pub type TitleBar<'a, Message> =
    iced_native::pane_grid::TitleBar<'a, Message, Renderer>;