summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-02-14 05:35:42 +0100
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-02-14 05:35:42 +0100
commit945dfabd7135d1bd44a14e54d95b716642651ed3 (patch)
treed33e2e5eefcbd62c84f9e352574fb9ca52d07b19
parentad3a0a184f877cbca3db4006e802231e201138ba (diff)
downloadiced-945dfabd7135d1bd44a14e54d95b716642651ed3.tar.gz
iced-945dfabd7135d1bd44a14e54d95b716642651ed3.tar.bz2
iced-945dfabd7135d1bd44a14e54d95b716642651ed3.zip
Move `Size` to `iced_core`
-rw-r--r--core/src/lib.rs2
-rw-r--r--core/src/size.rs (renamed from native/src/size.rs)0
-rw-r--r--native/src/lib.rs4
3 files changed, 3 insertions, 3 deletions
diff --git a/core/src/lib.rs b/core/src/lib.rs
index 3cbce743..ea5e8b43 100644
--- a/core/src/lib.rs
+++ b/core/src/lib.rs
@@ -22,6 +22,7 @@ mod font;
mod length;
mod point;
mod rectangle;
+mod size;
mod vector;
pub use align::{Align, HorizontalAlignment, VerticalAlignment};
@@ -31,4 +32,5 @@ pub use font::Font;
pub use length::Length;
pub use point::Point;
pub use rectangle::Rectangle;
+pub use size::Size;
pub use vector::Vector;
diff --git a/native/src/size.rs b/core/src/size.rs
index 389b3247..389b3247 100644
--- a/native/src/size.rs
+++ b/core/src/size.rs
diff --git a/native/src/lib.rs b/native/src/lib.rs
index 3b81ef71..e4e7baee 100644
--- a/native/src/lib.rs
+++ b/native/src/lib.rs
@@ -52,12 +52,11 @@ mod event;
mod hasher;
mod mouse_cursor;
mod runtime;
-mod size;
mod user_interface;
pub use iced_core::{
Align, Background, Color, Font, HorizontalAlignment, Length, Point,
- Rectangle, Vector, VerticalAlignment,
+ Rectangle, Size, Vector, VerticalAlignment,
};
pub use iced_futures::{executor, futures, Command};
@@ -72,7 +71,6 @@ pub use layout::Layout;
pub use mouse_cursor::MouseCursor;
pub use renderer::Renderer;
pub use runtime::Runtime;
-pub use size::Size;
pub use subscription::Subscription;
pub use user_interface::{Cache, UserInterface};
pub use widget::*;