Commit graph

228 commits

Author SHA1 Message Date
Tanner Rogalsky
2e8fb09568 Allow the creation of a clipboard without a window. 2022-02-05 06:55:22 -05:00
Héctor Ramón Jiménez
6f604ab399
Allow Application::run to return on native platforms 2022-01-31 16:39:46 +07:00
Héctor Ramón Jiménez
26d95fdc4b
Append Canvas to <body> when targetting Wasm in iced_winit 2022-01-28 21:37:16 +07:00
Kai Mast
f39147d382
Always use event_loop.run 2022-01-28 21:37:16 +07:00
Kai Mast
beebf25c5f
Re-add docs for clipboard 2022-01-28 21:37:16 +07:00
Kai Mast
908259663d
Remove wasm-specific clipboard 2022-01-28 21:37:15 +07:00
Vladyslav Nikonov
bdca20fc4a
Experimental wgpu WebGL backend support
- Added missing `draw_cache_align_4x4` call for `brush_glyph` on wasm32 target
- Added WebGL support to `integratio_wgpu` example
- Fixed test.yml CI workflow
- Removed spir-v shader in `integration_wgpu`; Fixed formatting
- Removed redundant `BoxStream` typedef
2022-01-28 21:37:14 +07:00
Richard
230db88fb2 Add setting to try OpenGL ES first 2022-01-19 17:40:17 -03:00
Héctor Ramón Jiménez
6ab4611a6e
Invalidate widget tree from Responsive widget
... by introducing a new `invalidate_widgets` method to `Shell`
2022-01-11 13:47:43 +07:00
Héctor Ramón Jiménez
998a04645d
Use commit hash in html_logo_url 2021-12-09 15:10:38 +07:00
daladim
d72b1493e0
Added icon in docs 2021-12-09 15:05:41 +07:00
Héctor Ramón Jiménez
0648d9d234
Fix imports in application modules 2021-11-29 14:43:07 +07:00
Andreas Hofstadler
08c771fa70
Allow Application::run to return on native platforms 2021-11-29 14:41:05 +07:00
Imbris
b89d3bed5c Fix a few doc links 2021-11-17 12:08:52 -05:00
Héctor Ramón Jiménez
be97a5d502
Introduce mouse_interaction method to Widget trait 2021-10-18 16:43:18 +07:00
Héctor Ramón Jiménez
03b3493138
Remove trait-specific draw logic in iced_native 2021-10-14 16:07:22 +07:00
Héctor Ramón Jiménez
c0ab988842
Revert system menus support
The current implementation has some important issues on Windows. We will reintroduce the feature once we figure them out!

I have kept some of the changes in #945, like the new `keyboard::Modifiers` powered by `bitflags`.
2021-09-15 15:31:40 +07:00
Héctor Ramón Jiménez
7cb6e7438f
Implement move_to and resize commands for window 2021-09-02 16:30:14 +07:00
Héctor Ramón Jiménez
6fce35393f
Hide implementation details of Command in iced_futures 2021-09-02 15:50:32 +07:00
Héctor Ramón Jiménez
7a335a0408
Implement and expose read and write helpers for clipboard 2021-09-02 15:12:55 +07:00
Héctor Ramón Jiménez
c9711ff48f
Handle clipboard::Action in iced_winit shell 2021-09-02 13:46:01 +07:00
Héctor Ramón Jiménez
76698ff2b5
Make Command implementations platform-specific
This allows us to introduce a platform-specific `Action` to both `iced_native`
and `iced_web` and remove the `Clipboard` from `Application::update` to maintain
purity.

Additionally, this should let us implement further actions to let users query
and modify the shell environment (e.g. window, clipboard, and more!)
2021-09-02 13:29:34 +07:00
Héctor Ramón Jiménez
acc47a5953
Rename SwapChainError to SurfaceError in iced_graphics 2021-08-25 15:42:35 +07:00
Héctor Ramón Jiménez
fe0de182c5
Remove SwapChain associated type from Compositor 2021-08-20 20:32:04 +07:00
Poly
18753b77fc wgpu: Update to 0.10 2021-08-19 03:06:38 +02:00
Héctor Ramón Jiménez
663c3685da
Update winit and glutin dependencies 2021-08-16 15:50:20 +07:00
Héctor Ramón Jiménez
e3f170a341
Fix minor formatting nitpicks 2021-08-12 20:47:16 +07:00
Héctor Ramón Jiménez
853e938096
Convert empty struct PlatformSpecific into empty type 2021-08-12 20:46:38 +07:00
Andrew Bentley
bbe5fe9d71
Add PlatformSpecific winit settings for macOS 2021-08-12 20:44:11 +07:00
Héctor Ramón Jiménez
7337ab63bc
Introduce explicit id field to Settings
... and use it to set the application id of the window on Unix systems, instead of relying on the title of the application.
2021-08-11 19:48:55 +07:00
Paul Delafosse
e3bc050aae
Match winit unix targets for wayland app_id 2021-08-11 19:16:31 +07:00
Paul Delafosse
0586e48c70
Add wayland app_id
see: 4ed0cafeef/stable/xdg-shell/xdg-shell.xml (L640)
2021-08-11 19:16:30 +07:00
Héctor Ramón
45778ed598
Merge pull request #667 from BillyDM/wgpu_outdatedframe
Don't panic when wgpu swapchain frame is outdated
2021-08-05 14:44:32 +07:00
Cory Forsstrom
81eb3c276d Add window::Event::Moved 2021-07-26 12:36:13 -07:00
Billy Messenger
e5010b8ab8 redo custom error for Compositor::draw() 2021-07-22 13:23:36 -05:00
Billy Messenger
a7d2834a6d add custom error for Compositor::draw() 2021-07-22 13:08:13 -05:00
Billy Messenger
e822f654e4 Merge branch 'master' of https://github.com/hecrj/iced into wgpu_outdatedframe 2021-07-22 12:37:39 -05:00
Héctor Ramón
9cf5f3e1ef
Merge pull request #929 from TimUntersberger/winit-improv
feat: add position to window settings
2021-07-22 17:49:18 +07:00
Héctor Ramón Jiménez
72b3bf95de
Improve window::Position API 2021-07-21 18:59:24 +07:00
Héctor Ramón Jiménez
82db3c78b6
Update winit and glutin dependencies
... and remove crates.io patch
2021-07-20 21:34:44 +07:00
Héctor Ramón Jiménez
c8ac77e4e9
Write documentation for menu method in Application 2021-07-19 21:05:16 +07:00
Héctor Ramón Jiménez
a2f49a74d0
Replace content with title in menu module 2021-07-19 21:01:24 +07:00
Héctor Ramón Jiménez
2e7eac7d21
Implement conversion::menu_message 2021-07-13 21:31:34 +02:00
Héctor Ramón Jiménez
5df2a92f28
Force Application::Message to implement Clone
A `Message` should represent an application event (e.g. user
interactions, command results, subscription results...). Therefore, it
should always consist of pure, cloneable data.
2021-07-13 21:15:07 +02:00
Héctor Ramón Jiménez
4abaee8b23
Use Menu::default for root level menu in conversion::menu 2021-07-13 21:11:13 +02:00
Héctor Ramón Jiménez
6221adf2b1
Draft conversion::menu_message in iced_winit
... and wire it up to the runtime loop
2021-07-13 20:55:21 +02:00
Héctor Ramón Jiménez
f3b056a6fc
Generate unique identifiers for entries in conversion::menu 2021-07-13 20:46:23 +02:00
Héctor Ramón Jiménez
31997d255f
Store and synchronize Menu in application::State 2021-07-12 22:28:18 +02:00
Héctor Ramón Jiménez
b3ff522c18
Simplify Hotkey conversion in conversion::menu 2021-07-12 22:11:06 +02:00
Héctor Ramón Jiménez
b57d567981
Use bitflags for keyboard::Modifiers 2021-07-12 22:01:57 +02:00