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 new() -> Self
pub fn new() -> Self
Create a new 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.
Trait Implementations§
source§impl Clone for BoxLayoutBuilder
impl Clone for BoxLayoutBuilder
source§fn clone(&self) -> BoxLayoutBuilder
fn clone(&self) -> BoxLayoutBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Default for BoxLayoutBuilder
impl Default for BoxLayoutBuilder
source§fn default() -> BoxLayoutBuilder
fn default() -> BoxLayoutBuilder
Returns the “default value” for a type. Read more