mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-15 10:50:40 +00:00
7dc4078a73
This seems a tad bit more future-proof than manually checking all the valid right-side TextAlignment values in clients.
13 lines
275 B
C
13 lines
275 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;
|
|
}
|
|
}
|