Fix doc comments and remove Align from tour

This commit is contained in:
Héctor Ramón Jiménez 2019-11-11 07:11:41 +01:00
parent 860a6923bb
commit 60774740ef
3 changed files with 20 additions and 11 deletions

View file

@ -1,5 +1,5 @@
use iced::{ use iced::{
button, scrollable, slider, text::HorizontalAlignment, text_input, Align, button, scrollable, slider, text::HorizontalAlignment, text_input,
Application, Background, Button, Checkbox, Color, Column, Container, Application, Background, Button, Checkbox, Color, Column, Container,
Element, Image, Length, Radio, Row, Scrollable, Slider, Text, TextInput, Element, Image, Length, Radio, Row, Scrollable, Slider, Text, TextInput,
}; };

View file

@ -128,7 +128,7 @@ where
/// # /// #
/// # mod iced_wgpu { /// # mod iced_wgpu {
/// # use iced_native::{ /// # use iced_native::{
/// # text, row, Text, Node, Point, Rectangle, Style, Layout, Row /// # text, row, layout, Text, Size, Point, Rectangle, Layout, Row
/// # }; /// # };
/// # pub struct Renderer; /// # pub struct Renderer;
/// # /// #
@ -144,8 +144,12 @@ where
/// # } /// # }
/// # /// #
/// # impl text::Renderer for Renderer { /// # impl text::Renderer for Renderer {
/// # fn node(&self, _text: &Text) -> Node { /// # fn layout(
/// # Node::new(Style::default()) /// # &self,
/// # _text: &Text,
/// # _limits: &layout::Limits,
/// # ) -> layout::Node {
/// # layout::Node::new(Size::ZERO)
/// # } /// # }
/// # /// #
/// # fn draw( /// # fn draw(

View file

@ -77,7 +77,7 @@
//! # //! #
//! # mod iced_wgpu { //! # mod iced_wgpu {
//! # use iced_native::{ //! # 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 {} //! # pub struct Renderer {}
@ -87,11 +87,12 @@
//! # } //! # }
//! # //! #
//! # impl button::Renderer for Renderer { //! # impl button::Renderer for Renderer {
//! # fn node<Message>( //! # fn layout<Message>(
//! # &self, //! # &self,
//! # _button: &Button<'_, Message, Self> //! # _button: &Button<'_, Message, Self>,
//! # ) -> Node { //! # _limits: &layout::Limits,
//! # Node::new(Style::default()) //! # ) -> layout::Node {
//! # layout::Node::new(Size::ZERO)
//! # } //! # }
//! # //! #
//! # fn draw<Message>( //! # fn draw<Message>(
@ -103,8 +104,12 @@
//! # } //! # }
//! # //! #
//! # impl text::Renderer for Renderer { //! # impl text::Renderer for Renderer {
//! # fn node(&self, _text: &Text) -> Node { //! # fn layout(
//! # Node::new(Style::default()) //! # &self,
//! # _text: &Text,
//! # _limits: &layout::Limits,
//! # ) -> layout::Node {
//! # layout::Node::new(Size::ZERO)
//! # } //! # }
//! # //! #
//! # fn draw( //! # fn draw(