From 60774740efee5ff612390f1c3456282d63b5907c Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Mon, 11 Nov 2019 07:11:41 +0100 Subject: Fix doc comments and remove `Align` from `tour` --- native/src/lib.rs | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) (limited to 'native/src/lib.rs') diff --git a/native/src/lib.rs b/native/src/lib.rs index d9e8f385..a091059e 100644 --- a/native/src/lib.rs +++ b/native/src/lib.rs @@ -77,7 +77,7 @@ //! # //! # mod iced_wgpu { //! # use iced_native::{ -//! # button, text, Button, Text, Node, Point, Rectangle, Style, Color, Layout +//! # button, text, layout, Button, Text, Point, Rectangle, Color, Layout, Size //! # }; //! # //! # pub struct Renderer {} @@ -87,11 +87,12 @@ //! # } //! # //! # impl button::Renderer for Renderer { -//! # fn node( +//! # fn layout( //! # &self, -//! # _button: &Button<'_, Message, Self> -//! # ) -> Node { -//! # Node::new(Style::default()) +//! # _button: &Button<'_, Message, Self>, +//! # _limits: &layout::Limits, +//! # ) -> layout::Node { +//! # layout::Node::new(Size::ZERO) //! # } //! # //! # fn draw( @@ -103,8 +104,12 @@ //! # } //! # //! # impl text::Renderer for Renderer { -//! # fn node(&self, _text: &Text) -> Node { -//! # Node::new(Style::default()) +//! # fn layout( +//! # &self, +//! # _text: &Text, +//! # _limits: &layout::Limits, +//! # ) -> layout::Node { +//! # layout::Node::new(Size::ZERO) //! # } //! # //! # fn draw( -- cgit