Commit graph

753 commits

Author SHA1 Message Date
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
Héctor Ramón Jiménez
34495bba1c
Introduce keyed::Column widget 2023-09-04 02:55:09 +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
601e5563d1
Fix Widget::layout for Lazy 2023-09-01 04:15:59 +02:00
Héctor Ramón Jiménez
548b9d0294
Fix Widget::layout for Component 2023-09-01 04:15:09 +02:00
Héctor Ramón Jiménez
bcd9fdb521
Simplify new logic in TextInput 2023-08-30 06:43:45 +02: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
301e6e5fdc
Reduce default spacing of Checkbox 2023-08-30 05:34:17 +02:00
Héctor Ramón Jiménez
ffd0f4df45
Add some default spacing for Toggler 2023-08-30 05:34:01 +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
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
Bingus
633f405f3f
Merge remote-tracking branch 'origin/master' into feat/multi-window-support
# Conflicts:
#	Cargo.toml
#	core/src/window/icon.rs
#	core/src/window/id.rs
#	core/src/window/position.rs
#	core/src/window/settings.rs
#	examples/integration/src/main.rs
#	examples/integration_opengl/src/main.rs
#	glutin/src/application.rs
#	native/src/subscription.rs
#	native/src/window.rs
#	runtime/src/window/action.rs
#	src/lib.rs
#	src/window.rs
#	winit/Cargo.toml
#	winit/src/application.rs
#	winit/src/icon.rs
#	winit/src/settings.rs
#	winit/src/window.rs
2023-07-12 12:23:18 -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