Commit graph

43 commits

Author SHA1 Message Date
Héctor Ramón Jiménez
53ce0e3a88
Fix lints for Rust 1.86 2025-04-03 16:59:55 +02:00
Héctor Ramón Jiménez
9ceb467e6e
Run cargo fmt 2025-02-21 01:37:13 +01:00
Héctor Ramón Jiménez
afef368d8a
Take Event by reference in Widget::update 2025-02-04 01:26:59 +01:00
Héctor
d6182299b9
Merge pull request #2675 from chrismanning/tooltip-hover-render
Request redraw in tooltip widget when cursor is hovering
2024-12-06 06:25:29 +01:00
Héctor Ramón Jiménez
07850718fc
Request redraw in tooltip when State changes 2024-12-06 06:16:16 +01:00
Héctor Ramón Jiménez
8295b231df
Run cargo fmt 2024-12-02 19:57:39 +01:00
Héctor Ramón Jiménez
602661372c
Fix new clippy lints 2024-12-02 19:56:27 +01:00
Chris Manning
0a39f5eac7 Request redraw in tooltip widget when cursor is hovering 2024-11-24 15:04:52 +00:00
Héctor Ramón Jiménez
f02bfc3f68
Rename Widget::on_event to update 2024-11-05 23:52:58 +01:00
Héctor Ramón Jiménez
dcc184b01b
Replace event::Status in Widget::on_event with Shell::capture_event 2024-11-05 23:52:58 +01:00
Héctor Ramón Jiménez
4e38992636
Show tooltip doc example in multiple places 2024-09-19 06:27:54 +02:00
Héctor Ramón Jiménez
f0ae9a0c38
Use Catalog approach for all widgets 2024-03-24 05:03:09 +01:00
Héctor Ramón Jiménez
c22269bff3
Introduce Program API 2024-03-16 05:33:47 +01:00
Héctor Ramón Jiménez
2088e5d661
Try using closures for Container::style
`Box` should not allocate for zero-sized types; so
we should not be incurring much overhead. Just a
bit of indirection.
2024-03-12 13:31:16 +01:00
Héctor Ramón Jiménez
833538ee7f
Leverage DefaultStyle traits instead of Default 2024-03-07 20:11:32 +01:00
Héctor Ramón Jiménez
34e7c6593a
Use Style struct pattern instead of trait for all widgets 2024-03-06 20:30:58 +01:00
Héctor Ramón Jiménez
597a41cea7
Simplify theming for PickList, ComboBox, and Menu widgets 2024-03-06 17:08:57 +01:00
Héctor Ramón Jiménez
29326215cc
Simplify theming for Container widget 2024-03-05 03:48:08 +01:00
Héctor Ramón Jiménez
4130ae4be9
Simplify theming for Text widget 2024-03-04 19:32:13 +01:00
Héctor Ramón Jiménez
0b93ddcdbe
Add size_hint implementation for Tooltip 2024-02-27 01:19:48 +01:00
Héctor Ramón Jiménez
c53c3a71d3
Rename text_layout to tooltip_layout in Tooltip 2024-02-09 02:14:24 +01:00
Héctor Ramón Jiménez
cb9000ea2a
Use simple method call syntax in Tooltip 2024-02-09 02:11:24 +01:00
jhannyj
6bafdc4b3c
Add support for a generic Element in Tooltip 2024-02-09 02:10:07 +01:00
Héctor Ramón Jiménez
738aa47547
Remove position from overlay::Element 2024-02-01 01:08:21 +01:00
Héctor Ramón Jiménez
7a50e9e8fb
Convert Renderer::Theme to generic Widget type 2024-01-21 17:56:01 +01:00
Héctor Ramón Jiménez
d278bfd21d
Replace width and height with Widget::size 2024-01-10 10:01:49 +01:00
Héctor Ramón Jiménez
0655a20ad1
Make Shrink have priority over Fill in layout 2024-01-04 06:51:21 +01:00
Giuliano Bellini s294739
9bbf7822e9 added text::Shaping to Tooltip 2023-12-23 00:17:10 +01:00
Héctor Ramón
100d15f306
Merge pull request #2143 from iced-rs/fix/tooltip-layout-invalidation
Invalidate layout when `Tooltip` changes `overlay`
2023-11-21 19:13:39 +01:00
Héctor Ramón Jiménez
f67387f2d8
Invalidate layout when Tooltip changes overlay 2023-11-21 18:58:54 +01:00
Héctor Ramón Jiménez
25006b9c6f
Fix Overlay composition
Translations were not easily composable.
2023-11-21 14:41:22 +01:00
Héctor Ramón Jiménez
34f07b6027
Fix clippy::semicolon_if_nothing_returned 2023-09-20 04:11:52 +02:00
Héctor Ramón Jiménez
6d379b7fce
Fix unnecessary dereference in Tooltip 2023-09-10 03:16:55 +02:00
Héctor Ramón Jiménez
b329950a42
Fix Tooltip widget state management 2023-09-10 03:15:31 +02:00
Héctor Ramón Jiménez
a026e917d3
Make widget::Tree mutable in Widget::layout 2023-08-30 06:36:24 +02:00
Héctor Ramón Jiménez
ed3454301e
Implement explicit text caching in the widget state tree 2023-08-30 04:31:21 +02:00
Héctor Ramón Jiménez
16a8a494a4
Fix Tooltip overlay position inside Scrollable 2023-07-29 19:48:04 +02:00
Cory Forsstrom
42c423b4a8 Add viewport to Widget::on_event 2023-07-15 10:04:25 -07:00
Héctor Ramón Jiménez
896a90decb
Remove useless conversions in widget::tooltip 2023-07-12 03:48:26 +02:00
Cory Forsstrom
65be3f8b96
Use overlay for Tooltip widget 2023-07-12 03:31:22 +02:00
Héctor Ramón Jiménez
5c8cfb411e
Take Rectangle by value in Cursor API 2023-06-08 20:16:46 +02:00
Héctor Ramón Jiménez
34451bff18
Implement basic cursor availability 2023-06-08 20:11:59 +02:00
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
Renamed from native/src/widget/tooltip.rs (Browse further)