Héctor Ramón Jiménez
3a0d34c024
Create iced_widget subcrate and re-organize the whole codebase
2023-03-04 05:37:11 +01:00
Héctor Ramón Jiménez
a50cc32d09
Fix layout translation in overlay::Group
...
This bug produced improper positioning of overlays of elements inside a
`Scrollable`.
2023-01-30 05:11:59 +01:00
Héctor Ramón Jiménez
01c484245b
Fix some minor documentation inconsistencies
2023-01-24 01:59:34 +01:00
Cory Forsstrom
be860508a9
Rename method to is_over
2023-01-17 17:20:53 -08:00
Cory Forsstrom
3ab6797255
New method to determine if overlay contains cursor
...
This is needed for "container" overlay's such as `Group` which should
only consider it's childrens layouts and not it's own when determining
if the cursor is captured by the overlay.
2023-01-17 11:12:10 -08:00
Héctor Ramón Jiménez
daa3f3324d
Introduce custom method to widget::Operation trait
...
This allows users to write operations for their custom widgets.
2023-01-14 03:20:30 +01:00
Héctor Ramón Jiménez
0e9c1ab192
Add Renderer argument to operate
2022-12-22 14:29:24 +01:00
Cory Forsstrom
9a601c0954
Get widget operations working w/ overlay
2022-11-29 12:50:57 -08:00
Cory Forsstrom
c4bca3f2af
Add text input operations
2022-11-11 08:43:36 -08:00
Héctor Ramón Jiménez
1480ab2030
Fix broken documentation links
2022-11-10 00:10:53 +01:00
Héctor Ramón Jiménez
1283f2153c
Implement Overlay::operate for overlay::element::Map
2022-11-09 23:50:23 +01:00
Héctor Ramón Jiménez
80688689aa
Draft widget operations
2022-07-28 02:46:51 +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
d9d6dff550
Loose lifetime bounds in pure::Widget implementations
2022-03-29 18:24:17 +07: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
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
bffa7203df
Create iced_lazy and draft Component trait
2021-11-29 15:04:12 +07:00
Héctor Ramón Jiménez
aca9d414d3
Write missing documentation in iced_native
2021-11-05 15:31:33 +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
be97a5d502
Introduce mouse_interaction method to Widget trait
2021-10-18 16:43:18 +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
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
01322f69a4
Use recently stabilized intra-doc links
...
See RFC: https://github.com/rust-lang/rfcs/blob/master/text/1946-intra-rustdoc-links.md
2020-11-26 02:05:43 +01:00
Héctor Ramón Jiménez
6e9bd0d9d1
Make Overlay::on_event return event::Status
2020-11-12 01:29:11 +01:00
Héctor Ramón Jiménez
31c30fedd5
Remove unnecessary Rc in both Element::map
2020-07-16 04:40:36 +02:00
Héctor Ramón Jiménez
2118a726f8
Write documentation for the new overlay API
2020-07-10 02:39:12 +02:00
Héctor Ramón Jiménez
1070b61f34
Rename overlay::Content trait to Overlay
...
The `Overlay` struct is now `overlay::Element`.
2020-07-10 01:35:46 +02:00