Commit graph

221 commits

Author SHA1 Message Date
Héctor Ramón
a2b1ba522a
Merge pull request #914 from yusdacra/feat/expose_draw_cache_multithread
feat: expose draw_cache_multithread as a feature
2021-07-22 18:39:37 +07:00
Héctor Ramón Jiménez
357a8a95c9
Introduce text_multithreading to Settings 2021-07-22 18:27:33 +07: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
6793a7e00d
Remove DPI from docs in window::Settings::position 2021-07-21 18:15:32 +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
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
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
Yusuf Bera Ertan
83d19689c8
docs: update all 0.2 github links to 0.3 2021-06-14 21:01:37 +03:00
Kaiden42
52a185fbab Implement Toggler widget for iced_native 2021-06-03 20:21:02 +07:00
Aaron Housh
ae484429d3 Merge branch 'hecrj:master' into upgrade-wgpu 2021-05-19 07:14:26 -07:00
Riccardo D'Ambrosio
5f1b880521
Change examples to point to 0.3 examples, not 0.2 2021-05-13 11:04:09 -04:00
Dispersia
983aa1b366 Run cargo fmt 2021-04-12 23:23:47 -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
Héctor Ramón Jiménez
883c7e71ae Introduce internal_backend to iced_wgpu::Settings 2021-03-25 11:29:40 +01:00
Héctor Ramón Jiménez
7da3fb1b22 Implement stub Clipboard in iced_web
We need to figure out browser permissions and use of unstable `web-sys`
APIs
2021-03-11 03:52:41 +01:00
Héctor Ramón Jiménez
ae517b9fa0 Add clipboard argument to Application::update 2021-03-11 03:38:20 +01:00
Yusuf Bera Ertan
a19f89d3a6
feat(native): add Tooltip widget 2021-02-15 19:37:46 +03:00
Taiki Endo
14d900d835 Make iced::Error Send + Sync 2021-01-29 14:03:27 +09:00
GunpowderGuy
8d882d787e
update example description at sandbox's documentation (#710)
* Update sandbox.rs

* Update sandbox.rs

* format

Co-authored-by: Diego Rosario <diegorosario2013@gmail.com>
2021-01-22 01:36:05 +01:00
Héctor Ramón Jiménez
a42a0844c2 Keep old behavior for Executor feature flags 2021-01-15 18:31:30 +01:00
Jayce Fayne
b2415eee61 Add smol async runtime 2021-01-14 12:28:02 +01:00
Héctor Ramón Jiménez
0b73e5fbfa Merge remote-tracking branch 'tarkah/image-pane' into image-pane 2020-12-18 10:15:30 +01:00
Héctor Ramón Jiménez
745aa49025 Update example links to point to 0.2 branch 2020-11-26 16:37:33 +01:00
Héctor Ramón Jiménez
01322f69a4 Use recently stabilized intra-doc links
See RFC: https://github.com/rust-lang/rfcs/blob/master/text/1946-intra-rustdoc-links.md
2020-11-26 02:05:43 +01:00
Héctor Ramón Jiménez
d612bf5678 Rename keyboard::ModifiersState to Modifiers 2020-11-26 02:05:42 +01:00
Héctor Ramón
87c9df294c
Merge pull request #595 from valbendan/master
upgrade tokio to latest version(v0.3)
2020-11-25 04:24:44 +01:00
Héctor Ramón Jiménez
782dd2f522 Introduce tokio_old feature
This feature allows users to rely on the `0.2` version of `tokio` while
the async ecosystem upgrades to the latest version.
2020-11-25 03:06:24 +01:00
Héctor Ramón Jiménez
3296be845c Implement QRCode widget 2020-11-20 10:29:33 +01:00
dabaichi
a4ad1b297e
Update src/executor.rs
fix executor other than tokio

Co-authored-by: Héctor Ramón <hector0193@gmail.com>
2020-11-06 04:20:19 +00:00
valbendan
eacb2e913f upgrade tokio to latest version(v0.3) 2020-11-05 11:36:23 +08:00
sum-elier
2b1d438ad4 Fix DimensionsMismatch error message
The values passed to write! were shifted 1 to the left.

Fixes #591
2020-11-01 09:21:42 -05:00
Héctor Ramón Jiménez
ae5a2502d6 Remove executor::Null from the root public API
Using an `Application` with `executor::Null` does not make sense, as the
whole purpose of an `Application` is to allow executing async actions.

When async actions are not needed, `Sandbox` should be used instead.
2020-10-17 08:46:16 +02:00
Tom
f2247a70dc Fixes #539: Allow windows to be set always_on_top 2020-09-28 21:05:15 -07:00
Héctor Ramón Jiménez
c1f79b40cf Make Application and Sandbox return a Result 2020-09-08 00:44:59 +02:00
Héctor Ramón Jiménez
2ce5df0844 Merge branch 'feature/rule-widget' into master 2020-08-22 21:25:06 +02:00
Billy Messenger
8d68c8584e widget Rule added 2020-08-22 21:23:27 +02:00
Katherine Philip
a490fd54c9 Add 'transparent' in window setting 2020-08-17 15:42:50 +07:00
Héctor Ramón Jiménez
73b8ae8e5e Rename ComboBox to PickList 2020-07-10 02:52:00 +02:00
Héctor Ramón Jiménez
afd9274de2 Draft ComboBox and Menu layer 2020-07-08 10:59:56 +02:00
Héctor Ramón Jiménez
5c4f5ae5ec Export Canvas if glow_canvas feature is enabled 2020-07-08 10:20:55 +02:00
Héctor Ramón Jiménez
a0cc7e4e43 Move Icon to iced crate and introduce Error 2020-07-01 06:10:31 +02:00
Francesco Pasa
9a037a23e9 Add support for setting window icon
This adds a new property from Settings:🪟:iconand a Icon struct which can be converted to winit:🪟:Icon.

It also adds code to display this icon in Application::run. Due to the fact that the Icon struct is non copyable, I also had to remove the Copy trait from all Settings, both in `iced` and `iced_winit`.
2020-07-01 05:37:28 +02:00
Héctor Ramón Jiménez
65a4dca0d9 Add min_size and max_size to window::Settings 2020-06-25 00:32:41 +02:00
Héctor Ramón
eec65a055f
Merge pull request #415 from hecrj/feature/configurable-scale-factor
Add `scale_factor` to `Application` and `Sandbox`
2020-06-20 19:20:37 +02:00