summaryrefslogtreecommitdiffstats
path: root/native/src/user_interface.rs (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Introduce `Shell` type in `iced_native`Libravatar Héctor Ramón Jiménez2021-11-291-10/+44
| | | | Widgets now can invalidate the current layout of the application on demand.
* Fix overflow of graphics primitives in overlaysLibravatar Héctor Ramón Jiménez2021-11-211-1/+1
| | | | ... by using `overlay_bounds` instead of `viewport` as clip bounds for overlay layer in `UserInterface::draw`
* Move `viewport` argument to last position in `mouse_interaction` methodsLibravatar Héctor Ramón Jiménez2021-11-021-2/+2
| | | | This keeps the order of the arguments consistent with `draw`.
* Remove `widget` module re-exports in `iced_native`Libravatar Héctor Ramón Jiménez2021-10-311-3/+3
|
* Fix overlay layering in `UserInterface::draw`Libravatar Héctor Ramón Jiménez2021-10-281-32/+52
| | | | ... by properly implementing the Painter's algorithm.
* Implement `Widget::mouse_interaction` for `PaneGrid`Libravatar Héctor Ramón Jiménez2021-10-251-13/+9
| | | | | | ... 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.
* Introduce `mouse_interaction` method to `Widget` traitLibravatar Héctor Ramón Jiménez2021-10-181-3/+22
|
* Move `Defaults` from `iced_graphics` to `iced_native`Libravatar Héctor Ramón Jiménez2021-10-181-3/+4
|
* Implement `Widget::draw` for `Scrollable`Libravatar Héctor Ramón Jiménez2021-10-141-9/+13
| | | | Rendering the scroller is still WIP
* Implement `Widget::draw` for `Text`Libravatar Héctor Ramón Jiménez2021-10-141-0/+3
|
* Remove trait-specific draw logic in `iced_native`Libravatar Héctor Ramón Jiménez2021-10-141-21/+13
|
* docs: update all 0.2 github links to 0.3Libravatar Yusuf Bera Ertan2021-06-141-1/+1
|
* Make `Clipboard` argument in `Widget` trait mutableLibravatar Héctor Ramón Jiménez2021-03-101-7/+9
|
* Update example links to point to `0.2` branchLibravatar Héctor Ramón Jiménez2020-11-261-1/+1
|
* Use recently stabilized intra-doc linksLibravatar Héctor Ramón Jiménez2020-11-261-25/+4
| | | | See RFC: https://github.com/rust-lang/rfcs/blob/master/text/1946-intra-rustdoc-links.md
* Batch event processing in `UserInterface::update`Libravatar Héctor Ramón Jiménez2020-11-121-43/+52
|
* Return `event::Status` in `UserInterface::update`Libravatar Héctor Ramón Jiménez2020-11-121-46/+51
|
* Make `Overlay::on_event` return `event::Status`Libravatar Héctor Ramón Jiménez2020-11-121-1/+1
|
* Make `Widget::on_event` return an `event::Status`Libravatar Héctor Ramón Jiménez2020-11-121-1/+1
|
* Relayout `UserInterface` on resize in `iced_winit`Libravatar Héctor Ramón Jiménez2020-11-051-0/+17
|
* Introduce `viewport` to `Widget::draw`Libravatar Héctor Ramón Jiménez2020-10-281-1/+7
| | | | | This should eventually allow us to only generate primitives that are visible.
* Rename `overlay::Content` trait to `Overlay`Libravatar Héctor Ramón Jiménez2020-07-101-2/+2
| | | | The `Overlay` struct is now `overlay::Element`.
* Finish wiring overlays to `UserInterface`Libravatar Héctor Ramón Jiménez2020-07-081-81/+113
|
* Draft `Widget::overlay` idempotencyLibravatar Héctor Ramón Jiménez2020-07-081-61/+67
|
* Draft `ComboBox` and `Menu` layerLibravatar Héctor Ramón Jiménez2020-07-081-8/+8
|
* Introduce `Layer` traitLibravatar Héctor Ramón Jiménez2020-07-081-34/+115
|
* Decouple `cursor_position` from `Cache`Libravatar Héctor Ramón Jiménez2020-06-231-19/+27
| | | | | | Instead, we ask explicitly for it in the different `update` and `draw` methods. This way, the runtime can derive the logical position of the cursor from the source of truth.
* Draft new `iced_graphics` crate :tada:Libravatar Héctor Ramón Jiménez2020-05-191-1/+3
|
* Remove inconsistent `input` module in `iced_native`Libravatar Héctor Ramón Jiménez2020-04-301-3/+1
|
* Revert "Merge pull request #289 from hecrj/fix/cursor-events"Libravatar Héctor Ramón Jiménez2020-04-171-9/+2
| | | | | | | | `winit` seems to produce `CursorEntered` and `CursorLeft` events after wheel scrolling for no apparent reason (?). This causes annoying flickering when hovering some widgets on a scrollable. I should investigate this further. We are rolling back the fix for the time being.
* Make cursor unavailable on leave in `iced_winit`Libravatar Héctor Ramón Jiménez2020-04-121-2/+9
| | | | | | | For now, we just set the cursor position to some negative coordinates. This is a temporary hack until we are able to encode cursor availability. Layers and/or multi-window support will make this apparent.
* Add example to `iced_native::UserInterface`Libravatar Héctor Ramón Jiménez2020-04-021-0/+7
|
* Fix documentation examples of `UserInterface`Libravatar Héctor Ramón Jiménez2020-02-091-2/+2
|
* Remove event conversion from `iced_winit::Application`Libravatar Héctor Ramón Jiménez2020-02-091-2/+2
|
* Take `IntoIterator` instead of `Iterator`Libravatar Héctor Ramón Jiménez2020-01-161-1/+1
|
* Make layout bounds explicit in `UserInterface`Libravatar Héctor Ramón Jiménez2020-01-101-8/+22
|
* Add `Renderer::Defaults` and style inheritanceLibravatar Héctor Ramón Jiménez2019-12-301-54/+4
|
* Allow clipboard access in `Widget::on_event`Libravatar Héctor Ramón Jiménez2019-12-181-3/+7
|
* Uncomment missing debug implementations ruleLibravatar Héctor Ramón Jiménez2019-11-221-0/+1
|
* Merge branch 'master' into improvement/docsLibravatar Héctor Ramón Jiménez2019-11-221-5/+1
|\
| * Remove `dbg!` in `UserInterface`Libravatar Héctor Ramón Jiménez2019-11-201-5/+1
| |
* | Move widgets from `core` to `native` and `web`Libravatar Héctor Ramón Jiménez2019-11-211-6/+5
|/ | | | Also made fields private and improved `Renderer` traits.
* Split text measurements cache from rendering cacheLibravatar Héctor Ramón Jiménez2019-11-111-2/+2
| | | | | This speeds up layouting in the most common scenario considerably! :tada:
* Draft custom layout engine based on `druid`Libravatar Héctor Ramón Jiménez2019-11-111-14/+15
|
* Draft new layout APILibravatar Héctor Ramón Jiménez2019-11-101-19/+14
|
* Provide `Renderer` to `Widget::on_event`Libravatar Héctor Ramón Jiménez2019-10-291-2/+4
| | | | | This allows us to implement configurable event processing that adapts to different rendering strategies.
* Draft `Scrollable` widget (no clipping yet!)Libravatar Héctor Ramón Jiménez2019-10-251-1/+1
|
* Make `Renderer` immutable in `UserInterface::build`Libravatar Héctor Ramón Jiménez2019-10-111-1/+1
|
* Rename `Renderer::Primitive` to `Renderer::Output`Libravatar Héctor Ramón Jiménez2019-10-111-7/+7
|
* Add `Renderer` and `Primitive` conceptsLibravatar Héctor Ramón Jiménez2019-10-051-9/+53
|