Héctor Ramón Jiménez
caed50b277
Fix clippy::match-wildcard-for-single-variants
2023-09-20 05:03:25 +02:00
Héctor Ramón Jiménez
42ed90bc6f
Fix clippy::default_trait_access
2023-09-20 04:51:08 +02: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
ed11b04f60
Fix height of vertical scroller in Scrollbar
2023-09-14 22:59:02 +02:00
Héctor Ramón Jiménez
2c782bbe7a
Fix width of horizontal scrollbar in Scrollable
2023-09-14 19:35:29 +02:00
Héctor Ramón Jiménez
b8e5693a30
Merge branch 'master' into explicit-text-caching
2023-09-10 00:34:21 +02:00
Nick
e5afaa0892
Add access to bounds/content bounds from a scrollable viewport. ( #2072 )
...
* Add access to bounds/content bounds from a scrollable viewport in order to perform certain scrollable optimizations as a consumer.
* Move bounds/content_bounds after relative_offset as per feedback.
2023-09-07 01:50:59 +00: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
36120d5685
Run cargo fmt with Rust 1.72
2023-08-26 01:31:11 +02:00
Héctor Ramón Jiménez
e2ba7ece83
Introduce visible_bounds operation for Container
2023-07-27 01:04:18 +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
d367584057
Avoid redundant max in absolute_offset_reversed
...
I believe `Offset::absolute` guarantees the offset never exceeds the
maximum scrolling boundaries already.
2023-07-13 03:01:53 +02:00
Héctor Ramón Jiménez
a9987cb32e
Introduce absolute_offset_reversed to scrollable::Viewport
2023-07-13 02:56:28 +02:00
Cory Forsstrom
11287c882e
Expose methods to change viewport alignment
2023-07-12 16:58:55 -07:00
Héctor Ramón Jiménez
ce23e08d0d
Remove unnecessary cursor unavailability logic in scrollable
2023-07-12 10:13:15 +02:00
Héctor Ramón Jiménez
d07bac36ab
Rename absolute_from_start to translation in scrollable
2023-07-12 10:05:46 +02:00
Héctor Ramón Jiménez
ca2afb0495
Disambiguate offset from translation in scrollable
2023-07-12 10:04:26 +02:00
Héctor Ramón Jiménez
2b2f9c07d8
Increase type-safety of alignment in scrollable
2023-07-12 09:49:14 +02:00
Héctor Ramón Jiménez
44460f7b8b
Remove public fields from Viewport
...
Let's tackle use cases directly instead!
2023-07-12 09:26:13 +02:00
Cory Forsstrom
d79cedd8da
Add alignment to Viewport
2023-07-04 10:43:12 -07:00
Cory Forsstrom
905c307f0b
Make viewport bounds public
2023-07-04 10:43:12 -07:00
Cory Forsstrom
4f066b516b
Add scrollable alignment option
2023-07-04 10:43:12 -07:00
Héctor Ramón Jiménez
1c26440f0b
Use Option::filter instead of and_then in scrollable
2023-06-27 23:04:50 +02:00
Héctor Ramón Jiménez
412e15b170
Require a Direction when computing State::offset in scrollable
2023-06-27 23:04:49 +02:00
Héctor Ramón Jiménez
493571695a
Rename ScrollbarProperties to Direction in scrollable
2023-06-27 23:04:49 +02:00
Austin M. Reppert
fa04f40524
Make vertical scroll properties optional
...
Co-Authored-By: Austin M. Reppert <austinmreppert@gmail.com>
2023-06-27 23:03:29 +02:00
Cory Forsstrom
38da953583
Only scroll w/ wheel if over scrollable
2023-06-12 13:15:11 -07:00
Héctor Ramón Jiménez
27639c4ce6
Fix mouse interactions in Scrollable
2023-06-08 21:03:24 +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
Casper Storm
1234d52812
clippy
2023-05-23 15:28:45 +02:00
Héctor Ramón Jiménez
29326952b4
Avoid drawing empty quads in widget::scrollable
2023-05-23 04:39:41 +02:00
Cory Forsstrom
12a57fae5c
Remove min width 1 from scrollbar & scroller
2023-05-23 04:28:44 +02:00
Héctor Ramón Jiménez
8e8808f0e1
Merge branch 'master' into advanced-text
2023-05-02 06:40:48 +02:00
Héctor Ramón Jiménez
4bae457c37
Merge branch 'master' into advanced-text
2023-04-17 23:41:12 +02:00
Héctor Ramón Jiménez
99e0a71504
Rename iced_native to iced_runtime
2023-03-05 06:35:20 +01: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