Create iced_widget subcrate and re-organize the whole codebase
This commit is contained in:
parent
c54409d171
commit
3a0d34c024
209 changed files with 1959 additions and 2183 deletions
|
|
@ -1,5 +1,5 @@
|
|||
//! Fill [crate::widget::canvas::Geometry] with a certain style.
|
||||
use crate::{Color, Gradient};
|
||||
use iced_core::{Color, Gradient};
|
||||
|
||||
pub use crate::geometry::Style;
|
||||
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ pub use builder::Builder;
|
|||
|
||||
pub use lyon_path;
|
||||
|
||||
use crate::{Point, Size};
|
||||
use iced_core::{Point, Size};
|
||||
|
||||
/// An immutable set of points that may or may not be connected.
|
||||
///
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
//! Build and draw curves.
|
||||
use crate::{Point, Vector};
|
||||
use iced_core::{Point, Vector};
|
||||
|
||||
/// A segment of a differentiable curve.
|
||||
#[derive(Debug, Clone, Copy)]
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
use crate::geometry::path::{arc, Arc, Path};
|
||||
use crate::{Point, Size};
|
||||
|
||||
use iced_core::{Point, Size};
|
||||
|
||||
use lyon_path::builder::{self, SvgPathBuilder};
|
||||
use lyon_path::geom;
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
//! Create lines from a [crate::widget::canvas::Path] and assigns them various attributes/styles.
|
||||
pub use crate::geometry::Style;
|
||||
|
||||
use crate::Color;
|
||||
use iced_core::Color;
|
||||
|
||||
/// The style of a stroke.
|
||||
#[derive(Debug, Clone)]
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
use crate::{Color, Gradient};
|
||||
use iced_core::{Color, Gradient};
|
||||
|
||||
/// The coloring style of some drawing.
|
||||
#[derive(Debug, Clone, PartialEq)]
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
use crate::alignment;
|
||||
use crate::{Color, Font, Point};
|
||||
use iced_core::alignment;
|
||||
use iced_core::{Color, Font, Point};
|
||||
|
||||
/// A bunch of text that can be drawn to a canvas
|
||||
#[derive(Debug, Clone)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue