Commit graph

59 commits

Author SHA1 Message Date
Héctor Ramón Jiménez
62474d0e75 Use personal fork of winit until 0.20 lands
Fixes #135
2019-12-24 02:56:12 +01:00
Héctor Ramón Jiménez
972b9520bf Use latest window_clipboard changes 2019-12-19 06:34:44 +01:00
Héctor Ramón Jiménez
a14b39555e Allow clipboard access in Widget::on_event 2019-12-18 07:45:49 +01:00
Héctor Ramón Jiménez
3daa9c2cc8 Log broadcast error as an error instead of a warning 2019-12-14 06:42:26 +01:00
Héctor Ramón Jiménez
d6c3da21f7 Write docs for subscriptions and reorganize a bit 2019-12-14 05:56:46 +01:00
Héctor Ramón Jiménez
293314405f Make iced_native subscription input opaque 2019-12-14 04:49:13 +01:00
Héctor Ramón Jiménez
65ff3744a0 Remove unnecessary event loop proxy Mutex
I am not sure why I had to use it in the first place...
2019-12-14 01:33:31 +01:00
Héctor Ramón Jiménez
c688452d7b Consume Recipe when building a Stream 2019-12-14 01:13:01 +01:00
Héctor Ramón Jiménez
cdb7acf6c2 Implement Subscription::map and from_recipe 2019-12-10 03:43:00 +01:00
Héctor Ramón Jiménez
98160406f7 Allow listening to runtime events in subscriptions 2019-12-08 08:21:26 +01:00
Héctor Ramón Jiménez
9b84b6e403 Merge branch 'master' into feature/event-subscriptions 2019-12-08 06:53:54 +01:00
Héctor Ramón Jiménez
48145ba51e Use oneshot and future::select to cancel streams 2019-12-07 08:51:44 +01:00
Héctor Ramón Jiménez
65cac922b3 Add ModifiersState to keyboard::Event::Input 2019-12-06 04:01:48 +01:00
Héctor Ramón Jiménez
d575f45411 Draft first version of event subscriptions 🎉 2019-12-05 06:10:13 +01:00
Gabriel Konat
5a974fe72d Use cfg and path attribute instead of cfg_attr for IntelliJ Rust support 2019-12-04 14:39:20 +01:00
Héctor Ramón
60b32a9fed
Merge pull request #94 from hatoo/improve-setting
Improve window setting
2019-12-03 07:38:03 +01:00
Héctor Ramón Jiménez
7756081fdb Refactor window creation in iced_winit 2019-12-03 07:20:22 +01:00
hatoo
287f3ea99a Add tailing newline to winit/Cargo.toml 2019-12-02 21:58:35 +09:00
Héctor Ramón
805c5ad0cd
Merge pull request #84 from hecrj/fix/event-processing
Process events only when necessary
2019-12-01 03:33:40 +01:00
hatoo
5077f1dc6a Add platform specific settings 2019-11-30 21:48:33 +09:00
hatoo
f0a857ddde Add decorations to Setting 2019-11-30 21:03:50 +09:00
Héctor Ramón Jiménez
826bc374b1 Process events only when necessary
Additionally, this also fixes a bug where the old size was being used
for layouting after a resize.
2019-11-28 21:05:17 +01:00
Héctor Ramón Jiménez
80a8a57471 Stop loading a mono font just for the debug view 2019-11-26 15:33:38 +01:00
Héctor Ramón
84874ac5dc
Merge pull request #68 from hecrj/feature/application-settings
Allow `Application` configuration with `Settings`
2019-11-25 15:00:53 +01:00
Héctor Ramón Jiménez
862859142b Add CHANGELOG to subcrates 2019-11-25 14:55:14 +01:00
Héctor Ramón Jiménez
d70021fa68 Allow Application configuration with Settings 2019-11-25 14:17:13 +01:00
Héctor Ramón Jiménez
bbeb03504a Stop emitting private use characters on macOS 2019-11-24 12:27:39 +01:00
Héctor Ramón Jiménez
580891dda7 Write docs for iced_winit 2019-11-22 22:14:48 +01:00
Héctor Ramón Jiménez
42e775fece Merge branch 'master' into improvement/docs 2019-11-22 20:30:57 +01:00
Héctor Ramón Jiménez
65eb218d3d Move widgets from core to native and web
Also made fields private and improved `Renderer` traits.
2019-11-21 13:47:20 +01:00
Héctor Ramón Jiménez
4b94cf0035 Add installation section to subcrate READMEs 2019-11-20 09:56:16 +01:00
Héctor Ramón Jiménez
cb4827059f Add README for each subcrate 2019-11-20 09:41:04 +01:00
Héctor Ramón Jiménez
02c20e6202 Support async actions in iced_winit 2019-11-17 07:11:44 +01:00
Héctor Ramón Jiménez
860a6923bb Split text measurements cache from rendering cache
This speeds up layouting in the most common scenario considerably!
🎉
2019-11-11 06:07:31 +01:00
Héctor Ramón Jiménez
ceb02f4a36 Implement Container widget
Remove `align_self` and `justify_content` methods
2019-11-11 05:26:08 +01:00
Héctor Ramón Jiménez
e953b1828d Allow applications to control the window title
`iced_winit` will change the window title dynamically at runtime!
2019-11-09 05:10:10 +01:00
Héctor Ramón Jiménez
db716b3bdf Apply HiDPI to text, images, and clip primitives
Quads are a bit trickier to handle. We may need to change the shaders a
bit.
2019-11-05 05:26:20 +01:00
Héctor Ramón Jiménez
494b0681f8 Enable debug view explicitly and test it in CI 2019-11-03 05:06:53 +01:00
Héctor Ramón Jiménez
1a2e512686 Add crate information to debug view 2019-11-03 04:49:57 +01:00
Héctor Ramón Jiménez
2c6bfdbc8c Implement debug view and load system fonts 2019-11-03 04:39:11 +01:00
Héctor Ramón Jiménez
58e04af824 Draft Metrics and improve Target abstraction 2019-11-02 19:58:49 +01:00
Héctor Ramón Jiménez
fedcab6f4f Handle some TextInput events 2019-10-30 05:00:12 +01:00
Héctor Ramón Jiménez
63cd0fd8eb Draft TextInput widget structure
Also started a `todos` example to showcase it!
2019-10-30 03:31:07 +01:00
Héctor Ramón Jiménez
bd5d871eb6 Handle touchpad scroll events 2019-10-29 19:00:46 +01:00
Héctor Ramón Jiménez
9dabbf7885 Provide Renderer to Widget::on_event
This allows us to implement configurable event processing that adapts to
different rendering strategies.
2019-10-29 03:34:21 +01:00
Héctor Ramón Jiménez
2b23e0986c Implement text clipping (caching still broken) 2019-10-28 04:28:21 +01:00
Héctor Ramón Jiménez
719c073fc6 Draft Scrollable widget (no clipping yet!) 2019-10-25 03:47:34 +02:00
Héctor Ramón Jiménez
99e1a3780a Set initial window size to 1280x1024 for now
This will be configurable when calling `Application::run` in the future.
2019-10-23 04:44:33 +02:00
Héctor Ramón Jiménez
c63bdacaad Make Renderer immutable in UserInterface::build 2019-10-11 23:45:01 +02:00
Héctor Ramón Jiménez
8846a239cf Rename Renderer::Primitive to Renderer::Output 2019-10-11 22:15:39 +02:00