ladybird/Libraries/LibDraw/TextAlignment.h
Andreas Kling 1c0669f010 LibDraw: Introduce (formerly known as SharedGraphics.)
Instead of LibGUI and WindowServer building their own copies of the drawing
and graphics code, let's it in a separate LibDraw library.

This avoids building the code twice, and will encourage better separation
of concerns. :^)
2019-07-18 10:18:16 +02:00

18 lines
291 B
C

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