document align

This commit is contained in:
🪞👃🪞 2024-09-12 18:13:03 +03:00
parent b79033ab6d
commit 0bc43ed36f

View file

@ -335,14 +335,23 @@ impl Direction {
/// Override X and Y coordinates, aligning to corner, side, or center of area /// Override X and Y coordinates, aligning to corner, side, or center of area
pub enum Align<L> { pub enum Align<L> {
/// Draw at center of container
Center(L), Center(L),
/// Draw at upper left corner of contaier
NW(L), NW(L),
/// Draw at center of upper edge of container
N(L), N(L),
/// Draw at right left corner of contaier
NE(L), NE(L),
/// Draw at center of left edge of container
W(L), W(L),
/// Draw at center of right edge of container
E(L), E(L),
/// Draw at lower left corner of container
SW(L), SW(L),
/// Draw at center of lower edge of container
S(L), S(L),
/// Draw at lower right edge of container
SE(L) SE(L)
} }