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