Remove unnecessary text::Renderer
bound for PaneGrid
This is no longer necessary, as we do not render text directly anymore.
This commit is contained in:
parent
fb478a4014
commit
f2c2f3fc75
@ -7,9 +7,8 @@
|
|||||||
//! drag and drop, and hotkey support.
|
//! drag and drop, and hotkey support.
|
||||||
//!
|
//!
|
||||||
//! [`pane_grid` example]: https://github.com/hecrj/iced/tree/0.2/examples/pane_grid
|
//! [`pane_grid` example]: https://github.com/hecrj/iced/tree/0.2/examples/pane_grid
|
||||||
use crate::backend::{self, Backend};
|
|
||||||
use crate::defaults;
|
use crate::defaults;
|
||||||
use crate::{Primitive, Renderer};
|
use crate::{Backend, Primitive, Renderer};
|
||||||
use iced_native::mouse;
|
use iced_native::mouse;
|
||||||
use iced_native::pane_grid;
|
use iced_native::pane_grid;
|
||||||
use iced_native::{Element, Layout, Point, Rectangle, Vector};
|
use iced_native::{Element, Layout, Point, Rectangle, Vector};
|
||||||
@ -30,7 +29,7 @@ pub type PaneGrid<'a, Message, Backend> =
|
|||||||
|
|
||||||
impl<B> pane_grid::Renderer for Renderer<B>
|
impl<B> pane_grid::Renderer for Renderer<B>
|
||||||
where
|
where
|
||||||
B: Backend + backend::Text,
|
B: Backend,
|
||||||
{
|
{
|
||||||
fn draw<Message>(
|
fn draw<Message>(
|
||||||
&mut self,
|
&mut self,
|
||||||
|
@ -33,7 +33,6 @@ use crate::layout;
|
|||||||
use crate::mouse;
|
use crate::mouse;
|
||||||
use crate::overlay;
|
use crate::overlay;
|
||||||
use crate::row;
|
use crate::row;
|
||||||
use crate::text;
|
|
||||||
use crate::{
|
use crate::{
|
||||||
Clipboard, Element, Hasher, Layout, Length, Point, Rectangle, Size, Vector,
|
Clipboard, Element, Hasher, Layout, Length, Point, Rectangle, Size, Vector,
|
||||||
Widget,
|
Widget,
|
||||||
@ -543,9 +542,7 @@ where
|
|||||||
/// able to use a [`PaneGrid`] in your user interface.
|
/// able to use a [`PaneGrid`] in your user interface.
|
||||||
///
|
///
|
||||||
/// [renderer]: crate::renderer
|
/// [renderer]: crate::renderer
|
||||||
pub trait Renderer:
|
pub trait Renderer: crate::Renderer + container::Renderer + Sized {
|
||||||
crate::Renderer + container::Renderer + text::Renderer + Sized
|
|
||||||
{
|
|
||||||
/// Draws a [`PaneGrid`].
|
/// Draws a [`PaneGrid`].
|
||||||
///
|
///
|
||||||
/// It receives:
|
/// It receives:
|
||||||
|
Loading…
Reference in New Issue
Block a user