Commit graph

266 commits

Author SHA1 Message Date
Héctor Ramón Jiménez
ec712c8032 Move MouseCursor to iced_core 2020-04-29 03:23:02 +02:00
Héctor Ramón Jiménez
2539042b71 Remove Drawable and rename State to Program 2020-04-28 06:24:12 +02:00
Héctor Ramón Jiménez
69c60d372c Implement std::ops::Add<Vector> for Rectangle 2020-04-28 04:40:23 +02:00
Héctor Ramón Jiménez
5d5e60a5cc Implement Rectangle::new 2020-04-28 04:39:59 +02:00
Héctor Ramón Jiménez
56dbd68326 Move reusable mouse types to iced_core 2020-04-28 03:11:01 +02:00
Héctor Ramón Jiménez
20d79a43cc Implement Default for Point 2020-04-28 03:06:35 +02:00
Héctor Ramón Jiménez
6c2e28d20e Implement std::ops::Sub<Point> for Point 2020-04-28 01:12:27 +02:00
Clark Moody
27fadad324 Do not re-export Palette from iced_core 2020-04-24 15:20:00 -05:00
Clark Moody
71657b50dd Conditional re-export of palette from iced_core 2020-04-24 15:13:22 -05:00
Clark Moody
04be010fbd Conversion traits for palette::Srgb 2020-04-24 15:13:22 -05:00
Clark Moody
ea3b7b5282 Derive Default for Color 2020-04-24 15:13:22 -05:00
Clark Moody
56ce01e262 Simplify range declaration 2020-04-24 15:13:22 -05:00
Clark Moody
a95d494f70 Remove redundant from_srgba and into_srgba methods 2020-04-24 15:13:22 -05:00
Clark Moody
408e9e566f Add palette test for Color <-> Srgba & manipulation 2020-04-24 15:13:22 -05:00
Clark Moody
7b15e4b0e2 Feature name colors -> palette 2020-04-24 15:13:22 -05:00
Clark Moody
e926e43742 Add const from_rgba, for RGBA initialization 2020-04-24 15:13:22 -05:00
Clark Moody
9a4ad3d6a7 Use debug assertions instead of clamp 2020-04-24 15:13:22 -05:00
Clark Moody
fd484c7638 Fix docstring typo 2020-04-24 15:13:22 -05:00
Clark Moody
bb44398819 Revert from_rgb to const 2020-04-24 15:13:22 -05:00
Clark Moody
4009f0cf73 Remove HSLColor 2020-04-24 15:13:22 -05:00
Clark Moody
831a07f720 Conversion to palette's Srgba type 2020-04-24 15:13:22 -05:00
Clark Moody
63933e26d2 Add palette dependency behind "colors" feature flag 2020-04-24 15:13:22 -05:00
Clark Moody
0ff3cbf543 HSLColor struct, with conversions to/from RGB 2020-04-24 15:13:22 -05:00
Clark Moody
27a4cbccea Add inversion functions, rename check_rgba -> new 2020-04-24 15:13:22 -05:00
Clark Moody
62fddce2e6 Add check_rgba fn to clamp float values to [0,1] 2020-04-24 15:13:22 -05:00
Héctor Ramón Jiménez
6786b8a3aa Implement Default for Font 2020-04-23 22:17:00 +02:00
Héctor Ramón Jiménez
0b5028b1ab Draft Program interactivity for Canvas 2020-04-19 14:39:30 +02:00
Héctor Ramón Jiménez
4808fcbd7e Bump versions 🎉 2020-04-15 08:58:14 +02:00
Héctor Ramón Jiménez
b549b509c9 Align text in iced_wgpu on a case-by-case basis 2020-04-10 01:39:36 +02:00
Héctor Ramón Jiménez
d0cca658a1 Bump all versions 🎉 2020-04-02 17:40:20 +02:00
Héctor Ramón Jiménez
2ef1b4317a Remove subcrates CHANGELOG
At this stage, it is important to allow the library to change rapidly.
Because of this, keeping a log of changes can be counter-productive. We
do not want pin down design decisions by writing detailed changelogs
(sunk cost fallacy).

Once the library and its different parts start becoming more stable and
mature, we will reintroduce changelogs accordingly.

For now, we will keep a main `CHANGELOG` file just for the `iced` crate.
2020-04-02 03:44:14 +02:00
Héctor Ramón Jiménez
4fc17dfd66 Fix Size::new documentation 2020-04-02 03:44:14 +02:00
Héctor Ramón Jiménez
c2cb1a0c81 Improve Point::ORIGIN documentation 2020-04-02 03:44:14 +02:00
Héctor Ramón Jiménez
31aaf207d6 Remove redundant check in ModifiersState::matches 2020-03-20 04:10:58 +01:00
Héctor Ramón Jiménez
18f016cba7 Use f32::hypot in Point::distance 2020-03-20 04:08:18 +01:00
Héctor Ramón Jiménez
50b02d41a0 Check only for partial match of modifier keys 2020-03-18 07:10:36 +01:00
Héctor Ramón Jiménez
05beb87852 Move common keyboard types to iced_core
Also expose them in `iced` through `iced_native` and `iced_web`.
2020-03-17 07:30:05 +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
b74e7e7353 Implement Primitive::Cached 2020-03-07 23:45:54 +01:00
Héctor Ramón
d817fe8e14
Merge pull request #91 from nvzqz/const-all-the-things
Make many functions `const`
2020-03-06 03:47:40 +01:00
Héctor Ramón Jiménez
126133ead7 Fix Clip primitive intersection in iced_wgpu 2020-02-22 18:25:43 +01:00
Héctor Ramón Jiménez
945dfabd71 Move Size to iced_core 2020-02-14 05:35:42 +01:00
Héctor Ramón Jiménez
558abf648b Add transform stack to canvas::Frame 2020-02-14 04:59:31 +01: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
f14009601e Write documentation for iced_futures 2020-01-20 09:49:17 +01:00
Héctor Ramón Jiménez
b5b17ed4d8 Create iced_futures and wire everything up 2020-01-19 10:17:44 +01:00
Héctor Ramón Jiménez
d50ff9b5d9 Implement Runtime and Executor in iced_core
They can be leveraged by shells to easily execute commands
and track subscriptions.
2020-01-19 09:06:48 +01:00
Héctor Ramón Jiménez
32f7ca261f Implement subscription::Tracker in iced_core 2020-01-19 08:36:44 +01:00
Héctor Ramón Jiménez
5de404ddd9 Take IntoIterator instead of Iterator 2020-01-16 07:01:25 +01:00
Héctor Ramón Jiménez
f7a8b6983c Remove Mul implementation for Vector 2020-01-07 04:56:32 +01:00