TextAlignment.h 340 B

1234567891011121314151617181920
  1. #pragma once
  2. enum class TextAlignment {
  3. TopLeft,
  4. CenterLeft,
  5. Center,
  6. CenterRight,
  7. TopRight,
  8. };
  9. inline bool is_right_text_alignment(TextAlignment alignment)
  10. {
  11. switch (alignment) {
  12. case TextAlignment::CenterRight:
  13. case TextAlignment::TopRight:
  14. return true;
  15. default:
  16. return false;
  17. }
  18. }