pub type HorizontalPosition = PositionComponent<HorizontalPositionKeyword>;Expand description
A horizontal position component.
Aliased Type§
pub enum HorizontalPosition {
Center,
Length(DimensionPercentage<LengthValue>),
Side {
side: HorizontalPositionKeyword,
offset: Option<DimensionPercentage<LengthValue>>,
},
}Variants§
Center
The center keyword.
Length(DimensionPercentage<LengthValue>)
A length or percentage from the top-left corner of the box.
Side
A side keyword with an optional offset.
Fields
§
side: HorizontalPositionKeywordA side keyword.
§
offset: Option<DimensionPercentage<LengthValue>>Offset from the side.