Commit graph

21 commits

Author SHA1 Message Date
Ian Douglas Scott
4a6fd6b5bc Document that window::Action::Move is unsupported on Wayland
https://docs.rs/winit/latest/winit/window/struct.Window.html#method.set_outer_position
notes that this isn't supported on Wayland.

Wayland by design doesn't allow applications to position windows
arbitrarily. GTK4 in comparison removed `gtk_window_move()` (which
naturally didn't work on Wayland).
2022-09-15 12:08:39 -07:00
Héctor Ramón Jiménez
11f5527d76
Implement SetMode and FetchMode window actions 2022-08-18 14:39:15 +02:00
Héctor Ramón Jiménez
b0705d2f4c
Fix latest clippy lints 2022-08-17 16:09:25 +02: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
Cory Forsstrom
81eb3c276d Add window::Event::Moved 2021-07-26 12:36:13 -07:00
Héctor Ramón Jiménez
00de9d0c9b Add CloseRequested variant to window::Event 2021-03-30 21:33:57 +02:00
Héctor Ramón Jiménez
45dc02e9bd Split window::Event::Focused into two variants 2021-01-15 18:21:44 +01:00
cossonleo
0b140488b4 add focus event 2021-01-15 22:40:16 +08:00
Héctor Ramón Jiménez
a1a5fcfd46 Refactor Viewport and Compositor 2020-05-20 20:28:35 +02:00
Héctor Ramón Jiménez
4aed0fa4b6 Rename window::Backend to Compositor 2020-05-19 20:01:55 +02:00
Héctor Ramón Jiménez
d4743183d4 Draft first working version of iced_glow 🎉 2020-05-19 14:23:28 +02:00
Héctor Ramón Jiménez
98bc8cf2a7 Rename MouseCursor to mouse::Interaction 2020-04-30 08:16:38 +02:00
Héctor Ramón Jiménez
8f0b59a4b2 Remove scale_factor from iced_wgpu::Viewport 2020-02-09 03:36:59 +01:00
Héctor Ramón Jiménez
8edb04fddd Remove unused window::renderer module 2020-02-09 03:26:40 +01:00
Héctor Ramón Jiménez
f1e20a61f1 Allow iced_wgpu to render to any TextureView 2020-02-09 03:25:13 +01:00
Héctor Ramón Jiménez
7d9378752a Increase precision of scale_factor in Windowed 2020-02-07 23:50:10 -05:00
Héctor Ramón Jiménez
fb4a7968ca Update winit to 0.20 2020-02-07 23:34:32 -05:00
Héctor Ramón Jiménez
b3106738eb Produce new window file events in iced_winit 2020-01-16 07:18:17 +01:00
Héctor Ramón Jiménez
f73bacb454 Add file events to iced_native:🪟:Event 2020-01-16 07:12:59 +01:00
Héctor Ramón Jiménez
e45497dfd6 Move Debugger and Windowed to a better location
We move `renderer::Debugger` to `layout::Debugger` and
`renderer::Windowed` to `window::Renderer`.
2020-01-10 01:58:55 +01:00
Héctor Ramón Jiménez
7ab6ed7ef9 Add window::Event::Resized to iced_native 2020-01-10 01:28:45 +01:00