summaryrefslogtreecommitdiffstats
path: root/native/src/lib.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2019-10-05 03:56:18 +0200
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2019-10-05 03:56:18 +0200
commita7d11944039a1b5ea5b72256e8d15367d99e6010 (patch)
tree0b90246e3bec0bb28a9a67b9c62af4bf7602cbc6 /native/src/lib.rs
parent5204cc8c8bc8361a11815d7c711b7da10a6ca8e5 (diff)
downloadiced-a7d11944039a1b5ea5b72256e8d15367d99e6010.tar.gz
iced-a7d11944039a1b5ea5b72256e8d15367d99e6010.tar.bz2
iced-a7d11944039a1b5ea5b72256e8d15367d99e6010.zip
Add `Renderer` and `Primitive` concepts
Diffstat (limited to 'native/src/lib.rs')
-rw-r--r--native/src/lib.rs11
1 files changed, 7 insertions, 4 deletions
diff --git a/native/src/lib.rs b/native/src/lib.rs
index 39da4943..f6b6f807 100644
--- a/native/src/lib.rs
+++ b/native/src/lib.rs
@@ -83,6 +83,10 @@
//! #
//! # pub struct Renderer {}
//! #
+//! # impl iced_native::Renderer for Renderer {
+//! # type Primitive = ();
+//! # }
+//! #
//! # impl button::Renderer for Renderer {
//! # fn node<Message>(
//! # &self,
@@ -96,9 +100,7 @@
//! # _button: &Button<'_, Message>,
//! # _layout: Layout<'_>,
//! # _cursor_position: Point,
-//! # ) -> MouseCursor {
-//! # MouseCursor::OutOfBounds
-//! # }
+//! # ) {}
//! # }
//! #
//! # impl text::Renderer for Renderer {
@@ -192,7 +194,7 @@
//! [documentation]: https://docs.rs/iced
//! [examples]: https://github.com/hecrj/iced/tree/master/examples
//! [`UserInterface`]: struct.UserInterface.html
-#![deny(missing_docs)]
+//#![deny(missing_docs)]
#![deny(missing_debug_implementations)]
#![deny(unused_results)]
#![deny(unsafe_code)]
@@ -223,6 +225,7 @@ 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;
pub use user_interface::{Cache, UserInterface};
pub use widget::*;