Commit graph

651 commits

Author SHA1 Message Date
Héctor Ramón Jiménez
0079a8a3e9
Report subscriptions tracked with beacon protocol 2025-03-12 16:29:42 +01:00
Héctor Ramón Jiménez
fd1101bd5f
Unify Program definition in iced_program subcrate 2025-03-12 02:10:42 +01:00
Héctor Ramón Jiménez
ebfcb65841
Merge branch 'master' into beacon 2025-03-11 22:25:06 +01:00
Héctor Ramón Jiménez
0e4a392731
Introduce text::Alignment with Justified support 2025-03-11 02:30:50 +01:00
Héctor Ramón Jiménez
179a34d37b
Fix horizontal text alignment 2025-03-11 00:43:51 +01:00
Héctor Ramón Jiménez
a106f7f837
Initialize debug with proper Program name 2025-03-05 11:52:05 +01:00
Héctor Ramón Jiménez
8bd5de72ea
Merge branch 'master' into beacon 2025-03-04 19:11:37 +01:00
Héctor Ramón Jiménez
cf2b28fd74
Free proxy slots unconditionally in AboutToWait 2025-02-26 13:28:03 +01:00
Héctor Ramón Jiménez
9ceb467e6e
Run cargo fmt 2025-02-21 01:37:13 +01:00
Héctor
d6848977bc
Merge pull request #2797 from AMS21/fix_2794
Fix system informations `cpu_brand` always being empty
2025-02-15 14:15:43 +01:00
Héctor Ramón Jiménez
cc8b326dfc
Fix priority of redraw requests in winit shell 2025-02-14 19:34:11 +01:00
rhysd
3fcc173c8e Fix updating spans cache for pre-edit content in window manager 2025-02-14 19:13:55 +09:00
rhysd
89a4dc2ac2 Clear pre-edit window state when pre-edit content is None 2025-02-13 13:10:07 +09:00
Héctor Ramón Jiménez
88ffba4a3a
Simplify preedit overlay creation 2025-02-13 01:50:27 +01:00
Héctor Ramón Jiménez
7979125ed7
Simplify InputMethod API with only two states
Co-authored-by: rhysd <lin90162@yahoo.co.jp>
Co-authored-by: KENZ <KENZ.gelsoft@gmail.com>
2025-02-12 08:46:35 +01:00
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
rhysd
fcdf53afde Set correct text size for text in preedit window 2025-02-06 02:01:52 +09: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