diff options
author | 2021-06-01 19:45:47 +0700 | |
---|---|---|
committer | 2021-06-01 19:45:47 +0700 | |
commit | 8a3b71df8b619571ce0a972826cb5a3987b66b3d (patch) | |
tree | 3d1655b36aa8d7151c878e1879c03c8271a466a5 /native | |
parent | b94cd7a2a83d81769d31f6379539089ce68cbdcd (diff) | |
download | iced-8a3b71df8b619571ce0a972826cb5a3987b66b3d.tar.gz iced-8a3b71df8b619571ce0a972826cb5a3987b66b3d.tar.bz2 iced-8a3b71df8b619571ce0a972826cb5a3987b66b3d.zip |
Replace ignored doc-tests with additional documentation for `Padding`
Diffstat (limited to 'native')
-rw-r--r-- | native/src/overlay/menu.rs | 5 | ||||
-rw-r--r-- | native/src/widget/button.rs | 5 | ||||
-rw-r--r-- | native/src/widget/column.rs | 5 | ||||
-rw-r--r-- | native/src/widget/container.rs | 5 | ||||
-rw-r--r-- | native/src/widget/pane_grid/title_bar.rs | 5 | ||||
-rw-r--r-- | native/src/widget/pick_list.rs | 5 | ||||
-rw-r--r-- | native/src/widget/row.rs | 5 | ||||
-rw-r--r-- | native/src/widget/scrollable.rs | 5 | ||||
-rw-r--r-- | native/src/widget/text_input.rs | 5 |
9 files changed, 0 insertions, 45 deletions
diff --git a/native/src/overlay/menu.rs b/native/src/overlay/menu.rs index b5ed07c7..f62dcb46 100644 --- a/native/src/overlay/menu.rs +++ b/native/src/overlay/menu.rs @@ -59,11 +59,6 @@ where } /// Sets the [`Padding`] of the [`Menu`]. - ///```ignore - /// Menu::new(/*...*/).padding(20); // 20px on all sides - /// Menu::new(/*...*/).padding([10, 20]); // top/bottom, left/right - /// Menu::new(/*...*/).padding([5, 10, 15, 20]); // top, right, bottom, left - /// ``` pub fn padding<P: Into<Padding>>(mut self, padding: P) -> Self { self.padding = padding.into(); self diff --git a/native/src/widget/button.rs b/native/src/widget/button.rs index 3ad5fa62..f61c22d0 100644 --- a/native/src/widget/button.rs +++ b/native/src/widget/button.rs @@ -91,11 +91,6 @@ where } /// Sets the [`Padding`] of the [`Button`]. - ///```ignore - /// Button::new(/*...*/).padding(20); // 20px on all sides - /// Button::new(/*...*/).padding([10, 20]); // top/bottom, left/right - /// Button::new(/*...*/).padding([5, 10, 15, 20]); // top, right, bottom, left - /// ``` pub fn padding<P: Into<Padding>>(mut self, padding: P) -> Self { self.padding = padding.into(); self diff --git a/native/src/widget/column.rs b/native/src/widget/column.rs index 9f25f918..52a2e80c 100644 --- a/native/src/widget/column.rs +++ b/native/src/widget/column.rs @@ -57,11 +57,6 @@ impl<'a, Message, Renderer> Column<'a, Message, Renderer> { } /// Sets the [`Padding`] of the [`Column`]. - ///```ignore - /// Column::new(/*...*/).padding(20); // 20px on all sides - /// Column::new(/*...*/).padding([10, 20]); // top/bottom, left/right - /// Column::new(/*...*/).padding([5, 10, 15, 20]); // top, right, bottom, left - /// ``` pub fn padding<P: Into<Padding>>(mut self, padding: P) -> Self { self.padding = padding.into(); self diff --git a/native/src/widget/container.rs b/native/src/widget/container.rs index cf5cb3dc..69aee64d 100644 --- a/native/src/widget/container.rs +++ b/native/src/widget/container.rs @@ -50,11 +50,6 @@ where } /// Sets the [`Padding`] of the [`Container`]. - ///```ignore - /// Container::new(/*...*/).padding(20); // 20px on all sides - /// Container::new(/*...*/).padding([10, 20]); // top/bottom, left/right - /// Container::new(/*...*/).padding([5, 10, 15, 20]); // top, right, bottom, left - /// ``` pub fn padding<P: Into<Padding>>(mut self, padding: P) -> Self { self.padding = padding.into(); self diff --git a/native/src/widget/pane_grid/title_bar.rs b/native/src/widget/pane_grid/title_bar.rs index 8f32992a..d9d85dbb 100644 --- a/native/src/widget/pane_grid/title_bar.rs +++ b/native/src/widget/pane_grid/title_bar.rs @@ -46,11 +46,6 @@ where } /// Sets the [`Padding`] of the [`TitleBar`]. - ///```ignore - /// TitleBar::new(/*...*/).padding(20); // 20px on all sides - /// TitleBar::new(/*...*/).padding([10, 20]); // top/bottom, left/right - /// TitleBar::new(/*...*/).padding([5, 10, 15, 20]); // top, right, bottom, left - /// ``` pub fn padding<P: Into<Padding>>(mut self, padding: P) -> Self { self.padding = padding.into(); self diff --git a/native/src/widget/pick_list.rs b/native/src/widget/pick_list.rs index 15fe66b2..92c183f3 100644 --- a/native/src/widget/pick_list.rs +++ b/native/src/widget/pick_list.rs @@ -98,11 +98,6 @@ where } /// Sets the [`Padding`] of the [`PickList`]. - ///```ignore - /// PickList::new(/*...*/).padding(20); // 20px on all sides - /// PickList::new(/*...*/).padding([10, 20]); // top/bottom, left/right - /// PickList::new(/*...*/).padding([5, 10, 15, 20]); // top, right, bottom, left - /// ``` pub fn padding<P: Into<Padding>>(mut self, padding: P) -> Self { self.padding = padding.into(); self diff --git a/native/src/widget/row.rs b/native/src/widget/row.rs index 9aa059c3..9ebc9145 100644 --- a/native/src/widget/row.rs +++ b/native/src/widget/row.rs @@ -56,11 +56,6 @@ impl<'a, Message, Renderer> Row<'a, Message, Renderer> { } /// Sets the [`Padding`] of the [`Row`]. - ///```ignore - /// Row::new(/*...*/).padding(20); // 20px on all sides - /// Row::new(/*...*/).padding([10, 20]); // top/bottom, left/right - /// Row::new(/*...*/).padding([5, 10, 15, 20]); // top, right, bottom, left - /// ``` pub fn padding<P: Into<Padding>>(mut self, padding: P) -> Self { self.padding = padding.into(); self diff --git a/native/src/widget/scrollable.rs b/native/src/widget/scrollable.rs index 2b699e3b..7c4ea16c 100644 --- a/native/src/widget/scrollable.rs +++ b/native/src/widget/scrollable.rs @@ -52,11 +52,6 @@ impl<'a, Message, Renderer: self::Renderer> Scrollable<'a, Message, Renderer> { } /// Sets the [`Padding`] of the [`Scrollable`]. - ///```ignore - /// Scrollable::new(/*...*/).padding(20); // 20px on all sides - /// Scrollable::new(/*...*/).padding([10, 20]); // top/bottom, left/right - /// Scrollable::new(/*...*/).padding([5, 10, 15, 20]); // top, right, bottom, left - /// ``` pub fn padding<P: Into<Padding>>(mut self, padding: P) -> Self { self.content = self.content.padding(padding); self diff --git a/native/src/widget/text_input.rs b/native/src/widget/text_input.rs index 197f1599..20117fa0 100644 --- a/native/src/widget/text_input.rs +++ b/native/src/widget/text_input.rs @@ -128,11 +128,6 @@ where } /// Sets the [`Padding`] of the [`TextInput`]. - ///```ignore - /// TextInput::new(/*...*/).padding(20); // 20px on all sides - /// TextInput::new(/*...*/).padding([10, 20]); // top/bottom, left/right - /// TextInput::new(/*...*/).padding([5, 10, 15, 20]); // top, right, bottom, left - /// ``` pub fn padding<P: Into<Padding>>(mut self, padding: P) -> Self { self.padding = padding.into(); self |