Commit graph

108 commits

Author SHA1 Message Date
Héctor Ramón Jiménez
ed0ffb5963
Revert automatic horizontal scroll in scrollable 2025-02-01 02:16:29 +01:00
Héctor Ramón Jiménez
7336a18443
Fix viewport when using nested scrollables 2025-02-01 01:04:36 +01:00
Héctor Ramón Jiménez
fb87c97159
Use Into<Id> for scrollable::Id arguments 2025-01-30 02:52:24 +01:00
Héctor Ramón Jiménez
eee3588181
Rename *_disabled to is_*_disabled in scrollable 2025-01-06 20:25:22 +01:00
Héctor Ramón Jiménez
cff3eb217f
Simplify scrollable disabled styling calculation 2025-01-06 20:23:26 +01:00
dtzxporter
8d9fe61d76
Migrate scrollbar disabled style status to iced 0.13.
Feel free to change the 'name' of it. I originally used 'disabled' to signal that it's not usable, but still visible. 'Overflowing' may be a better term.
2025-01-06 20:20:32 +01:00
Héctor Ramón Jiménez
d09d5d45ae
Draft iced_test crate and test todos example 2024-12-10 04:51:08 +01:00
Héctor Ramón Jiménez
602661372c
Fix new clippy lints 2024-12-02 19:56:27 +01:00
Héctor
2a2e20b0a3
Merge pull request #2668 from edwloef/master
Fix docs of `Scrollable::with_direction` and `Scrollable::direction`
2024-11-13 18:20:20 +01:00
edwloef
ed2e223fe0
Fix docs of Scrollable::with_direction and Scrollable::direction 2024-11-11 13:04:37 +01: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
752403d70c
Split Shell::request_redraw into two different methods 2024-11-05 23:52:58 +01:00
Héctor Ramón Jiménez
7fbc195b11
Implement reactive-rendering for scrollable 2024-11-05 23:52:57 +01:00
BradySimon
f912d26d64
Add PartialEq derives for widget styles 2024-10-14 20:59:32 +02:00
Héctor Ramón
ddbb8445bf
Merge pull request #2587 from iced-rs/improve-api-reference
Add widget examples to API reference and update `README`
2024-09-19 06:59:05 +02:00
Héctor Ramón Jiménez
94f0e0a212
Show scrollable doc example in multiple places 2024-09-19 05:30:12 +02:00
Héctor Ramón
fc722f1356
Merge pull request #2584 from iced-rs/fix/scrollable-transactions
Fix `scrollable` transactions when `on_scroll` is not set
2024-09-18 21:54:16 +02:00
Héctor Ramón Jiménez
11ac912549
Fix scrollable transactions when on_scroll is not set 2024-09-18 21:45:25 +02:00
Héctor Ramón Jiménez
45992109dd
Fix scrolling direction with trackpad in scrollable 2024-09-18 20:41:49 +02:00
Héctor Ramón Jiménez
716a11cc48
Notify all scrollable::Viewport changes
Co-authored-by: Daniel Yoon <101683475+Koranir@users.noreply.github.com>
2024-09-10 22:39:56 +02:00
lufte
e102e89c6a
Implement scroll_by operation for scrollable
`scroll_by` allows scrolling an absolute offset
that is applied to the current scrolling position.
2024-09-10 22:09:03 +02:00
Matt Woelfel
0a0ea30059
Enable horizontal scrolling without shift modifier
Fixes #2359.
2024-09-08 19:03:31 +02:00
Héctor Ramón Jiménez
502c5fdfbc
Implement mouse wheel transactions for scrollable
See https://wiki.mozilla.org/Gecko:Mouse_Wheel_Scrolling#Mouse_wheel_transaction

Co-authored-by: Daniel Yoon <101683475+Koranir@users.noreply.github.com>
2024-09-08 16:00:22 +02:00
Héctor Ramón Jiménez
422568dee4
Introduce black_box and chain in widget::operation 2024-08-08 01:25:00 +02:00
Héctor Ramón Jiménez
9be509d3b3
Reintroduce Scrollable::with_direction 2024-07-30 22:21:52 +02:00
Héctor Ramón Jiménez
aa62fa2ce9
Adapt scrollable sizing strategy to contents 2024-07-18 13:22:53 +02:00
Héctor Ramón Jiménez
b518e30610
Fix Scrollable::spacing not embedding the Scrollbar 2024-07-16 19:05:46 +02:00
Héctor Ramón Jiménez
3f480d3d18
Rename embed_* in Scrollable to simply spacing 2024-07-12 20:00:14 +02:00
Héctor Ramón Jiménez
ab392cee94
Improve Border ergonomics 2024-07-12 19:10:52 +02:00
Héctor Ramón Jiménez
f9dd5cbb09
Introduce helper methods for alignment for all widgets 2024-07-12 15:14:43 +02:00
Héctor Ramón Jiménez
8e9099cdd3
Fix broken doc links in widget::scrollable 2024-07-11 08:11:19 +02:00
Héctor Ramón Jiménez
8ae4e09db9
Add support for embedded scrollbars for scrollable
Co-authored-by: dtzxporter <dtzxporter@users.noreply.github.com>
2024-07-11 08:00:58 +02:00
Héctor Ramón
aaab9865c4
Merge pull request #2488 from vladh/remove-scrollable-comment
doc: remove extraneous comment
2024-07-11 04:52:03 +02:00
Héctor Ramón Jiménez
bec3ca56c3
Add align_x and align_y helpers to Scrollable 2024-07-11 04:37:03 +02:00
Héctor Ramón Jiménez
88611d7653
Hide internal Task constructors 2024-07-05 01:13:28 +02:00
Vlad-Stefan Harbuz
39c21e9fc2 doc: remove extraneous comment 2024-07-02 14:06:55 +01:00
Héctor Ramón Jiménez
a25b1af456
Replace Command with a new Task API with chain support 2024-06-14 01:47:39 +02:00
Héctor Ramón Jiménez
6d4155a548
Fix Shift scrolling for scrollable on macOS
Apparently, macOS inverts the scrolling axes automatically now.
Was this a thing before, or did an update just break user space?
2024-04-26 01:44:03 +02:00
Héctor Ramón Jiménez
eb49567791
Capture scrollbar events in a scrollable before content events 2024-04-26 01:19:49 +02:00
Héctor Ramón Jiménez
4cd45643d7
Introduce opaque widget helper 2024-04-25 06:05:37 +02:00
Daniel
fdcec03197
Don't consume unused scroll events (#2397)
* Initial Commit

* Update scrollable.rs

* Use `let _ = ` instead of `_ =` for consistency

---------

Co-authored-by: Héctor Ramón Jiménez <hector@hecrj.dev>
2024-04-23 00:45:44 +00:00
Héctor Ramón Jiménez
67e181ce7b
Fix clip bounds with nested scrollable widgets 2024-04-23 02:29:48 +02:00
Héctor Ramón Jiménez
b05e61f5c8
Redesign iced_wgpu layering architecture 2024-04-03 21:07: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
66dce4865e
Use closures for Scrollable::style 2024-03-12 13:34:51 +01:00
LuisLiraC
8a78353fa1
Prioritize release events in scrollable 2024-03-11 10:55:19 +01:00
Héctor Ramón Jiménez
0a65fd0d74
Fix mouse_interaction and on_event for Scrollable 2024-03-08 16:59:25 +01:00
Héctor Ramón Jiménez
288025f514
Inline helper functions in widget modules 2024-03-08 13:34:36 +01:00
Héctor Ramón Jiménez
7ece5eea50
Implement additional helpers for Border and container::Appearance 2024-03-07 21:02:17 +01:00