Create PaneGrid alias in iced_wgpu

This commit is contained in:
Héctor Ramón Jiménez 2020-03-19 09:37:13 +01:00
parent bd74c4e577
commit bb898fa2e2
3 changed files with 24 additions and 3 deletions

View File

@ -30,13 +30,14 @@ mod platform {
pub use iced_winit::svg::{Handle, Svg};
}
pub use iced_winit::{pane_grid, PaneGrid, Text};
pub use iced_winit::Text;
#[doc(no_inline)]
pub use {
button::Button, checkbox::Checkbox, container::Container, image::Image,
progress_bar::ProgressBar, radio::Radio, scrollable::Scrollable,
slider::Slider, svg::Svg, text_input::TextInput,
pane_grid::PaneGrid, progress_bar::ProgressBar, radio::Radio,
scrollable::Scrollable, slider::Slider, svg::Svg,
text_input::TextInput,
};
/// A container that distributes its contents vertically.

View File

@ -10,6 +10,7 @@
pub mod button;
pub mod checkbox;
pub mod container;
pub mod pane_grid;
pub mod progress_bar;
pub mod radio;
pub mod scrollable;
@ -23,6 +24,8 @@ pub use checkbox::Checkbox;
#[doc(no_inline)]
pub use container::Container;
#[doc(no_inline)]
pub use pane_grid::PaneGrid;
#[doc(no_inline)]
pub use progress_bar::ProgressBar;
#[doc(no_inline)]
pub use radio::Radio;

View File

@ -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>;