summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2019-10-05 03:58:23 +0200
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2019-10-05 03:58:23 +0200
commita90f7fcb987f667a80038a5e72f379abbd59d932 (patch)
tree01e687b72100a259060bbc46c5b3311e84353dd5
parenta7d11944039a1b5ea5b72256e8d15367d99e6010 (diff)
downloadiced-a90f7fcb987f667a80038a5e72f379abbd59d932.tar.gz
iced-a90f7fcb987f667a80038a5e72f379abbd59d932.tar.bz2
iced-a90f7fcb987f667a80038a5e72f379abbd59d932.zip
Move `MouseCursor` to `iced_wgpu`
-rw-r--r--native/src/element.rs2
-rw-r--r--native/src/lib.rs5
-rw-r--r--native/src/widget/image.rs2
-rw-r--r--native/src/widget/row.rs4
-rw-r--r--native/src/widget/slider.rs2
-rw-r--r--wgpu/src/mouse_cursor.rs (renamed from native/src/mouse_cursor.rs)0
6 files changed, 5 insertions, 10 deletions
diff --git a/native/src/element.rs b/native/src/element.rs
index 4ea2379f..8d14070a 100644
--- a/native/src/element.rs
+++ b/native/src/element.rs
@@ -103,7 +103,7 @@ where
/// #
/// # mod iced_wgpu {
/// # use iced_native::{
- /// # button, row, Button, MouseCursor, Node, Point, Rectangle, Style, Layout, Row
+ /// # button, row, Button, Node, Point, Rectangle, Style, Layout, Row
/// # };
/// # pub struct Renderer;
/// #
diff --git a/native/src/lib.rs b/native/src/lib.rs
index f6b6f807..6067f49d 100644
--- a/native/src/lib.rs
+++ b/native/src/lib.rs
@@ -77,8 +77,7 @@
//! #
//! # mod iced_wgpu {
//! # use iced_native::{
-//! # button, text, Button, Text,
-//! # MouseCursor, Node, Point, Rectangle, Style, Color, Layout
+//! # button, text, Button, Text, Node, Point, Rectangle, Style, Color, Layout
//! # };
//! #
//! # pub struct Renderer {}
@@ -207,7 +206,6 @@ mod element;
mod event;
mod hasher;
mod layout;
-mod mouse_cursor;
mod node;
mod style;
mod user_interface;
@@ -223,7 +221,6 @@ pub use element::Element;
pub use event::Event;
pub use hasher::Hasher;
pub use layout::Layout;
-pub use mouse_cursor::MouseCursor;
pub use node::Node;
pub use renderer::Renderer;
pub use style::Style;
diff --git a/native/src/widget/image.rs b/native/src/widget/image.rs
index 5b224158..2bce36c2 100644
--- a/native/src/widget/image.rs
+++ b/native/src/widget/image.rs
@@ -1,6 +1,6 @@
//! Display images in your user interface.
-use crate::{Element, Hasher, Layout, MouseCursor, Node, Point, Widget};
+use crate::{Element, Hasher, Layout, Node, Point, Widget};
use std::hash::Hash;
diff --git a/native/src/widget/row.rs b/native/src/widget/row.rs
index 04fc8163..9d023210 100644
--- a/native/src/widget/row.rs
+++ b/native/src/widget/row.rs
@@ -1,8 +1,6 @@
use std::hash::Hash;
-use crate::{
- Element, Event, Hasher, Layout, MouseCursor, Node, Point, Style, Widget,
-};
+use crate::{Element, Event, Hasher, Layout, Node, Point, Style, Widget};
/// A container that distributes its contents horizontally.
pub type Row<'a, Message, Renderer> =
diff --git a/native/src/widget/slider.rs b/native/src/widget/slider.rs
index cd36c4b9..77095cb7 100644
--- a/native/src/widget/slider.rs
+++ b/native/src/widget/slider.rs
@@ -7,7 +7,7 @@
use std::hash::Hash;
use crate::input::{mouse, ButtonState};
-use crate::{Element, Event, Hasher, Layout, MouseCursor, Node, Point, Widget};
+use crate::{Element, Event, Hasher, Layout, Node, Point, Widget};
pub use iced_core::slider::*;
diff --git a/native/src/mouse_cursor.rs b/wgpu/src/mouse_cursor.rs
index 4ef6361a..4ef6361a 100644
--- a/native/src/mouse_cursor.rs
+++ b/wgpu/src/mouse_cursor.rs