1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 03:17:35 +00:00

LibGfx: Add TextAlignment::BottomRight

This commit is contained in:
Peter Elliott 2020-08-21 08:52:39 -06:00 committed by Andreas Kling
parent 23a43d10f3
commit 28db3cd5ef
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;