LibGfx: Add TextAlignment::BottomRight

This commit is contained in:
Peter Elliott 2020-08-21 08:52:39 -06:00 committed by Andreas Kling
commit 28db3cd5ef
Notes: sideshowbarker 2024-07-19 03:16:48 +09:00
3 changed files with 10 additions and 0 deletions

View file

@ -34,6 +34,7 @@ enum class TextAlignment {
Center,
CenterRight,
TopRight,
BottomRight,
};
inline bool is_right_text_alignment(TextAlignment alignment)
@ -41,6 +42,7 @@ inline bool is_right_text_alignment(TextAlignment alignment)
switch (alignment) {
case TextAlignment::CenterRight:
case TextAlignment::TopRight:
case TextAlignment::BottomRight:
return true;
default:
return false;