pub struct FlowOptions {
pub row_height: f32,
pub gap: [f32; 2],
pub wrap: bool,
}Expand description
Row policy in the parent’s units. Defaults: height 44, gaps [8, 8], wrapping. There is no leading/trailing gap, row stretching, justification or font scale.
Fields§
§row_height: f32Positive, finite height shared by all rows; partial-height rows are omitted.
gap: [f32; 2]Finite, nonnegative horizontal and vertical gaps, respectively.
wrap: boolStart another row when the next minimum no longer fits. If false, stop after the first row. An item wider than the parent stops either mode.
Trait Implementations§
Source§impl Clone for FlowOptions
impl Clone for FlowOptions
Source§fn clone(&self) -> FlowOptions
fn clone(&self) -> FlowOptions
Returns a duplicate 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 Debug for FlowOptions
impl Debug for FlowOptions
Source§impl Default for FlowOptions
impl Default for FlowOptions
Source§fn default() -> FlowOptions
fn default() -> FlowOptions
Returns the “default value” for a type. Read more
Source§impl PartialEq for FlowOptions
impl PartialEq for FlowOptions
impl Copy for FlowOptions
impl StructuralPartialEq for FlowOptions
Auto Trait Implementations§
impl Freeze for FlowOptions
impl RefUnwindSafe for FlowOptions
impl Send for FlowOptions
impl Sync for FlowOptions
impl Unpin for FlowOptions
impl UnwindSafe for FlowOptions
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