mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-06 11:46:41 +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
|
||||
pub enum Align<L> {
|
||||
/// Draw at center of container
|
||||
Center(L),
|
||||
/// Draw at upper left corner of contaier
|
||||
NW(L),
|
||||
/// Draw at center of upper edge of container
|
||||
N(L),
|
||||
/// Draw at right left corner of contaier
|
||||
NE(L),
|
||||
/// Draw at center of left edge of container
|
||||
W(L),
|
||||
/// Draw at center of right edge of container
|
||||
E(L),
|
||||
/// Draw at lower left corner of container
|
||||
SW(L),
|
||||
/// Draw at center of lower edge of container
|
||||
S(L),
|
||||
/// Draw at lower right edge of container
|
||||
SE(L)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue