From 65eb218d3d7ba52b2869a586a1480eeb3c8f84e4 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Thu, 21 Nov 2019 13:47:20 +0100 Subject: Move widgets from `core` to `native` and `web` Also made fields private and improved `Renderer` traits. --- native/src/user_interface.rs | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'native/src/user_interface.rs') diff --git a/native/src/user_interface.rs b/native/src/user_interface.rs index f031b090..f29cbcc5 100644 --- a/native/src/user_interface.rs +++ b/native/src/user_interface.rs @@ -10,7 +10,6 @@ use std::hash::Hasher; /// charge of using this type in your system in any way you want. /// /// [`Layout`]: struct.Layout.html -#[derive(Debug)] pub struct UserInterface<'a, Message, Renderer> { hash: u64, root: Element<'a, Message, Renderer>, @@ -52,7 +51,7 @@ where /// # impl iced_native::column::Renderer for Renderer { /// # fn draw( /// # &mut self, - /// # _column: &iced_native::Column<'_, Message, Self>, + /// # _children: &[iced_native::Element<'_, Message, Self>], /// # _layout: iced_native::Layout<'_>, /// # _cursor_position: iced_native::Point, /// # ) -> Self::Output { @@ -133,8 +132,8 @@ where /// [`Event`]: enum.Event.html /// /// # Example - /// Let's allow our [counter](index.html#usage) to change state by completing - /// [the previous example](#example): + /// Let's allow our [counter](index.html#usage) to change state by + /// completing [the previous example](#example): /// /// ```no_run /// use iced_native::{UserInterface, Cache}; @@ -152,7 +151,7 @@ where /// # impl iced_native::column::Renderer for Renderer { /// # fn draw( /// # &mut self, - /// # _column: &iced_native::Column<'_, Message, Self>, + /// # _children: &[iced_native::Element<'_, Message, Self>], /// # _layout: iced_native::Layout<'_>, /// # _cursor_position: iced_native::Point, /// # ) -> Self::Output { @@ -252,7 +251,7 @@ where /// # impl iced_native::column::Renderer for Renderer { /// # fn draw( /// # &mut self, - /// # _column: &iced_native::Column<'_, Message, Self>, + /// # _children: &[iced_native::Element<'_, Message, Self>], /// # _layout: iced_native::Layout<'_>, /// # _cursor_position: iced_native::Point, /// # ) -> Self::Output { -- cgit