summaryrefslogtreecommitdiffstats
path: root/native/src/widget/image (unfollow)
Commit message (Collapse)AuthorFilesLines
2023-03-04Create `iced_widget` subcrate and re-organize the whole codebaseLibravatar Héctor Ramón Jiménez1-428/+0
2023-02-17Use `Pixels` for `padding` in `image::Viewer`Libravatar Héctor Ramón Jiménez1-6/+6
2023-02-17Use `f32` in `Length::Units` and rename it to `Fixed`Libravatar Héctor Ramón Jiménez1-5/+5
2022-12-20Fix `clippy` lints for Rust 1.66Libravatar Héctor Ramón Jiménez1-8/+5
2022-11-05Refactor some `image` traits a bitLibravatar Héctor Ramón Jiménez1-2/+2
- 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-07-27Replace stateful widgets with new `iced_pure` APILibravatar Héctor Ramón Jiménez1-65/+98
2022-05-14Draft first-class `Theme` supportLibravatar Héctor Ramón Jiménez1-0/+1
RFC: https://github.com/iced-rs/rfcs/pull/6
2022-02-23Remove `hash_layout` method from `Widget` traitLibravatar Héctor Ramón Jiménez1-13/+2
2022-01-11Introduce `Renderer` argument to `mouse_interaction` and `on_event`Libravatar Héctor Ramón Jiménez1-0/+1
2021-12-10Decouple the image Handle type from the iced_native implementationLibravatar Olivier Pinon1-13/+15
2021-11-29Introduce `Shell` type in `iced_native`Libravatar Héctor Ramón Jiménez1-3/+3
Widgets now can invalidate the current layout of the application on demand.
2021-11-02Move `viewport` argument to last position in `mouse_interaction` methodsLibravatar Héctor Ramón Jiménez1-1/+1
This keeps the order of the arguments consistent with `draw`.
2021-10-31Introduce first-class `image` module in `iced_native`Libravatar Héctor Ramón Jiménez1-1/+1
2021-10-31Remove `widget` module re-exports in `iced_native`Libravatar Héctor Ramón Jiménez1-1/+1
2021-10-28Implement `Widget::mouse_interaction` for `image::Viewer`Libravatar Héctor Ramón Jiménez1-0/+18
2021-10-28Implement `Widget::draw` for `image::Viewer`Libravatar Héctor Ramón Jiménez1-3/+15
2021-10-18Move `Defaults` from `iced_graphics` to `iced_native`Libravatar Héctor Ramón Jiménez1-1/+2
2021-10-14Remove trait-specific draw logic in `iced_native`Libravatar Héctor Ramón Jiménez1-43/+4
2021-05-17viewer: Don't calculate viewport on Fill|PortionLibravatar chiheisen1-7/+18
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-03-10Make `Clipboard` argument in `Widget` trait mutableLibravatar Héctor Ramón Jiménez1-2/+2
2021-01-11Capture relevant events in `image::Viewer`Libravatar Héctor Ramón Jiménez1-5/+15
2020-12-18Remove `max_width` and `max_height` from `image::Viewer`Libravatar Héctor Ramón Jiménez1-19/+1
The support for these layout constraints is currently not ideal. We should reintroduce these methods once our layout engine improves.
2020-12-18Use intra-doc links in `image::viewer`Libravatar Héctor Ramón Jiménez1-37/+4
2020-12-18Simplify `cursor_to_center` in `image::Viewer`Libravatar Héctor Ramón Jiménez1-21/+2
2020-12-18Remove use of `unwrap` in `image::Viewer`Libravatar Héctor Ramón Jiménez1-34/+33
2020-12-18Rename `starting_cursor_pos` to `cursor_grabbed_at` in `image::Viewer`Libravatar Héctor Ramón Jiménez1-11/+10
2020-12-18Negate values instead of multipling by `-1.0` in `image::Viewer`Libravatar Héctor Ramón Jiménez1-10/+4
2020-12-18Remove redundant `f32` conversions in `image::Viewer`Libravatar Héctor Ramón Jiménez1-12/+10
2020-12-18Remove unnecessary `Option` in `image::viewer::State`Libravatar Héctor Ramón Jiménez1-18/+24
2020-12-18Rename `scale_pct` to `scale_step` in `image::Viewer`Libravatar Héctor Ramón Jiménez1-6/+6
2020-12-18Simplify pattern match in `image::Viewer::on_event`Libravatar Héctor Ramón Jiménez1-15/+10
2020-12-18Pan `image::Viewer` even if the cursor is out of boundsLibravatar Héctor Ramón Jiménez1-77/+68
2020-12-18Fix `layout` of `image::Viewer`Libravatar Héctor Ramón Jiménez1-52/+38
2020-12-18Turn methods into helper functions in `image::viewer`Libravatar Héctor Ramón Jiménez1-26/+20
2020-05-27update docsLibravatar Cory Forsstrom1-1/+1
2020-05-27centered image and zoom to cursorLibravatar Cory Forsstrom1-91/+196
2020-05-26rename to image::ViewerLibravatar Cory Forsstrom1-0/+383