pub struct BoxLayoutBuilder { /* private fields */ }
Expand description
A builder-pattern type to construct BoxLayout
objects.
Implementations§
Source§impl BoxLayoutBuilder
impl BoxLayoutBuilder
Sourcepub fn baseline_child(self, baseline_child: i32) -> Self
Available on crate feature v4_12
only.
pub fn baseline_child(self, baseline_child: i32) -> Self
v4_12
only.The child that determines the baseline of the box in vertical layout.
If the child does baseline positioning, then its baseline is lined up with the baseline of the box. If it doesn’t, then the bottom edge of the child is used.
Sourcepub fn baseline_position(self, baseline_position: BaselinePosition) -> Self
pub fn baseline_position(self, baseline_position: BaselinePosition) -> Self
The position of the allocated baseline within the extra space allocated to each child.
This property is only relevant for horizontal layouts containing at least one child with a baseline alignment.
Sourcepub fn homogeneous(self, homogeneous: bool) -> Self
pub fn homogeneous(self, homogeneous: bool) -> Self
Whether the box layout should distribute the available space equally among the children.
Sourcepub fn orientation(self, orientation: Orientation) -> Self
pub fn orientation(self, orientation: Orientation) -> Self
The orientation of the orientable.
Auto Trait Implementations§
impl Freeze for BoxLayoutBuilder
impl RefUnwindSafe for BoxLayoutBuilder
impl !Send for BoxLayoutBuilder
impl !Sync for BoxLayoutBuilder
impl Unpin for BoxLayoutBuilder
impl UnwindSafe for BoxLayoutBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more