Commit graph

4833 commits

Author SHA1 Message Date
Héctor Ramón Jiménez
e400f972c1
Introduce window::Id to Event subscriptions
And remove `window::Id` from `Event` altogether.
2024-06-10 22:03:46 +02:00
Héctor Ramón Jiménez
49affc44ff
Update winit to 0.30.1 2024-06-10 22:01:23 +02:00
Héctor Ramón
06ff17fcf8
Merge pull request #2315 from Brady-Simon/macos-command-input-behavior
Add Command + ArrowLeft/Right input behavior for macOS
2024-05-31 16:32:12 +02:00
Héctor Ramón Jiménez
3312dc8080
Create jump and macos_command methods in keyboard::Modifiers 2024-05-31 16:23:09 +02:00
Héctor Ramón Jiménez
8cfa8149f5
Keep unary motion function in text_editor 2024-05-31 16:14:55 +02:00
BradySimon
bd48946b02
Add Command + ArrowLeft/Right input behavior for macos 2024-05-31 16:11:33 +02:00
Héctor Ramón Jiménez
12f4b875cf
Link to the latest branch in examples' README 2024-05-27 21:44:44 +02:00
Héctor Ramón Jiménez
0fbbfdfbef
Reference "Examples" header in examples link in the README 2024-05-27 21:33:00 +02:00
Héctor Ramón Jiménez
37aff42e47
Remove "Installation" section from the README 2024-05-27 21:31:20 +02:00
Héctor Ramón Jiménez
07f94d68b5
Update outdated READMEs of subcrates 2024-05-27 13:47:57 +02:00
Héctor Ramón
8d1e639c5d
Merge pull request #2449 from bungoboingo/fix/screenshot
Add viewport scale to screenshot data
2024-05-25 19:53:14 +02:00
Shan
647761ad56
Added scale_factor to Screenshot data for use when cropping to widget bounds 2024-05-24 19:46:18 -07:00
Héctor Ramón
663a081bdd
Merge pull request #2338 from derezzedex/feat/text-macro
Introduce `text` macro
2024-05-23 13:38:22 +02:00
Héctor Ramón Jiménez
d8ba6b0673
Merge branch 'master' into feat/text-macro 2024-05-23 13:29:45 +02:00
Héctor Ramón Jiménez
468794d918
Produce a compile error in iced_renderer when no backend is enabled 2024-05-22 12:36:04 +02:00
Héctor Ramón Jiménez
d92e0f7bba
Fix compilation of integration example in release mode
Fixes #2447.
2024-05-22 12:29:31 +02:00
Héctor Ramón
d993b53e09
Merge pull request #2421 from skygrango/wasm/update-clock-example
Fix `clock` example doesn't get the correct local time under unix system
2024-05-18 11:44:12 +02:00
Héctor Ramón Jiménez
4936efc375
Remove redundant default chrono feature in clock example 2024-05-18 11:32:26 +02:00
Héctor Ramón Jiménez
d265cc133e
Simplify clock example a bit 2024-05-18 11:29:41 +02:00
Héctor Ramón Jiménez
fb23e4c3ff
Fix main window not closing in multi-window runtime 2024-05-16 19:36:50 +02:00
Héctor Ramón
e69e2c0ee8
Merge pull request #2441 from iced-rs/feature/explicit-length-in-center-methods
Ask for explicit `Length` in `center_*` methods
2024-05-13 18:54:01 +02:00
Héctor Ramón Jiménez
05f69f495e
Ask for explicit Length in center_* methods 2024-05-13 17:56:02 +02:00
Héctor Ramón
b30d34f728
Merge pull request #2440 from iced-rs/align-images-to-pixel-grid
Align images to the (logical) pixel grid in `iced_wgpu`
2024-05-12 13:55:05 +02:00
Héctor Ramón Jiménez
74a4ba65d6
Align images to the pixel grid in iced_wgpu
This should fix some graphical glitches, at the
expense of potential alignment issues with
small icons / images.
2024-05-12 13:44:13 +02:00
Héctor Ramón
fa458a3009
Merge pull request #2435 from iced-rs/window/specific-with-position
Add `SpecificWith` variant to `window::Position`
2024-05-10 22:28:08 +02:00
Héctor Ramón Jiménez
b19e95fa18
Add SpecificWith variant to window::Position 2024-05-10 22:16:35 +02:00
Héctor Ramón Jiménez
718fe5b7de
Pass WindowHandle by value to window::run_with_handle 2024-05-08 23:14:37 +02:00
Héctor Ramón Jiménez
7e7af91e6f
Fix clippy lints in wgpu benchmark 2024-05-08 20:34:31 +02:00
Héctor Ramón Jiménez
fb5f1ba0bc
Create dynamic text wgpu benchmark 2024-05-08 20:29:27 +02:00
Héctor Ramón
f1beb56a9a
Merge pull request #2430 from iced-rs/reuse-glyphon-pipeline-state
Reuse `glyphon::Pipeline` state in `iced_wgpu`
2024-05-08 19:43:07 +02:00
Héctor Ramón Jiménez
99c1464cc1
Update glyphon fork to a cleaner branch 2024-05-08 19:34:43 +02:00
Héctor Ramón Jiménez
bed53f8143
Reuse glyphon::Viewport explicitly 2024-05-08 13:41:12 +02:00
Héctor Ramón Jiménez
447f3a2d14
Reuse glyphon::Pipeline state in iced_wgpu 2024-05-08 12:29:17 +02:00
Héctor Ramón
e07b42ac96
Merge pull request #2427 from iced-rs/winit-0.30
Update `winit` to `0.30`
2024-05-08 09:23:53 +02:00
Héctor Ramón Jiménez
247870f83b
Redirect docs.iced.rs to actual docs 2024-05-07 21:38:31 +02:00
Héctor Ramón
18b2f8845e
Merge pull request #2428 from iced-rs/feature/present-mode-env-var
Introduce `ICED_PRESENT_MODE` env var to pick a `wgpu::PresentMode`
2024-05-07 21:22:29 +02:00
Héctor Ramón Jiménez
5b6f3499e1
Document present_mode_from_env in iced_wgpu 2024-05-07 21:13:51 +02:00
Héctor Ramón Jiménez
8a0701a0d9
Introduce ICED_PRESENT_MODE env var to pick a wgpu::PresentMode 2024-05-07 21:05:29 +02:00
Héctor Ramón Jiménez
7e7285d60f
Plug new_events handler to event loop 2024-05-07 17:00:55 +02:00
Héctor Ramón Jiménez
2645524f88
Update winit to 0.30 2024-05-07 16:07:56 +02:00
Héctor Ramón
db07b9ba9e
Merge pull request #2425 from iced-rs/fix/image-cache-fighting
Fix windows fighting over shared `image::Cache`
2024-05-06 13:02:57 +02:00
Héctor Ramón Jiménez
ea64e4f63a
Trim image::Cache after wgpu::Renderer::present 2024-05-06 12:23:44 +02:00
Héctor Ramón Jiménez
547446f0de
Fix windows fighting over shared image::Cache
Image caches are local to each window now.
2024-05-06 12:23:44 +02:00
Héctor Ramón
a94984d681
Merge pull request #2424 from iced-rs/feature/image-opacity
Introduce dynamic `opacity` support for `Image` and `Svg`
2024-05-03 13:51:57 +02:00
Héctor Ramón Jiménez
afb4cb99b9
Improve layout of ferris example 🦀 2024-05-03 13:32:51 +02:00
Héctor Ramón Jiménez
fa9e1d96ea
Introduce dynamic opacity support for Image and Svg 2024-05-03 13:25:58 +02:00
Héctor Ramón
38cf87cb45
Merge pull request #2423 from iced-rs/center-widget-helper
Introduce `center` widget helper
2024-05-03 09:34:28 +02:00
Héctor Ramón Jiménez
4c658c41e9
Auto-focus text_input in websocket example 2024-05-03 09:25:47 +02:00
Héctor Ramón Jiménez
15057a05c1
Introduce center widget helper
... and also make `center_x` and `center_y` set
`width` and `height` to `Length::Fill`, respectively.

This targets the most common use case when centering
things and removes a bunch of boilerplate as a result.
2024-05-03 09:11:46 +02:00
Héctor Ramón
1cefe6be21
Merge pull request #2334 from DKolter/image-rotation
Adding feature: Image rotation
2024-05-03 07:31:34 +02:00