Move Defaults from iced_graphics to iced_native
This commit is contained in:
parent
54a9a232f8
commit
edea093350
39 changed files with 166 additions and 192 deletions
|
|
@ -3,7 +3,9 @@
|
|||
//! A [`Canvas`] widget can be used to draw different kinds of 2D shapes in a
|
||||
//! [`Frame`]. It can be used for animation, data visualization, game graphics,
|
||||
//! and more!
|
||||
use crate::{Backend, Defaults, Renderer};
|
||||
use crate::renderer::{self, Renderer};
|
||||
use crate::Backend;
|
||||
|
||||
use iced_native::layout;
|
||||
use iced_native::{
|
||||
Clipboard, Element, Hasher, Layout, Length, Point, Rectangle, Size, Widget,
|
||||
|
|
@ -187,7 +189,7 @@ where
|
|||
fn draw(
|
||||
&self,
|
||||
_renderer: &mut Renderer<B>,
|
||||
_defaults: &Defaults,
|
||||
_style: &renderer::Style,
|
||||
_layout: Layout<'_>,
|
||||
_cursor_position: Point,
|
||||
_viewport: &Rectangle,
|
||||
|
|
|
|||
|
|
@ -1,10 +1,11 @@
|
|||
//! Encode and display information in a QR code.
|
||||
use crate::canvas;
|
||||
use crate::{Backend, Defaults, Renderer};
|
||||
use crate::renderer::{self, Renderer};
|
||||
use crate::Backend;
|
||||
|
||||
use iced_native::layout;
|
||||
use iced_native::{
|
||||
layout, Color, Element, Hasher, Layout, Length, Point, Rectangle, Size,
|
||||
Widget,
|
||||
Color, Element, Hasher, Layout, Length, Point, Rectangle, Size, Widget,
|
||||
};
|
||||
use thiserror::Error;
|
||||
|
||||
|
|
@ -81,7 +82,7 @@ where
|
|||
fn draw(
|
||||
&self,
|
||||
_renderer: &mut Renderer<B>,
|
||||
_defaults: &Defaults,
|
||||
_style: &renderer::Style,
|
||||
_layout: Layout<'_>,
|
||||
_cursor_position: Point,
|
||||
_viewport: &Rectangle,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue