mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-07 12:16:42 +01:00
document align
This commit is contained in:
parent
b79033ab6d
commit
0bc43ed36f
1 changed files with 9 additions and 0 deletions
|
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue