pub struct TrackBuilder { /* private fields */ }Expand description
Builder for Track values.
Implementations§
Source§impl TrackBuilder
impl TrackBuilder
Sourcepub fn layout_mode(self, mode: LayoutMode) -> Self
pub fn layout_mode(self, mode: LayoutMode) -> Self
Set track layout mode.
Sourcepub fn layout_gap_px(self, gap: f64) -> Self
pub fn layout_gap_px(self, gap: f64) -> Self
Set inter-item gap in pixels for stack/grid layouts.
Sourcepub fn layout_padding(self, padding: Edges) -> Self
pub fn layout_padding(self, padding: Edges) -> Self
Set track layout padding.
Sourcepub fn layout_align(self, x: LayoutAlignX, y: LayoutAlignY) -> Self
pub fn layout_align(self, x: LayoutAlignX, y: LayoutAlignY) -> Self
Set horizontal and vertical alignment for layout placement.
Sourcepub fn layout_grid_columns(self, columns: u32) -> Self
pub fn layout_grid_columns(self, columns: u32) -> Self
Set number of columns for grid layout.
Sourcepub fn build(self) -> WavyteResult<Track>
pub fn build(self) -> WavyteResult<Track>
Build validated Track.
Auto Trait Implementations§
impl Freeze for TrackBuilder
impl RefUnwindSafe for TrackBuilder
impl Send for TrackBuilder
impl Sync for TrackBuilder
impl Unpin for TrackBuilder
impl UnwindSafe for TrackBuilder
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more