Héctor Ramón Jiménez
70483e7fdd
Fix Scrollbar bound calculations in Scrollable
2023-02-17 15:48:35 +01:00
Héctor Ramón Jiménez
7b8b01f560
Use f32 in Length::Units and rename it to Fixed
2023-02-17 15:40:17 +01:00
Nick Senger
6a683b603d
scrollable: provide ID to operation.container
2023-02-16 16:15:41 +01:00
Héctor Ramón Jiménez
2d007474dd
Avoid dragging scroll area when touching scrollbars for Scrollable
2023-01-08 20:27:15 +01:00
Héctor Ramón Jiménez
f64e95e246
Remove PartialOrd implementation for Rectangle
...
A `PartialOrd` implementation is unclear for this type, since it has
a position besides its dimensions.
2023-01-08 20:19:36 +01:00
Héctor Ramón Jiménez
19f4373863
Enable horizontal scrolling with Shift+MouseWheel
2023-01-08 20:17:11 +01:00
Héctor Ramón Jiménez
624a4ada79
Introduce RelativeOffset type in scrollable
2023-01-08 20:07:11 +01:00
bungoboingo
9f85e0c721
Reworked Scrollable to account for lack of widget order guarantees.
...
Fixed thumb "snapping" bug on scrollable when cursor is out of bounds.
2022-12-29 18:29:15 -08:00
Bingus
d91f4f6aa7
Add multidirectional scrolling capabilities to the existing Scrollable.
2022-12-29 10:21:23 -08:00
Héctor Ramón Jiménez
0e9c1ab192
Add Renderer argument to operate
2022-12-22 14:29:24 +01:00
Héctor Ramón Jiménez
6bb01b7276
Fix clippy lints for Rust 1.66
2022-12-20 11:31:25 +01:00
Héctor Ramón Jiménez
a2864df098
Fix scroller in Scrollable always being drawn
...
... instead of only drawing it when the mouse is over the `Scrollable`.
2022-12-05 14:44:26 +01:00
Héctor Ramón Jiménez
4029a1cdaa
Merge branch 'master' into non-uniform-border-radius-for-quads
2022-12-02 18:53:21 +01:00
tarkah
f1ada7a803
Allow &mut self in overlay
2022-11-29 12:17:29 -08:00
mtkennerly
44aba47b0e
Allow converting from widget-specific IDs to generic ID
2022-11-11 08:44:10 +08:00
Héctor Ramón Jiménez
18fb74f200
Introduce Custom variants for every style in the built-in Theme
2022-11-09 04:05:31 +01:00
Robert Krahn
c0596179bd
non uniform border radius for quads
2022-11-03 22:48:26 +01:00
Héctor Ramón Jiménez
66f7d43dc9
Write missing documentation in iced_native
2022-08-05 05:15:41 +02:00
Héctor Ramón Jiménez
13dd1ca0a8
Implement scrollable::snap_to operation
2022-08-04 03:55:41 +02:00
Héctor Ramón Jiménez
52f84e51e9
Implement Widget::operate for TextInput
2022-07-28 03:53:47 +02:00
Héctor Ramón Jiménez
ff2519b1d4
Replace stateful widgets with new iced_pure API
2022-07-27 06:49:20 +02:00
Héctor Ramón Jiménez
cdd3802e68
Fix max_height for Scrollable
2022-07-18 23:38:44 +02:00
Héctor Ramón Jiménez
2f76a10a1d
Fix further clippy lints
...
... and explicitly annotate crates as well.
2022-07-09 18:03:59 +02:00
Héctor Ramón Jiménez
de21a651c0
Implement theme styling for Scrollable
2022-06-07 03:26:48 +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
12c1a3f829
Remove redundant widget modules in subcrates
...
Instead, we can define the type aliases just once in the root crate!
2022-03-09 14:10:15 +07:00
Héctor Ramón Jiménez
c35496d80f
Merge branch 'master' into virtual-widgets
2022-03-07 15:29:43 +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
b2670e8752
Implement Scrollable in iced_pure
2022-02-12 15:18:31 +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
aed5a0d5f9
Remove unused field in scrollable::Scrollbar
2021-12-07 16:11:55 +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
023aded277
Rename fill_rectangle to fill_quad in Renderer
2021-11-04 19:24:11 +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
eed19dcf81
Reintroduce Box for style_sheet in Scrollable
2021-10-31 17:39:24 +07:00
Héctor Ramón Jiménez
0aafcde0ef
Remove widget module re-exports in iced_native
2021-10-31 16:14:34 +07:00
Héctor Ramón Jiménez
d127dbd08e
Fix scrollbar clipping in Scrollable draw logic
2021-10-28 18:04:30 +07:00
Héctor Ramón Jiménez
4a11cbd994
Implement Widget::mouse_interaction for PaneGrid
...
... and fix rendering of drag interaction in `PaneGrid` by
introducing an explicit `with_translation` method to `Renderer`
and simplifying the `with_layer` and `Clip` primitive.
2021-10-25 16:35:02 +07:00
Héctor Ramón Jiménez
9a4fb82b58
Implement Widget::mouse_interaction for Scrollable
2021-10-18 16:53:50 +07:00
Héctor Ramón Jiménez
d61cb58d92
Wire up container styling to iced_native
2021-10-18 15:36:32 +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
54a9a232f8
Draw scrollbar in Widget::draw for Scrollable
2021-10-18 14:48:33 +07:00
Héctor Ramón Jiménez
dfceee99aa
Implement Widget::draw for Scrollable
...
Rendering the scroller is still WIP
2021-10-14 17:15:29 +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
a0ad399622
Refactor alignment types into an alignment module
2021-09-20 15:14:08 +07:00
Héctor Ramón Jiménez
5fae6e59ff
Introduce and use CrossAlign enum for Column and Row
2021-09-20 15:12:43 +07:00
Héctor Ramón
3051d4ec76
Introduce on_scroll event in Scrollable
2021-06-04 20:46:27 +07:00
Héctor Ramón
827577c179
Introduce snap_to and unsnap to scrollable::State
2021-06-04 20:09:15 +07:00
Yusuf Bera Ertan
f7d6e40bf0
feat(native): Make scrollable programmatically scrollable for some use cases, add snap_to_bottom by default
2021-06-04 19:29:58 +07:00