draw: support top and bottom as align
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
0b6b96131a
commit
24a8e6d377
4
draw.c
4
draw.c
|
@ -877,6 +877,8 @@ draw_align_fromstr(const char *align, ssize_t len)
|
|||
case A_TK_CENTER: return AlignCenter;
|
||||
case A_TK_RIGHT: return AlignRight;
|
||||
case A_TK_FLEX: return AlignFlex;
|
||||
case A_TK_TOP: return AlignTop;
|
||||
case A_TK_BOTTOM: return AlignBottom;
|
||||
default: return AlignLeft;
|
||||
}
|
||||
}
|
||||
|
@ -894,6 +896,8 @@ draw_align_tostr(alignment_t a)
|
|||
case AlignCenter: return "center";
|
||||
case AlignRight: return "right";
|
||||
case AlignFlex: return "flex";
|
||||
case AlignBottom: return "bottom";
|
||||
case AlignTop: return "top";
|
||||
default: return NULL;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue