Commit graph

116 commits

Author SHA1 Message Date
Héctor Ramón Jiménez
f30a666dc8 Decouple cursor_position from Cache
Instead, we ask explicitly for it in the different `update` and `draw` methods.
This way, the runtime can derive the logical position of the cursor from
the source of truth.
2020-06-23 06:44:34 +02:00
Héctor Ramón Jiménez
bbdf558bd7 Relayout when Application::scale_factor changes 2020-06-23 06:12:06 +02:00
Héctor Ramón Jiménez
c9696ca687 Add scale_factor to Application and Sandbox 2020-06-19 19:17:05 +02:00
Héctor Ramón Jiménez
4c0286e8ac Add background_color to Application and Sandbox 2020-06-12 22:12:15 +02:00
Héctor Ramón Jiménez
49dbf2c146 Request a redraw only on relevant events 2020-06-09 15:45:57 +02:00
Héctor Ramón Jiménez
4aa0d7a13a Write documentation for iced_glutin 2020-05-28 02:57:03 +02:00
Héctor Ramón Jiménez
ef28347f1c Write documentation for new iced_winit API 2020-05-28 02:49:32 +02:00
Héctor Ramón Jiménez
ae5e2c6c73 Introduce Program and State 2020-05-21 04:27:31 +02:00
Héctor Ramón Jiménez
e0e4ee73fe Implement iced_glutin 🎉 2020-05-21 00:44:35 +02: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
bb9ccc4f62 Remove inconsistent input module in iced_native 2020-04-30 05:04:45 +02:00
Héctor Ramón Jiménez
d8b9e03481 Remove ButtonState 2020-04-30 04:54:49 +02:00
Héctor Ramón Jiménez
e55cd9652e Split Input mouse event by ButtonState 2020-04-30 04:53:15 +02:00
Héctor Ramón Jiménez
e139aae143 Split Input keyboard event by ButtonState 2020-04-30 04:34:29 +02:00
Héctor Ramón Jiménez
0509710cc5 Add Crosshair variant to MouseCursor 2020-04-29 03:14:59 +02:00
Héctor Ramón Jiménez
59403b6ca8 Remove OutOfBounds variant from MouseCursor 2020-04-29 03:11:15 +02:00
Héctor Ramón Jiménez
ae546a5b9d Revert "Merge pull request #289 from hecrj/fix/cursor-events"
`winit` seems to produce `CursorEntered` and `CursorLeft` events after
wheel scrolling for no apparent reason (?). This causes annoying flickering when hovering some widgets on a scrollable.

I should investigate this further. We are rolling back the fix for the
time being.
2020-04-17 23:27:50 +02:00
Héctor Ramón Jiménez
4b0cc178dd Produce cursor events in iced_winit::conversion 2020-04-12 00:37:13 +02:00
Héctor Ramón Jiménez
8c8325d0cf Write documentation for the debug feature 2020-04-02 03:44:14 +02:00
Héctor Ramón Jiménez
15aa40df40 Add missing link to conversion::fullscreen 2020-04-02 03:44:14 +02:00
Héctor Ramón Jiménez
f5e7e0625e Improve docs for Sandbox and Application 2020-04-02 03:44:14 +02:00
Héctor Ramón Jiménez
26a35b7d7e Clarify return policy of Application::run 2020-04-02 03:44:14 +02:00
Héctor Ramón Jiménez
c4c5216e3b Allow passing external state to Application::new 2020-03-30 18:10:15 +02:00
Héctor Ramón Jiménez
01bc95c2a3 Remove redundant closure in Application::run 2020-03-29 15:22:56 +02:00
Héctor Ramón Jiménez
e23e93218c Convert WindowEvent from a reference in iced_winit 2020-03-27 22:06:20 +01:00
Héctor Ramón Jiménez
c7583f1227 Merge branch 'master' into feature/panes-widget 2020-03-17 03:23:10 +01:00
Héctor Ramón Jiménez
f08cb4ad56 Implement mouse-based pane resizing for PaneGrid 2020-03-14 08:10:50 +01:00
Héctor Ramón Jiménez
aac7ad3e14 Update winit to 0.22 2020-03-09 22:35:25 +01:00
Héctor Ramón Jiménez
2e457c394f Quit application when Cmd+Q is pressed on macOS 2020-02-19 14:53:08 +01:00
Héctor Ramón Jiménez
09cf0b7af3 Enter executor context only on Recipe creation 2020-02-16 11:31:37 +01:00
Héctor Ramón Jiménez
75d8de93ae Wrap application initialization with Runtime::enter 2020-02-16 11:25:10 +01:00
Héctor Ramón Jiménez
a244f93243 Avoid Size name collision iniced_winit 2020-02-09 05:31:55 +01:00
Héctor Ramón Jiménez
fbfd76023b Remove dead code in iced_winit::debug::Null 2020-02-09 05:26:20 +01:00
Héctor Ramón Jiménez
ce6806bbf4 Remove event conversion from iced_winit::Application 2020-02-09 05:24:54 +01:00
Héctor Ramón Jiménez
3efede2662 Add conversion::window_event to iced_winit 2020-02-09 05:23:21 +01: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
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
fbc9deb424 Implement an opaque Size type
It immutably ties physical and logical sizes to a specific scale factor.
2020-02-07 23:50:10 -05:00
Héctor Ramón Jiménez
1d71f78f90 Keep is_private_use_character filter for now 2020-02-07 23:34:32 -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
7b892eb3e1
Merge pull request #177 from hecrj/feature/web-subscriptions
Event subscriptions and custom executors for `iced_web`
2020-02-04 10:33:13 -06:00
Héctor Ramón Jiménez
9a875864cf Write docs for iced_winit::Clipboard
Also explicitly allow the missing debug implementation.
2020-02-04 03:58:40 +01:00
Héctor Ramón Jiménez
6d46833eb2 Support event subscriptions in iced_web
Also improves the overall web runtime, avoiding nested update loops.
2020-02-04 03:28:47 +01:00
Imbris
98f20e4cc1 Make Clipboard public 2020-02-01 22:05:42 -05:00
Héctor Ramón Jiménez
a30553ddbb Forbid unsafe code and Rust 2018 idioms 2020-01-20 10:52:06 +01:00
Héctor Ramón Jiménez
90690702e1 Add Application::Executor associated type 2020-01-20 04:47:36 +01:00