summaryrefslogtreecommitdiffstats
path: root/examples/arc/src
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector0193@gmail.com>2022-08-06 00:32:57 +0200
committerLibravatar GitHub <noreply@github.com>2022-08-06 00:32:57 +0200
commit1923dbf7f0769d55e5283f572fde0ce752e28b86 (patch)
tree7be9b36f941f6e13ddc8884f715c04555b1e77db /examples/arc/src
parent1b4f38c71f6e05e26599ee75ea9c91dde96e71ae (diff)
parentc23ed7e4a0a2b62a0d7cabe6e35d7323eac543d2 (diff)
downloadiced-1923dbf7f0769d55e5283f572fde0ce752e28b86.tar.gz
iced-1923dbf7f0769d55e5283f572fde0ce752e28b86.tar.bz2
iced-1923dbf7f0769d55e5283f572fde0ce752e28b86.zip
Merge pull request #1393 from iced-rs/deprecate-stateful-widgets
Replace stateful widgets with the new `iced_pure` API
Diffstat (limited to '')
-rw-r--r--examples/arc/src/main.rs (renamed from examples/pure/arc/src/main.rs)8
1 files changed, 5 insertions, 3 deletions
diff --git a/examples/pure/arc/src/main.rs b/examples/arc/src/main.rs
index df0e1e8a..0c619dc9 100644
--- a/examples/pure/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 {