enum OofAlignment {
Normal,
Stretch,
Start,
Center,
End,
}Expand description
The self-alignment of an out-of-flow box in one axis, resolved relative to the writing mode
of its containing block (Start is the logical start edge of the containing block).
Variants§
Normal
normal (or auto): stretch-fit sizing for non-replaced, non-table boxes; start alignment
Stretch
stretch: stretch-fit sizing; start alignment
Start
Aligned to the logical start edge
Center
Centered
End
Aligned to the logical end edge
Implementations§
Source§impl OofAlignment
impl OofAlignment
Sourcefn from_resolved(alignment: AlignSelf) -> Self
fn from_resolved(alignment: AlignSelf) -> Self
Convert an align-self/justify-self value for an out-of-flow box into a logical
alignment relative to the containing block’s writing mode.
alignment must already have had self-start/self-end resolved against the containing
block’s direction (see AlignSelf::resolve_self_relative).
Sourcefn physical_edge(self, reversed: bool) -> AxisStaticEdge
fn physical_edge(self, reversed: bool) -> AxisStaticEdge
The physical edge of the containing block the box’s margin box is aligned to once its
size has been determined. Normal and Stretch behave as Start.
Trait Implementations§
Source§impl Clone for OofAlignment
impl Clone for OofAlignment
Source§fn clone(&self) -> OofAlignment
fn clone(&self) -> OofAlignment
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more