Commit graph

125 commits

Author SHA1 Message Date
Brock Szuszczewicz
482d348230
Use Limits::min directly in scrollable::layout 2025-06-27 00:02:30 +02:00
Héctor Ramón Jiménez
3881d68b7e
Round translation to integral units in scrollable 2025-05-28 20:51:01 +02:00
Héctor Ramón Jiménez
7e4c02b3f6
Set is_scrollbar_visible to true by default
This should optimize the worst layout case—when
scrollables with a lot of content are first shown.
2025-05-03 04:24:07 +02:00
Héctor Ramón Jiménez
f78a87c409
Show embedded scrollbars only when necessary in scrollable 2025-05-03 04:15:18 +02:00
Héctor Ramón Jiménez
fae95d6095
Draft float widget and simplify image again 🎉 2025-04-29 22:34:09 +02:00
Héctor Ramón Jiménez
6c51a9579d
Make Overlay aware of viewport
... and unify `Image::float` and `Image::translate`
2025-04-26 02:52:57 +02:00
Héctor Ramón Jiménez
687750e026
Make grid sizing strategy explicit and more intuitive 2025-04-10 15:39:10 +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
7979125ed7
Simplify InputMethod API with only two states
Co-authored-by: rhysd <lin90162@yahoo.co.jp>
Co-authored-by: KENZ <KENZ.gelsoft@gmail.com>
2025-02-12 08:46:35 +01:00
KENZ
02cbe3cbb5 Fix scrolling offset of preedit window 2025-02-07 23:26:34 +09: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 Ramón Jiménez
50eaef2844
Merge branch 'master' into explore-input-method2 2025-02-03 17:24:05 +01:00
Héctor Ramón Jiménez
141290c740
Fix InputMethod conflicts with multiple scrollables 2025-02-03 17:12:08 +01:00
Héctor Ramón Jiménez
0c0651de5b
Introduce Levitating variant for mouse::Cursor 2025-02-03 05:45:51 +01:00
Héctor Ramón Jiménez
ae10adda74
Refactor and simplify input_method API 2025-02-02 20:45:29 +01:00
KENZ
7db5256b72
Draft input_method support 2025-02-02 17:44:13 +01:00
Héctor Ramón Jiménez
8cac532cd9
Add horizontal helper to scrollable 2025-02-01 04:26:35 +01:00
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