pub struct FlowRowSpec {
pub main_axis_spacing: f32,
pub cross_axis_spacing: f32,
}Expand description
Specification for FlowRow layout behavior.
Fields§
§main_axis_spacing: f32Horizontal gap between adjacent children on the same line, in dp
(Compose: horizontalArrangement = Arrangement.spacedBy(..)).
cross_axis_spacing: f32Vertical gap between consecutive lines, in dp
(Compose: verticalArrangement = Arrangement.spacedBy(..)).
Implementations§
Source§impl FlowRowSpec
impl FlowRowSpec
pub fn new() -> Self
pub fn main_axis_spacing(self, spacing: f32) -> Self
pub fn cross_axis_spacing(self, spacing: f32) -> Self
Trait Implementations§
Source§impl Clone for FlowRowSpec
impl Clone for FlowRowSpec
Source§fn clone(&self) -> FlowRowSpec
fn clone(&self) -> FlowRowSpec
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for FlowRowSpec
Source§impl Debug for FlowRowSpec
impl Debug for FlowRowSpec
Source§impl Default for FlowRowSpec
impl Default for FlowRowSpec
Source§impl PartialEq for FlowRowSpec
impl PartialEq for FlowRowSpec
Source§fn eq(&self, other: &FlowRowSpec) -> bool
fn eq(&self, other: &FlowRowSpec) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for FlowRowSpec
Auto Trait Implementations§
impl Freeze for FlowRowSpec
impl RefUnwindSafe for FlowRowSpec
impl Send for FlowRowSpec
impl Sync for FlowRowSpec
impl Unpin for FlowRowSpec
impl UnsafeUnpin for FlowRowSpec
impl UnwindSafe for FlowRowSpec
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