Commit graph

858 commits

Author SHA1 Message Date
Héctor Ramón Jiménez
bc5986c7c6
Unify methods by leveraging Into<Cow> in image and svg 2022-11-05 01:53:24 +01:00
Ian Douglas Scott
6ce12fc0c6 Use Cow<'static, [u8]> in image/svg, add constructors taking &[u8]`
This should resolve https://github.com/iced-rs/iced/issues/580 by
providing a way to use an image included with `include_bytes!` without
needing to copy it to a `Vec` to create an image handle.

It would be nice if these methods could also be `const`, but that isn't
possible due to the hashing being done.

This is technically a breaking change since `Handle::data()` is public.
But if that is used, it's most likely in used somewhere that only relies
on the type derefing to `&[u8]`.
2022-10-03 15:58:43 -07:00
Kai Mast
c9b8dbdb7a
Return ignored events in program::State::update 2022-09-28 19:36:55 +02:00
Clark Moody
8d2331af01 New short OS Version field; update doc strings 2022-09-23 15:41:47 -05:00
Héctor Ramón Jiménez
b8401c61a1
Export color! macro in iced and iced_native 2022-09-23 20:10:35 +02:00
Héctor Ramón Jiménez
3e82ab069e
Fix latest clippy lints 2022-09-23 17:51:42 +02:00
Ram.Type-0
ce3b89639d
Take Cow in Text::new 2022-09-21 20:59:17 +02:00
Ian Douglas Scott
4a6fd6b5bc Document that window::Action::Move is unsupported on Wayland
https://docs.rs/winit/latest/winit/window/struct.Window.html#method.set_outer_position
notes that this isn't supported on Wayland.

Wayland by design doesn't allow applications to position windows
arbitrarily. GTK4 in comparison removed `gtk_window_move()` (which
naturally didn't work on Wayland).
2022-09-15 12:08:39 -07:00
13r0ck
92958e49ad Update docs for renamed integration examples
The integration examples were renamed in
77a0b68aa1 , this just updates the
docs to point to the updates links.
2022-09-07 14:50:58 -06:00
Matthew Kennerly
ea2df18147
When pane grid title bar is cramped, still show content until hover and allow dragging where content would've been 2022-08-27 06:25:12 +08:00
Héctor Ramón
4158a9a0cd
Merge pull request #1423 from iced-rs/feature/element-explain
Reintroduce `Element::explain`
2022-08-26 20:19:15 +02:00
Héctor Ramón Jiménez
a07cb8588f
Reintroduce Element::explain 2022-08-26 20:04:02 +02:00
Héctor Ramón Jiménez
a5209f24e4
Fix incorrect layout in mouse_interaction for Tooltip 2022-08-26 19:44:22 +02:00
Héctor Ramón Jiménez
11f5527d76
Implement SetMode and FetchMode window actions 2022-08-18 14:39:15 +02:00
Cory Forsstrom
efd3705c41 Don't constrict tooltip text layout to viewport size 2022-08-17 10:00:36 -07:00
Héctor Ramón
bf7ea8121c
Merge pull request #1405 from tarkah/fix/tooltip-inside-scrollable
Fix Tooltip inside Scrollable
2022-08-17 16:34:49 +02:00
Cory Forsstrom
1ae3a94de2
Add snap within viewport builder 2022-08-17 16:15:24 +02:00
Cory Forsstrom
3fe2e14a42
Don't clip tooltip 2022-08-17 16:15:24 +02:00
Héctor Ramón
f728d6c059
Merge pull request #1409 from wuxianucw/master
Relax `Fn` trait bounds in `Command` & `Action`
2022-08-17 16:09:56 +02:00
Héctor Ramón Jiménez
b0705d2f4c
Fix latest clippy lints 2022-08-17 16:09:25 +02:00
Héctor Ramón Jiménez
23229e00f6
Use FnOnce in Command::perform
... and revert `FnMut` usage.
2022-08-17 15:54:31 +02:00
无限UCW
f21d1209aa
Relax Fn trait bounds in Command & Action 2022-08-12 01:57:05 +08:00
Héctor Ramón
1923dbf7f0
Merge pull request #1393 from iced-rs/deprecate-stateful-widgets
Replace stateful widgets with the new `iced_pure` API
2022-08-06 00:32:57 +02:00
Héctor Ramón Jiménez
c23ed7e4a0
Lay out UserInterface after diffing 2022-08-05 23:51:32 +02:00
Héctor Ramón Jiménez
ad5bd0970d
Fix documentation in operation::focusable 2022-08-05 06:01:54 +02:00
Héctor Ramón Jiménez
d5629c103c
Remove widget::state leftover file 2022-08-05 05:50:22 +02: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
6eb3dd7e5e
Implement focus_previous operation 2022-08-04 03:24:44 +02:00
Nick Senger
0c13af179f
feat: allow specification of border_radius for pick_list::Menu 2022-08-02 16:16:06 -07:00
Héctor Ramón Jiménez
77c6864e7c
Implement focus_next operation
... as well as a `count_focusable` composable helper!
2022-08-02 04:20:47 +02:00
Héctor Ramón Jiménez
744edbd6c1
Focus text inputs in todos example 2022-07-28 03:58:46 +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
80688689aa
Draft widget operations 2022-07-28 02:46:51 +02:00
Héctor Ramón Jiménez
a003e797e8
Fix uninitialized Tree in overlay::Menu 2022-07-28 00:50:03 +02:00
Héctor Ramón Jiménez
c512d50e19
Fix clippy lints 2022-07-27 06:59:54 +02:00
Héctor Ramón Jiménez
a1c5f8839d
Use ToString for Text::new instead of Into<String> 2022-07-27 06:56:09 +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
7e5a5ae743
Fix max_width and max_height for Container 2022-07-18 19:59:38 +02:00
Héctor Ramón Jiménez
54c9815b7b
Simplify update signature in text_input 2022-07-13 18:37:27 +02:00
Héctor Ramón Jiménez
891b917576
Simplify on_paste signature
... and fix spacing.
2022-07-13 18:35:41 +02:00
Wyatt Jacob Herkamp
e8cfa644e7
Added on_paste handler to TextInput 2022-07-13 18:32:56 +02:00
Héctor Ramón Jiménez
2065a40f64
Fix clippy lints for all crates and features
... and check those in CI as well!
2022-07-09 18:43:05 +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
Poly
15f794b7a8
Address Clippy lints 2022-07-09 17:07:38 +02:00
Héctor Ramón Jiménez
bb07d017e8
Add Style variant support to application::StyleSheet 2022-07-08 20:07:33 +02:00
Héctor Ramón Jiménez
fa55dff61d
Merge branch 'master' into theming 2022-07-08 19:31:45 +02:00
Héctor Ramón Jiménez
1dd1a2f97f
Introduce StyleSheet for Text widget 2022-06-29 10:51:01 +02:00
Héctor Ramón Jiménez
3a22faaa20
Remove unused code warnings 2022-06-07 04:55:46 +02:00