pub struct WrapLayoutBuilder { /* private fields */ }Expand description
A builder-pattern type to construct WrapLayout objects.
Implementations§
Source§impl WrapLayoutBuilder
impl WrapLayoutBuilder
pub fn align(self, align: f32) -> Self
pub fn child_spacing(self, child_spacing: i32) -> Self
pub fn child_spacing_unit(self, child_spacing_unit: LengthUnit) -> Self
pub fn justify(self, justify: JustifyMode) -> Self
pub fn justify_last_line(self, justify_last_line: bool) -> Self
pub fn line_homogeneous(self, line_homogeneous: bool) -> Self
pub fn line_spacing(self, line_spacing: i32) -> Self
pub fn line_spacing_unit(self, line_spacing_unit: LengthUnit) -> Self
pub fn natural_line_length(self, natural_line_length: i32) -> Self
pub fn natural_line_length_unit( self, natural_line_length_unit: LengthUnit, ) -> Self
pub fn pack_direction(self, pack_direction: PackDirection) -> Self
pub fn wrap_policy(self, wrap_policy: WrapPolicy) -> Self
pub fn wrap_reverse(self, wrap_reverse: bool) -> Self
pub fn orientation(self, orientation: Orientation) -> Self
Sourcepub fn build(self) -> WrapLayout
pub fn build(self) -> WrapLayout
Build the WrapLayout.
Auto Trait Implementations§
impl Freeze for WrapLayoutBuilder
impl RefUnwindSafe for WrapLayoutBuilder
impl !Send for WrapLayoutBuilder
impl !Sync for WrapLayoutBuilder
impl Unpin for WrapLayoutBuilder
impl UnwindSafe for WrapLayoutBuilder
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