Commit graph

43 commits

Author SHA1 Message Date
shan
6e7b3ced0b Reworked wgpu buffers, updated glow side to have proper transform location storage, attempting to fix visibility modifiers, implemented some of the feedback received in initial PR. 2022-10-04 18:24:46 -07:00
shan
40f45d7b7e Adds linear gradient support to 2D meshes in the canvas widget. 2022-09-29 11:15:35 -07:00
Héctor Ramón Jiménez
ff2519b1d4
Replace stateful widgets with new iced_pure API 2022-07-27 06:49:20 +02:00
Héctor Ramón Jiménez
fc13bb3d65
Implement theme styling for Canvas 2022-06-07 05:24:43 +02:00
Héctor Ramón Jiménez
664251f3f5
Draft first-class Theme support
RFC: https://github.com/iced-rs/rfcs/pull/6
2022-05-14 01:56:32 +02:00
Héctor Ramón Jiménez
32fd8dadda
Reintroduce generic Message type for canvas::Program
As it is useful to make the `Message` completely free in many
implementations.
2022-03-18 22:13:52 +07:00
Héctor Ramón Jiménez
c52fd089f1
Use associated type for Message in a canvas::Program 2022-03-09 18:29:10 +07:00
Héctor Ramón Jiménez
adce9e0421
Update Rust edition to 2021 🎉 2022-02-09 17:57:44 +07:00
Héctor Ramón Jiménez
2f557731f3
Make clock example responsive 2022-01-15 11:56:19 +07:00
Héctor Ramón Jiménez
aaf2444e9f
Replace chrono with time in clock example 2022-01-12 20:16:33 +07:00
Héctor Ramón Jiménez
76698ff2b5
Make Command implementations platform-specific
This allows us to introduce a platform-specific `Action` to both `iced_native`
and `iced_web` and remove the `Clipboard` from `Application::update` to maintain
purity.

Additionally, this should let us implement further actions to let users query
and modify the shell environment (e.g. window, clipboard, and more!)
2021-09-02 13:29:34 +07:00
Héctor Ramón Jiménez
ae517b9fa0 Add clipboard argument to Application::update 2021-03-11 03:38:20 +01:00
Héctor Ramón Jiménez
c1f79b40cf Make Application and Sandbox return a Result 2020-09-08 00:44:59 +02:00
Héctor Ramón Jiménez
e2076612cb Implement time::every in iced_futures 2020-04-30 05:37:44 +02:00
Héctor Ramón Jiménez
dc51080328 Introduce Cursor type in canvas 2020-04-29 04:25:49 +02:00
Héctor Ramón Jiménez
2539042b71 Remove Drawable and rename State to Program 2020-04-28 06:24:12 +02:00
Héctor Ramón Jiménez
592cc68506 Remove Layer trait and simplify Canvas 2020-04-19 21:55:23 +02:00
Héctor Ramón Jiménez
0b5028b1ab Draft Program interactivity for Canvas 2020-04-19 14:39:30 +02:00
Héctor Ramón Jiménez
6d7f2b30cc Simplify drawing logic in clock example 2020-04-14 07:19:50 +02:00
Héctor Ramón Jiménez
46cd0891d2 Implement canvas::Path::circle helper method 2020-04-14 06:54:12 +02:00
Héctor Ramón Jiménez
81096ef454 Implement From<Color> for canvas::Fill 2020-04-14 06:38:06 +02:00
Rob Ede
6e7769b65d
impl default for canvas cache 2020-04-08 23:07:42 +01:00
Héctor Ramón Jiménez
92e148822f Add 0 suffix to float literals for consistency 2020-04-02 01:00:39 +02:00
Marli Frost
08da96c1c6
Scale the clock hands to the same size as the face 2020-04-01 23:19:56 +01:00
Héctor Ramón
e79e832092
Merge pull request #246 from hecrj/feature/application-flags
Application flags
2020-03-31 17:49:56 +02:00
Héctor Ramón Jiménez
749a9588d7 Implement padding support for Container 2020-03-31 01:21:51 +02:00
Héctor Ramón Jiménez
c4c5216e3b Allow passing external state to Application::new 2020-03-30 18:10:15 +02:00
Héctor Ramón Jiménez
b0cf47cc2b Create README files for all the examples 2020-02-21 15:20:05 +01:00
Héctor Ramón Jiménez
6f7247ca13 Rename Settings::use_antialiasing to antialiasing 2020-02-18 09:54:24 +01:00
Héctor Ramón Jiménez
9c067562fa Write documentation for new canvas module 2020-02-18 08:48:54 +01:00
Héctor Ramón Jiménez
570f769744 Rename Settings::antialiasing to use_antialiasing 2020-02-15 10:50:07 +01:00
Héctor Ramón Jiménez
dadae12253 Implement MSAA for triangle pipeline in iced_wgpu 2020-02-15 10:08:27 +01:00
Héctor Ramón Jiménez
76df374624 Implement additional methods in path::Builder 2020-02-14 02:23:41 +01:00
Héctor Ramón Jiménez
979edeb213 Fix clock example eventually skipping a second 2020-02-12 22:38:36 +01:00
Héctor Ramón Jiménez
e7c400a0aa Improve naming in clock example 2020-02-12 22:13:59 +01:00
Héctor Ramón Jiménez
9dc9305d93 Remove redundant conversion in clock example 2020-02-12 22:10:00 +01:00
Héctor Ramón Jiménez
265c08661c Fix circle end_angle in clock example 2020-02-12 22:08:49 +01:00
Héctor Ramón Jiménez
4a24392c9c Simplify Clock::new in clock example 2020-02-12 09:21:13 +01:00
Héctor Ramón Jiménez
96b36d0f9e Increase line width in clock example 2020-02-12 09:00:44 +01:00
Héctor Ramón Jiménez
578ea4abb8 Finish clock example 2020-02-12 08:49:42 +01:00
Héctor Ramón Jiménez
74dd79e97f Rename current Path to path::Builder 2020-02-12 06:41:24 +01:00
Héctor Ramón Jiménez
4777f5d787 Remove unnecessary Arc from clock example 2020-02-12 04:00:13 +01:00
Héctor Ramón Jiménez
f436f20eb8 Draft Canvas types and clock example 2020-02-12 03:47:36 +01:00