Commit graph

159 commits

Author SHA1 Message Date
Ian Douglas Scott
e0233ebc3c
Fix Command<T>::perform to return a Command<T>
This seems like clearly the correct thing to do here. If the type bound
on `Command` isn't specified, it makes no difference, since the generic
is inferred in a way that works with either definition. But this is
important if `Command<T>` is aliased with a concrete type.
2023-10-18 17:34:16 -05:00
Héctor Ramón Jiménez
f137d71e8f
Centralize clippy lints in .cargo/config.toml 2023-09-20 16:40:03 +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
e8b01eb543
Merge pull request #2092 from nyurik/clippy
Chore: Apply some minor clippy fixes
2023-09-19 13:30:51 +02:00
Yuri Astrakhan
efd0ff6ded Chore: Apply some minor clippy fixes
* Use `.elapsed()` for duration
* Use direct iteration without calling `.iter()` and the like
* order fields in the `Text` struct creation as declared
2023-09-19 01:52:25 -04:00
Yuri Astrakhan
c6554d9907 Chore: Apply clippy docs keyword quoting
Add quotes a number of doc strings like `sRGB`
2023-09-19 01:50:05 -04:00
Héctor Ramón Jiménez
b8e5693a30
Merge branch 'master' into explicit-text-caching 2023-09-10 00:34:21 +02:00
Héctor Ramón Jiménez
f60884f6f8
Deny broken_intradoc_links and verify documentation in CI 2023-09-09 20:58:45 +02:00
Matthias Vogelgesang
89d9f1d7d2 Fix majority of unresolved documentation links 2023-09-09 18:59:17 +02:00
Héctor Ramón
d1822ad811
Merge pull request #2069 from iced-rs/use-workspace-dependencies
Use workspace dependencies and package inheritance
2023-09-07 03:30:35 +02:00
Héctor Ramón Jiménez
08a031cbe5
Introduce keyboard::on_key_press and on_key_release
Also rename `subscription::events*` to `event::listen*`.
2023-09-07 02:45:15 +02: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
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
8ed06dc356
Fix clippy lints for Rust 1.72 2023-08-26 01:34:42 +02:00
Héctor Ramón Jiménez
dd6d887558
Bump version of iced_runtime 🎉 2023-08-02 22:44:55 +02:00
Ryan Scheidter
b9e00590b9
Update README.md to reflect native->runtime rename 2023-08-02 22:28:09 +02:00
Héctor Ramón Jiménez
d6c6d07dda
Fix iced_runtime description 2023-07-28 19:49:36 +02:00
Héctor Ramón Jiménez
126aef88e7
Bump versions 🎉 2023-07-28 19:48:39 +02:00
Cory Forsstrom
2a05ef9601
Don't clip raw overlay bounds
User interface wraps the overlay in `overlay::Nested`.
Clipping here w/ the base Nested overlay always clipped
at (0, 0) position instead of the correct position of
the child overlay. It's clipped properly already within
`Nested::draw`.
2023-07-24 09:26:24 -07:00
Bingus
d53ccc857d
refactored window storage;
new helper window events (Destroyed, Created);
clippy + fmt;
2023-07-21 13:53:38 -07:00
Cory Forsstrom
42c423b4a8 Add viewport to Widget::on_event 2023-07-15 10:04:25 -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
7f805bc5dd
Merge pull request #1927 from thunderstorm010/master
Add command to retrieve window size
2023-07-06 07:00:15 +02:00
Héctor Ramón Jiménez
f350a2f812
Add fetch_size helper to runtime::window 2023-07-06 06:44:09 +02:00
Héctor Ramón Jiménez
cc32bd4de0
Use Size in both Resize and FetchSize window actions 2023-07-06 06:41:28 +02:00
Héctor Ramón
a057f8811b
Merge pull request #1938 from iced-rs/text-cache-modes
Text cache modes
2023-06-30 19:10:41 +02:00
Héctor Ramón Jiménez
cdce03cf7f
Revert "Remove layout method from core::Renderer trait"
This reverts commit 2128472c2a.
2023-06-29 18:17:18 +02:00
Héctor Ramón
949eca3eb8
Merge pull request #1913 from Drakulix/feature/runtime-state-operate
runtime: Handle widget operations in `program::State` helper
2023-06-29 10:23:52 +02:00
Héctor Ramón Jiménez
af4d65c428
Keep imports consistent in program::state 2023-06-29 08:15:30 +02:00
Héctor Ramón Jiménez
ae2709f2c4
Take Box instead of reference in State::operate 2023-06-29 08:14:44 +02:00
Héctor Ramón Jiménez
2128472c2a
Remove layout method from core::Renderer trait 2023-06-29 07:18:24 +02:00
Victoria Brekenfeld
4b831a917d runtime: Add operate method to program::State 2023-06-28 18:51:14 +02:00
Héctor Ramón
f6966268bb
Merge pull request #1845 from bungoboingo/feat/offscreen-rendering
Feat: Offscreen Rendering & Screenshots
2023-06-27 20:37:19 +02:00
Héctor Ramón Jiménez
5ae726e02c
Move Screenshot inside window module 2023-06-27 19:41:03 +02:00
Yiğit Özdemir
b394c84b37
Add FetchSize command - apply the changes discussed at #water-cooler 2023-06-22 18:28:32 +03:00
Yiğit Özdemir
21a71b753d
Add command to retrieve window size 2023-06-21 19:43:20 +03:00
Héctor Ramón Jiménez
716bf09923
Fix translation in layout of Nested overlay 2023-06-21 01:43:25 +02:00
Héctor Ramón Jiménez
9803b276ad
Fix cursor availability in overlay::Nested::draw 2023-06-14 11:27:42 +02:00
Cory Forsstrom
b0205e03d8
Use nested for lazy widgets 2023-06-14 11:03:41 +02:00
Cory Forsstrom
4de6ee6fa1
Cursor availability during on_event 2023-06-14 10:47:31 +02:00
Cory Forsstrom
83140d6049
Remove interior mutability
Nested doesn't need to implement Overlay trait, it can be be used
mutably in user interface so we don't need interior mutability.
2023-06-14 10:43:24 +02:00
Cory Forsstrom
3e6f6eedcb
Use layout with children for nesting 2023-06-14 10:37:51 +02:00
Cory Forsstrom
12c623f35b
Cursor availability by layer 2023-06-14 10:15:52 +02:00
Cory Forsstrom
d4bb7c0b24
Remove unwraps in overlay::Nested and fix mouse_interaction 2023-06-14 10:08:48 +02:00
Cory Forsstrom
1ce047cdb3
Prioritize mouse interaction of deepest Overlay 2023-06-14 09:35:06 +02:00
Cory Forsstrom
f44d429283
Render nested in layer 2023-06-14 09:28:09 +02:00
Cory Forsstrom
55dc3b5619
Introduce internal overlay::Nested for UserInterface 2023-06-14 09:25:30 +02:00
Héctor Ramón Jiménez
aba98e4965
Extend cursor availability to the shell level 2023-06-08 20:35:40 +02:00
Héctor Ramón Jiménez
34451bff18
Implement basic cursor availability 2023-06-08 20:11:59 +02:00