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

LibGfx: Add missing TextAlignment::BottomLeft

This commit is contained in:
Linus Groh 2021-05-21 01:03:02 +01:00 committed by Andreas Kling
parent 8cbdcffd05
commit 9dd3203cc6
6 changed files with 19 additions and 5 deletions

View file

@ -78,6 +78,7 @@ constexpr static CellTypeDialog::VerticalAlignment vertical_alignment_from(Gfx::
case Gfx::TextAlignment::TopLeft:
return CellTypeDialog::VerticalAlignment::Top;
case Gfx::TextAlignment::BottomLeft:
case Gfx::TextAlignment::BottomRight:
return CellTypeDialog::VerticalAlignment::Bottom;
}
@ -91,13 +92,14 @@ constexpr static CellTypeDialog::HorizontalAlignment horizontal_alignment_from(G
case Gfx::TextAlignment::Center:
return CellTypeDialog::HorizontalAlignment::Center;
case Gfx::TextAlignment::CenterRight:
case Gfx::TextAlignment::TopRight:
case Gfx::TextAlignment::CenterRight:
case Gfx::TextAlignment::BottomRight:
return CellTypeDialog::HorizontalAlignment::Right;
case Gfx::TextAlignment::TopLeft:
case Gfx::TextAlignment::CenterLeft:
case Gfx::TextAlignment::BottomLeft:
return CellTypeDialog::HorizontalAlignment::Left;
}