Create iced_widget subcrate and re-organize the whole codebase

This commit is contained in:
Héctor Ramón Jiménez 2023-03-04 05:37:11 +01:00
parent c54409d171
commit 3a0d34c024
No known key found for this signature in database
GPG key ID: 140CC052C94F138E
209 changed files with 1959 additions and 2183 deletions

View file

@ -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;

View file

@ -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.
///

View file

@ -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)]

View file

@ -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;

View file

@ -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)]

View file

@ -1,4 +1,4 @@
use crate::{Color, Gradient};
use iced_core::{Color, Gradient};
/// The coloring style of some drawing.
#[derive(Debug, Clone, PartialEq)]

View file

@ -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)]