Commit graph

464 commits

Author SHA1 Message Date
Héctor Ramón Jiménez
36e7ac2048 Fix cursor positioning in TextInput on overflow 2019-12-21 05:30:48 +01:00
Héctor Ramón Jiménez
453d2d5bb0 Implement Command::map 2019-12-19 21:08:59 +01:00
Héctor Ramón
773a23630b
Merge pull request #132 from hecrj/feature/read-clipboard
Clipboard access
2019-12-19 17:43:25 +01:00
Héctor Ramón
9cf61fb82c
Merge pull request #131 from hecrj/fix/web-subscription-missing
Fix `Subscription` missing in `iced_web`
2019-12-19 17:07:20 +01:00
Héctor Ramón
c822ea753e
Merge pull request #130 from hecrj/fix/resize-measure-cache
Resize text measure cache to avoid panic
2019-12-19 17:07:09 +01:00
Héctor Ramón Jiménez
8c8c5bb766 Stop using Travis CI 2019-12-19 07:05:54 +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
68c8ebcd77 Fix web::Hasher doc comment 2019-12-19 00:09:19 +01:00
Héctor Ramón Jiménez
eb4f55c60b Check iced builds when targetting Wasm in CI 2019-12-18 23:57:31 +01:00
Héctor Ramón Jiménez
9ca65c9f18 Fix missing Subscription type in iced_web 2019-12-18 23:57:02 +01:00
Héctor Ramón
441c6730e9
Merge pull request #128 from Gohla/fix_unnecessary_bound
Remove unnecessary bound in iced_web Container
2019-12-18 23:20:48 +01:00
Héctor Ramón
6f9de4130f
Merge pull request #127 from Gohla/web_styling
Add several missing style attributes in iced_web
2019-12-18 23:20:19 +01:00
Héctor Ramón Jiménez
0d7e236039 Resize text measure cache to avoid panic
This should not be really necessary, as we are not really drawing
anything with the measure brush... But we are using `glyph_brush`
in an unconventional way, so that may be the cause. We need to redesign
`wgpu_glyph` or come up with an alternative.
2019-12-18 23:14:54 +01:00
Gabriel Konat
7bb1b81e79 Fix unnecessary bound in web. 2019-12-18 12:02:22 +01:00
Gabriel Konat
95988e8e25 Add several missing style attributes in iced_web. 2019-12-18 11:30:51 +01:00
Héctor Ramón Jiménez
68f3c9c4c6 Implement clipboard pasting in TextInput 2019-12-18 09:11:33 +01:00
Héctor Ramón Jiménez
5a9527894a Add xcb libraries to Travis CI 2019-12-18 07:56:05 +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
0f2e20f5e5
Merge pull request #122 from hecrj/feature/event-subscriptions
Event subscriptions
2019-12-16 21:38:56 +01:00
Héctor Ramón
3702b10997
Merge pull request #111 from Maldela/svg
Svg and icon support
2019-12-16 21:38:33 +01:00
Héctor Ramón Jiménez
514ccf8a72 Cache Svg load result properly
This avoids trying to reload the file constantly on every frame.
2019-12-15 07:07:49 +01:00
Héctor Ramón Jiménez
232d4873ba Put svg rendering behind a feature gate
This reduces binary size when SVG supoprt is not needed.
2019-12-15 06:45:20 +01:00
Héctor Ramón Jiménez
aa29849976 Add svg example 2019-12-15 06:31:53 +01:00
Héctor Ramón Jiménez
6ba2461445 Update Svg documentation 2019-12-15 06:28:44 +01:00
Héctor Ramón Jiménez
09707f29fc Rerasterize SVGs when resized and refactor a bit 2019-12-15 06:19:07 +01:00
Héctor Ramón Jiménez
430ab6e444 Port todos to async_std 2019-12-14 20:48:32 +01:00
Héctor Ramón Jiménez
5185d6a0f3 Fix Widget::width for Checkbox 2019-12-14 07:09:37 +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
ba06d458d3 Move native events subscription to iced_native 2019-12-14 04:12:42 +01:00
Héctor Ramón Jiménez
e71978456a Remove unnecessary clone in subscription::Map 2019-12-14 03:57:04 +01:00
Héctor Ramón Jiménez
c13ef73e8b Hash Duration of time::Every in stopwatch 2019-12-14 02:20:45 +01:00
Héctor Ramón Jiménez
7715486906 Use generic Hasher in stopwatch 2019-12-14 02:12:25 +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
69ed631d44 Rename timer example to stopwatch 2019-12-14 00:45:38 +01:00
Héctor Ramón Jiménez
f0381a7fb3 Use surf in pokedex example 2019-12-14 00:32:05 +01:00
Héctor Ramón Jiménez
ffa46898d9 Add timer example 2019-12-13 23:58:23 +01:00
Malte Veerman
27717bc70c Renamed Icon widget to Svg and gave it separate width and height.
The aspect ratio is now preserved like in the `Image` widget.
2019-12-12 01:25:18 +01:00
Malte Veerman
895eaef99b Merged svg pipeline into image 2019-12-12 01:14:54 +01:00
Malte Veerman
f737c6da24 Improved dpi handling 2019-12-12 00:20:06 +01:00
Malte Veerman
5696afcadd Ran cargo_fmt over changed files. 2019-12-11 22:13:29 +01:00
Malte Veerman
a88aae5e04 Added an Icon widget to native. 2019-12-11 21:34:40 +01:00
Malte Veerman
8032428428 Implemented SVG support in iced_wgpu. 2019-12-11 20:02:43 +01:00
Héctor Ramón Jiménez
e06a4d1ce4 Simplify events example 2019-12-10 04:06:12 +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
e189c22bb0 Rename clock example to events 2019-12-09 22:39:28 +01:00
Héctor Ramón Jiménez
c1b9f66525 Add Button::height and Button::min_height 2019-12-09 21:59:31 +01:00
Héctor Ramón Jiménez
98160406f7 Allow listening to runtime events in subscriptions 2019-12-08 08:21:26 +01:00