Replace ignored doc-tests with additional documentation for Padding

This commit is contained in:
Héctor Ramón 2021-06-01 19:45:47 +07:00
parent b94cd7a2a8
commit 8a3b71df8b
16 changed files with 32 additions and 75 deletions

View file

@ -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