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_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.