AMS21
3c01854575
Fix system informations cpu_brand always being empty
...
This was caused by a misuse of the `global_cpu_info` function, which
does not contain a valid `cpu_brand` field.
To fix this, we now get the first cpu and return it's brand instead.
Fixes #2794
2025-02-07 08:48:52 +01:00
Héctor Ramón Jiménez
ba755c69d6
Fulfill InputMethod requests only during RedrawRequested
2025-02-03 03:34:41 +01:00
Héctor Ramón Jiménez
c9abe25d31
Use text::Span::new in window_manager
2025-02-03 02:38:20 +01:00
Héctor Ramón Jiménez
c83809adb9
Implement basic IME selection in Preedit overlay
2025-02-03 02:33:40 +01:00
Héctor Ramón Jiménez
3a35fd6249
Clamp pre-edit inside viewport bounds
2025-02-03 01:30:41 +01:00
Héctor Ramón Jiménez
d28af5739b
Track pre-edits separately from focus in text inputs
2025-02-03 00:51:57 +01:00
Héctor Ramón Jiménez
db990b77e4
Add neutral None variant to InputMethod
2025-02-02 21:06:50 +01:00
Héctor Ramón Jiménez
ae10adda74
Refactor and simplify input_method API
2025-02-02 20:45:29 +01:00
Héctor Ramón Jiménez
d5ee9c2795
Copy winit docs for input_method::Event
2025-02-02 17:55:16 +01:00
Héctor Ramón Jiménez
0c6d4eb23f
Run cargo fmt and fix lints
2025-02-02 17:50:12 +01:00
KENZ
7db5256b72
Draft input_method support
2025-02-02 17:44:13 +01:00
Héctor Ramón Jiménez
57b553de2f
Fix infinite runtime loop when queue redraws at a specific time
2025-02-02 02:28:04 +01:00
rhysd
bf3b40839b
Remove unused winapi crate from dependencies
2025-01-28 21:41:37 +09:00
Héctor Ramón Jiménez
8a453903b9
Fix broken doc link in winit::conversion
2025-01-16 11:36:03 +00:00
tsuza
e3f149d932
feat: add a window drag resize task
2025-01-16 11:17:00 +00:00
Héctor
bca293db2a
Merge pull request #2722 from iced-rs/fix/lazy-compositor-initialization
...
Initialize `Compositor` lazily in `winit` shell
2025-01-14 11:32:38 +00:00
Héctor Ramón Jiménez
8b3b554de2
Panic instead of erroring when compositor channel unexpectedly closes
2025-01-14 11:18:08 +00:00
Héctor Ramón Jiménez
5b70754809
Rename window::change_* tasks to set_*
2025-01-06 23:25:57 +01:00
Héctor Ramón Jiménez
ed199e5e8f
Fix unintuitive variable name in winit::program
2025-01-06 23:24:12 +01:00
Héctor Ramón Jiménez
91fd6d395f
Remove window::change_title since it's redundant
...
Applications can change title declaratively.
2025-01-06 23:20:51 +01:00
JL710
00b60d819b
window task for setting resize increments
2025-01-06 23:20:51 +01:00
JL710
f5f075e5cd
window resizable task
2025-01-06 23:20:51 +01:00
JL710
8ebbfa9767
window tasks for setting min and max size
2025-01-06 23:20:51 +01:00
JL710
ca8aaf9b8d
add Task and Action for changing a window title
2025-01-06 23:20:51 +01:00
Héctor
634365564e
Merge pull request #2627 from bbb651/more-window-settings
...
Add `maximized` and `fullscreen` to `window::Settings`
2025-01-06 23:05:32 +01:00
Héctor Ramón Jiménez
2086fc0d6b
Simplify type annotations in winit::program
2025-01-06 22:48:09 +01:00
Héctor Ramón Jiménez
6daba88029
Initialize Compositor lazily in winit shell
...
... and get rid of the ghost boot window!
2025-01-06 22:37:42 +01:00
Héctor Ramón Jiménez
a0acaba866
Use "outer" positions in all window-related operations
2025-01-06 20:13:51 +01:00
Héctor Ramón Jiménez
2cf4abf25b
Support custom renderers in iced_test through renderer::Headless trait
2024-12-14 03:49:24 +01:00
Héctor Ramón Jiménez
1aeb317f2d
Add image and hash snapshot-based testing to iced_test
2024-12-10 04:51:08 +01:00
Ian Douglas Scott
3fc57b7d95
Remove surface argument of Compositor::screenshot
...
This argument was completely ignored by the wgpu renderer, and used only
for the `clip_mask` by the `tiny_skia` renderer. I believe creating a
new clip mask is correct.
This way it's possible to render offscreen without needing a surface.
2024-11-21 16:26:17 -08:00
Héctor Ramón Jiménez
14ec330730
Replace reactive-rendering feature with unconditional-rendering
2024-11-05 23:52:59 +01:00
Héctor Ramón Jiménez
c6af79a1d0
Fix deferred layout on resize after drawing
2024-11-05 23:52:58 +01:00
Héctor Ramón Jiménez
7908b6eba9
Request a redraw when a window is resized
...
If we do not request it, macOS does not get any
`RedrawRequested` events. Shouldn't `winit`
[take care of this]? Probably a bug.
[take care of this]: https://docs.rs/winit/0.30.5/winit/event/enum.WindowEvent.html#variant.RedrawRequested
2024-11-05 23:52:57 +01:00
Héctor Ramón Jiménez
0691e617f3
Fix WindowManager::is_idle in iced_winit
2024-11-05 23:52:57 +01:00
Héctor Ramón Jiménez
52490397d6
Implement reactive-rendering for text_input
...
... and fix the redraw queue logic in `iced_winit`.
2024-11-05 23:52:56 +01:00
Héctor Ramón Jiménez
3ba7c71e3f
Implement reactive-rendering for slider
2024-11-05 23:52:56 +01:00
Héctor Ramón Jiménez
97bcca0400
Remove TODO about reactive rendering in iced_winit
2024-11-05 23:52:56 +01:00
Héctor Ramón Jiménez
5c33ce18ed
Draft reactive-rendering feature for button
2024-11-05 23:52:56 +01:00
kosayoda
6ed88f7608
Prevent unintended keyboard input during focus.
2024-10-24 16:12:18 -04:00
bbb651
dd08f98f0e
Add window::Settings::fullscreen
...
Corresponds to `winit:🪟 :WindowAttributes::with_fullscreen`.
Currently only allows to set `Fullscreen::Borderless(None)` meaning
borderless on the current monitor, exclusive fullscreen does not
make sense for a GUI and iced does not expose monitors yet.
2024-10-04 21:20:43 +03:00
bbb651
13c649881e
Add window::Settings::maximized
...
Corresponds to `winit:🪟 :WindowAttributes::with_maximized`
2024-10-04 21:14:06 +03:00
Héctor Ramón Jiménez
32cdc99e92
Add modified_key to keyboard::Event::KeyReleased
2024-10-02 16:53:10 +02:00
ibaryshnikov
8b34f99b02
added physical_key to KeyReleased event
2024-09-26 17:13:32 +03:00
Héctor Ramón Jiménez
40ea3dabff
Bump version to 0.13.0 🎉
2024-09-18 02:38:49 +02:00
Jindřich Moravec
cadc054651
Disable drag_and_drop attribute for boot window
2024-09-14 00:21:51 +02:00
Richard
d46f6f92ce
Fix wasm32 deployments not displaying anything ( #2574 )
...
* reuse `canvas` element generated by dummy window
* fix formatting
* set `control_flow` to `Poll` in `resumed`
this is mostly a fix for Chrome
* Avoid blowing up memory when booting up on Wasm
---------
Co-authored-by: Héctor Ramón Jiménez <hector@hecrj.dev>
2024-09-13 22:15:15 +00:00
Héctor Ramón
e9e8e83cca
Merge pull request #2551 from airstrike/mouse-interactions
...
Expose additional mouse interaction cursors
2024-09-13 17:07:56 +02:00
Héctor Ramón Jiménez
d4b9b4720f
Add Copy and Help variants to mouse::Interaction
2024-09-13 16:58:44 +02:00
Héctor Ramón Jiménez
1cbedfaac7
Rename ResizingDiagonal* to ResizingDiagonally*
2024-09-13 16:55:40 +02:00