Create PaneGrid
alias in iced_wgpu
This commit is contained in:
parent
bd74c4e577
commit
bb898fa2e2
@ -30,13 +30,14 @@ mod platform {
|
|||||||
pub use iced_winit::svg::{Handle, Svg};
|
pub use iced_winit::svg::{Handle, Svg};
|
||||||
}
|
}
|
||||||
|
|
||||||
pub use iced_winit::{pane_grid, PaneGrid, Text};
|
pub use iced_winit::Text;
|
||||||
|
|
||||||
#[doc(no_inline)]
|
#[doc(no_inline)]
|
||||||
pub use {
|
pub use {
|
||||||
button::Button, checkbox::Checkbox, container::Container, image::Image,
|
button::Button, checkbox::Checkbox, container::Container, image::Image,
|
||||||
progress_bar::ProgressBar, radio::Radio, scrollable::Scrollable,
|
pane_grid::PaneGrid, progress_bar::ProgressBar, radio::Radio,
|
||||||
slider::Slider, svg::Svg, text_input::TextInput,
|
scrollable::Scrollable, slider::Slider, svg::Svg,
|
||||||
|
text_input::TextInput,
|
||||||
};
|
};
|
||||||
|
|
||||||
/// A container that distributes its contents vertically.
|
/// A container that distributes its contents vertically.
|
||||||
|
@ -10,6 +10,7 @@
|
|||||||
pub mod button;
|
pub mod button;
|
||||||
pub mod checkbox;
|
pub mod checkbox;
|
||||||
pub mod container;
|
pub mod container;
|
||||||
|
pub mod pane_grid;
|
||||||
pub mod progress_bar;
|
pub mod progress_bar;
|
||||||
pub mod radio;
|
pub mod radio;
|
||||||
pub mod scrollable;
|
pub mod scrollable;
|
||||||
@ -23,6 +24,8 @@ pub use checkbox::Checkbox;
|
|||||||
#[doc(no_inline)]
|
#[doc(no_inline)]
|
||||||
pub use container::Container;
|
pub use container::Container;
|
||||||
#[doc(no_inline)]
|
#[doc(no_inline)]
|
||||||
|
pub use pane_grid::PaneGrid;
|
||||||
|
#[doc(no_inline)]
|
||||||
pub use progress_bar::ProgressBar;
|
pub use progress_bar::ProgressBar;
|
||||||
#[doc(no_inline)]
|
#[doc(no_inline)]
|
||||||
pub use radio::Radio;
|
pub use radio::Radio;
|
||||||
|
17
wgpu/src/widget/pane_grid.rs
Normal file
17
wgpu/src/widget/pane_grid.rs
Normal 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>;
|
Loading…
Reference in New Issue
Block a user