Commit graph

95 commits

Author SHA1 Message Date
Héctor Ramón
b5e7fb240c
Merge pull request #2070 from ripytide/master
Added a Frame::scale_nonuniform method
2023-09-07 06:03:41 +02:00
Héctor Ramón Jiménez
09965b686e
Make scale methods in Frame generic over f32 and Vector 2023-09-07 05:51:39 +02:00
Héctor Ramón Jiménez
6fd2c15527
Host GIFs and video examples in iced.rs
RIP Gfycat
2023-09-07 05:05:43 +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
f468e25d0c
Use workspace dependencies and package inheritance
We are also taking this as a chance to synchronize
the versions of all the crates! Because of this, we
will skip the `0.11` version.
2023-09-04 13:08:17 +02:00
Nick
aed06ac208
Support automatic style type casting for Buttons.
Changes the signature of Button::style to use `impl Into<...>` instead of taking the style sheet itself. (Matches other widgets).
2023-09-03 08:38:49 +02:00
Héctor Ramón Jiménez
8ed06dc356
Fix clippy lints for Rust 1.72 2023-08-26 01:34:42 +02:00
Héctor Ramón Jiménez
36120d5685
Run cargo fmt with Rust 1.72 2023-08-26 01:31:11 +02:00
Casper Rogild Storm
c81f4676fb ensure no paste with alt 2023-08-05 21:47:02 +02:00
Héctor Ramón Jiménez
085842e765
Remove unnecessary comment in image::viewer 2023-08-03 20:18:31 +02:00
Malcolm Ramsay
004a1f3848 fix: Check cursor in bounds when scrolling image::Viewer
Ensure that the cursor is within the bounds of the image::Viewer when
performing the scrolling.

Fixes #1997
2023-08-03 08:42:46 +09:30
Héctor Ramón Jiménez
8a589084e1
Bump version of iced_widget 🎉 2023-08-02 22:29:24 +02:00
Casper Rogild Storm
e1da5fa635
Update widget/src/combo_box.rs
Co-authored-by: Héctor Ramón <hector0193@gmail.com>
2023-07-31 23:07:35 +02:00
Casper Rogild Storm
32a95171d2 cycle combobox with keybinds 2023-07-31 22:59:42 +02:00
Héctor Ramón Jiménez
50ce65b3b7
Bump version of iced_widget 🎉 2023-07-29 20:08:07 +02:00
Héctor Ramón Jiménez
16a8a494a4
Fix Tooltip overlay position inside Scrollable 2023-07-29 19:48:04 +02:00
Héctor Ramón Jiménez
7c772c35fe
Enable all features for iced_widget in docs.rs 2023-07-28 19:59:31 +02:00
Héctor Ramón Jiménez
126aef88e7
Bump versions 🎉 2023-07-28 19:48:39 +02:00
Héctor Ramón Jiménez
e2ba7ece83
Introduce visible_bounds operation for Container 2023-07-27 01:04:18 +02:00
Héctor Ramón Jiménez
e29754f32d
Rename on_selection to on_option_hovered in combo_box 2023-07-26 22:53:53 +02:00
Héctor Ramón Jiménez
28d32a8b64
Fix on_option_hovered support in ComboBox 2023-07-26 22:34:56 +02:00
Héctor Ramón Jiménez
9eb2889d09
Use default padding of TextInput in ComboBox 2023-07-26 22:33:33 +02:00
Héctor Ramón Jiménez
14fb723eec
Add Viewport to on_event for ComboBox 2023-07-26 22:01:17 +02:00
Joao Freitas
7fe3389cf1
Swap unwrap_or_else to unwrap_or_default 2023-07-26 21:59:42 +02:00
Joao Freitas
dd5ef8b908
Add ComboBox widget
- Widget implementation
- Widget helper
- Example
2023-07-26 21:59:42 +02:00
Cory Forsstrom
42c423b4a8 Add viewport to Widget::on_event 2023-07-15 10:04:25 -07:00
Cory Forsstrom
44c0732306
Restart animation when regaining focus 2023-07-13 12:24:15 -07:00
Cory Forsstrom
66d6710663
Dont blink input cursor when window loses focus 2023-07-13 12:16:48 -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
21bd51426d
Merge pull request #1912 from tarkah/feat/scrollable-alignment
Add scrollable alignment option
2023-07-12 10:24:04 +02: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
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
Nick Senger
4c2aa071a0 fix: request redraw in component overlay 2023-07-09 12:46:43 -07:00
Héctor Ramón Jiménez
0964f12db7
Remove useless conversion in widget::pane_grid 2023-07-06 08:26:46 +02:00
Héctor Ramón Jiménez
c5a623f32b
Introduce drop helper to pane_grid::State 2023-07-06 07:57:24 +02:00
Héctor Ramón Jiménez
ecce8bbcee
Simplify Target enum in widget::pane_grid 2023-07-06 07:57:23 +02:00
Héctor Ramón Jiménez
f83ee1e9f9
Call in_edge only when picked_pane.is_some() 2023-07-06 07:56:22 +02:00
Joao Freitas
995c7c1ca9
Reuse code 2023-07-06 07:55:50 +02:00
Joao Freitas
e5c9dd54b3
Add ability to drag pane to the pane grid edges & optional style for dragged pane 2023-07-06 07:55:49 +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
Austin M. Reppert
0cc85c7820
Add touch support for toggler. (#1935)
* Add touch support for toggler.

* Fix formatting.

* Fix consistency of imports in `iced_widget::toggler`

---------

Co-authored-by: Austin M. Reppert <austinmreppert@protonmail.com>
Co-authored-by: Héctor Ramón Jiménez <hector0193@gmail.com>
2023-06-29 06:14:21 +00:00