pub enum Align {
Enum(VgLayoutAlign),
RowColVgLayoutAlign(RowColVgLayoutAlign),
}
Expand description
The alignment to apply to grid rows and columns.
The supported string values are "all"
, "each"
, and "none"
.
- For
"none"
, a flow layout will be used, in which adjacent subviews are simply placed one after the other. - For
"each"
, subviews will be aligned into a clean grid structure, but each row or column may be of variable size. - For
"all"
, subviews will be aligned and each row or column will be sized identically based on the maximum observed size. String values for this property will be applied to both grid rows and columns.
Alternatively, an object value of the form {"row": string, "column": string}
can be
used to supply different alignments for rows and columns.
Default value: "all"
.
Variants§
Enum(VgLayoutAlign)
RowColVgLayoutAlign(RowColVgLayoutAlign)
Trait Implementations§
source§impl<'de> Deserialize<'de> for Align
impl<'de> Deserialize<'de> for Align
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more