mirror of
https://github.com/RGBCube/serenity
synced 2025-05-19 02:25:07 +00:00

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;
|
|
}
|
|
}
|