Héctor Ramón Jiménez
6bb01b7276
Fix clippy lints for Rust 1.66
2022-12-20 11:31:25 +01:00
Héctor Ramón Jiménez
8ce8d374b1
Refactor some image traits a bit
...
- Use `Size<u32>` were applicable.
- Rename `TextureStore` to `image::Storage`.
- Rename `TextureStoreEntry` to `image::storage::Entry`.
- Wire up `viewport_dimensions` to `iced_glow` for `Svg`.
2022-11-05 03:19:38 +01:00
Héctor Ramón Jiménez
ff2519b1d4
Replace stateful widgets with new iced_pure API
2022-07-27 06:49:20 +02:00
Héctor Ramón Jiménez
664251f3f5
Draft first-class Theme support
...
RFC: https://github.com/iced-rs/rfcs/pull/6
2022-05-14 01:56:32 +02: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
810e086728
Introduce Renderer argument to mouse_interaction and on_event
2022-01-11 14:12:28 +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
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
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
c4186a71b7
Introduce first-class image module in iced_native
2021-10-31 16:20:50 +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
bc32199e39
Implement Widget::mouse_interaction for image::Viewer
2021-10-28 17:01:33 +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
edea093350
Move Defaults from iced_graphics to iced_native
2021-10-18 15:19:04 +07:00
Héctor Ramón Jiménez
03b3493138
Remove trait-specific draw logic in iced_native
2021-10-14 16:07:22 +07:00
chiheisen
fe2392e973
viewer: Don't calculate viewport on Fill|Portion
...
Currently image::viewer will not expand it's image into empty space even
when Length::Fill or Length::FillPortion are used. Only calculate
viewport when viewer cannot expand.
2021-05-17 22:01:43 +02:00
Héctor Ramón Jiménez
21971e0037
Make Clipboard argument in Widget trait mutable
2021-03-10 01:59:02 +01:00
Héctor Ramón Jiménez
c7f6b2a5c7
Capture relevant events in image::Viewer
2021-01-11 19:31:34 +01:00
Héctor Ramón Jiménez
10d6df73e3
Remove max_width and max_height from image::Viewer
...
The support for these layout constraints is currently not ideal. We
should reintroduce these methods once our layout engine improves.
2020-12-18 11:35:01 +01:00
Héctor Ramón Jiménez
c54a6446a3
Use intra-doc links in image::viewer
2020-12-18 11:35:01 +01:00
Héctor Ramón Jiménez
6a51282933
Simplify cursor_to_center in image::Viewer
2020-12-18 11:34:52 +01:00
Héctor Ramón Jiménez
149098cb68
Remove use of unwrap in image::Viewer
2020-12-18 11:20:48 +01:00
Héctor Ramón Jiménez
43ef85ae5c
Rename starting_cursor_pos to cursor_grabbed_at in image::Viewer
2020-12-18 11:20:18 +01:00
Héctor Ramón Jiménez
8245a11766
Negate values instead of multipling by -1.0 in image::Viewer
2020-12-18 11:01:20 +01:00
Héctor Ramón Jiménez
4eb5779542
Remove redundant f32 conversions in image::Viewer
2020-12-18 11:00:32 +01:00
Héctor Ramón Jiménez
64af860ad2
Remove unnecessary Option in image::viewer::State
2020-12-18 10:55:18 +01:00
Héctor Ramón Jiménez
e6f23e3771
Rename scale_pct to scale_step in image::Viewer
2020-12-18 10:53:38 +01:00
Héctor Ramón Jiménez
ca3e4e9f1b
Simplify pattern match in image::Viewer::on_event
2020-12-18 10:49:10 +01:00
Héctor Ramón Jiménez
add167d6a0
Pan image::Viewer even if the cursor is out of bounds
2020-12-18 10:47:29 +01:00
Héctor Ramón Jiménez
21b10dc103
Fix layout of image::Viewer
2020-12-18 10:44:24 +01:00
Héctor Ramón Jiménez
71de341684
Turn methods into helper functions in image::viewer
2020-12-18 10:24:04 +01:00
Héctor Ramón Jiménez
0b73e5fbfa
Merge remote-tracking branch 'tarkah/image-pane' into image-pane
2020-12-18 10:15:30 +01:00
Cory Forsstrom
5dd62bacd5
update docs
2020-05-27 14:16:38 -07:00
Cory Forsstrom
de176beb28
centered image and zoom to cursor
2020-05-27 13:39:26 -07:00
Cory Forsstrom
5d045c2e9a
rename to image::Viewer
2020-05-26 17:16:05 -07:00