Struct embedded_layout::layout::linear::spacing::DistributeFill [−][src]
pub struct DistributeFill(pub u32);
Expand description
Distribute views to fill a given space
Forces the layout to be as high or wide as set for this spacing
Example:
use embedded_layout::{ layout::linear::{spacing::DistributeFill, LinearLayout}, prelude::*, }; use embedded_graphics::{prelude::*, primitives::Line}; // Distribute views in a 64px high space let _ = LinearLayout::vertical( Views::new(&mut [ Line::new(Point::zero(), Point::new(0, 5)), Line::new(Point::zero(), Point::new(0, 5)), Line::new(Point::zero(), Point::new(0, 5)), ]) ) .with_spacing(DistributeFill(64));
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for DistributeFillimpl Send for DistributeFillimpl Sync for DistributeFillimpl Unpin for DistributeFillimpl UnwindSafe for DistributeFillBlanket Implementations
Mutably borrows from an owned value. Read more
Casts the value.
Casts the value.
Casts the value.
Casts the value.
Casts the value.