2019-02-28 07:27:04 -03:00
|
|
|
#pragma once
|
|
|
|
|
|
2019-06-07 12:13:23 -03:00
|
|
|
enum class TextAlignment {
|
2019-06-07 06:46:55 -03:00
|
|
|
TopLeft,
|
|
|
|
|
CenterLeft,
|
|
|
|
|
Center,
|
2019-09-06 14:23:36 -03:00
|
|
|
CenterRight,
|
|
|
|
|
TopRight,
|
2019-06-07 06:46:55 -03:00
|
|
|
};
|
2019-04-24 18:46:19 -03:00
|
|
|
|
|
|
|
|
inline bool is_right_text_alignment(TextAlignment alignment)
|
|
|
|
|
{
|
|
|
|
|
switch (alignment) {
|
|
|
|
|
case TextAlignment::CenterRight:
|
2019-09-06 14:23:36 -03:00
|
|
|
case TextAlignment::TopRight:
|
2019-04-24 18:46:19 -03:00
|
|
|
return true;
|
|
|
|
|
default:
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
}
|