Commit graph

1036 commits

Author SHA1 Message Date
Héctor Ramón Jiménez
5d12e194f4 Rename Cursor::*_position methods in canvas 2020-04-29 20:58:59 +02:00
Héctor Ramón Jiménez
70f86f998b Add game_of_life example
RIP John Conway
2020-04-29 08:25:42 +02:00
Héctor Ramón Jiménez
afa0bca4fd Implement Rectangle::position 2020-04-29 08:25:27 +02:00
Héctor Ramón Jiménez
61c707fe04 Merge branch 'master' into feature/canvas-interaction 2020-04-29 07:34:14 +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
5586034d66 Display crosshair cursor in bezier_tool example 2020-04-29 03:23:27 +02:00
Héctor Ramón Jiménez
475a2779a7 Implement Rectangle::with_size 2020-04-29 03:23:08 +02:00
Héctor Ramón Jiménez
ec712c8032 Move MouseCursor to iced_core 2020-04-29 03:23:02 +02:00
Héctor Ramón Jiménez
52719c7076 Let a canvas::Program control the mouse cursor 2020-04-29 03:16:03 +02:00
Héctor Ramón Jiménez
0509710cc5 Add Crosshair variant to MouseCursor 2020-04-29 03:14:59 +02:00
Héctor Ramón Jiménez
59403b6ca8 Remove OutOfBounds variant from MouseCursor 2020-04-29 03:11:15 +02:00
Héctor Ramón Jiménez
85dc07c3b0 Expose Rectangle in iced_web 2020-04-28 06:31:00 +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
7f1e7aea07 Remove unnecessary Container in bezier_tool 2020-04-28 04:41:25 +02:00
Héctor Ramón Jiménez
e65585ae17 Clip and cull Mesh2D primitives in iced_wgpu 2020-04-28 04:41:09 +02:00
Héctor Ramón Jiménez
69c60d372c Implement std::ops::Add<Vector> for Rectangle 2020-04-28 04:40:23 +02:00
Héctor Ramón Jiménez
5d5e60a5cc Implement Rectangle::new 2020-04-28 04:39:59 +02:00
Héctor Ramón Jiménez
fd1ceac363 Port bezier_tool example to use Canvas 2020-04-28 03:57:33 +02:00
Héctor Ramón Jiménez
e4eb0553de Allow canvas::State to produce messages 2020-04-28 03:52:12 +02:00
Héctor Ramón Jiménez
2ca73036ab Implement Drawable for slices of drawables 2020-04-28 03:52:12 +02:00
Héctor Ramón Jiménez
59b1e90661 Introduce Translate primitive in iced_wgpu 2020-04-28 03:52:10 +02:00
Héctor Ramón Jiménez
2381a9310c Ask for a Size in Frame::new 2020-04-28 03:16:18 +02:00
Héctor Ramón Jiménez
b0825ce38b Add convenient builder methods to canvas::Stroke 2020-04-28 03:14:05 +02:00
Héctor Ramón Jiménez
56dbd68326 Move reusable mouse types to iced_core 2020-04-28 03:11:01 +02:00
Héctor Ramón Jiménez
20d79a43cc Implement Default for Point 2020-04-28 03:06:35 +02:00
Héctor Ramón Jiménez
6c2e28d20e Implement std::ops::Sub<Point> for Point 2020-04-28 01:12:27 +02:00
Héctor Ramón Jiménez
dc97d6f33e Remove interaction from solar_system example 2020-04-28 01:10:59 +02:00
Héctor Ramón
e0aa89cee7
Merge pull request #324 from ethanpailes/document-image-format-guessing
document that img handle constructors guess fmt
2020-04-27 17:49:13 +02:00
Ethan Pailes
da2ab420ce document that img handle constructors guess fmt
This patch documents the fact that a couple of the image
handle constructors know how to guess the image format based
on the data that they are provided.

I had to dig through `iced` sources until I discovered that those
routines ultimately boil down to stuff like [image::load_from_memory][1]
from the `image` crate, so I thought I would save others the trouble
of doing the same reverse-engineering

[1]: https://docs.rs/image/0.23.4/image/fn.load_from_memory.html
2020-04-26 15:03:48 -04:00
Héctor Ramón Jiménez
3f4770fd28 Bump versions 🎉 2020-04-26 17:20:56 +02:00
Héctor Ramón Jiménez
e87f3acff4 Render meshes after quads in iced_wgpu 2020-04-26 17:09:03 +02:00
Héctor Ramón
f9bfa82ebc
Merge pull request #322 from AlisCode/aliscode/321/fix-async-examples
#321 Fix async examples by feature-gating Command implementations + A…
2020-04-25 02:39:10 +02:00
Héctor Ramón Jiménez
63f54edf0c Use Rc in Command::map for Wasm 2020-04-25 02:29:40 +02:00
Olivier Pinon
f1e18d0935 #321 cargo fmt 2020-04-25 02:05:17 +02:00
Olivier Pinon
ce2ed35a1a #321 Fix async examples by feature-gating Command implementations + Add pokedex example in CI so that at least one async example is runned on CI 2020-04-25 02:03:17 +02:00
Héctor Ramón
70081c9649
Merge pull request #318 from hecrj/font-associated-type
Make `Font` an associated type of `text::Renderer`
2020-04-24 19:45:48 +02:00
Héctor Ramón Jiménez
0300b649d7 Make Font an associated type of text::Renderer 2020-04-23 22:17:11 +02:00
Héctor Ramón Jiménez
6786b8a3aa Implement Default for Font 2020-04-23 22:17:00 +02:00
Héctor Ramón
3375824630
Merge pull request #314 from katktv/patch-1
Fix a typo in ROADMAP
2020-04-22 17:08:20 +02:00
kat
f30043ddc2
Fix a typo in ROADMAP 2020-04-22 15:07:01 +03:00
Héctor Ramón Jiménez
f59832e88e Fix alignment in triangle pipeline of iced_wgpu 2020-04-19 21:56:03 +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
bb424e54c5 Add interactivity to solar_system example 2020-04-19 18:48:30 +02:00
Héctor Ramón Jiménez
a97acd8fa8 Use Borrow<T> when binding in layer::Cache<T> 2020-04-19 17:59:32 +02:00
Héctor Ramón
edd01159e0
Merge pull request #305 from hecrj/element-on-event
Implement and expose `Element::on_event`
2020-04-19 15:28:53 +02:00
Héctor Ramón Jiménez
8ade09a0f6 Simplify Canvas example in documentation 2020-04-19 14:41:25 +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
462ba3b2c8 Implement and expose Element::on_event 2020-04-18 21:32:04 +02:00
ethanpailes
90c3a183d5
fix progress bar docs to no longer mention buttons (#301) 2020-04-18 21:12:44 +02:00
Héctor Ramón Jiménez
ae546a5b9d Revert "Merge pull request #289 from hecrj/fix/cursor-events"
`winit` seems to produce `CursorEntered` and `CursorLeft` events after
wheel scrolling for no apparent reason (?). This causes annoying flickering when hovering some widgets on a scrollable.

I should investigate this further. We are rolling back the fix for the
time being.
2020-04-17 23:27:50 +02:00