summaryrefslogtreecommitdiffstats
path: root/graphics/src/widget (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Implement `Canvas` support for `iced_tiny_skia`Libravatar Héctor Ramón Jiménez2023-03-0115-2037/+0
|
* Overhaul `Font` type to allow font family selectionLibravatar Héctor Ramón Jiménez2023-02-241-1/+1
|
* Use `f32` in `Length::Units` and rename it to `Fixed`Libravatar Héctor Ramón Jiménez2023-02-171-7/+7
|
* Accept FnOnce instead of Fn in canvas cache drawLibravatar sushigiri2023-02-061-1/+5
| | | | | Use FnOnce in `draw` function signature instead of `Fn`, permitting the use of iterators and other one-time functions.
* Implement `From` traits for `Style` in `canvas`Libravatar Héctor Ramón Jiménez2022-11-281-0/+12
|
* Group all solid triangles independently of colorLibravatar Héctor Ramón Jiménez2022-11-165-48/+165
|
* Added conditional configurations for WASM target for gradients & storage ↵Libravatar bungoboingo2022-11-101-0/+1
| | | | buffers, since storage buffers are not supported on wgpu WASM target at the moment.
* Fix broken documentation linksLibravatar Héctor Ramón Jiménez2022-11-102-2/+2
|
* Remove unnecessary `pub(crate)` in `widget::canvas::frame`Libravatar Héctor Ramón Jiménez2022-11-031-5/+2
|
* Refactor imports of `widget::canvas::frame` in `iced_graphics`Libravatar Héctor Ramón Jiménez2022-11-031-7/+7
|
* Move re-export in `widget::canvas` in `iced_graphics`Libravatar Héctor Ramón Jiménez2022-11-031-1/+1
|
* Fix documentation example of `Canvas`Libravatar Héctor Ramón Jiménez2022-11-031-5/+9
| | | | ... so it makes sense when seen from the `iced` crate.
* Refactor imports in `widget::canvas` in `iced_graphics`Libravatar Héctor Ramón Jiménez2022-11-031-4/+3
|
* Move `mesh::Style` to `triangle` and reuse it in `fill` and `stroke`Libravatar Héctor Ramón Jiménez2022-11-033-68/+30
|
* Fix lints by `clippy`Libravatar Héctor Ramón Jiménez2022-11-031-3/+3
|
* Run `cargo fmt`Libravatar Héctor Ramón Jiménez2022-11-031-4/+4
|
* Reuse last buffer in `Frame` if `mesh_style` matchesLibravatar Héctor Ramón Jiménez2022-11-032-33/+47
|
* Merge branch 'master' into fear/linear-gradientsLibravatar Bingus2022-10-072-0/+7
|\
| * expose touch events in canvas widgetLibravatar Artur Sapek2022-10-042-0/+7
| |
* | Jumped the gun on pushing; one more readability update :PLibravatar shan2022-10-071-3/+3
| |
* | Adjusted gradient transform function to be more readable.Libravatar shan2022-10-073-21/+24
| |
* | Fixed import issue with canvas in the gradient mod for situations where ↵Libravatar shan2022-10-073-4/+20
| | | | | | | | canvas feature is not enabled.
* | Adjusted reexports for clarity.Libravatar shan2022-10-071-1/+1
| |
* | Added support for relative positioning of gradient fills. Addressed some PR ↵Libravatar shan2022-10-072-6/+6
| | | | | | | | feedback.
* | Fixed some more imports/documentation.Libravatar shan2022-10-062-3/+3
| |
* | Added support for gradients to respect current frame transform.Libravatar shan2022-10-064-19/+43
| |
* | Changed tesselation functions to take Vertex2D builder instead of using ↵Libravatar shan2022-10-061-17/+31
| | | | | | | | lyon's builtin Point type to avoid extra copies.
* | Reduced memory transfer of OpenGL gradient uniform upload. Rearranged ↵Libravatar shan2022-10-051-2/+1
| | | | | | | | gradient uniforms on OpenGL side to be more performant.
* | Readjusted namespaces, removed Geometry example as it's no longer relevant.Libravatar shan2022-10-054-24/+42
| |
* | Reworked wgpu buffers, updated glow side to have proper transform location ↵Libravatar shan2022-10-043-16/+16
| | | | | | | | storage, attempting to fix visibility modifiers, implemented some of the feedback received in initial PR.
* | Fixed some importing issues since you can use a Shader::Gradient outside a ↵Libravatar shan2022-09-306-110/+33
| | | | | | | | Canvas widget, where it was previously only accessible.
* | Fixed issue where stops could be declared out of order in the builder but ↵Libravatar shan2022-09-291-8/+8
| | | | | | | | must be sorted before being passed to shader.
* | Adds linear gradient support to 2D meshes in the canvas widget.Libravatar shan2022-09-296-91/+181
|/
* Make `Cache::clear` immutableLibravatar Héctor Ramón Jiménez2022-09-131-1/+1
|
* Don't double translate text clipLibravatar Cory Forsstrom2022-08-151-1/+1
|
* Remove `pure` leftovers in `iced_graphics`Libravatar Héctor Ramón Jiménez2022-07-273-322/+0
|
* Replace stateful widgets with new `iced_pure` APILibravatar Héctor Ramón Jiménez2022-07-278-154/+66
|
* Remove unnecessary `let` bindings in `canvas::Frame`Libravatar Héctor Ramón Jiménez2022-07-111-4/+3
|
* Update `lyon` to `1.0` :tada:Libravatar Héctor Ramón Jiménez2022-07-113-8/+7
| | | | Congrats and thanks to @nical!
* fix another discrepancy with HTML5 arcToLibravatar ThatsNoMoon2022-07-101-7/+12
| | | | | HTML5's arcTo does not draw a line from the end of the arc to `b`, so this should not either.
* fix arc_toLibravatar ThatsNoMoon2022-07-101-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 ).
* Merge pull request #1379 from PolyMeilex/fix/clippyLibravatar Héctor Ramón2022-07-094-18/+19
|\ | | | | Address Clippy lints
| * Fix `clippy` lints for all crates and featuresLibravatar Héctor Ramón Jiménez2022-07-093-8/+14
| | | | | | | | ... and check those in CI as well!
| * Run `cargo fmt`Libravatar Héctor Ramón Jiménez2022-07-091-3/+2
| |
| * Address Clippy lintsLibravatar Poly2022-07-093-8/+4
| |
* | Fix doc example in `pure::canvas::Program`Libravatar Héctor Ramón2022-07-091-1/+3
| | | | | | The `widget` module was missing.
* | Update import path in pure canvas exampleLibravatar Zoron2022-07-091-1/+1
|/ | | | | In current version, `iced::pure::canvas` would be unresolved. It should be `iced::pure::widget::canvas`.
* Merge branch 'master' into themingLibravatar Héctor Ramón Jiménez2022-07-082-2/+10
|\
| * Fix `Widget::tag` implementation of `pure::Canvas`Libravatar Héctor Ramón Jiménez2022-07-011-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.
| * Added more clarification as to how the position and alignment of the Canvas ↵Libravatar Jhanny Jimenez2022-06-221-1/+8
| | | | | | | | Text structure interact