From effa6881f725fdfd2087205737484726f3580a43 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Wed, 27 Jul 2022 06:57:49 +0200 Subject: Enable `arc` example --- Cargo.toml | 1 + examples/arc/Cargo.toml | 2 +- examples/arc/src/main.rs | 8 +++++--- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 2482185e..bff0eb7b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -58,6 +58,7 @@ members = [ "style", "wgpu", "winit", + "examples/arc", "examples/bezier_tool", "examples/clock", "examples/color_palette", diff --git a/examples/arc/Cargo.toml b/examples/arc/Cargo.toml index 299f5a3e..e6e74363 100644 --- a/examples/arc/Cargo.toml +++ b/examples/arc/Cargo.toml @@ -6,4 +6,4 @@ edition = "2021" publish = false [dependencies] -iced = { path = "../../..", features = ["canvas", "tokio", "debug"] } +iced = { path = "../..", features = ["canvas", "tokio", "debug"] } diff --git a/examples/arc/src/main.rs b/examples/arc/src/main.rs index df0e1e8a..0c619dc9 100644 --- a/examples/arc/src/main.rs +++ b/examples/arc/src/main.rs @@ -1,11 +1,13 @@ use std::{f32::consts::PI, time::Instant}; use iced::executor; -use iced::pure::widget::canvas::{ +use iced::widget::canvas::{ self, Cache, Canvas, Cursor, Geometry, Path, Stroke, }; -use iced::pure::{Application, Element}; -use iced::{Command, Length, Point, Rectangle, Settings, Subscription, Theme}; +use iced::{ + Application, Command, Element, Length, Point, Rectangle, Settings, + Subscription, Theme, +}; pub fn main() -> iced::Result { Arc::run(Settings { -- cgit