Commit graph

75 commits

Author SHA1 Message Date
Héctor Ramón Jiménez
ece50a1a95
Organize imports in runtime::command::action 2024-02-03 15:12:07 +01:00
Héctor Ramón Jiménez
2656906903
Rename PlateformSpecific variant in Action to Custom 2024-02-03 15:10:45 +01:00
ShootingStarDragons
6e97595d95
feat: somewhere to place extra actions by platform
I have view iced-sckt forked iced, and add the extra actions. and there
do are some extra actions, like set margin for layer-shell, set lock for
ext-session-shell. I think add an any will be of help maybe
2024-02-03 14:54:59 +01:00
brianch
701bf22af6
The memory information is returned in bytes and not kb.
Fix the documentation of the Information struct, and the example
system_information that uses it.

Co-authored-by: =?UTF-8?q?Ahmet=20Kaan=20G=C3=9CM=C3=9C=C5=9E?= <96421894+Tahinli@users.noreply.github.com>
2024-02-02 16:02:17 +01:00
Héctor Ramón Jiménez
738aa47547
Remove position from overlay::Element 2024-02-01 01:08:21 +01:00
Héctor Ramón Jiménez
7a50e9e8fb
Convert Renderer::Theme to generic Widget type 2024-01-21 17:56:01 +01:00
Calastrophe
2aa2b1712d Implemented fetch_maximized and fetch_minimized 2024-01-09 02:43:25 -06:00
Héctor Ramón Jiménez
ea42af766f
Use AtomicU64 for window::Id 2023-12-02 20:41:58 +01:00
Héctor Ramón Jiménez
67408311f4
Use actual floats for logical coordinates 2023-11-30 23:40:33 +01:00
Héctor Ramón Jiménez
6740c2c5d6
Fix broken intra-doc links 2023-11-29 22:46:47 +01:00
Héctor Ramón Jiménez
7def3ee38a
Fix clippy lints 2023-11-29 22:37:54 +01:00
Héctor Ramón Jiménez
e09b4e24dd
Merge branch 'master' into feat/multi-window-support 2023-11-29 22:28:31 +01:00
Héctor Ramón Jiménez
a761448858
Implement command::channel helper
It is analogous to `subscription::channel`.
2023-11-29 00:14:27 +01:00
Héctor Ramón Jiménez
3b7d479534
Implement Command::run for executing a Stream to completion 2023-11-29 00:12:48 +01:00
Héctor Ramón Jiménez
a1439071d6
Remove unused position argument in overlay::Nested 2023-11-21 18:53:31 +01:00
Héctor Ramón Jiménez
25006b9c6f
Fix Overlay composition
Translations were not easily composable.
2023-11-21 14:41:22 +01:00
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