summaryrefslogtreecommitdiffstats
path: root/native/src
diff options
context:
space:
mode:
Diffstat (limited to 'native/src')
-rw-r--r--native/src/widget/column.rs6
-rw-r--r--native/src/widget/row.rs6
2 files changed, 8 insertions, 4 deletions
diff --git a/native/src/widget/column.rs b/native/src/widget/column.rs
index e6c795e5..b38b1ef1 100644
--- a/native/src/widget/column.rs
+++ b/native/src/widget/column.rs
@@ -42,10 +42,12 @@ impl<'a, Message, Renderer> Column<'a, Message, Renderer> {
}
}
- /// Creates a [`Column`] with children.
+ /// Creates a [`Column`] with the given elements.
///
/// [`Column`]: struct.Column.html
- pub fn new_with_children(children: Vec<Element<'a, Message, Renderer>>) -> Self {
+ pub fn with_children(
+ children: Vec<Element<'a, Message, Renderer>>,
+ ) -> Self {
Column {
spacing: 0,
padding: 0,
diff --git a/native/src/widget/row.rs b/native/src/widget/row.rs
index 3d803fa2..b71d6480 100644
--- a/native/src/widget/row.rs
+++ b/native/src/widget/row.rs
@@ -42,10 +42,12 @@ impl<'a, Message, Renderer> Row<'a, Message, Renderer> {
}
}
- /// Creates a [`Row`] with children.
+ /// Creates a [`Row`] with the given elements.
///
/// [`Row`]: struct.Row.html
- pub fn new_with_children(children: Vec<Element<'a, Message, Renderer>>) -> Self {
+ pub fn with_children(
+ children: Vec<Element<'a, Message, Renderer>>,
+ ) -> Self {
Row {
spacing: 0,
padding: 0,