pub type Column = GridDimension;
Expand description
Type alias for grid columns.
Aliased Type§
pub struct Column {
pub size_mode: SizeMode,
pub desired_size: f32,
pub actual_size: f32,
pub location: f32,
/* private fields */
}
Fields§
§size_mode: SizeMode
Current size mode of the dimension.
desired_size: f32
Desired size of the dimension. This must be supplied if SizeMode::Strict
,
and it is automatically calculated if SizeMode::Auto
.
If SizeMode::Stretch
. this represents the size of the dimension before excess space is added.
actual_size: f32
Measured size of the dimension. It could be considered as “output” parameter of the dimension that will be filled after measurement layout step. It is used to calculate the grid’s desired size.
location: f32
Local position along the axis of the dimension after arrangement step.