Commit graph

204 commits

Author SHA1 Message Date
Héctor Ramón Jiménez
ac35fe3edf
Point repository links to 0.4 branch in documentation 2022-04-30 13:54:07 +02:00
Héctor Ramón
0eef527fa5
Merge pull request #1284 from iced-rs/virtual-widgets
Stateless widgets
2022-03-23 17:11:14 +07:00
Héctor Ramón Jiménez
989c562920
Implement pure version of QRCode widget 2022-03-21 17:22:46 +07: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
d7100fd259
Export widget modules in iced_pure
... and fix collisions with the new `helpers`
2022-03-16 17:37:19 +07:00
Héctor Ramón Jiménez
ec8ed9fa8b
Fix canvas::Frame issuing a new layer for Mesh2D in with_clip
Text will still be rendered in its own layer, until we fix the composition bottleneck in `glyph-brush`.
2022-03-10 23:33:58 +07:00
Héctor Ramón Jiménez
31d814b43c
Implement Widget::tag for pure::Canvas 2022-03-09 19:19:21 +07:00
Héctor Ramón Jiménez
0cddb3c1b5
Implement pure version of Canvas widget 2022-03-09 19:14:55 +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
12c1a3f829
Remove redundant widget modules in subcrates
Instead, we can define the type aliases just once in the root crate!
2022-03-09 14:10:15 +07:00
Héctor Ramón
4411da25cf
Merge pull request #1264 from tarkah/canvas/clip
Add clip to canvas
2022-03-05 13:31:39 +07:00
Héctor Ramón Jiménez
27e859e153
Use Rectangle directly in Frame::with_clip 2022-03-02 21:03:46 +07:00
Héctor Ramón Jiménez
644c1b70ca
Skip Canvas::draw if bounds have no logical pixels 2022-02-28 18:15:39 +07:00
Cory Forsstrom
f40da376ce Add doc comment 2022-02-23 11:36:41 -08:00
Cory Forsstrom
16b63031c1 Add with_clip for canvas 2022-02-23 11:05:52 -08:00
Héctor Ramón Jiménez
1313c94e3b
Remove hash_layout method from Widget trait 2022-02-23 21:31:54 +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
bace264bfe
Access lyon_algorithms indirectly through lyon 2022-02-03 17:19:48 +07:00
Héctor Ramón Jiménez
f56c8a7361
Ask for a slice of segments instead of ownership in LineDash 2022-02-03 17:18:05 +07:00
Cory Forsstrom
730c57ba67 Remove vec allocation 2022-01-27 10:01:03 -08:00
Cory Forsstrom
e835cea03c Add line dash API 2022-01-27 09:40:52 -08:00
Héctor Ramón Jiménez
810e086728
Introduce Renderer argument to mouse_interaction and on_event 2022-01-11 14:12:28 +07:00
Poly
8dc7a32964
Bump raw-window-handle 2022-01-04 16:15:45 +07:00
Olivier Pinon
a7bcd65bb8 Decouple the image Handle type from the iced_native implementation 2021-12-10 23:33:58 +01:00
Héctor Ramón Jiménez
998a04645d
Use commit hash in html_logo_url 2021-12-09 15:10:38 +07:00
daladim
d72b1493e0
Added icon in docs 2021-12-09 15:05:41 +07:00
Héctor Ramón Jiménez
bbd9355450
Introduce Shell type in iced_native
Widgets now can invalidate the current layout of the application on demand.
2021-11-29 16:22:01 +07:00
Héctor Ramón Jiménez
b64e875205
Write missing documentation in iced_graphics 2021-11-05 15:38:40 +07:00
Héctor Ramón Jiménez
9fe65ed729
Rename Renderer::present to with_primitives 2021-11-05 15:38:27 +07:00
Héctor Ramón Jiménez
023aded277
Rename fill_rectangle to fill_quad in Renderer 2021-11-04 19:24:11 +07:00
Héctor Ramón Jiménez
ef5a731e4b
Use mem::take instead of mem::replace in iced_graphics::Renderer
Thanks to @tarkah for pointing this out!
2021-11-04 18:24:13 +07:00
Héctor Ramón Jiménez
631e95ee0b
Move viewport argument to last position in mouse_interaction methods
This keeps the order of the arguments consistent with `draw`.
2021-11-02 15:03:29 +07:00
Héctor Ramón Jiménez
c9ed15782c
Introduce state lifetime for style_sheet in Toggler 2021-10-31 17:48:23 +07:00
Héctor Ramón Jiménez
9a3c81f336
Introduce first-class svg module in iced_native 2021-10-31 16:24:31 +07:00
Héctor Ramón Jiménez
c4186a71b7
Introduce first-class image module in iced_native 2021-10-31 16:20:50 +07:00
Héctor Ramón Jiménez
b3a01973c6
Introduce first-class text module in iced_native 2021-10-31 16:14:38 +07:00
Héctor Ramón Jiménez
0aafcde0ef
Remove widget module re-exports in iced_native 2021-10-31 16:14:34 +07:00
Héctor Ramón Jiménez
77bab6beee
Implement Widget::draw for QRCode in iced_graphics 2021-10-30 20:38:12 +07:00
Héctor Ramón Jiménez
0b66095f9f
Implement Widget::mouse_interaction for Canvas in iced_graphics 2021-10-29 16:47:30 +07:00
Héctor Ramón Jiménez
de728737fd
Implement Widget::draw for Canvas in iced_graphics 2021-10-29 16:45:47 +07:00
Héctor Ramón Jiménez
e6156fb0c5
Implement Widget::draw for Svg 2021-10-28 22:13:26 +07:00
Héctor Ramón Jiménez
5fee1e33d4
Implement Widget::draw for Tooltip 2021-10-28 20:30:25 +07:00
Héctor Ramón Jiménez
4889a95e59
Remove unused imports for toggler in iced_graphics 2021-10-28 20:17:49 +07:00
Héctor Ramón Jiménez
1c2792c0a0
Implement Widget::draw for Toggler 2021-10-28 18:17:47 +07:00
Héctor Ramón Jiménez
f625797392
Implement Widget::draw for Rule 2021-10-28 18:05:26 +07:00
Héctor Ramón Jiménez
e42e1e2f57
Implement Widget::draw for ProgressBar 2021-10-28 18:04:27 +07:00
Héctor Ramón Jiménez
8b15874218
Implement Widget::draw for image::Viewer 2021-10-28 17:01:23 +07:00
Héctor Ramón Jiménez
fe4dfeafdb
Wire up style to PickList and overlay::Menu 2021-10-28 15:41:12 +07:00
Héctor Ramón Jiménez
4a11cbd994
Implement Widget::mouse_interaction for PaneGrid
... and fix rendering of drag interaction in `PaneGrid` by
introducing an explicit `with_translation` method to `Renderer`
and simplifying the `with_layer` and `Clip` primitive.
2021-10-25 16:35:02 +07:00
Héctor Ramón Jiménez
41394b4e90
Implement Widget::draw for PaneGrid 2021-10-25 15:37:28 +07:00