pub struct GridLayout {
pub row_spacing: f64,
pub column_spacing: f64,
pub align: Alignment,
}Expand description
SwiftUI-style grid negotiation (docs/grid.md): columns are inferred from grid_row children,
a column’s width is the max ideal width of its span-1 cells, a grow_w cell makes its column
flexible (leftover width split evenly — the StackLayout share rule), and a non-row child
is a full-width cell spanning every column. spacer() is an inert empty cell. The contract:
exactly two measure proposals per cell per layout — unconstrained (pass A) and at the final
column width (pass B) — and place re-runs the same proposals, so it measures from cache.
Fields§
§row_spacing: f64§column_spacing: f64§align: AlignmentTrait Implementations§
Auto Trait Implementations§
impl Freeze for GridLayout
impl RefUnwindSafe for GridLayout
impl Send for GridLayout
impl Sync for GridLayout
impl Unpin for GridLayout
impl UnsafeUnpin for GridLayout
impl UnwindSafe for GridLayout
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> 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