mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 01:20:25 +00:00
1c0669f010
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. :^)
18 lines
291 B
C
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;
|
|
}
|
|
}
|