Merge pull request #186 from Louis-Simon22/master
Container support for Align::End
This commit is contained in:
commit
f79b94111f
@ -78,6 +78,22 @@ where
|
|||||||
self
|
self
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Sets the content alignment for the horizontal axis of the [`Container`].
|
||||||
|
///
|
||||||
|
/// [`Container`]: struct.Container.html
|
||||||
|
pub fn align_x(mut self, alignment: Align) -> Self {
|
||||||
|
self.horizontal_alignment = alignment;
|
||||||
|
self
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Sets the content alignment for the vertical axis of the [`Container`].
|
||||||
|
///
|
||||||
|
/// [`Container`]: struct.Container.html
|
||||||
|
pub fn align_y(mut self, alignment: Align) -> Self {
|
||||||
|
self.vertical_alignment = alignment;
|
||||||
|
self
|
||||||
|
}
|
||||||
|
|
||||||
/// Centers the contents in the horizontal axis of the [`Container`].
|
/// Centers the contents in the horizontal axis of the [`Container`].
|
||||||
///
|
///
|
||||||
/// [`Container`]: struct.Container.html
|
/// [`Container`]: struct.Container.html
|
||||||
|
Loading…
Reference in New Issue
Block a user