Struct gtk4::builders::BoxLayoutBuilder
source · 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 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