Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace stateful widgets with the new iced_pure API #1393

Merged
merged 20 commits into from
Aug 5, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Enable arc example
  • Loading branch information
hecrj committed Jul 27, 2022

Verified

This commit was signed with the committer’s verified signature.
hecrj Héctor
commit effa6881f725fdfd2087205737484726f3580a43
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -58,6 +58,7 @@ members = [
"style",
"wgpu",
"winit",
"examples/arc",
"examples/bezier_tool",
"examples/clock",
"examples/color_palette",
2 changes: 1 addition & 1 deletion examples/arc/Cargo.toml
Original file line number Diff line number Diff line change
@@ -6,4 +6,4 @@ edition = "2021"
publish = false

[dependencies]
iced = { path = "../../..", features = ["canvas", "tokio", "debug"] }
iced = { path = "../..", features = ["canvas", "tokio", "debug"] }
8 changes: 5 additions & 3 deletions examples/arc/src/main.rs
Original file line number Diff line number Diff line change
@@ -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 {