Implement Widget::draw for PaneGrid

This commit is contained in:
Héctor Ramón Jiménez 2021-10-25 15:37:28 +07:00
parent 1afbc98544
commit 41394b4e90
No known key found for this signature in database
GPG key ID: 140CC052C94F138E
6 changed files with 218 additions and 154 deletions

View file

@ -7,8 +7,7 @@
//! drag and drop, and hotkey support.
//!
//! [`pane_grid` example]: https://github.com/hecrj/iced/tree/0.3/examples/pane_grid
use crate::{Backend, Renderer};
use iced_native::pane_grid;
use crate::Renderer;
pub use iced_native::pane_grid::{
Axis, Configuration, Content, Direction, DragEvent, Node, Pane,
@ -25,10 +24,3 @@ pub use iced_style::pane_grid::{Line, StyleSheet};
/// This is an alias of an `iced_native` pane grid with an `iced_wgpu::Renderer`.
pub type PaneGrid<'a, Message, Backend> =
iced_native::PaneGrid<'a, Message, Renderer<Backend>>;
impl<B> pane_grid::Renderer for Renderer<B>
where
B: Backend,
{
type Style = Box<dyn StyleSheet>;
}