Commit graph

615 commits

Author SHA1 Message Date
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
Héctor Ramón Jiménez
1428e9180a
Make Menu API a bit more functional 2021-07-12 21:38:54 +02:00
Richard
9fc5ad23ed Initial menu implementation 2021-07-05 16:24:10 -03:00
TimUntersberger
de79a01b88 done 2021-06-25 18:03:18 +02:00
TimUntersberger
5c45d36d1a wip 2021-06-25 17:33:40 +02:00
Richard
612585109f
Use winit and glutin forks in iced-rs org 2021-06-25 14:15:11 +02:00
Richard
96a462d2f2
Use new enum variant and new winit repo 2021-06-25 14:14:03 +02:00
Richard
9ae22b58d8
Added events for url handling and create example 2021-06-25 14:14:03 +02:00
Héctor Ramón
903570846e Fix documentation of PlatformSpecific settings 2021-06-01 18:57:36 +07:00
Quentin Boyer
f04bc94b80 allow disabling drag and drop on windows 2021-05-27 14:22:11 +02:00
Héctor Ramón
3840b75bea Provide compatible_surface in iced_wgpu::Compositor 2021-05-05 14:33:30 +07:00
Cory Forsstrom
84c0c9bc7a use Mode::Hidden instead 2021-04-09 09:04:30 -07:00
Cory Forsstrom
cdab8f90fb add window visibility 2021-04-08 12:58:08 -07:00
Héctor Ramón Jiménez
67db13ff7c Add support for graceful exits in Application
- `Settings` now contains an `exit_on_close_request` field
- `Application` has a new `should_exit` method
2021-03-30 21:44:19 +02:00