mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-23 17:52:26 -05:00
a791b86afa
Also tidy up the alignment code to use switch statements.
20 lines
340 B
C
20 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;
|
|
}
|
|
}
|