summaryrefslogtreecommitdiffstats
path: root/graphics/src/widget/canvas (unfollow)
Commit message (Collapse)AuthorFilesLines
2023-03-14Fix `clippy` lints for Rust 1.68Libravatar Héctor Ramón Jiménez2-19/+6
2023-03-01Implement `Canvas` support for `iced_tiny_skia`Libravatar Héctor Ramón Jiménez13-1468/+0
2023-02-24Overhaul `Font` type to allow font family selectionLibravatar Héctor Ramón Jiménez1-1/+1
2023-02-06Accept FnOnce instead of Fn in canvas cache drawLibravatar sushigiri1-1/+5
Use FnOnce in `draw` function signature instead of `Fn`, permitting the use of iterators and other one-time functions.
2022-11-28Implement `From` traits for `Style` in `canvas`Libravatar Héctor Ramón Jiménez1-0/+12
2022-11-16Group all solid triangles independently of colorLibravatar Héctor Ramón Jiménez4-48/+163
2022-11-10Added conditional configurations for WASM target for gradients & storage ↵Libravatar bungoboingo1-0/+1
buffers, since storage buffers are not supported on wgpu WASM target at the moment.
2022-11-10Fix broken documentation linksLibravatar Héctor Ramón Jiménez2-2/+2
2022-11-03Remove unnecessary `pub(crate)` in `widget::canvas::frame`Libravatar Héctor Ramón Jiménez1-5/+2
2022-11-03Refactor imports of `widget::canvas::frame` in `iced_graphics`Libravatar Héctor Ramón Jiménez1-7/+7
2022-11-03Move `mesh::Style` to `triangle` and reuse it in `fill` and `stroke`Libravatar Héctor Ramón Jiménez3-68/+30
2022-11-03Fix lints by `clippy`Libravatar Héctor Ramón Jiménez1-3/+3
2022-11-03Reuse last buffer in `Frame` if `mesh_style` matchesLibravatar Héctor Ramón Jiménez2-33/+47
2022-10-07Jumped the gun on pushing; one more readability update :PLibravatar shan1-3/+3
2022-10-07Adjusted gradient transform function to be more readable.Libravatar shan3-21/+24
2022-10-07Fixed import issue with canvas in the gradient mod for situations where ↵Libravatar shan3-4/+20
canvas feature is not enabled.
2022-10-07Added support for relative positioning of gradient fills. Addressed some PR ↵Libravatar shan1-5/+5
feedback.
2022-10-06Fixed some more imports/documentation.Libravatar shan2-3/+3
2022-10-06Added support for gradients to respect current frame transform.Libravatar shan3-18/+42
2022-10-06Changed tesselation functions to take Vertex2D builder instead of using ↵Libravatar shan1-17/+31
lyon's builtin Point type to avoid extra copies.
2022-10-05Readjusted namespaces, removed Geometry example as it's no longer relevant.Libravatar shan3-21/+37
2022-10-04Reworked wgpu buffers, updated glow side to have proper transform location ↵Libravatar shan2-14/+14
storage, attempting to fix visibility modifiers, implemented some of the feedback received in initial PR.
2022-10-04expose touch events in canvas widgetLibravatar Artur Sapek1-0/+4
2022-09-30Fixed some importing issues since you can use a Shader::Gradient outside a ↵Libravatar shan5-99/+28
Canvas widget, where it was previously only accessible.
2022-09-29Fixed issue where stops could be declared out of order in the builder but ↵Libravatar shan1-8/+8
must be sorted before being passed to shader.
2022-09-29Adds linear gradient support to 2D meshes in the canvas widget.Libravatar shan5-89/+177
2022-09-29Adds linear gradient support to 2D meshes in the canvas widget.Libravatar shan5-87/+177
2022-09-13Make `Cache::clear` immutableLibravatar Héctor Ramón Jiménez1-1/+1
2022-08-15Don't double translate text clipLibravatar Cory Forsstrom1-1/+1
2022-07-27Replace stateful widgets with new `iced_pure` APILibravatar Héctor Ramón Jiménez5-23/+30
2022-07-11Remove unnecessary `let` bindings in `canvas::Frame`Libravatar Héctor Ramón Jiménez1-4/+3
2022-07-11Update `lyon` to `1.0` :tada:Libravatar Héctor Ramón Jiménez3-8/+7
Congrats and thanks to @nical!
2022-07-10fix another discrepancy with HTML5 arcToLibravatar ThatsNoMoon1-7/+12
HTML5's arcTo does not draw a line from the end of the arc to `b`, so this should not either.
2022-07-10fix arc_toLibravatar ThatsNoMoon1-7/+41
Fixed `path::Builder::arc_to` to behave the same as [HTML5's `arcTo`] ( https://html.spec.whatwg.org/multipage/canvas.html#dom-context-2d-arcto ).
2022-07-09Fix `clippy` lints for all crates and featuresLibravatar Héctor Ramón Jiménez1-0/+6
... and check those in CI as well!
2022-07-09Run `cargo fmt`Libravatar Héctor Ramón Jiménez1-3/+2
2022-07-09Address Clippy lintsLibravatar Poly2-4/+3
2022-06-22Added more clarification as to how the position and alignment of the Canvas ↵Libravatar Jhanny Jimenez1-1/+8
Text structure interact
2022-06-07Implement theme styling for `Canvas`Libravatar Héctor Ramón Jiménez1-7/+19
2022-03-18Reintroduce generic `Message` type for `canvas::Program`Libravatar Héctor Ramón Jiménez1-10/+5
As it is useful to make the `Message` completely free in many implementations.
2022-03-10Fix `canvas::Frame` issuing a new layer for `Mesh2D` in `with_clip`Libravatar Héctor Ramón Jiménez2-16/+32
Text will still be rendered in its own layer, until we fix the composition bottleneck in `glyph-brush`.
2022-03-09Use associated type for `Message` in a `canvas::Program`Libravatar Héctor Ramón Jiménez1-5/+10
2022-03-02Use `Rectangle` directly in `Frame::with_clip`Libravatar Héctor Ramón Jiménez1-21/+11
2022-02-23Add doc commentLibravatar Cory Forsstrom1-1/+8
2022-02-23Add with_clip for canvasLibravatar Cory Forsstrom1-0/+24
2022-02-03Access `lyon_algorithms` indirectly through `lyon`Libravatar Héctor Ramón Jiménez1-2/+2
2022-02-03Ask for a slice of segments instead of ownership in `LineDash`Libravatar Héctor Ramón Jiménez3-23/+23
2022-01-27Remove vec allocationLibravatar Cory Forsstrom1-35/+36
2022-01-27Add line dash APILibravatar Cory Forsstrom3-1/+66
2021-09-20Refactor alignment types into an `alignment` moduleLibravatar Héctor Ramón Jiménez1-5/+6