ladybird/Libraries/LibDraw/TextAlignment.h
Andreas Kling a791b86afa LibDraw: Add TextAlignment::TopRight
Also tidy up the alignment code to use switch statements.
2019-09-06 19:23:54 +02:00

21 lines
340 B
C

#pragma once
enum class TextAlignment {
TopLeft,
CenterLeft,
Center,
CenterRight,
TopRight,
};
inline bool is_right_text_alignment(TextAlignment alignment)
{
switch (alignment) {
case TextAlignment::CenterRight:
case TextAlignment::TopRight:
return true;
default:
return false;
}
}