summaryrefslogtreecommitdiffstats
path: root/graphics/src/widget (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énez15-2037/+0
2023-02-24Overhaul `Font` type to allow font family selectionLibravatar Héctor Ramón Jiménez1-1/+1
2023-02-17Use `f32` in `Length::Units` and rename it to `Fixed`Libravatar Héctor Ramón Jiménez1-7/+7
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énez5-48/+165
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 re-export in `widget::canvas` in `iced_graphics`Libravatar Héctor Ramón Jiménez1-1/+1
2022-11-03Fix documentation example of `Canvas`Libravatar Héctor Ramón Jiménez1-5/+9
... so it makes sense when seen from the `iced` crate.
2022-11-03Refactor imports in `widget::canvas` in `iced_graphics`Libravatar Héctor Ramón Jiménez1-4/+3
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-03Run `cargo fmt`Libravatar Héctor Ramón Jiménez1-4/+4
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-07Adjusted reexports for clarity.Libravatar shan1-1/+1
2022-10-07Added support for relative positioning of gradient fills. Addressed some PR ↵Libravatar shan2-6/+6
feedback.
2022-10-06Fixed some more imports/documentation.Libravatar shan2-3/+3
2022-10-06Added support for gradients to respect current frame transform.Libravatar shan4-19/+43
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-05Reduced memory transfer of OpenGL gradient uniform upload. Rearranged ↵Libravatar shan1-2/+1
gradient uniforms on OpenGL side to be more performant.
2022-10-05Readjusted namespaces, removed Geometry example as it's no longer relevant.Libravatar shan4-24/+42
2022-10-04Reworked wgpu buffers, updated glow side to have proper transform location ↵Libravatar shan3-16/+16
storage, attempting to fix visibility modifiers, implemented some of the feedback received in initial PR.
2022-10-04expose touch events in canvas widgetLibravatar Artur Sapek2-0/+7
2022-09-30Fixed some importing issues since you can use a Shader::Gradient outside a ↵Libravatar shan6-110/+33
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 shan6-91/+181
2022-09-29Adds linear gradient support to 2D meshes in the canvas widget.Libravatar shan6-89/+181
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-27Remove `pure` leftovers in `iced_graphics`Libravatar Héctor Ramón Jiménez3-322/+0
2022-07-27Replace stateful widgets with new `iced_pure` APILibravatar Héctor Ramón Jiménez8-154/+66
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énez3-8/+14
... 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 Poly3-8/+4
2022-07-09Fix doc example in `pure::canvas::Program`Libravatar Héctor Ramón1-1/+3
The `widget` module was missing.
2022-07-09Update import path in pure canvas exampleLibravatar Zoron1-1/+1
In current version, `iced::pure::canvas` would be unresolved. It should be `iced::pure::widget::canvas`.
2022-07-01Fix `Widget::tag` implementation of `pure::Canvas`Libravatar Héctor Ramón Jiménez1-1/+2
Using `P::State` can cause a panic if the `Canvas` has `()` as `P::State` and replaces a stateless widget in a future `view` call.
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énez4-37/+63