pub struct FlowSpec {
pub main_axis_spacing: f32,
pub cross_axis_spacing: f32,
}Expand description
The gaps of a FlowRow or a FlowColumn.
Fields§
§main_axis_spacing: f32Gap between adjacent children on the same line, in dp: horizontal in
a row, vertical in a column (Compose: the arrangement along the main
axis, Arrangement.spacedBy(..)).
cross_axis_spacing: f32Gap between consecutive lines, in dp: between rows of a row, between columns of a column (Compose: the arrangement across them).
Implementations§
Source§impl FlowSpec
impl FlowSpec
Sourcepub fn main_axis_spacing(self, spacing: f32) -> Self
pub fn main_axis_spacing(self, spacing: f32) -> Self
Sets the gap between adjacent children on one line, in logical pixels.
Sourcepub fn cross_axis_spacing(self, spacing: f32) -> Self
pub fn cross_axis_spacing(self, spacing: f32) -> Self
Sets the gap between consecutive lines, in logical pixels.
Trait Implementations§
impl Copy for FlowSpec
impl StructuralPartialEq for FlowSpec
Auto Trait Implementations§
impl Freeze for FlowSpec
impl RefUnwindSafe for FlowSpec
impl Send for FlowSpec
impl Sync for FlowSpec
impl Unpin for FlowSpec
impl UnsafeUnpin for FlowSpec
impl UnwindSafe for FlowSpec
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
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